@profiq/ui 0.1.1 → 0.1.3

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 (30) hide show
  1. package/dist/components/custom/basic/button.d.ts +2 -1
  2. package/dist/components/custom/basic/button.d.ts.map +1 -1
  3. package/dist/components/custom/basic/input.d.ts +2 -1
  4. package/dist/components/custom/basic/input.d.ts.map +1 -1
  5. package/dist/components/ui/buttonVariants.d.ts.map +1 -1
  6. package/dist/components/ui/buttonVariants.js +2 -2
  7. package/dist/components/ui/slider.js +23 -23
  8. package/dist/index.css +161 -260
  9. package/dist/index.js +7 -50
  10. package/dist/lib/baseProps.d.ts +2 -2
  11. package/dist/lib/baseProps.d.ts.map +1 -1
  12. package/dist/lib/baseProps.js +6 -6
  13. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +171 -171
  14. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +191 -190
  15. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +125 -101
  16. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -97
  17. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +60 -62
  18. package/package.json +4 -20
  19. package/dist/components/custom/basic/index.d.ts +0 -17
  20. package/dist/components/custom/basic/index.d.ts.map +0 -1
  21. package/dist/components/custom/basic/index.js +0 -20
  22. package/dist/components/custom/icons/index.d.ts +0 -15
  23. package/dist/components/custom/icons/index.d.ts.map +0 -1
  24. package/dist/components/custom/icons/index.js +0 -27
  25. package/dist/components/ui/index.d.ts +0 -14
  26. package/dist/components/ui/index.d.ts.map +0 -1
  27. package/dist/components/ui/index.js +0 -59
  28. package/dist/index.d.ts +0 -4
  29. package/dist/index.d.ts.map +0 -1
  30. package/dist/lib/index.js +0 -11
@@ -1,13 +1,13 @@
1
1
  import { computePosition as st, offset as rt, shift as ct, flip as lt, size as ft, hide as ut, arrow as ht, limitShift as at } from "../../core/dist/floating-ui.core.js";
2
- import { createCoords as y, round as D, max as E, min as N, rectToClientRect as J, floor as A } from "../../utils/dist/floating-ui.utils.js";
3
- import { isElement as v, getDocumentElement as R, getOverflowAncestors as $, getComputedStyle as b, isHTMLElement as C, getWindow as L, isTopLayer as V, getParentNode as S, isLastTraversableNode as z, isTableElement as dt, isContainingBlock as Q, getContainingBlock as gt, getNodeName as _, isOverflowElement as q, getNodeScroll as H, getFrameElement as U, isWebKit as Y } from "../../utils/dist/floating-ui.utils.dom.js";
2
+ import { createCoords as y, round as z, max as E, min as N, rectToClientRect as J, floor as D } from "../../utils/dist/floating-ui.utils.js";
3
+ import { isElement as v, getDocumentElement as b, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as T, getWindow as O, isTopLayer as V, getParentNode as S, isLastTraversableNode as A, isTableElement as dt, isContainingBlock as Q, getContainingBlock as gt, getNodeName as _, isOverflowElement as q, getNodeScroll as H, getFrameElement as U, isWebKit as Y } from "../../utils/dist/floating-ui.utils.dom.js";
4
4
  function Z(t) {
5
- const e = b(t);
6
- let o = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
7
- const n = C(t), r = n ? t.offsetWidth : o, s = n ? t.offsetHeight : i, c = D(o) !== r || D(i) !== s;
8
- return c && (o = r, i = s), {
9
- width: o,
10
- height: i,
5
+ const e = R(t);
6
+ let i = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
7
+ const n = T(t), r = n ? t.offsetWidth : i, s = n ? t.offsetHeight : o, c = z(i) !== r || z(o) !== s;
8
+ return c && (i = r, o = s), {
9
+ width: i,
10
+ height: o,
11
11
  $: c
12
12
  };
13
13
  }
@@ -16,14 +16,14 @@ function X(t) {
16
16
  }
17
17
  function F(t) {
18
18
  const e = X(t);
19
- if (!C(e))
19
+ if (!T(e))
20
20
  return y(1);
21
- const o = e.getBoundingClientRect(), {
22
- width: i,
21
+ const i = e.getBoundingClientRect(), {
22
+ width: o,
23
23
  height: n,
24
24
  $: r
25
25
  } = Z(e);
26
- let s = (r ? D(o.width) : o.width) / i, c = (r ? D(o.height) : o.height) / n;
26
+ let s = (r ? z(i.width) : i.width) / o, c = (r ? z(i.height) : i.height) / n;
27
27
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
28
  x: s,
29
29
  y: c
@@ -31,83 +31,83 @@ function F(t) {
31
31
  }
32
32
  const pt = /* @__PURE__ */ y(0);
33
33
  function tt(t) {
34
- const e = L(t);
34
+ const e = O(t);
35
35
  return !Y() || !e.visualViewport ? pt : {
36
36
  x: e.visualViewport.offsetLeft,
37
37
  y: e.visualViewport.offsetTop
38
38
  };
39
39
  }
40
- function mt(t, e, o) {
41
- return e === void 0 && (e = !1), !o || e && o !== L(t) ? !1 : e;
40
+ function mt(t, e, i) {
41
+ return e === void 0 && (e = !1), !i || e && i !== O(t) ? !1 : e;
42
42
  }
43
- function T(t, e, o, i) {
44
- e === void 0 && (e = !1), o === void 0 && (o = !1);
43
+ function L(t, e, i, o) {
44
+ e === void 0 && (e = !1), i === void 0 && (i = !1);
45
45
  const n = t.getBoundingClientRect(), r = X(t);
46
46
  let s = y(1);
47
- e && (i ? v(i) && (s = F(i)) : s = F(t));
48
- const c = mt(r, o, i) ? tt(r) : y(0);
49
- let f = (n.left + c.x) / s.x, l = (n.top + c.y) / s.y, u = n.width / s.x, h = n.height / s.y;
47
+ e && (o ? v(o) && (s = F(o)) : s = F(t));
48
+ const c = mt(r, i, o) ? tt(r) : y(0);
49
+ let l = (n.left + c.x) / s.x, f = (n.top + c.y) / s.y, u = n.width / s.x, a = n.height / s.y;
50
50
  if (r) {
51
- const d = L(r), a = i && v(i) ? L(i) : i;
51
+ const d = O(r), h = o && v(o) ? O(o) : o;
52
52
  let m = d, p = U(m);
53
- for (; p && i && a !== m; ) {
54
- const w = F(p), g = p.getBoundingClientRect(), x = b(p), O = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, W = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
55
- f *= w.x, l *= w.y, u *= w.x, h *= w.y, f += O, l += W, m = L(p), p = U(m);
53
+ for (; p && o && h !== m; ) {
54
+ const w = F(p), g = p.getBoundingClientRect(), x = R(p), C = g.left + (p.clientLeft + parseFloat(x.paddingLeft)) * w.x, W = g.top + (p.clientTop + parseFloat(x.paddingTop)) * w.y;
55
+ l *= w.x, f *= w.y, u *= w.x, a *= w.y, l += C, f += W, m = O(p), p = U(m);
56
56
  }
57
57
  }
58
58
  return J({
59
59
  width: u,
60
- height: h,
61
- x: f,
62
- y: l
60
+ height: a,
61
+ x: l,
62
+ y: f
63
63
  });
64
64
  }
65
65
  function I(t, e) {
66
- const o = H(t).scrollLeft;
67
- return e ? e.left + o : T(R(t)).left + o;
66
+ const i = H(t).scrollLeft;
67
+ return e ? e.left + i : L(b(t)).left + i;
68
68
  }
69
69
  function et(t, e) {
70
- const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - I(t, o), n = o.top + e.scrollTop;
70
+ const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - I(t, i), n = i.top + e.scrollTop;
71
71
  return {
72
- x: i,
72
+ x: o,
73
73
  y: n
74
74
  };
75
75
  }
76
76
  function wt(t) {
77
77
  let {
78
78
  elements: e,
79
- rect: o,
80
- offsetParent: i,
79
+ rect: i,
80
+ offsetParent: o,
81
81
  strategy: n
82
82
  } = t;
83
- const r = n === "fixed", s = R(i), c = e ? V(e.floating) : !1;
84
- if (i === s || c && r)
85
- return o;
86
- let f = {
83
+ const r = n === "fixed", s = b(o), c = e ? V(e.floating) : !1;
84
+ if (o === s || c && r)
85
+ return i;
86
+ let l = {
87
87
  scrollLeft: 0,
88
88
  scrollTop: 0
89
- }, l = y(1);
90
- const u = y(0), h = C(i);
91
- if ((h || !h && !r) && ((_(i) !== "body" || q(s)) && (f = H(i)), C(i))) {
92
- const a = T(i);
93
- l = F(i), u.x = a.x + i.clientLeft, u.y = a.y + i.clientTop;
89
+ }, f = y(1);
90
+ const u = y(0), a = T(o);
91
+ if ((a || !a && !r) && ((_(o) !== "body" || q(s)) && (l = H(o)), a)) {
92
+ const h = L(o);
93
+ f = F(o), u.x = h.x + o.clientLeft, u.y = h.y + o.clientTop;
94
94
  }
95
- const d = s && !h && !r ? et(s, f) : y(0);
95
+ const d = s && !a && !r ? et(s, l) : y(0);
96
96
  return {
97
- width: o.width * l.x,
98
- height: o.height * l.y,
99
- x: o.x * l.x - f.scrollLeft * l.x + u.x + d.x,
100
- y: o.y * l.y - f.scrollTop * l.y + u.y + d.y
97
+ width: i.width * f.x,
98
+ height: i.height * f.y,
99
+ x: i.x * f.x - l.scrollLeft * f.x + u.x + d.x,
100
+ y: i.y * f.y - l.scrollTop * f.y + u.y + d.y
101
101
  };
102
102
  }
103
103
  function yt(t) {
104
104
  return Array.from(t.getClientRects());
105
105
  }
106
106
  function xt(t) {
107
- const e = R(t), o = H(t), i = t.ownerDocument.body, n = E(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = E(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
108
- let s = -o.scrollLeft + I(t);
109
- const c = -o.scrollTop;
110
- return b(i).direction === "rtl" && (s += E(e.clientWidth, i.clientWidth) - n), {
107
+ const e = b(t), i = H(t), o = t.ownerDocument.body, n = E(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = E(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
108
+ let s = -i.scrollLeft + I(t);
109
+ const c = -i.scrollTop;
110
+ return R(o).direction === "rtl" && (s += E(e.clientWidth, o.clientWidth) - n), {
111
111
  width: n,
112
112
  height: r,
113
113
  x: s,
@@ -116,271 +116,272 @@ function xt(t) {
116
116
  }
117
117
  const K = 25;
118
118
  function vt(t, e) {
119
- const o = L(t), i = R(t), n = o.visualViewport;
120
- let r = i.clientWidth, s = i.clientHeight, c = 0, f = 0;
119
+ const i = O(t), o = b(t), n = i.visualViewport;
120
+ let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
121
121
  if (n) {
122
122
  r = n.width, s = n.height;
123
123
  const u = Y();
124
- (!u || u && e === "fixed") && (c = n.offsetLeft, f = n.offsetTop);
124
+ (!u || u && e === "fixed") && (c = n.offsetLeft, l = n.offsetTop);
125
125
  }
126
- const l = I(i);
127
- if (l <= 0) {
128
- const u = i.ownerDocument, h = u.body, d = getComputedStyle(h), a = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, m = Math.abs(i.clientWidth - h.clientWidth - a);
126
+ const f = I(o);
127
+ if (f <= 0) {
128
+ const u = o.ownerDocument, a = u.body, d = getComputedStyle(a), h = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, m = Math.abs(o.clientWidth - a.clientWidth - h);
129
129
  m <= K && (r -= m);
130
- } else l <= K && (r += l);
130
+ } else f <= K && (r += f);
131
131
  return {
132
132
  width: r,
133
133
  height: s,
134
134
  x: c,
135
- y: f
135
+ y: l
136
136
  };
137
137
  }
138
- const bt = /* @__PURE__ */ new Set(["absolute", "fixed"]);
139
138
  function Rt(t, e) {
140
- const o = T(t, !0, e === "fixed"), i = o.top + t.clientTop, n = o.left + t.clientLeft, r = C(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, f = n * r.x, l = i * r.y;
139
+ const i = L(t, !0, e === "fixed"), o = i.top + t.clientTop, n = i.left + t.clientLeft, r = T(t) ? F(t) : y(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = n * r.x, f = o * r.y;
141
140
  return {
142
141
  width: s,
143
142
  height: c,
144
- x: f,
145
- y: l
143
+ x: l,
144
+ y: f
146
145
  };
147
146
  }
148
- function j(t, e, o) {
149
- let i;
147
+ function j(t, e, i) {
148
+ let o;
150
149
  if (e === "viewport")
151
- i = vt(t, o);
150
+ o = vt(t, i);
152
151
  else if (e === "document")
153
- i = xt(R(t));
152
+ o = xt(b(t));
154
153
  else if (v(e))
155
- i = Rt(e, o);
154
+ o = Rt(e, i);
156
155
  else {
157
156
  const n = tt(t);
158
- i = {
157
+ o = {
159
158
  x: e.x - n.x,
160
159
  y: e.y - n.y,
161
160
  width: e.width,
162
161
  height: e.height
163
162
  };
164
163
  }
165
- return J(i);
164
+ return J(o);
166
165
  }
167
166
  function it(t, e) {
168
- const o = S(t);
169
- return o === e || !v(o) || z(o) ? !1 : b(o).position === "fixed" || it(o, e);
167
+ const i = S(t);
168
+ return i === e || !v(i) || A(i) ? !1 : R(i).position === "fixed" || it(i, e);
170
169
  }
171
- function Ct(t, e) {
172
- const o = e.get(t);
173
- if (o)
174
- return o;
175
- let i = $(t, [], !1).filter((c) => v(c) && _(c) !== "body"), n = null;
176
- const r = b(t).position === "fixed";
170
+ function bt(t, e) {
171
+ const i = e.get(t);
172
+ if (i)
173
+ return i;
174
+ let o = $(t, [], !1).filter((c) => v(c) && _(c) !== "body"), n = null;
175
+ const r = R(t).position === "fixed";
177
176
  let s = r ? S(t) : t;
178
- for (; v(s) && !z(s); ) {
179
- const c = b(s), f = Q(s);
180
- !f && c.position === "fixed" && (n = null), (r ? !f && !n : !f && c.position === "static" && !!n && bt.has(n.position) || q(s) && !f && it(t, s)) ? i = i.filter((u) => u !== s) : n = c, s = S(s);
177
+ for (; v(s) && !A(s); ) {
178
+ const c = R(s), l = Q(s);
179
+ !l && c.position === "fixed" && (n = null), (r ? !l && !n : !l && c.position === "static" && !!n && (n.position === "absolute" || n.position === "fixed") || q(s) && !l && it(t, s)) ? o = o.filter((u) => u !== s) : n = c, s = S(s);
181
180
  }
182
- return e.set(t, i), i;
181
+ return e.set(t, o), o;
183
182
  }
184
- function Ot(t) {
183
+ function Ct(t) {
185
184
  let {
186
185
  element: e,
187
- boundary: o,
188
- rootBoundary: i,
186
+ boundary: i,
187
+ rootBoundary: o,
189
188
  strategy: n
190
189
  } = t;
191
- const s = [...o === "clippingAncestors" ? V(e) ? [] : Ct(e, this._c) : [].concat(o), i], c = s[0], f = s.reduce((l, u) => {
192
- const h = j(e, u, n);
193
- return l.top = E(h.top, l.top), l.right = N(h.right, l.right), l.bottom = N(h.bottom, l.bottom), l.left = E(h.left, l.left), l;
194
- }, j(e, c, n));
190
+ const s = [...i === "clippingAncestors" ? V(e) ? [] : bt(e, this._c) : [].concat(i), o], c = j(e, s[0], n);
191
+ let l = c.top, f = c.right, u = c.bottom, a = c.left;
192
+ for (let d = 1; d < s.length; d++) {
193
+ const h = j(e, s[d], n);
194
+ l = E(h.top, l), f = N(h.right, f), u = N(h.bottom, u), a = E(h.left, a);
195
+ }
195
196
  return {
196
- width: f.right - f.left,
197
- height: f.bottom - f.top,
198
- x: f.left,
199
- y: f.top
197
+ width: f - a,
198
+ height: u - l,
199
+ x: a,
200
+ y: l
200
201
  };
201
202
  }
202
- function Lt(t) {
203
+ function Ot(t) {
203
204
  const {
204
205
  width: e,
205
- height: o
206
+ height: i
206
207
  } = Z(t);
207
208
  return {
208
209
  width: e,
209
- height: o
210
+ height: i
210
211
  };
211
212
  }
212
- function Tt(t, e, o) {
213
- const i = C(e), n = R(e), r = o === "fixed", s = T(t, !0, r, e);
213
+ function Lt(t, e, i) {
214
+ const o = T(e), n = b(e), r = i === "fixed", s = L(t, !0, r, e);
214
215
  let c = {
215
216
  scrollLeft: 0,
216
217
  scrollTop: 0
217
218
  };
218
- const f = y(0);
219
- function l() {
220
- f.x = I(n);
219
+ const l = y(0);
220
+ function f() {
221
+ l.x = I(n);
221
222
  }
222
- if (i || !i && !r)
223
- if ((_(e) !== "body" || q(n)) && (c = H(e)), i) {
224
- const a = T(e, !0, r, e);
225
- f.x = a.x + e.clientLeft, f.y = a.y + e.clientTop;
226
- } else n && l();
227
- r && !i && n && l();
228
- const u = n && !i && !r ? et(n, c) : y(0), h = s.left + c.scrollLeft - f.x - u.x, d = s.top + c.scrollTop - f.y - u.y;
223
+ if (o || !o && !r)
224
+ if ((_(e) !== "body" || q(n)) && (c = H(e)), o) {
225
+ const h = L(e, !0, r, e);
226
+ l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
227
+ } else n && f();
228
+ r && !o && n && f();
229
+ const u = n && !o && !r ? et(n, c) : y(0), a = s.left + c.scrollLeft - l.x - u.x, d = s.top + c.scrollTop - l.y - u.y;
229
230
  return {
230
- x: h,
231
+ x: a,
231
232
  y: d,
232
233
  width: s.width,
233
234
  height: s.height
234
235
  };
235
236
  }
236
237
  function M(t) {
237
- return b(t).position === "static";
238
+ return R(t).position === "static";
238
239
  }
239
240
  function G(t, e) {
240
- if (!C(t) || b(t).position === "fixed")
241
+ if (!T(t) || R(t).position === "fixed")
241
242
  return null;
242
243
  if (e)
243
244
  return e(t);
244
- let o = t.offsetParent;
245
- return R(t) === o && (o = o.ownerDocument.body), o;
245
+ let i = t.offsetParent;
246
+ return b(t) === i && (i = i.ownerDocument.body), i;
246
247
  }
247
248
  function ot(t, e) {
248
- const o = L(t);
249
+ const i = O(t);
249
250
  if (V(t))
250
- return o;
251
- if (!C(t)) {
251
+ return i;
252
+ if (!T(t)) {
252
253
  let n = S(t);
253
- for (; n && !z(n); ) {
254
+ for (; n && !A(n); ) {
254
255
  if (v(n) && !M(n))
255
256
  return n;
256
257
  n = S(n);
257
258
  }
258
- return o;
259
+ return i;
259
260
  }
260
- let i = G(t, e);
261
- for (; i && dt(i) && M(i); )
262
- i = G(i, e);
263
- return i && z(i) && M(i) && !Q(i) ? o : i || gt(t) || o;
261
+ let o = G(t, e);
262
+ for (; o && dt(o) && M(o); )
263
+ o = G(o, e);
264
+ return o && A(o) && M(o) && !Q(o) ? i : o || gt(t) || i;
264
265
  }
265
- const Et = async function(t) {
266
- const e = this.getOffsetParent || ot, o = this.getDimensions, i = await o(t.floating);
266
+ const Tt = async function(t) {
267
+ const e = this.getOffsetParent || ot, i = this.getDimensions, o = await i(t.floating);
267
268
  return {
268
- reference: Tt(t.reference, await e(t.floating), t.strategy),
269
+ reference: Lt(t.reference, await e(t.floating), t.strategy),
269
270
  floating: {
270
271
  x: 0,
271
272
  y: 0,
272
- width: i.width,
273
- height: i.height
273
+ width: o.width,
274
+ height: o.height
274
275
  }
275
276
  };
276
277
  };
277
- function Ft(t) {
278
- return b(t).direction === "rtl";
278
+ function Et(t) {
279
+ return R(t).direction === "rtl";
279
280
  }
280
- const St = {
281
+ const Ft = {
281
282
  convertOffsetParentRelativeRectToViewportRelativeRect: wt,
282
- getDocumentElement: R,
283
- getClippingRect: Ot,
283
+ getDocumentElement: b,
284
+ getClippingRect: Ct,
284
285
  getOffsetParent: ot,
285
- getElementRects: Et,
286
+ getElementRects: Tt,
286
287
  getClientRects: yt,
287
- getDimensions: Lt,
288
+ getDimensions: Ot,
288
289
  getScale: F,
289
290
  isElement: v,
290
- isRTL: Ft
291
+ isRTL: Et
291
292
  };
292
293
  function nt(t, e) {
293
294
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
294
295
  }
295
- function Wt(t, e) {
296
- let o = null, i;
297
- const n = R(t);
296
+ function St(t, e) {
297
+ let i = null, o;
298
+ const n = b(t);
298
299
  function r() {
299
300
  var c;
300
- clearTimeout(i), (c = o) == null || c.disconnect(), o = null;
301
+ clearTimeout(o), (c = i) == null || c.disconnect(), i = null;
301
302
  }
302
- function s(c, f) {
303
- c === void 0 && (c = !1), f === void 0 && (f = 1), r();
304
- const l = t.getBoundingClientRect(), {
303
+ function s(c, l) {
304
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
305
+ const f = t.getBoundingClientRect(), {
305
306
  left: u,
306
- top: h,
307
+ top: a,
307
308
  width: d,
308
- height: a
309
- } = l;
310
- if (c || e(), !d || !a)
309
+ height: h
310
+ } = f;
311
+ if (c || e(), !d || !h)
311
312
  return;
312
- const m = A(h), p = A(n.clientWidth - (u + d)), w = A(n.clientHeight - (h + a)), g = A(u), O = {
313
+ const m = D(a), p = D(n.clientWidth - (u + d)), w = D(n.clientHeight - (a + h)), g = D(u), C = {
313
314
  rootMargin: -m + "px " + -p + "px " + -w + "px " + -g + "px",
314
- threshold: E(0, N(1, f)) || 1
315
+ threshold: E(0, N(1, l)) || 1
315
316
  };
316
317
  let W = !0;
317
318
  function k(P) {
318
319
  const B = P[0].intersectionRatio;
319
- if (B !== f) {
320
+ if (B !== l) {
320
321
  if (!W)
321
322
  return s();
322
- B ? s(!1, B) : i = setTimeout(() => {
323
+ B ? s(!1, B) : o = setTimeout(() => {
323
324
  s(!1, 1e-7);
324
325
  }, 1e3);
325
326
  }
326
- B === 1 && !nt(l, t.getBoundingClientRect()) && s(), W = !1;
327
+ B === 1 && !nt(f, t.getBoundingClientRect()) && s(), W = !1;
327
328
  }
328
329
  try {
329
- o = new IntersectionObserver(k, {
330
- ...O,
330
+ i = new IntersectionObserver(k, {
331
+ ...C,
331
332
  // Handle <iframe>s
332
333
  root: n.ownerDocument
333
334
  });
334
335
  } catch {
335
- o = new IntersectionObserver(k, O);
336
+ i = new IntersectionObserver(k, C);
336
337
  }
337
- o.observe(t);
338
+ i.observe(t);
338
339
  }
339
340
  return s(!0), r;
340
341
  }
341
- function zt(t, e, o, i) {
342
- i === void 0 && (i = {});
342
+ function zt(t, e, i, o) {
343
+ o === void 0 && (o = {});
343
344
  const {
344
345
  ancestorScroll: n = !0,
345
346
  ancestorResize: r = !0,
346
347
  elementResize: s = typeof ResizeObserver == "function",
347
348
  layoutShift: c = typeof IntersectionObserver == "function",
348
- animationFrame: f = !1
349
- } = i, l = X(t), u = n || r ? [...l ? $(l) : [], ...$(e)] : [];
349
+ animationFrame: l = !1
350
+ } = o, f = X(t), u = n || r ? [...f ? $(f) : [], ...e ? $(e) : []] : [];
350
351
  u.forEach((g) => {
351
- n && g.addEventListener("scroll", o, {
352
+ n && g.addEventListener("scroll", i, {
352
353
  passive: !0
353
- }), r && g.addEventListener("resize", o);
354
+ }), r && g.addEventListener("resize", i);
354
355
  });
355
- const h = l && c ? Wt(l, o) : null;
356
- let d = -1, a = null;
357
- s && (a = new ResizeObserver((g) => {
356
+ const a = f && c ? St(f, i) : null;
357
+ let d = -1, h = null;
358
+ s && (h = new ResizeObserver((g) => {
358
359
  let [x] = g;
359
- x && x.target === l && a && (a.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
360
- var O;
361
- (O = a) == null || O.observe(e);
362
- })), o();
363
- }), l && !f && a.observe(l), a.observe(e));
364
- let m, p = f ? T(t) : null;
365
- f && w();
360
+ x && x.target === f && h && e && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
361
+ var C;
362
+ (C = h) == null || C.observe(e);
363
+ })), i();
364
+ }), f && !l && h.observe(f), e && h.observe(e));
365
+ let m, p = l ? L(t) : null;
366
+ l && w();
366
367
  function w() {
367
- const g = T(t);
368
- p && !nt(p, g) && o(), p = g, m = requestAnimationFrame(w);
368
+ const g = L(t);
369
+ p && !nt(p, g) && i(), p = g, m = requestAnimationFrame(w);
369
370
  }
370
- return o(), () => {
371
+ return i(), () => {
371
372
  var g;
372
373
  u.forEach((x) => {
373
- n && x.removeEventListener("scroll", o), r && x.removeEventListener("resize", o);
374
- }), h?.(), (g = a) == null || g.disconnect(), a = null, f && cancelAnimationFrame(m);
374
+ n && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
375
+ }), a?.(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(m);
375
376
  };
376
377
  }
377
- const Ht = rt, It = ct, Mt = lt, Nt = ft, $t = ut, Vt = ht, _t = at, qt = (t, e, o) => {
378
- const i = /* @__PURE__ */ new Map(), n = {
379
- platform: St,
380
- ...o
378
+ const At = rt, Ht = ct, It = lt, Mt = ft, Nt = ut, $t = ht, Vt = at, _t = (t, e, i) => {
379
+ const o = /* @__PURE__ */ new Map(), n = {
380
+ platform: Ft,
381
+ ...i
381
382
  }, r = {
382
383
  ...n.platform,
383
- _c: i
384
+ _c: o
384
385
  };
385
386
  return st(t, e, {
386
387
  ...n,
@@ -388,15 +389,15 @@ const Ht = rt, It = ct, Mt = lt, Nt = ft, $t = ut, Vt = ht, _t = at, qt = (t, e,
388
389
  });
389
390
  };
390
391
  export {
391
- Vt as arrow,
392
+ $t as arrow,
392
393
  zt as autoUpdate,
393
- qt as computePosition,
394
- Mt as flip,
394
+ _t as computePosition,
395
+ It as flip,
395
396
  $ as getOverflowAncestors,
396
- $t as hide,
397
- _t as limitShift,
398
- Ht as offset,
399
- St as platform,
400
- It as shift,
401
- Nt as size
397
+ Nt as hide,
398
+ Vt as limitShift,
399
+ At as offset,
400
+ Ft as platform,
401
+ Ht as shift,
402
+ Mt as size
402
403
  };