@serendie/ui 2.1.3 → 2.2.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 (122) hide show
  1. package/dist/client.js +79 -74
  2. package/dist/components/Accordion/Accordion.d.ts +1 -1
  3. package/dist/components/Avatar/Avatar.d.ts +1 -1
  4. package/dist/components/Banner/Banner.d.ts +1 -1
  5. package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
  6. package/dist/components/Button/Button.d.ts +2 -2
  7. package/dist/components/Button/Button.js +22 -21
  8. package/dist/components/DatePicker/DatePicker.d.ts +13 -0
  9. package/dist/components/DatePicker/DatePicker.js +203 -0
  10. package/dist/components/DatePicker/index.d.ts +2 -0
  11. package/dist/components/DatePicker/index.js +6 -0
  12. package/dist/components/DatePicker/parseDate.d.ts +1 -0
  13. package/dist/components/DatePicker/styles.d.ts +1 -0
  14. package/dist/components/DatePicker/styles.js +224 -0
  15. package/dist/components/IconButton/IconButton.d.ts +3 -3
  16. package/dist/components/List/ListItem.d.ts +1 -1
  17. package/dist/components/ModalDialog/ModalDialog.d.ts +1 -1
  18. package/dist/components/NotificationBadge/NotificationBadge.d.ts +1 -1
  19. package/dist/components/Pagination/Pagination.d.ts +1 -1
  20. package/dist/components/ProgressIndicator/AnimatedArc.d.ts +6 -0
  21. package/dist/components/ProgressIndicator/AnimatedArc.js +46 -0
  22. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +11 -29
  23. package/dist/components/ProgressIndicator/ProgressIndicator.js +201 -43
  24. package/dist/components/ProgressIndicator/ProgressIndicatorIndeterminate.d.ts +10 -0
  25. package/dist/components/ProgressIndicator/ProgressIndicatorIndeterminate.js +215 -0
  26. package/dist/components/ProgressIndicator/index.d.ts +4 -1
  27. package/dist/components/ProgressIndicator/index.js +3 -2
  28. package/dist/components/ProgressIndicator/util.d.ts +1 -0
  29. package/dist/components/ProgressIndicator/util.js +13 -0
  30. package/dist/components/Search/Search.d.ts +1 -1
  31. package/dist/components/Select/Select.d.ts +1 -1
  32. package/dist/components/Switch/Switch.d.ts +1 -1
  33. package/dist/components/Tabs/Tabs.d.ts +1 -1
  34. package/dist/components/TextField/TextField.js +59 -156
  35. package/dist/components/Toast/Toast.d.ts +1 -1
  36. package/dist/components/TopAppBar/TopAppBar.d.ts +1 -1
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.js +80 -75
  39. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +15 -0
  40. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +5 -0
  41. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +13 -0
  42. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +14 -0
  43. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +13 -0
  44. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +13 -0
  45. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -0
  46. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +14 -0
  47. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -0
  48. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +55 -0
  49. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +14 -0
  50. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +19 -0
  51. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +26 -0
  52. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +14 -0
  53. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +14 -0
  54. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +14 -0
  55. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +16 -0
  56. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +13 -0
  57. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +14 -0
  58. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +23 -0
  59. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +13 -0
  60. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +5 -0
  61. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +10 -0
  62. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +10 -0
  63. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +10 -0
  64. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +12 -0
  65. package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +18 -0
  66. package/dist/node_modules/@ark-ui/react/dist/components/factory.js +11 -12
  67. package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +5 -4
  68. package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +0 -1
  69. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +36 -36
  70. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
  71. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
  72. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +68 -67
  73. package/dist/node_modules/@internationalized/date/dist/CalendarDate.js +178 -0
  74. package/dist/node_modules/@internationalized/date/dist/DateFormatter.js +99 -0
  75. package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +98 -0
  76. package/dist/node_modules/@internationalized/date/dist/conversion.js +135 -0
  77. package/dist/node_modules/@internationalized/date/dist/manipulation.js +205 -0
  78. package/dist/node_modules/@internationalized/date/dist/queries.js +202 -0
  79. package/dist/node_modules/@internationalized/date/dist/string.js +41 -0
  80. package/dist/node_modules/@internationalized/date/dist/utils.js +6 -0
  81. package/dist/node_modules/@internationalized/date/dist/weekStartData.js +100 -0
  82. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +7 -0
  83. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
  84. package/dist/node_modules/@zag-js/anatomy/dist/index.js +15 -14
  85. package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +23 -23
  86. package/dist/node_modules/@zag-js/collection/dist/index.js +102 -71
  87. package/dist/node_modules/@zag-js/combobox/dist/index.js +482 -426
  88. package/dist/node_modules/@zag-js/date-picker/dist/index.js +1826 -0
  89. package/dist/node_modules/@zag-js/date-utils/dist/index.js +366 -0
  90. package/dist/node_modules/@zag-js/dialog/dist/index.js +66 -64
  91. package/dist/node_modules/@zag-js/dismissable/dist/index.js +94 -69
  92. package/dist/node_modules/@zag-js/dom-query/dist/index.js +359 -300
  93. package/dist/node_modules/@zag-js/live-region/dist/index.js +39 -0
  94. package/dist/node_modules/@zag-js/menu/dist/index.js +357 -340
  95. package/dist/node_modules/@zag-js/popper/dist/index.js +123 -120
  96. package/dist/node_modules/@zag-js/presence/dist/index.js +17 -17
  97. package/dist/node_modules/@zag-js/radio-group/dist/index.js +118 -117
  98. package/dist/node_modules/@zag-js/react/dist/index.js +124 -121
  99. package/dist/node_modules/@zag-js/select/dist/index.js +211 -197
  100. package/dist/node_modules/@zag-js/toast/dist/index.js +73 -71
  101. package/dist/node_modules/@zag-js/tooltip/dist/index.js +31 -30
  102. package/dist/node_modules/@zag-js/utils/dist/index.js +150 -104
  103. package/dist/preset.d.ts +11 -1
  104. package/dist/recipes/index.d.ts +3 -2
  105. package/dist/recipes/index.js +5 -2
  106. package/dist/recipes/textFieldRecipe.d.ts +6 -0
  107. package/dist/recipes/textFieldRecipe.js +107 -0
  108. package/dist/styled-system/css/cva.js +43 -38
  109. package/dist/styled-system/recipes/create-recipe.js +37 -0
  110. package/dist/styled-system/recipes/text-field-recipe.js +61 -0
  111. package/dist/styles.css +1 -1
  112. package/dist/tokens/keyframes/index.d.ts +8 -0
  113. package/dist/tokens/keyframes/index.js +6 -2
  114. package/package.json +3 -3
  115. package/styled-system/recipes/create-recipe.js +82 -0
  116. package/styled-system/recipes/index.d.ts +2 -0
  117. package/styled-system/recipes/index.js +1 -0
  118. package/styled-system/recipes/text-field-recipe.d.ts +28 -0
  119. package/styled-system/recipes/text-field-recipe.js +72 -0
  120. package/styled-system/types/prop-type.d.ts +1 -1
  121. package/dist/node_modules/@zag-js/store/dist/index.js +0 -131
  122. package/dist/node_modules/proxy-compare/dist/index.js +0 -7
@@ -1,28 +1,28 @@
1
- function ne(t) {
1
+ function ue(t) {
2
2
  if (!t) return;
3
3
  const e = t.selectionStart ?? 0, n = t.selectionEnd ?? 0;
4
4
  Math.abs(n - e) === 0 && e === 0 && t.setSelectionRange(t.value.length, t.value.length);
5
5
  }
6
- var et = (t, e) => t.map((n, r) => t[(Math.max(e, 0) + r) % t.length]), C = (...t) => (e) => t.reduce((n, r) => r(n), e), h = () => {
7
- }, A = (t) => typeof t == "object" && t !== null, re = 2147483647, oe = (t) => t ? "" : void 0, ie = (t) => t ? "true" : void 0, nt = 1, rt = 9, ot = 11, u = (t) => A(t) && t.nodeType === nt && typeof t.nodeName == "string", W = (t) => A(t) && t.nodeType === rt, it = (t) => A(t) && t === t.window, H = (t) => u(t) ? t.localName || "" : "#document";
8
- function st(t) {
9
- return ["html", "body", "#document"].includes(H(t));
6
+ var st = (t, e) => t.map((n, r) => t[(Math.max(e, 0) + r) % t.length]), P = (...t) => (e) => t.reduce((n, r) => r(n), e), h = () => {
7
+ }, x = (t) => typeof t == "object" && t !== null, le = 2147483647, fe = (t) => t ? "" : void 0, de = (t) => t ? "true" : void 0, ct = 1, at = 9, ut = 11, d = (t) => x(t) && t.nodeType === ct && typeof t.nodeName == "string", $ = (t) => x(t) && t.nodeType === at, lt = (t) => x(t) && t === t.window, X = (t) => d(t) ? t.localName || "" : "#document";
8
+ function ft(t) {
9
+ return ["html", "body", "#document"].includes(X(t));
10
10
  }
11
- var at = (t) => A(t) && t.nodeType !== void 0, E = (t) => at(t) && t.nodeType === ot && "host" in t, ct = (t) => u(t) && t.localName === "input", se = (t) => !!(t != null && t.matches("a[href]")), ut = (t) => u(t) ? t.offsetWidth > 0 || t.offsetHeight > 0 || t.getClientRects().length > 0 : !1, ft = /(textarea|select)/;
12
- function lt(t) {
13
- if (t == null || !u(t)) return !1;
11
+ var dt = (t) => x(t) && t.nodeType !== void 0, A = (t) => dt(t) && t.nodeType === ut && "host" in t, mt = (t) => d(t) && t.localName === "input", me = (t) => !!(t != null && t.matches("a[href]")), bt = (t) => d(t) ? t.offsetWidth > 0 || t.offsetHeight > 0 || t.getClientRects().length > 0 : !1, pt = /(textarea|select)/;
12
+ function yt(t) {
13
+ if (t == null || !d(t)) return !1;
14
14
  try {
15
- return ct(t) && t.selectionStart != null || ft.test(t.localName) || t.isContentEditable || t.getAttribute("contenteditable") === "true" || t.getAttribute("contenteditable") === "";
15
+ return mt(t) && t.selectionStart != null || pt.test(t.localName) || t.isContentEditable || t.getAttribute("contenteditable") === "true" || t.getAttribute("contenteditable") === "";
16
16
  } catch {
17
17
  return !1;
18
18
  }
19
19
  }
20
- function q(t, e) {
20
+ function z(t, e) {
21
21
  var r;
22
- if (!t || !e || !u(t) || !u(e)) return !1;
22
+ if (!t || !e || !d(t) || !d(e)) return !1;
23
23
  const n = (r = e.getRootNode) == null ? void 0 : r.call(e);
24
24
  if (t === e || t.contains(e)) return !0;
25
- if (n && E(n)) {
25
+ if (n && A(n)) {
26
26
  let o = e;
27
27
  for (; o; ) {
28
28
  if (t === o) return !0;
@@ -31,17 +31,17 @@ function q(t, e) {
31
31
  }
32
32
  return !1;
33
33
  }
34
- function S(t) {
35
- return W(t) ? t : it(t) ? t.document : (t == null ? void 0 : t.ownerDocument) ?? document;
34
+ function k(t) {
35
+ return $(t) ? t : lt(t) ? t.document : (t == null ? void 0 : t.ownerDocument) ?? document;
36
36
  }
37
- function dt(t) {
38
- return S(t).documentElement;
37
+ function vt(t) {
38
+ return k(t).documentElement;
39
39
  }
40
- function f(t) {
40
+ function m(t) {
41
41
  var e;
42
- return E(t) ? f(t.host) : W(t) ? t.defaultView ?? window : u(t) ? ((e = t.ownerDocument) == null ? void 0 : e.defaultView) ?? window : window;
42
+ return A(t) ? m(t.host) : $(t) ? t.defaultView ?? window : d(t) ? ((e = t.ownerDocument) == null ? void 0 : e.defaultView) ?? window : window;
43
43
  }
44
- function ae(t) {
44
+ function be(t) {
45
45
  let e = t.activeElement;
46
46
  for (; e != null && e.shadowRoot; ) {
47
47
  const n = e.shadowRoot.activeElement;
@@ -50,59 +50,59 @@ function ae(t) {
50
50
  }
51
51
  return e;
52
52
  }
53
- function mt(t) {
54
- if (H(t) === "html") return t;
55
- const e = t.assignedSlot || t.parentNode || E(t) && t.host || dt(t);
56
- return E(e) ? e.host : e;
53
+ function gt(t) {
54
+ if (X(t) === "html") return t;
55
+ const e = t.assignedSlot || t.parentNode || A(t) && t.host || vt(t);
56
+ return A(e) ? e.host : e;
57
57
  }
58
58
  var D = /* @__PURE__ */ new WeakMap();
59
- function ce(t) {
60
- return D.has(t) || D.set(t, f(t).getComputedStyle(t)), D.get(t);
59
+ function pe(t) {
60
+ return D.has(t) || D.set(t, m(t).getComputedStyle(t)), D.get(t);
61
61
  }
62
- var T = () => typeof document < "u";
63
- function bt() {
62
+ var S = () => typeof document < "u";
63
+ function ht() {
64
64
  const t = navigator.userAgentData;
65
65
  return (t == null ? void 0 : t.platform) ?? navigator.platform;
66
66
  }
67
- function pt() {
67
+ function wt() {
68
68
  const t = navigator.userAgentData;
69
69
  return t && Array.isArray(t.brands) ? t.brands.map(({ brand: e, version: n }) => `${e}/${n}`).join(" ") : navigator.userAgent;
70
70
  }
71
- var M = (t) => T() && t.test(bt()), U = (t) => T() && t.test(pt()), vt = (t) => T() && t.test(navigator.vendor), ue = () => T() && !!navigator.maxTouchPoints, yt = () => M(/^iPhone/i), ht = () => M(/^iPad/i) || k() && navigator.maxTouchPoints > 1, gt = () => yt() || ht(), wt = () => k() || gt(), k = () => M(/^Mac/i), fe = () => wt() && vt(/apple/i), Et = () => U(/Firefox/i), At = () => U(/Android/i);
72
- function Tt(t) {
71
+ var F = (t) => S() && t.test(ht()), G = (t) => S() && t.test(wt()), Et = (t) => S() && t.test(navigator.vendor), ye = () => S() && !!navigator.maxTouchPoints, Tt = () => F(/^iPhone/i), At = () => F(/^iPad/i) || N() && navigator.maxTouchPoints > 1, K = () => Tt() || At(), xt = () => N() || K(), N = () => F(/^Mac/i), ve = () => xt() && Et(/apple/i), kt = () => G(/Firefox/i), St = () => G(/Android/i);
72
+ function Nt(t) {
73
73
  var e, n, r;
74
74
  return ((e = t.composedPath) == null ? void 0 : e.call(t)) ?? ((r = (n = t.nativeEvent) == null ? void 0 : n.composedPath) == null ? void 0 : r.call(n));
75
75
  }
76
- function X(t) {
77
- const e = Tt(t);
76
+ function Y(t) {
77
+ const e = Nt(t);
78
78
  return (e == null ? void 0 : e[0]) ?? t.target;
79
79
  }
80
- var le = (t) => q(t.currentTarget, X(t));
81
- function de(t) {
80
+ var ge = (t) => z(t.currentTarget, Y(t));
81
+ function he(t) {
82
82
  const e = t.currentTarget;
83
83
  if (!e || !e.matches("a[href], button[type='submit'], input[type='submit']")) return !1;
84
- const r = t.button === 1, o = kt(t);
84
+ const r = t.button === 1, o = Lt(t);
85
85
  return r || o;
86
86
  }
87
- function me(t) {
87
+ function we(t) {
88
88
  const e = t.currentTarget;
89
89
  if (!e) return !1;
90
90
  const n = e.localName;
91
91
  return t.altKey ? n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit" : !1;
92
92
  }
93
- function be(t) {
94
- return Nt(t).isComposing || t.keyCode === 229;
93
+ function Ee(t) {
94
+ return Ct(t).isComposing || t.keyCode === 229;
95
95
  }
96
- function kt(t) {
97
- return k() ? t.metaKey : t.ctrlKey;
96
+ function Lt(t) {
97
+ return N() ? t.metaKey : t.ctrlKey;
98
98
  }
99
- function pe(t) {
99
+ function Te(t) {
100
100
  return t.key.length === 1 && !t.ctrlKey && !t.metaKey;
101
101
  }
102
- function ve(t) {
103
- return t.mozInputSource === 0 && t.isTrusted ? !0 : At() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
102
+ function Ae(t) {
103
+ return t.pointerType === "" && t.isTrusted ? !0 : St() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
104
104
  }
105
- var ye = (t) => t.button === 0, he = (t) => t.button === 2 || k() && t.ctrlKey && t.button === 0, ge = (t) => t.ctrlKey || t.altKey || t.metaKey, xt = (t) => "touches" in t && t.touches.length > 0, It = {
105
+ var xe = (t) => t.button === 0, ke = (t) => t.button === 2 || N() && t.ctrlKey && t.button === 0, Se = (t) => t.ctrlKey || t.altKey || t.metaKey, It = (t) => "touches" in t && t.touches.length > 0, Mt = {
106
106
  Up: "ArrowUp",
107
107
  Down: "ArrowDown",
108
108
  Esc: "Escape",
@@ -110,20 +110,20 @@ var ye = (t) => t.button === 0, he = (t) => t.button === 2 || k() && t.ctrlKey &
110
110
  ",": "Comma",
111
111
  Left: "ArrowLeft",
112
112
  Right: "ArrowRight"
113
- }, _ = {
113
+ }, j = {
114
114
  ArrowLeft: "ArrowRight",
115
115
  ArrowRight: "ArrowLeft"
116
116
  };
117
- function we(t, e = {}) {
117
+ function Ne(t, e = {}) {
118
118
  const { dir: n = "ltr", orientation: r = "horizontal" } = e;
119
119
  let o = t.key;
120
- return o = It[o] ?? o, n === "rtl" && r === "horizontal" && o in _ && (o = _[o]), o;
120
+ return o = Mt[o] ?? o, n === "rtl" && r === "horizontal" && o in j && (o = j[o]), o;
121
121
  }
122
- function Nt(t) {
122
+ function Ct(t) {
123
123
  return t.nativeEvent ?? t;
124
124
  }
125
- function Ct(t, e = "client") {
126
- const n = xt(t) ? t.touches[0] || t.changedTouches[0] : t;
125
+ function Pt(t, e = "client") {
126
+ const n = It(t) ? t.touches[0] || t.changedTouches[0] : t;
127
127
  return { x: n[`${e}X`], y: n[`${e}Y`] };
128
128
  }
129
129
  var v = (t, e, n, r) => {
@@ -132,101 +132,112 @@ var v = (t, e, n, r) => {
132
132
  o == null || o.removeEventListener(e, n, r);
133
133
  };
134
134
  };
135
- function Dt(t, e) {
136
- const { type: n = "HTMLInputElement", property: r = "value" } = e, o = f(t)[n].prototype;
135
+ function Z(t, e) {
136
+ const { type: n = "HTMLInputElement", property: r = "value" } = e, o = m(t)[n].prototype;
137
137
  return Object.getOwnPropertyDescriptor(o, r) ?? {};
138
138
  }
139
- function Lt(t, e) {
139
+ function Dt(t) {
140
+ if (t.localName === "input") return "HTMLInputElement";
141
+ if (t.localName === "textarea") return "HTMLTextAreaElement";
142
+ if (t.localName === "select") return "HTMLSelectElement";
143
+ }
144
+ function Le(t, e, n = "value") {
145
+ var o;
146
+ if (!t) return;
147
+ const r = Dt(t);
148
+ r && ((o = Z(t, { type: r, property: n }).set) == null || o.call(t, e)), t.setAttribute(n, e);
149
+ }
150
+ function Ot(t, e) {
140
151
  var r;
141
152
  if (!t) return;
142
- (r = Dt(t, { type: "HTMLInputElement", property: "checked" }).set) == null || r.call(t, e), e ? t.setAttribute("checked", "") : t.removeAttribute("checked");
153
+ (r = Z(t, { type: "HTMLInputElement", property: "checked" }).set) == null || r.call(t, e), e ? t.setAttribute("checked", "") : t.removeAttribute("checked");
143
154
  }
144
- function Ee(t, e) {
155
+ function Ie(t, e) {
145
156
  const { checked: n, bubbles: r = !0 } = e;
146
157
  if (!t) return;
147
- const o = f(t);
148
- t instanceof o.HTMLInputElement && (Lt(t, n), t.dispatchEvent(new o.Event("click", { bubbles: r })));
158
+ const o = m(t);
159
+ t instanceof o.HTMLInputElement && (Ot(t, n), t.dispatchEvent(new o.Event("click", { bubbles: r })));
149
160
  }
150
- function St(t) {
151
- return Mt(t) ? t.form : t.closest("form");
161
+ function Rt(t) {
162
+ return Ft(t) ? t.form : t.closest("form");
152
163
  }
153
- function Mt(t) {
164
+ function Ft(t) {
154
165
  return t.matches("textarea, input, select, button");
155
166
  }
156
- function Pt(t, e) {
167
+ function Kt(t, e) {
157
168
  if (!t) return;
158
- const n = St(t), r = (o) => {
169
+ const n = Rt(t), r = (o) => {
159
170
  o.defaultPrevented || e();
160
171
  };
161
172
  return n == null || n.addEventListener("reset", r, { passive: !0 }), () => n == null ? void 0 : n.removeEventListener("reset", r);
162
173
  }
163
- function Rt(t, e) {
174
+ function Vt(t, e) {
164
175
  const n = t == null ? void 0 : t.closest("fieldset");
165
176
  if (!n) return;
166
177
  e(n.disabled);
167
- const r = f(n), o = new r.MutationObserver(() => e(n.disabled));
178
+ const r = m(n), o = new r.MutationObserver(() => e(n.disabled));
168
179
  return o.observe(n, {
169
180
  attributes: !0,
170
181
  attributeFilter: ["disabled"]
171
182
  }), () => o.disconnect();
172
183
  }
173
- function Ae(t, e) {
184
+ function Me(t, e) {
174
185
  if (!t) return;
175
- const { onFieldsetDisabledChange: n, onFormReset: r } = e, o = [Pt(t, r), Rt(t, n)];
186
+ const { onFieldsetDisabledChange: n, onFormReset: r } = e, o = [Kt(t, r), Vt(t, n)];
176
187
  return () => o.forEach((i) => i == null ? void 0 : i());
177
188
  }
178
- var $ = (t) => u(t) && t.tagName === "IFRAME", Ft = (t) => !Number.isNaN(parseInt(t.getAttribute("tabindex") || "0", 10)), Kt = (t) => parseInt(t.getAttribute("tabindex") || "0", 10) < 0, P = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type", Ot = (t, e = !1) => {
189
+ var J = (t) => d(t) && t.tagName === "IFRAME", qt = (t) => !Number.isNaN(parseInt(t.getAttribute("tabindex") || "0", 10)), Bt = (t) => parseInt(t.getAttribute("tabindex") || "0", 10) < 0, V = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type", Ht = (t, e = !1) => {
179
190
  if (!t) return [];
180
- const n = Array.from(t.querySelectorAll(P));
181
- (e == !0 || e == "if-empty" && n.length === 0) && u(t) && L(t) && n.unshift(t);
182
- const o = n.filter(L);
183
- return o.forEach((i, a) => {
184
- if ($(i) && i.contentDocument) {
191
+ const n = Array.from(t.querySelectorAll(V));
192
+ (e == !0 || e == "if-empty" && n.length === 0) && d(t) && O(t) && n.unshift(t);
193
+ const o = n.filter(O);
194
+ return o.forEach((i, c) => {
195
+ if (J(i) && i.contentDocument) {
185
196
  const s = i.contentDocument.body;
186
- o.splice(a, 1, ...Ot(s));
197
+ o.splice(c, 1, ...Ht(s));
187
198
  }
188
199
  }), o;
189
200
  };
190
- function L(t) {
191
- return !t || t.closest("[inert]") ? !1 : t.matches(P) && ut(t);
201
+ function O(t) {
202
+ return !t || t.closest("[inert]") ? !1 : t.matches(V) && bt(t);
192
203
  }
193
- function R(t, e) {
204
+ function q(t, e) {
194
205
  if (!t) return [];
195
- const r = Array.from(t.querySelectorAll(P)).filter(Vt);
206
+ const r = Array.from(t.querySelectorAll(V)).filter(Ut);
196
207
  return r.forEach((o, i) => {
197
- if ($(o) && o.contentDocument) {
198
- const a = o.contentDocument.body, s = R(a);
208
+ if (J(o) && o.contentDocument) {
209
+ const c = o.contentDocument.body, s = q(c);
199
210
  r.splice(i, 1, ...s);
200
211
  }
201
212
  }), r.length, r;
202
213
  }
203
- function Vt(t) {
204
- return t != null && t.tabIndex > 0 ? !0 : L(t) && !Kt(t);
214
+ function Ut(t) {
215
+ return t != null && t.tabIndex > 0 ? !0 : O(t) && !Bt(t);
205
216
  }
206
- function Bt(t, e) {
207
- const n = R(t, e), r = n[0] || null, o = n[n.length - 1] || null;
217
+ function Wt(t, e) {
218
+ const n = q(t, e), r = n[0] || null, o = n[n.length - 1] || null;
208
219
  return [r, o];
209
220
  }
210
- function Te(t) {
211
- return t.tabIndex < 0 && (/^(audio|video|details)$/.test(t.localName) || lt(t)) && !Ft(t) ? 0 : t.tabIndex;
221
+ function Ce(t) {
222
+ return t.tabIndex < 0 && (/^(audio|video|details)$/.test(t.localName) || yt(t)) && !qt(t) ? 0 : t.tabIndex;
212
223
  }
213
- function ke(t) {
224
+ function Pe(t) {
214
225
  const { root: e, getInitialEl: n, filter: r, enabled: o = !0 } = t;
215
226
  if (!o) return;
216
227
  let i = null;
217
228
  if (i || (i = typeof n == "function" ? n() : n), i || (i = e == null ? void 0 : e.querySelector("[data-autofocus],[autofocus]")), !i) {
218
- const a = R(e);
219
- i = r ? a.filter(r)[0] : a[0];
229
+ const c = q(e);
230
+ i = r ? c.filter(r)[0] : c[0];
220
231
  }
221
232
  return i || e || void 0;
222
233
  }
223
- function xe(t) {
234
+ function De(t) {
224
235
  const e = t.currentTarget;
225
236
  if (!e) return !1;
226
- const [n, r] = Bt(e), o = e.ownerDocument || document;
237
+ const [n, r] = Wt(e), o = e.ownerDocument || document;
227
238
  return !(o.activeElement === n && t.shiftKey || o.activeElement === r && !t.shiftKey || !n && !r);
228
239
  }
229
- function Ie(t) {
240
+ function _t(t) {
230
241
  const e = /* @__PURE__ */ new Set();
231
242
  function n(r) {
232
243
  const o = globalThis.requestAnimationFrame(r);
@@ -236,7 +247,7 @@ function Ie(t) {
236
247
  e.forEach((o) => o());
237
248
  };
238
249
  }
239
- function F(t) {
250
+ function L(t) {
240
251
  let e;
241
252
  const n = globalThis.requestAnimationFrame(() => {
242
253
  e = t();
@@ -246,210 +257,240 @@ function F(t) {
246
257
  };
247
258
  }
248
259
  function jt(t, e, n) {
249
- const r = F(() => {
260
+ const r = L(() => {
250
261
  t.removeEventListener(e, o, !0), n();
251
262
  }), o = () => {
252
263
  r(), n();
253
264
  };
254
265
  return t.addEventListener(e, o, { once: !0, capture: !0 }), r;
255
266
  }
256
- function _t(t, e) {
267
+ function $t(t, e) {
257
268
  if (!t) return;
258
- const { attributes: n, callback: r } = e, o = t.ownerDocument.defaultView || window, i = new o.MutationObserver((a) => {
259
- for (const s of a)
269
+ const { attributes: n, callback: r } = e, o = t.ownerDocument.defaultView || window, i = new o.MutationObserver((c) => {
270
+ for (const s of c)
260
271
  s.type === "attributes" && s.attributeName && n.includes(s.attributeName) && r(s);
261
272
  });
262
273
  return i.observe(t, { attributes: !0, attributeFilter: n }), () => i.disconnect();
263
274
  }
264
- function Ne(t, e) {
265
- const { defer: n } = e, r = n ? F : (i) => i(), o = [];
275
+ function Oe(t, e) {
276
+ const { defer: n } = e, r = n ? L : (i) => i(), o = [];
266
277
  return o.push(
267
278
  r(() => {
268
279
  const i = typeof t == "function" ? t() : t;
269
- o.push(_t(i, e));
280
+ o.push($t(i, e));
270
281
  })
271
282
  ), () => {
272
283
  o.forEach((i) => i == null ? void 0 : i());
273
284
  };
274
285
  }
275
- function Wt(t, e) {
286
+ function Xt(t, e) {
276
287
  const { callback: n } = e;
277
288
  if (!t) return;
278
289
  const r = t.ownerDocument.defaultView || window, o = new r.MutationObserver(n);
279
290
  return o.observe(t, { childList: !0, subtree: !0 }), () => o.disconnect();
280
291
  }
281
- function Ce(t, e) {
282
- const { defer: n } = e, r = n ? F : (i) => i(), o = [];
292
+ function Re(t, e) {
293
+ const { defer: n } = e, r = n ? L : (i) => i(), o = [];
283
294
  return o.push(
284
295
  r(() => {
285
296
  const i = typeof t == "function" ? t() : t;
286
- o.push(Wt(i, e));
297
+ o.push(Xt(i, e));
287
298
  })
288
299
  ), () => {
289
300
  o.forEach((i) => i == null ? void 0 : i());
290
301
  };
291
302
  }
292
- function De(t) {
303
+ function Fe(t) {
293
304
  const e = () => {
294
- const n = f(t);
305
+ const n = m(t);
295
306
  t.dispatchEvent(new n.MouseEvent("click"));
296
307
  };
297
- Et() ? jt(t, "keyup", e) : queueMicrotask(e);
308
+ kt() ? jt(t, "keyup", e) : queueMicrotask(e);
298
309
  }
299
- function z(t) {
300
- const e = mt(t);
301
- return st(e) ? S(e).body : u(e) && K(e) ? e : z(e);
310
+ function Q(t) {
311
+ const e = gt(t);
312
+ return ft(e) ? k(e).body : d(e) && B(e) ? e : Q(e);
302
313
  }
303
- function Ht(t, e = []) {
304
- const n = z(t), r = n === t.ownerDocument.body, o = f(n);
305
- return r ? e.concat(o, o.visualViewport || [], K(n) ? n : []) : e.concat(n, Ht(n, []));
314
+ function zt(t, e = []) {
315
+ const n = Q(t), r = n === t.ownerDocument.body, o = m(n);
316
+ return r ? e.concat(o, o.visualViewport || [], B(n) ? n : []) : e.concat(n, zt(n, []));
306
317
  }
307
- var qt = /auto|scroll|overlay|hidden|clip/;
308
- function K(t) {
309
- const e = f(t), { overflow: n, overflowX: r, overflowY: o, display: i } = e.getComputedStyle(t);
310
- return qt.test(n + o + r) && !["inline", "contents"].includes(i);
318
+ var Gt = /auto|scroll|overlay|hidden|clip/, Yt = /* @__PURE__ */ new Set(["inline", "contents"]);
319
+ function B(t) {
320
+ const e = m(t), { overflow: n, overflowX: r, overflowY: o, display: i } = e.getComputedStyle(t);
321
+ return Gt.test(n + o + r) && !Yt.has(i);
311
322
  }
312
- function Ut(t) {
323
+ function Zt(t) {
313
324
  return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth;
314
325
  }
315
- function Le(t, e) {
326
+ function Ke(t, e) {
316
327
  const { rootEl: n, ...r } = e || {};
317
- !t || !n || !K(n) || !Ut(n) || t.scrollIntoView(r);
328
+ !t || !n || !B(n) || !Zt(n) || t.scrollIntoView(r);
329
+ }
330
+ var w = "default", R = "", T = /* @__PURE__ */ new WeakMap();
331
+ function Jt(t = {}) {
332
+ const { target: e, doc: n } = t, r = n ?? document, o = r.documentElement;
333
+ return K() ? (w === "default" && (R = o.style.webkitUserSelect, o.style.webkitUserSelect = "none"), w = "disabled") : e && (T.set(e, e.style.userSelect), e.style.userSelect = "none"), () => Qt({ target: e, doc: r });
334
+ }
335
+ function Qt(t = {}) {
336
+ const { target: e, doc: n } = t, o = (n ?? document).documentElement;
337
+ if (K()) {
338
+ if (w !== "disabled") return;
339
+ w = "restoring", setTimeout(() => {
340
+ _t(() => {
341
+ w === "restoring" && (o.style.webkitUserSelect === "none" && (o.style.webkitUserSelect = R || ""), R = "", w = "default");
342
+ });
343
+ }, 300);
344
+ } else if (e && T.has(e)) {
345
+ const i = T.get(e);
346
+ e.style.userSelect === "none" && (e.style.userSelect = i ?? ""), e.getAttribute("style") === "" && e.removeAttribute("style"), T.delete(e);
347
+ }
318
348
  }
319
- function Se(t) {
349
+ function Ve(t = {}) {
350
+ const { defer: e, target: n, ...r } = t, o = e ? L : (c) => c(), i = [];
351
+ return i.push(
352
+ o(() => {
353
+ const c = typeof n == "function" ? n() : n;
354
+ i.push(Jt({ ...r, target: c }));
355
+ })
356
+ ), () => {
357
+ i.forEach((c) => c == null ? void 0 : c());
358
+ };
359
+ }
360
+ function qe(t) {
320
361
  const {
321
362
  pointerNode: e,
322
363
  keyboardNode: n = e,
323
364
  onPress: r,
324
365
  onPressStart: o,
325
366
  onPressEnd: i,
326
- isValidKey: a = (c) => c.key === "Enter"
367
+ isValidKey: c = (u) => u.key === "Enter"
327
368
  } = t;
328
369
  if (!e) return h;
329
- const s = f(e), g = S(e);
330
- let d = h, l = h, y = h;
331
- const m = (c) => ({
332
- point: Ct(c),
333
- event: c
370
+ const s = m(e), f = k(e);
371
+ let a = h, l = h, g = h;
372
+ const b = (u) => ({
373
+ point: Pt(u),
374
+ event: u
334
375
  });
335
- function w(c) {
336
- o == null || o(m(c));
376
+ function E(u) {
377
+ o == null || o(b(u));
337
378
  }
338
- function b(c) {
339
- i == null || i(m(c));
379
+ function p(u) {
380
+ i == null || i(b(u));
340
381
  }
341
- const G = v(e, "pointerdown", (c) => {
382
+ const tt = v(e, "pointerdown", (u) => {
342
383
  l();
343
- const x = v(s, "pointerup", (p) => {
344
- const N = X(p);
345
- q(e, N) ? r == null || r(m(p)) : i == null || i(m(p));
346
- }, { passive: !r, once: !0 }), I = v(s, "pointercancel", b, {
384
+ const I = v(s, "pointerup", (y) => {
385
+ const C = Y(y);
386
+ z(e, C) ? r == null || r(b(y)) : i == null || i(b(y));
387
+ }, { passive: !r, once: !0 }), M = v(s, "pointercancel", p, {
347
388
  passive: !i,
348
389
  once: !0
349
390
  });
350
- l = C(x, I), g.activeElement === n && c.pointerType === "mouse" && c.preventDefault(), w(c);
351
- }, { passive: !o }), Y = v(n, "focus", Z);
352
- d = C(G, Y);
353
- function Z() {
354
- const c = (p) => {
355
- if (!a(p)) return;
356
- const N = (Q) => {
357
- if (!a(Q)) return;
358
- const tt = new s.PointerEvent("pointerup"), j = m(tt);
359
- r == null || r(j), i == null || i(j);
391
+ l = P(I, M), f.activeElement === n && u.pointerType === "mouse" && u.preventDefault(), E(u);
392
+ }, { passive: !o }), et = v(n, "focus", nt);
393
+ a = P(tt, et);
394
+ function nt() {
395
+ const u = (y) => {
396
+ if (!c(y)) return;
397
+ const C = (ot) => {
398
+ if (!c(ot)) return;
399
+ const it = new s.PointerEvent("pointerup"), _ = b(it);
400
+ r == null || r(_), i == null || i(_);
360
401
  };
361
- l(), l = v(n, "keyup", N);
362
- const J = new s.PointerEvent("pointerdown");
363
- w(J);
364
- }, B = () => {
365
- const p = new s.PointerEvent("pointercancel");
366
- b(p);
367
- }, x = v(n, "keydown", c), I = v(n, "blur", B);
368
- y = C(x, I);
402
+ l(), l = v(n, "keyup", C);
403
+ const rt = new s.PointerEvent("pointerdown");
404
+ E(rt);
405
+ }, W = () => {
406
+ const y = new s.PointerEvent("pointercancel");
407
+ p(y);
408
+ }, I = v(n, "keydown", u), M = v(n, "blur", W);
409
+ g = P(I, M);
369
410
  }
370
411
  return () => {
371
- d(), l(), y();
412
+ a(), l(), g();
372
413
  };
373
414
  }
374
- function Me(t, e) {
415
+ function Be(t, e) {
375
416
  return Array.from((t == null ? void 0 : t.querySelectorAll(e)) ?? []);
376
417
  }
377
- function Pe(t, e) {
418
+ function He(t, e) {
378
419
  return (t == null ? void 0 : t.querySelector(e)) ?? null;
379
420
  }
380
- var O = (t) => t.id;
381
- function Xt(t, e, n = O) {
421
+ var H = (t) => t.id;
422
+ function te(t, e, n = H) {
382
423
  return t.find((r) => n(r) === e);
383
424
  }
384
- function V(t, e, n = O) {
385
- const r = Xt(t, e, n);
425
+ function U(t, e, n = H) {
426
+ const r = te(t, e, n);
386
427
  return r ? t.indexOf(r) : -1;
387
428
  }
388
- function Re(t, e, n = !0) {
389
- let r = V(t, e);
429
+ function Ue(t, e, n = !0) {
430
+ let r = U(t, e);
390
431
  return r = n ? (r + 1) % t.length : Math.min(r + 1, t.length - 1), t[r];
391
432
  }
392
- function Fe(t, e, n = !0) {
393
- let r = V(t, e);
433
+ function We(t, e, n = !0) {
434
+ let r = U(t, e);
394
435
  return r === -1 ? n ? t[t.length - 1] : null : (r = n ? (r - 1 + t.length) % t.length : Math.max(0, r - 1), t[r]);
395
436
  }
396
- function Ke(t, e) {
397
- const { onEntry: n, measure: r, box: o = "border-box" } = e, i = (Array.isArray(t) ? t : [t]).filter(u), a = f(i[0]), s = (d) => {
398
- const l = i.map((y) => r(y));
399
- n({ rects: l, entries: d });
437
+ function _e(t, e) {
438
+ const { onEntry: n, measure: r, box: o = "border-box" } = e, i = (Array.isArray(t) ? t : [t]).filter(d), c = m(i[0]), s = (a) => {
439
+ const l = i.map((g) => r(g));
440
+ n({ rects: l, entries: a });
400
441
  };
401
442
  s([]);
402
- const g = new a.ResizeObserver(s);
403
- return i.forEach((d) => g.observe(d, { box: o })), () => g.disconnect();
443
+ const f = new c.ResizeObserver(s);
444
+ return i.forEach((a) => f.observe(a, { box: o })), () => f.disconnect();
404
445
  }
405
- var $t = (t) => t.split("").map((e) => {
446
+ var ee = (t) => t.split("").map((e) => {
406
447
  const n = e.charCodeAt(0);
407
448
  return n > 0 && n < 128 ? e : n >= 128 && n <= 255 ? `/x${n.toString(16)}`.replace("/", "\\") : "";
408
- }).join("").trim(), zt = (t) => {
449
+ }).join("").trim(), ne = (t) => {
409
450
  var e;
410
- return $t(((e = t.dataset) == null ? void 0 : e.valuetext) ?? t.textContent ?? "");
411
- }, Gt = (t, e) => t.trim().toLowerCase().startsWith(e.toLowerCase());
412
- function Yt(t, e, n, r = O) {
413
- const o = n ? V(t, n, r) : -1;
414
- let i = n ? et(t, o) : t;
415
- return e.length === 1 && (i = i.filter((s) => r(s) !== n)), i.find((s) => Gt(zt(s), e));
416
- }
417
- function Oe(t, e) {
451
+ return ee(((e = t.dataset) == null ? void 0 : e.valuetext) ?? t.textContent ?? "");
452
+ }, re = (t, e) => t.trim().toLowerCase().startsWith(e.toLowerCase());
453
+ function oe(t, e, n, r = H) {
454
+ const o = n ? U(t, n, r) : -1;
455
+ let i = n ? st(t, o) : t;
456
+ return e.length === 1 && (i = i.filter((s) => r(s) !== n)), i.find((s) => re(ne(s), e));
457
+ }
458
+ function je(t, e) {
418
459
  if (!t) return h;
419
460
  const n = Object.keys(e).reduce((r, o) => (r[o] = t.style.getPropertyValue(o), r), {});
420
461
  return Object.assign(t.style, e), () => {
421
462
  Object.assign(t.style, n), t.style.length === 0 && t.removeAttribute("style");
422
463
  };
423
464
  }
424
- function Ve(t, e, n) {
465
+ function $e(t, e, n) {
425
466
  if (!t) return h;
426
467
  const r = t.style.getPropertyValue(e);
427
468
  return t.style.setProperty(e, n), () => {
428
469
  t.style.setProperty(e, r), t.style.length === 0 && t.removeAttribute("style");
429
470
  };
430
471
  }
431
- function Zt(t, e) {
432
- const { state: n, activeId: r, key: o, timeout: i = 350, itemToId: a } = e, s = n.keysSoFar + o, d = s.length > 1 && Array.from(s).every((b) => b === s[0]) ? s[0] : s;
472
+ function ie(t, e) {
473
+ const { state: n, activeId: r, key: o, timeout: i = 350, itemToId: c } = e, s = n.keysSoFar + o, a = s.length > 1 && Array.from(s).every((p) => p === s[0]) ? s[0] : s;
433
474
  let l = t.slice();
434
- const y = Yt(l, d, r, a);
435
- function m() {
475
+ const g = oe(l, a, r, c);
476
+ function b() {
436
477
  clearTimeout(n.timer), n.timer = -1;
437
478
  }
438
- function w(b) {
439
- n.keysSoFar = b, m(), b !== "" && (n.timer = +setTimeout(() => {
440
- w(""), m();
479
+ function E(p) {
480
+ n.keysSoFar = p, b(), p !== "" && (n.timer = +setTimeout(() => {
481
+ E(""), b();
441
482
  }, i));
442
483
  }
443
- return w(s), y;
484
+ return E(s), g;
444
485
  }
445
- var Be = /* @__PURE__ */ Object.assign(Zt, {
486
+ var Xe = /* @__PURE__ */ Object.assign(ie, {
446
487
  defaultOptions: { keysSoFar: "", timer: -1 },
447
- isValidEvent: Jt
488
+ isValidEvent: se
448
489
  });
449
- function Jt(t) {
490
+ function se(t) {
450
491
  return t.key.length === 1 && !t.ctrlKey && !t.metaKey;
451
492
  }
452
- var je = {
493
+ var ze = {
453
494
  border: "0",
454
495
  clip: "rect(0 0 0 0)",
455
496
  height: "1px",
@@ -460,115 +501,133 @@ var je = {
460
501
  width: "1px",
461
502
  whiteSpace: "nowrap",
462
503
  wordWrap: "normal"
463
- }, Qt = 1e3 / 60;
464
- function te(t, e) {
465
- const n = t();
466
- if (u(n) && n.isConnected)
467
- return e(n), () => {
468
- };
469
- {
470
- const r = setInterval(() => {
471
- const o = t();
472
- u(o) && o.isConnected && (e(o), clearInterval(r));
473
- }, Qt);
474
- return () => clearInterval(r);
475
- }
476
- }
477
- function _e(t, e) {
478
- const n = [];
479
- return t == null || t.forEach((r) => {
480
- const o = te(r, e);
481
- n.push(o);
482
- }), () => {
483
- n.forEach((r) => r());
484
- };
504
+ };
505
+ function ce(t, e, n) {
506
+ const { signal: r } = e;
507
+ return [new Promise((c, s) => {
508
+ const f = setTimeout(() => {
509
+ s(new Error(`Timeout of ${n}ms exceeded`));
510
+ }, n);
511
+ r.addEventListener("abort", () => {
512
+ clearTimeout(f), s(new Error("Promise aborted"));
513
+ }), t.then((a) => {
514
+ r.aborted || (clearTimeout(f), c(a));
515
+ }).catch((a) => {
516
+ r.aborted || (clearTimeout(f), s(a));
517
+ });
518
+ }), () => e.abort()];
519
+ }
520
+ function Ge(t, e) {
521
+ const { timeout: n, rootNode: r } = e, o = m(r), i = k(r), c = new o.AbortController();
522
+ return ce(
523
+ new Promise((s) => {
524
+ const f = t();
525
+ if (f) {
526
+ s(f);
527
+ return;
528
+ }
529
+ const a = new o.MutationObserver(() => {
530
+ const l = t();
531
+ l && l.isConnected && (a.disconnect(), s(l));
532
+ });
533
+ a.observe(i.body, {
534
+ childList: !0,
535
+ subtree: !0
536
+ });
537
+ }),
538
+ c,
539
+ n
540
+ );
485
541
  }
486
542
  export {
487
- re as MAX_Z_INDEX,
543
+ le as MAX_Z_INDEX,
488
544
  v as addDomEvent,
489
- ie as ariaAttr,
490
- De as clickIfLink,
491
- q as contains,
492
- oe as dataAttr,
493
- O as defaultItemToId,
494
- Ee as dispatchInputCheckedEvent,
495
- ae as getActiveElement,
496
- Yt as getByText,
497
- Be as getByTypeahead,
498
- ce as getComputedStyle,
499
- S as getDocument,
500
- dt as getDocumentElement,
501
- we as getEventKey,
502
- Ct as getEventPoint,
503
- X as getEventTarget,
504
- Ot as getFocusables,
505
- ke as getInitialFocus,
506
- Nt as getNativeEvent,
507
- z as getNearestOverflowAncestor,
508
- H as getNodeName,
509
- Ht as getOverflowAncestors,
510
- mt as getParentNode,
511
- bt as getPlatform,
512
- Te as getTabIndex,
513
- Bt as getTabbableEdges,
514
- R as getTabbables,
515
- pt as getUserAgent,
516
- f as getWindow,
517
- V as indexOfId,
518
- se as isAnchorElement,
519
- At as isAndroid,
520
- wt as isApple,
521
- be as isComposingEvent,
522
- he as isContextMenuEvent,
523
- kt as isCtrlOrMetaKey,
524
- W as isDocument,
525
- T as isDom,
526
- me as isDownloadingEvent,
527
- lt as isEditableElement,
528
- ut as isElementVisible,
529
- Et as isFirefox,
530
- L as isFocusable,
531
- u as isHTMLElement,
532
- ht as isIPad,
533
- yt as isIPhone,
534
- ct as isInputElement,
535
- gt as isIos,
536
- ye as isLeftClick,
537
- k as isMac,
538
- ge as isModifierKey,
539
- at as isNode,
540
- de as isOpeningInNewTab,
541
- K as isOverflowElement,
542
- pe as isPrintableKey,
543
- st as isRootElement,
544
- fe as isSafari,
545
- le as isSelfTarget,
546
- E as isShadowRoot,
547
- Vt as isTabbable,
548
- ue as isTouchDevice,
549
- xt as isTouchEvent,
550
- xe as isValidTabEvent,
551
- ve as isVirtualClick,
552
- it as isWindow,
553
- Xt as itemById,
554
- Re as nextById,
555
- Ie as nextTick,
556
- Ne as observeAttributes,
557
- Ce as observeChildren,
558
- Fe as prevById,
559
- Pe as query,
560
- Me as queryAll,
545
+ de as ariaAttr,
546
+ Fe as clickIfLink,
547
+ z as contains,
548
+ fe as dataAttr,
549
+ H as defaultItemToId,
550
+ Ve as disableTextSelection,
551
+ Ie as dispatchInputCheckedEvent,
552
+ be as getActiveElement,
553
+ oe as getByText,
554
+ Xe as getByTypeahead,
555
+ pe as getComputedStyle,
556
+ k as getDocument,
557
+ vt as getDocumentElement,
558
+ Ne as getEventKey,
559
+ Pt as getEventPoint,
560
+ Y as getEventTarget,
561
+ Ht as getFocusables,
562
+ Pe as getInitialFocus,
563
+ Ct as getNativeEvent,
564
+ Q as getNearestOverflowAncestor,
565
+ X as getNodeName,
566
+ zt as getOverflowAncestors,
567
+ gt as getParentNode,
568
+ ht as getPlatform,
569
+ Ce as getTabIndex,
570
+ Wt as getTabbableEdges,
571
+ q as getTabbables,
572
+ wt as getUserAgent,
573
+ m as getWindow,
574
+ U as indexOfId,
575
+ me as isAnchorElement,
576
+ St as isAndroid,
577
+ xt as isApple,
578
+ Ee as isComposingEvent,
579
+ ke as isContextMenuEvent,
580
+ Lt as isCtrlOrMetaKey,
581
+ $ as isDocument,
582
+ S as isDom,
583
+ we as isDownloadingEvent,
584
+ yt as isEditableElement,
585
+ bt as isElementVisible,
586
+ kt as isFirefox,
587
+ O as isFocusable,
588
+ d as isHTMLElement,
589
+ At as isIPad,
590
+ Tt as isIPhone,
591
+ mt as isInputElement,
592
+ K as isIos,
593
+ xe as isLeftClick,
594
+ N as isMac,
595
+ Se as isModifierKey,
596
+ dt as isNode,
597
+ he as isOpeningInNewTab,
598
+ B as isOverflowElement,
599
+ Te as isPrintableKey,
600
+ ft as isRootElement,
601
+ ve as isSafari,
602
+ ge as isSelfTarget,
603
+ A as isShadowRoot,
604
+ Ut as isTabbable,
605
+ ye as isTouchDevice,
606
+ It as isTouchEvent,
607
+ De as isValidTabEvent,
608
+ Ae as isVirtualClick,
609
+ lt as isWindow,
610
+ te as itemById,
611
+ Ue as nextById,
612
+ _t as nextTick,
613
+ Oe as observeAttributes,
614
+ Re as observeChildren,
615
+ We as prevById,
616
+ He as query,
617
+ Be as queryAll,
561
618
  jt as queueBeforeEvent,
562
- F as raf,
563
- Le as scrollIntoView,
564
- ne as setCaretToEnd,
565
- Lt as setElementChecked,
566
- Oe as setStyle,
567
- Ve as setStyleProperty,
568
- Ke as trackElementRect,
569
- Ae as trackFormControl,
570
- Se as trackPress,
571
- je as visuallyHiddenStyle,
572
- te as waitForElement,
573
- _e as waitForElements
619
+ L as raf,
620
+ Qt as restoreTextSelection,
621
+ Ke as scrollIntoView,
622
+ ue as setCaretToEnd,
623
+ Ot as setElementChecked,
624
+ Le as setElementValue,
625
+ je as setStyle,
626
+ $e as setStyleProperty,
627
+ _e as trackElementRect,
628
+ Me as trackFormControl,
629
+ qe as trackPress,
630
+ ze as visuallyHiddenStyle,
631
+ Ge as waitForElement,
632
+ ce as waitForPromise
574
633
  };