@devalok/shilp-sutra 0.9.0 → 0.9.1

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.
@@ -0,0 +1,1835 @@
1
+ "use client";
2
+ import * as w from "react";
3
+ import { useState as Se, useLayoutEffect as Ce } from "react";
4
+ import { _ as Z, a as re, b as Re } from "./vendor-utils.js";
5
+ import * as Ae from "react-dom";
6
+ var ht = "right-scroll-bar-position", mt = "width-before-scroll-bar", Ee = "with-scroll-bars-hidden", Oe = "--removed-body-scroll-bar-size";
7
+ function At(t, e) {
8
+ return typeof t == "function" ? t(e) : t && (t.current = e), t;
9
+ }
10
+ function Me(t, e) {
11
+ var n = Se(function() {
12
+ return {
13
+ // value
14
+ value: t,
15
+ // last callback
16
+ callback: e,
17
+ // "memoized" public interface
18
+ facade: {
19
+ get current() {
20
+ return n.value;
21
+ },
22
+ set current(r) {
23
+ var o = n.value;
24
+ o !== r && (n.value = r, n.callback(r, o));
25
+ }
26
+ }
27
+ };
28
+ })[0];
29
+ return n.callback = e, n.facade;
30
+ }
31
+ var Pe = typeof window < "u" ? w.useLayoutEffect : w.useEffect, It = /* @__PURE__ */ new WeakMap();
32
+ function ke(t, e) {
33
+ var n = Me(null, function(r) {
34
+ return t.forEach(function(o) {
35
+ return At(o, r);
36
+ });
37
+ });
38
+ return Pe(function() {
39
+ var r = It.get(n);
40
+ if (r) {
41
+ var o = new Set(r), i = new Set(t), c = n.current;
42
+ o.forEach(function(s) {
43
+ i.has(s) || At(s, null);
44
+ }), i.forEach(function(s) {
45
+ o.has(s) || At(s, c);
46
+ });
47
+ }
48
+ It.set(n, t);
49
+ }, [t]), n;
50
+ }
51
+ function Le(t) {
52
+ return t;
53
+ }
54
+ function Te(t, e) {
55
+ e === void 0 && (e = Le);
56
+ var n = [], r = !1, o = {
57
+ read: function() {
58
+ if (r)
59
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
60
+ return n.length ? n[n.length - 1] : t;
61
+ },
62
+ useMedium: function(i) {
63
+ var c = e(i, r);
64
+ return n.push(c), function() {
65
+ n = n.filter(function(s) {
66
+ return s !== c;
67
+ });
68
+ };
69
+ },
70
+ assignSyncMedium: function(i) {
71
+ for (r = !0; n.length; ) {
72
+ var c = n;
73
+ n = [], c.forEach(i);
74
+ }
75
+ n = {
76
+ push: function(s) {
77
+ return i(s);
78
+ },
79
+ filter: function() {
80
+ return n;
81
+ }
82
+ };
83
+ },
84
+ assignMedium: function(i) {
85
+ r = !0;
86
+ var c = [];
87
+ if (n.length) {
88
+ var s = n;
89
+ n = [], s.forEach(i), c = n;
90
+ }
91
+ var u = function() {
92
+ var l = c;
93
+ c = [], l.forEach(i);
94
+ }, f = function() {
95
+ return Promise.resolve().then(u);
96
+ };
97
+ f(), n = {
98
+ push: function(l) {
99
+ c.push(l), f();
100
+ },
101
+ filter: function(l) {
102
+ return c = c.filter(l), n;
103
+ }
104
+ };
105
+ }
106
+ };
107
+ return o;
108
+ }
109
+ function De(t) {
110
+ t === void 0 && (t = {});
111
+ var e = Te(null);
112
+ return e.options = Z({ async: !0, ssr: !1 }, t), e;
113
+ }
114
+ var oe = function(t) {
115
+ var e = t.sideCar, n = re(t, ["sideCar"]);
116
+ if (!e)
117
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
118
+ var r = e.read();
119
+ if (!r)
120
+ throw new Error("Sidecar medium not found");
121
+ return w.createElement(r, Z({}, n));
122
+ };
123
+ oe.isSideCarExport = !0;
124
+ function We(t, e) {
125
+ return t.useMedium(e), oe;
126
+ }
127
+ var ie = De(), Et = function() {
128
+ }, xt = w.forwardRef(function(t, e) {
129
+ var n = w.useRef(null), r = w.useState({
130
+ onScrollCapture: Et,
131
+ onWheelCapture: Et,
132
+ onTouchMoveCapture: Et
133
+ }), o = r[0], i = r[1], c = t.forwardProps, s = t.children, u = t.className, f = t.removeScrollBar, l = t.enabled, a = t.shards, m = t.sideCar, h = t.noRelative, v = t.noIsolation, d = t.inert, g = t.allowPinchZoom, p = t.as, y = p === void 0 ? "div" : p, x = t.gapMode, b = re(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, C = ke([n, e]), R = Z(Z({}, b), o);
134
+ return w.createElement(
135
+ w.Fragment,
136
+ null,
137
+ l && w.createElement(S, { sideCar: ie, removeScrollBar: f, shards: a, noRelative: h, noIsolation: v, inert: d, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: x }),
138
+ c ? w.cloneElement(w.Children.only(s), Z(Z({}, R), { ref: C })) : w.createElement(y, Z({}, R, { className: u, ref: C }), s)
139
+ );
140
+ });
141
+ xt.defaultProps = {
142
+ enabled: !0,
143
+ removeScrollBar: !0,
144
+ inert: !1
145
+ };
146
+ xt.classNames = {
147
+ fullWidth: mt,
148
+ zeroRight: ht
149
+ };
150
+ var Ne = function() {
151
+ if (typeof __webpack_nonce__ < "u")
152
+ return __webpack_nonce__;
153
+ };
154
+ function Be() {
155
+ if (!document)
156
+ return null;
157
+ var t = document.createElement("style");
158
+ t.type = "text/css";
159
+ var e = Ne();
160
+ return e && t.setAttribute("nonce", e), t;
161
+ }
162
+ function Fe(t, e) {
163
+ t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
164
+ }
165
+ function Ve(t) {
166
+ var e = document.head || document.getElementsByTagName("head")[0];
167
+ e.appendChild(t);
168
+ }
169
+ var He = function() {
170
+ var t = 0, e = null;
171
+ return {
172
+ add: function(n) {
173
+ t == 0 && (e = Be()) && (Fe(e, n), Ve(e)), t++;
174
+ },
175
+ remove: function() {
176
+ t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
177
+ }
178
+ };
179
+ }, $e = function() {
180
+ var t = He();
181
+ return function(e, n) {
182
+ w.useEffect(function() {
183
+ return t.add(e), function() {
184
+ t.remove();
185
+ };
186
+ }, [e && n]);
187
+ };
188
+ }, ce = function() {
189
+ var t = $e(), e = function(n) {
190
+ var r = n.styles, o = n.dynamic;
191
+ return t(r, o), null;
192
+ };
193
+ return e;
194
+ }, Ie = {
195
+ left: 0,
196
+ top: 0,
197
+ right: 0,
198
+ gap: 0
199
+ }, Ot = function(t) {
200
+ return parseInt(t || "", 10) || 0;
201
+ }, ze = function(t) {
202
+ var e = window.getComputedStyle(document.body), n = e[t === "padding" ? "paddingLeft" : "marginLeft"], r = e[t === "padding" ? "paddingTop" : "marginTop"], o = e[t === "padding" ? "paddingRight" : "marginRight"];
203
+ return [Ot(n), Ot(r), Ot(o)];
204
+ }, _e = function(t) {
205
+ if (t === void 0 && (t = "margin"), typeof window > "u")
206
+ return Ie;
207
+ var e = ze(t), n = document.documentElement.clientWidth, r = window.innerWidth;
208
+ return {
209
+ left: e[0],
210
+ top: e[1],
211
+ right: e[2],
212
+ gap: Math.max(0, r - n + e[2] - e[0])
213
+ };
214
+ }, Xe = ce(), et = "data-scroll-locked", Ye = function(t, e, n, r) {
215
+ var o = t.left, i = t.top, c = t.right, s = t.gap;
216
+ return n === void 0 && (n = "margin"), `
217
+ .`.concat(Ee, ` {
218
+ overflow: hidden `).concat(r, `;
219
+ padding-right: `).concat(s, "px ").concat(r, `;
220
+ }
221
+ body[`).concat(et, `] {
222
+ overflow: hidden `).concat(r, `;
223
+ overscroll-behavior: contain;
224
+ `).concat([
225
+ e && "position: relative ".concat(r, ";"),
226
+ n === "margin" && `
227
+ padding-left: `.concat(o, `px;
228
+ padding-top: `).concat(i, `px;
229
+ padding-right: `).concat(c, `px;
230
+ margin-left:0;
231
+ margin-top:0;
232
+ margin-right: `).concat(s, "px ").concat(r, `;
233
+ `),
234
+ n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
235
+ ].filter(Boolean).join(""), `
236
+ }
237
+
238
+ .`).concat(ht, ` {
239
+ right: `).concat(s, "px ").concat(r, `;
240
+ }
241
+
242
+ .`).concat(mt, ` {
243
+ margin-right: `).concat(s, "px ").concat(r, `;
244
+ }
245
+
246
+ .`).concat(ht, " .").concat(ht, ` {
247
+ right: 0 `).concat(r, `;
248
+ }
249
+
250
+ .`).concat(mt, " .").concat(mt, ` {
251
+ margin-right: 0 `).concat(r, `;
252
+ }
253
+
254
+ body[`).concat(et, `] {
255
+ `).concat(Oe, ": ").concat(s, `px;
256
+ }
257
+ `);
258
+ }, zt = function() {
259
+ var t = parseInt(document.body.getAttribute(et) || "0", 10);
260
+ return isFinite(t) ? t : 0;
261
+ }, je = function() {
262
+ w.useEffect(function() {
263
+ return document.body.setAttribute(et, (zt() + 1).toString()), function() {
264
+ var t = zt() - 1;
265
+ t <= 0 ? document.body.removeAttribute(et) : document.body.setAttribute(et, t.toString());
266
+ };
267
+ }, []);
268
+ }, qe = function(t) {
269
+ var e = t.noRelative, n = t.noImportant, r = t.gapMode, o = r === void 0 ? "margin" : r;
270
+ je();
271
+ var i = w.useMemo(function() {
272
+ return _e(o);
273
+ }, [o]);
274
+ return w.createElement(Xe, { styles: Ye(i, !e, o, n ? "" : "!important") });
275
+ }, Lt = !1;
276
+ if (typeof window < "u")
277
+ try {
278
+ var at = Object.defineProperty({}, "passive", {
279
+ get: function() {
280
+ return Lt = !0, !0;
281
+ }
282
+ });
283
+ window.addEventListener("test", at, at), window.removeEventListener("test", at, at);
284
+ } catch {
285
+ Lt = !1;
286
+ }
287
+ var Q = Lt ? { passive: !1 } : !1, Ze = function(t) {
288
+ return t.tagName === "TEXTAREA";
289
+ }, se = function(t, e) {
290
+ if (!(t instanceof Element))
291
+ return !1;
292
+ var n = window.getComputedStyle(t);
293
+ return (
294
+ // not-not-scrollable
295
+ n[e] !== "hidden" && // contains scroll inside self
296
+ !(n.overflowY === n.overflowX && !Ze(t) && n[e] === "visible")
297
+ );
298
+ }, Ue = function(t) {
299
+ return se(t, "overflowY");
300
+ }, Ge = function(t) {
301
+ return se(t, "overflowX");
302
+ }, _t = function(t, e) {
303
+ var n = e.ownerDocument, r = e;
304
+ do {
305
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
306
+ var o = ae(t, r);
307
+ if (o) {
308
+ var i = le(t, r), c = i[1], s = i[2];
309
+ if (c > s)
310
+ return !0;
311
+ }
312
+ r = r.parentNode;
313
+ } while (r && r !== n.body);
314
+ return !1;
315
+ }, Ke = function(t) {
316
+ var e = t.scrollTop, n = t.scrollHeight, r = t.clientHeight;
317
+ return [
318
+ e,
319
+ n,
320
+ r
321
+ ];
322
+ }, Qe = function(t) {
323
+ var e = t.scrollLeft, n = t.scrollWidth, r = t.clientWidth;
324
+ return [
325
+ e,
326
+ n,
327
+ r
328
+ ];
329
+ }, ae = function(t, e) {
330
+ return t === "v" ? Ue(e) : Ge(e);
331
+ }, le = function(t, e) {
332
+ return t === "v" ? Ke(e) : Qe(e);
333
+ }, Je = function(t, e) {
334
+ return t === "h" && e === "rtl" ? -1 : 1;
335
+ }, tn = function(t, e, n, r, o) {
336
+ var i = Je(t, window.getComputedStyle(e).direction), c = i * r, s = n.target, u = e.contains(s), f = !1, l = c > 0, a = 0, m = 0;
337
+ do {
338
+ if (!s)
339
+ break;
340
+ var h = le(t, s), v = h[0], d = h[1], g = h[2], p = d - g - i * v;
341
+ (v || p) && ae(t, s) && (a += p, m += v);
342
+ var y = s.parentNode;
343
+ s = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
344
+ } while (
345
+ // portaled content
346
+ !u && s !== document.body || // self content
347
+ u && (e.contains(s) || e === s)
348
+ );
349
+ return (l && Math.abs(a) < 1 || !l && Math.abs(m) < 1) && (f = !0), f;
350
+ }, lt = function(t) {
351
+ return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
352
+ }, Xt = function(t) {
353
+ return [t.deltaX, t.deltaY];
354
+ }, Yt = function(t) {
355
+ return t && "current" in t ? t.current : t;
356
+ }, en = function(t, e) {
357
+ return t[0] === e[0] && t[1] === e[1];
358
+ }, nn = function(t) {
359
+ return `
360
+ .block-interactivity-`.concat(t, ` {pointer-events: none;}
361
+ .allow-interactivity-`).concat(t, ` {pointer-events: all;}
362
+ `);
363
+ }, rn = 0, J = [];
364
+ function on(t) {
365
+ var e = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(rn++)[0], i = w.useState(ce)[0], c = w.useRef(t);
366
+ w.useEffect(function() {
367
+ c.current = t;
368
+ }, [t]), w.useEffect(function() {
369
+ if (t.inert) {
370
+ document.body.classList.add("block-interactivity-".concat(o));
371
+ var d = Re([t.lockRef.current], (t.shards || []).map(Yt), !0).filter(Boolean);
372
+ return d.forEach(function(g) {
373
+ return g.classList.add("allow-interactivity-".concat(o));
374
+ }), function() {
375
+ document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(g) {
376
+ return g.classList.remove("allow-interactivity-".concat(o));
377
+ });
378
+ };
379
+ }
380
+ }, [t.inert, t.lockRef.current, t.shards]);
381
+ var s = w.useCallback(function(d, g) {
382
+ if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
383
+ return !c.current.allowPinchZoom;
384
+ var p = lt(d), y = n.current, x = "deltaX" in d ? d.deltaX : y[0] - p[0], b = "deltaY" in d ? d.deltaY : y[1] - p[1], S, C = d.target, R = Math.abs(x) > Math.abs(b) ? "h" : "v";
385
+ if ("touches" in d && R === "h" && C.type === "range")
386
+ return !1;
387
+ var M = window.getSelection(), L = M && M.anchorNode, O = L ? L === C || L.contains(C) : !1;
388
+ if (O)
389
+ return !1;
390
+ var P = _t(R, C);
391
+ if (!P)
392
+ return !0;
393
+ if (P ? S = R : (S = R === "v" ? "h" : "v", P = _t(R, C)), !P)
394
+ return !1;
395
+ if (!r.current && "changedTouches" in d && (x || b) && (r.current = S), !S)
396
+ return !0;
397
+ var T = r.current || S;
398
+ return tn(T, g, d, T === "h" ? x : b);
399
+ }, []), u = w.useCallback(function(d) {
400
+ var g = d;
401
+ if (!(!J.length || J[J.length - 1] !== i)) {
402
+ var p = "deltaY" in g ? Xt(g) : lt(g), y = e.current.filter(function(S) {
403
+ return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && en(S.delta, p);
404
+ })[0];
405
+ if (y && y.should) {
406
+ g.cancelable && g.preventDefault();
407
+ return;
408
+ }
409
+ if (!y) {
410
+ var x = (c.current.shards || []).map(Yt).filter(Boolean).filter(function(S) {
411
+ return S.contains(g.target);
412
+ }), b = x.length > 0 ? s(g, x[0]) : !c.current.noIsolation;
413
+ b && g.cancelable && g.preventDefault();
414
+ }
415
+ }
416
+ }, []), f = w.useCallback(function(d, g, p, y) {
417
+ var x = { name: d, delta: g, target: p, should: y, shadowParent: cn(p) };
418
+ e.current.push(x), setTimeout(function() {
419
+ e.current = e.current.filter(function(b) {
420
+ return b !== x;
421
+ });
422
+ }, 1);
423
+ }, []), l = w.useCallback(function(d) {
424
+ n.current = lt(d), r.current = void 0;
425
+ }, []), a = w.useCallback(function(d) {
426
+ f(d.type, Xt(d), d.target, s(d, t.lockRef.current));
427
+ }, []), m = w.useCallback(function(d) {
428
+ f(d.type, lt(d), d.target, s(d, t.lockRef.current));
429
+ }, []);
430
+ w.useEffect(function() {
431
+ return J.push(i), t.setCallbacks({
432
+ onScrollCapture: a,
433
+ onWheelCapture: a,
434
+ onTouchMoveCapture: m
435
+ }), document.addEventListener("wheel", u, Q), document.addEventListener("touchmove", u, Q), document.addEventListener("touchstart", l, Q), function() {
436
+ J = J.filter(function(d) {
437
+ return d !== i;
438
+ }), document.removeEventListener("wheel", u, Q), document.removeEventListener("touchmove", u, Q), document.removeEventListener("touchstart", l, Q);
439
+ };
440
+ }, []);
441
+ var h = t.removeScrollBar, v = t.inert;
442
+ return w.createElement(
443
+ w.Fragment,
444
+ null,
445
+ v ? w.createElement(i, { styles: nn(o) }) : null,
446
+ h ? w.createElement(qe, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
447
+ );
448
+ }
449
+ function cn(t) {
450
+ for (var e = null; t !== null; )
451
+ t instanceof ShadowRoot && (e = t.host, t = t.host), t = t.parentNode;
452
+ return e;
453
+ }
454
+ const sn = We(ie, on);
455
+ var an = w.forwardRef(function(t, e) {
456
+ return w.createElement(xt, Z({}, t, { ref: e, sideCar: sn }));
457
+ });
458
+ an.classNames = xt.classNames;
459
+ var ln = function(t) {
460
+ if (typeof document > "u")
461
+ return null;
462
+ var e = Array.isArray(t) ? t[0] : t;
463
+ return e.ownerDocument.body;
464
+ }, tt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ut = {}, Mt = 0, fe = function(t) {
465
+ return t && (t.host || fe(t.parentNode));
466
+ }, fn = function(t, e) {
467
+ return e.map(function(n) {
468
+ if (t.contains(n))
469
+ return n;
470
+ var r = fe(n);
471
+ return r && t.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", t, ". Doing nothing"), null);
472
+ }).filter(function(n) {
473
+ return !!n;
474
+ });
475
+ }, un = function(t, e, n, r) {
476
+ var o = fn(e, Array.isArray(t) ? t : [t]);
477
+ ut[n] || (ut[n] = /* @__PURE__ */ new WeakMap());
478
+ var i = ut[n], c = [], s = /* @__PURE__ */ new Set(), u = new Set(o), f = function(a) {
479
+ !a || s.has(a) || (s.add(a), f(a.parentNode));
480
+ };
481
+ o.forEach(f);
482
+ var l = function(a) {
483
+ !a || u.has(a) || Array.prototype.forEach.call(a.children, function(m) {
484
+ if (s.has(m))
485
+ l(m);
486
+ else
487
+ try {
488
+ var h = m.getAttribute(r), v = h !== null && h !== "false", d = (tt.get(m) || 0) + 1, g = (i.get(m) || 0) + 1;
489
+ tt.set(m, d), i.set(m, g), c.push(m), d === 1 && v && ft.set(m, !0), g === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
490
+ } catch (p) {
491
+ console.error("aria-hidden: cannot operate on ", m, p);
492
+ }
493
+ });
494
+ };
495
+ return l(e), s.clear(), Mt++, function() {
496
+ c.forEach(function(a) {
497
+ var m = tt.get(a) - 1, h = i.get(a) - 1;
498
+ tt.set(a, m), i.set(a, h), m || (ft.has(a) || a.removeAttribute(r), ft.delete(a)), h || a.removeAttribute(n);
499
+ }), Mt--, Mt || (tt = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ut = {});
500
+ };
501
+ }, vr = function(t, e, n) {
502
+ n === void 0 && (n = "data-aria-hidden");
503
+ var r = Array.from(Array.isArray(t) ? t : [t]), o = ln(t);
504
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), un(r, o, n, "aria-hidden")) : function() {
505
+ return null;
506
+ };
507
+ };
508
+ const dn = ["top", "right", "bottom", "left"], U = Math.min, B = Math.max, vt = Math.round, dt = Math.floor, z = (t) => ({
509
+ x: t,
510
+ y: t
511
+ }), hn = {
512
+ left: "right",
513
+ right: "left",
514
+ bottom: "top",
515
+ top: "bottom"
516
+ }, mn = {
517
+ start: "end",
518
+ end: "start"
519
+ };
520
+ function Tt(t, e, n) {
521
+ return B(t, U(e, n));
522
+ }
523
+ function Y(t, e) {
524
+ return typeof t == "function" ? t(e) : t;
525
+ }
526
+ function j(t) {
527
+ return t.split("-")[0];
528
+ }
529
+ function ot(t) {
530
+ return t.split("-")[1];
531
+ }
532
+ function Nt(t) {
533
+ return t === "x" ? "y" : "x";
534
+ }
535
+ function Bt(t) {
536
+ return t === "y" ? "height" : "width";
537
+ }
538
+ const gn = /* @__PURE__ */ new Set(["top", "bottom"]);
539
+ function I(t) {
540
+ return gn.has(j(t)) ? "y" : "x";
541
+ }
542
+ function Ft(t) {
543
+ return Nt(I(t));
544
+ }
545
+ function vn(t, e, n) {
546
+ n === void 0 && (n = !1);
547
+ const r = ot(t), o = Ft(t), i = Bt(o);
548
+ let c = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
549
+ return e.reference[i] > e.floating[i] && (c = pt(c)), [c, pt(c)];
550
+ }
551
+ function pn(t) {
552
+ const e = pt(t);
553
+ return [Dt(t), e, Dt(e)];
554
+ }
555
+ function Dt(t) {
556
+ return t.replace(/start|end/g, (e) => mn[e]);
557
+ }
558
+ const jt = ["left", "right"], qt = ["right", "left"], wn = ["top", "bottom"], yn = ["bottom", "top"];
559
+ function xn(t, e, n) {
560
+ switch (t) {
561
+ case "top":
562
+ case "bottom":
563
+ return n ? e ? qt : jt : e ? jt : qt;
564
+ case "left":
565
+ case "right":
566
+ return e ? wn : yn;
567
+ default:
568
+ return [];
569
+ }
570
+ }
571
+ function bn(t, e, n, r) {
572
+ const o = ot(t);
573
+ let i = xn(j(t), n === "start", r);
574
+ return o && (i = i.map((c) => c + "-" + o), e && (i = i.concat(i.map(Dt)))), i;
575
+ }
576
+ function pt(t) {
577
+ return t.replace(/left|right|bottom|top/g, (e) => hn[e]);
578
+ }
579
+ function Sn(t) {
580
+ return {
581
+ top: 0,
582
+ right: 0,
583
+ bottom: 0,
584
+ left: 0,
585
+ ...t
586
+ };
587
+ }
588
+ function ue(t) {
589
+ return typeof t != "number" ? Sn(t) : {
590
+ top: t,
591
+ right: t,
592
+ bottom: t,
593
+ left: t
594
+ };
595
+ }
596
+ function wt(t) {
597
+ const {
598
+ x: e,
599
+ y: n,
600
+ width: r,
601
+ height: o
602
+ } = t;
603
+ return {
604
+ width: r,
605
+ height: o,
606
+ top: n,
607
+ left: e,
608
+ right: e + r,
609
+ bottom: n + o,
610
+ x: e,
611
+ y: n
612
+ };
613
+ }
614
+ function Zt(t, e, n) {
615
+ let {
616
+ reference: r,
617
+ floating: o
618
+ } = t;
619
+ const i = I(e), c = Ft(e), s = Bt(c), u = j(e), f = i === "y", l = r.x + r.width / 2 - o.width / 2, a = r.y + r.height / 2 - o.height / 2, m = r[s] / 2 - o[s] / 2;
620
+ let h;
621
+ switch (u) {
622
+ case "top":
623
+ h = {
624
+ x: l,
625
+ y: r.y - o.height
626
+ };
627
+ break;
628
+ case "bottom":
629
+ h = {
630
+ x: l,
631
+ y: r.y + r.height
632
+ };
633
+ break;
634
+ case "right":
635
+ h = {
636
+ x: r.x + r.width,
637
+ y: a
638
+ };
639
+ break;
640
+ case "left":
641
+ h = {
642
+ x: r.x - o.width,
643
+ y: a
644
+ };
645
+ break;
646
+ default:
647
+ h = {
648
+ x: r.x,
649
+ y: r.y
650
+ };
651
+ }
652
+ switch (ot(e)) {
653
+ case "start":
654
+ h[c] -= m * (n && f ? -1 : 1);
655
+ break;
656
+ case "end":
657
+ h[c] += m * (n && f ? -1 : 1);
658
+ break;
659
+ }
660
+ return h;
661
+ }
662
+ async function Cn(t, e) {
663
+ var n;
664
+ e === void 0 && (e = {});
665
+ const {
666
+ x: r,
667
+ y: o,
668
+ platform: i,
669
+ rects: c,
670
+ elements: s,
671
+ strategy: u
672
+ } = t, {
673
+ boundary: f = "clippingAncestors",
674
+ rootBoundary: l = "viewport",
675
+ elementContext: a = "floating",
676
+ altBoundary: m = !1,
677
+ padding: h = 0
678
+ } = Y(e, t), v = ue(h), g = s[m ? a === "floating" ? "reference" : "floating" : a], p = wt(await i.getClippingRect({
679
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
680
+ boundary: f,
681
+ rootBoundary: l,
682
+ strategy: u
683
+ })), y = a === "floating" ? {
684
+ x: r,
685
+ y: o,
686
+ width: c.floating.width,
687
+ height: c.floating.height
688
+ } : c.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), b = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
689
+ x: 1,
690
+ y: 1
691
+ } : {
692
+ x: 1,
693
+ y: 1
694
+ }, S = wt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
695
+ elements: s,
696
+ rect: y,
697
+ offsetParent: x,
698
+ strategy: u
699
+ }) : y);
700
+ return {
701
+ top: (p.top - S.top + v.top) / b.y,
702
+ bottom: (S.bottom - p.bottom + v.bottom) / b.y,
703
+ left: (p.left - S.left + v.left) / b.x,
704
+ right: (S.right - p.right + v.right) / b.x
705
+ };
706
+ }
707
+ const Rn = async (t, e, n) => {
708
+ const {
709
+ placement: r = "bottom",
710
+ strategy: o = "absolute",
711
+ middleware: i = [],
712
+ platform: c
713
+ } = n, s = i.filter(Boolean), u = await (c.isRTL == null ? void 0 : c.isRTL(e));
714
+ let f = await c.getElementRects({
715
+ reference: t,
716
+ floating: e,
717
+ strategy: o
718
+ }), {
719
+ x: l,
720
+ y: a
721
+ } = Zt(f, r, u), m = r, h = {}, v = 0;
722
+ for (let g = 0; g < s.length; g++) {
723
+ var d;
724
+ const {
725
+ name: p,
726
+ fn: y
727
+ } = s[g], {
728
+ x,
729
+ y: b,
730
+ data: S,
731
+ reset: C
732
+ } = await y({
733
+ x: l,
734
+ y: a,
735
+ initialPlacement: r,
736
+ placement: m,
737
+ strategy: o,
738
+ middlewareData: h,
739
+ rects: f,
740
+ platform: {
741
+ ...c,
742
+ detectOverflow: (d = c.detectOverflow) != null ? d : Cn
743
+ },
744
+ elements: {
745
+ reference: t,
746
+ floating: e
747
+ }
748
+ });
749
+ l = x ?? l, a = b ?? a, h = {
750
+ ...h,
751
+ [p]: {
752
+ ...h[p],
753
+ ...S
754
+ }
755
+ }, C && v <= 50 && (v++, typeof C == "object" && (C.placement && (m = C.placement), C.rects && (f = C.rects === !0 ? await c.getElementRects({
756
+ reference: t,
757
+ floating: e,
758
+ strategy: o
759
+ }) : C.rects), {
760
+ x: l,
761
+ y: a
762
+ } = Zt(f, m, u)), g = -1);
763
+ }
764
+ return {
765
+ x: l,
766
+ y: a,
767
+ placement: m,
768
+ strategy: o,
769
+ middlewareData: h
770
+ };
771
+ }, An = (t) => ({
772
+ name: "arrow",
773
+ options: t,
774
+ async fn(e) {
775
+ const {
776
+ x: n,
777
+ y: r,
778
+ placement: o,
779
+ rects: i,
780
+ platform: c,
781
+ elements: s,
782
+ middlewareData: u
783
+ } = e, {
784
+ element: f,
785
+ padding: l = 0
786
+ } = Y(t, e) || {};
787
+ if (f == null)
788
+ return {};
789
+ const a = ue(l), m = {
790
+ x: n,
791
+ y: r
792
+ }, h = Ft(o), v = Bt(h), d = await c.getDimensions(f), g = h === "y", p = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", b = i.reference[v] + i.reference[h] - m[h] - i.floating[v], S = m[h] - i.reference[h], C = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(f));
793
+ let R = C ? C[x] : 0;
794
+ (!R || !await (c.isElement == null ? void 0 : c.isElement(C))) && (R = s.floating[x] || i.floating[v]);
795
+ const M = b / 2 - S / 2, L = R / 2 - d[v] / 2 - 1, O = U(a[p], L), P = U(a[y], L), T = O, D = R - d[v] - P, E = R / 2 - d[v] / 2 + M, $ = Tt(T, E, D), k = !u.arrow && ot(o) != null && E !== $ && i.reference[v] / 2 - (E < T ? O : P) - d[v] / 2 < 0, W = k ? E < T ? E - T : E - D : 0;
796
+ return {
797
+ [h]: m[h] + W,
798
+ data: {
799
+ [h]: $,
800
+ centerOffset: E - $ - W,
801
+ ...k && {
802
+ alignmentOffset: W
803
+ }
804
+ },
805
+ reset: k
806
+ };
807
+ }
808
+ }), En = function(t) {
809
+ return t === void 0 && (t = {}), {
810
+ name: "flip",
811
+ options: t,
812
+ async fn(e) {
813
+ var n, r;
814
+ const {
815
+ placement: o,
816
+ middlewareData: i,
817
+ rects: c,
818
+ initialPlacement: s,
819
+ platform: u,
820
+ elements: f
821
+ } = e, {
822
+ mainAxis: l = !0,
823
+ crossAxis: a = !0,
824
+ fallbackPlacements: m,
825
+ fallbackStrategy: h = "bestFit",
826
+ fallbackAxisSideDirection: v = "none",
827
+ flipAlignment: d = !0,
828
+ ...g
829
+ } = Y(t, e);
830
+ if ((n = i.arrow) != null && n.alignmentOffset)
831
+ return {};
832
+ const p = j(o), y = I(s), x = j(s) === s, b = await (u.isRTL == null ? void 0 : u.isRTL(f.floating)), S = m || (x || !d ? [pt(s)] : pn(s)), C = v !== "none";
833
+ !m && C && S.push(...bn(s, d, v, b));
834
+ const R = [s, ...S], M = await u.detectOverflow(e, g), L = [];
835
+ let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
836
+ if (l && L.push(M[p]), a) {
837
+ const E = vn(o, c, b);
838
+ L.push(M[E[0]], M[E[1]]);
839
+ }
840
+ if (O = [...O, {
841
+ placement: o,
842
+ overflows: L
843
+ }], !L.every((E) => E <= 0)) {
844
+ var P, T;
845
+ const E = (((P = i.flip) == null ? void 0 : P.index) || 0) + 1, $ = R[E];
846
+ if ($ && (!(a === "alignment" ? y !== I($) : !1) || // We leave the current main axis only if every placement on that axis
847
+ // overflows the main axis.
848
+ O.every((A) => I(A.placement) === y ? A.overflows[0] > 0 : !0)))
849
+ return {
850
+ data: {
851
+ index: E,
852
+ overflows: O
853
+ },
854
+ reset: {
855
+ placement: $
856
+ }
857
+ };
858
+ let k = (T = O.filter((W) => W.overflows[0] <= 0).sort((W, A) => W.overflows[1] - A.overflows[1])[0]) == null ? void 0 : T.placement;
859
+ if (!k)
860
+ switch (h) {
861
+ case "bestFit": {
862
+ var D;
863
+ const W = (D = O.filter((A) => {
864
+ if (C) {
865
+ const N = I(A.placement);
866
+ return N === y || // Create a bias to the `y` side axis due to horizontal
867
+ // reading directions favoring greater width.
868
+ N === "y";
869
+ }
870
+ return !0;
871
+ }).map((A) => [A.placement, A.overflows.filter((N) => N > 0).reduce((N, q) => N + q, 0)]).sort((A, N) => A[1] - N[1])[0]) == null ? void 0 : D[0];
872
+ W && (k = W);
873
+ break;
874
+ }
875
+ case "initialPlacement":
876
+ k = s;
877
+ break;
878
+ }
879
+ if (o !== k)
880
+ return {
881
+ reset: {
882
+ placement: k
883
+ }
884
+ };
885
+ }
886
+ return {};
887
+ }
888
+ };
889
+ };
890
+ function Ut(t, e) {
891
+ return {
892
+ top: t.top - e.height,
893
+ right: t.right - e.width,
894
+ bottom: t.bottom - e.height,
895
+ left: t.left - e.width
896
+ };
897
+ }
898
+ function Gt(t) {
899
+ return dn.some((e) => t[e] >= 0);
900
+ }
901
+ const On = function(t) {
902
+ return t === void 0 && (t = {}), {
903
+ name: "hide",
904
+ options: t,
905
+ async fn(e) {
906
+ const {
907
+ rects: n,
908
+ platform: r
909
+ } = e, {
910
+ strategy: o = "referenceHidden",
911
+ ...i
912
+ } = Y(t, e);
913
+ switch (o) {
914
+ case "referenceHidden": {
915
+ const c = await r.detectOverflow(e, {
916
+ ...i,
917
+ elementContext: "reference"
918
+ }), s = Ut(c, n.reference);
919
+ return {
920
+ data: {
921
+ referenceHiddenOffsets: s,
922
+ referenceHidden: Gt(s)
923
+ }
924
+ };
925
+ }
926
+ case "escaped": {
927
+ const c = await r.detectOverflow(e, {
928
+ ...i,
929
+ altBoundary: !0
930
+ }), s = Ut(c, n.floating);
931
+ return {
932
+ data: {
933
+ escapedOffsets: s,
934
+ escaped: Gt(s)
935
+ }
936
+ };
937
+ }
938
+ default:
939
+ return {};
940
+ }
941
+ }
942
+ };
943
+ }, de = /* @__PURE__ */ new Set(["left", "top"]);
944
+ async function Mn(t, e) {
945
+ const {
946
+ placement: n,
947
+ platform: r,
948
+ elements: o
949
+ } = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), c = j(n), s = ot(n), u = I(n) === "y", f = de.has(c) ? -1 : 1, l = i && u ? -1 : 1, a = Y(e, t);
950
+ let {
951
+ mainAxis: m,
952
+ crossAxis: h,
953
+ alignmentAxis: v
954
+ } = typeof a == "number" ? {
955
+ mainAxis: a,
956
+ crossAxis: 0,
957
+ alignmentAxis: null
958
+ } : {
959
+ mainAxis: a.mainAxis || 0,
960
+ crossAxis: a.crossAxis || 0,
961
+ alignmentAxis: a.alignmentAxis
962
+ };
963
+ return s && typeof v == "number" && (h = s === "end" ? v * -1 : v), u ? {
964
+ x: h * l,
965
+ y: m * f
966
+ } : {
967
+ x: m * f,
968
+ y: h * l
969
+ };
970
+ }
971
+ const Pn = function(t) {
972
+ return t === void 0 && (t = 0), {
973
+ name: "offset",
974
+ options: t,
975
+ async fn(e) {
976
+ var n, r;
977
+ const {
978
+ x: o,
979
+ y: i,
980
+ placement: c,
981
+ middlewareData: s
982
+ } = e, u = await Mn(e, t);
983
+ return c === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
984
+ x: o + u.x,
985
+ y: i + u.y,
986
+ data: {
987
+ ...u,
988
+ placement: c
989
+ }
990
+ };
991
+ }
992
+ };
993
+ }, kn = function(t) {
994
+ return t === void 0 && (t = {}), {
995
+ name: "shift",
996
+ options: t,
997
+ async fn(e) {
998
+ const {
999
+ x: n,
1000
+ y: r,
1001
+ placement: o,
1002
+ platform: i
1003
+ } = e, {
1004
+ mainAxis: c = !0,
1005
+ crossAxis: s = !1,
1006
+ limiter: u = {
1007
+ fn: (p) => {
1008
+ let {
1009
+ x: y,
1010
+ y: x
1011
+ } = p;
1012
+ return {
1013
+ x: y,
1014
+ y: x
1015
+ };
1016
+ }
1017
+ },
1018
+ ...f
1019
+ } = Y(t, e), l = {
1020
+ x: n,
1021
+ y: r
1022
+ }, a = await i.detectOverflow(e, f), m = I(j(o)), h = Nt(m);
1023
+ let v = l[h], d = l[m];
1024
+ if (c) {
1025
+ const p = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", x = v + a[p], b = v - a[y];
1026
+ v = Tt(x, v, b);
1027
+ }
1028
+ if (s) {
1029
+ const p = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", x = d + a[p], b = d - a[y];
1030
+ d = Tt(x, d, b);
1031
+ }
1032
+ const g = u.fn({
1033
+ ...e,
1034
+ [h]: v,
1035
+ [m]: d
1036
+ });
1037
+ return {
1038
+ ...g,
1039
+ data: {
1040
+ x: g.x - n,
1041
+ y: g.y - r,
1042
+ enabled: {
1043
+ [h]: c,
1044
+ [m]: s
1045
+ }
1046
+ }
1047
+ };
1048
+ }
1049
+ };
1050
+ }, Ln = function(t) {
1051
+ return t === void 0 && (t = {}), {
1052
+ options: t,
1053
+ fn(e) {
1054
+ const {
1055
+ x: n,
1056
+ y: r,
1057
+ placement: o,
1058
+ rects: i,
1059
+ middlewareData: c
1060
+ } = e, {
1061
+ offset: s = 0,
1062
+ mainAxis: u = !0,
1063
+ crossAxis: f = !0
1064
+ } = Y(t, e), l = {
1065
+ x: n,
1066
+ y: r
1067
+ }, a = I(o), m = Nt(a);
1068
+ let h = l[m], v = l[a];
1069
+ const d = Y(s, e), g = typeof d == "number" ? {
1070
+ mainAxis: d,
1071
+ crossAxis: 0
1072
+ } : {
1073
+ mainAxis: 0,
1074
+ crossAxis: 0,
1075
+ ...d
1076
+ };
1077
+ if (u) {
1078
+ const x = m === "y" ? "height" : "width", b = i.reference[m] - i.floating[x] + g.mainAxis, S = i.reference[m] + i.reference[x] - g.mainAxis;
1079
+ h < b ? h = b : h > S && (h = S);
1080
+ }
1081
+ if (f) {
1082
+ var p, y;
1083
+ const x = m === "y" ? "width" : "height", b = de.has(j(o)), S = i.reference[a] - i.floating[x] + (b && ((p = c.offset) == null ? void 0 : p[a]) || 0) + (b ? 0 : g.crossAxis), C = i.reference[a] + i.reference[x] + (b ? 0 : ((y = c.offset) == null ? void 0 : y[a]) || 0) - (b ? g.crossAxis : 0);
1084
+ v < S ? v = S : v > C && (v = C);
1085
+ }
1086
+ return {
1087
+ [m]: h,
1088
+ [a]: v
1089
+ };
1090
+ }
1091
+ };
1092
+ }, Tn = function(t) {
1093
+ return t === void 0 && (t = {}), {
1094
+ name: "size",
1095
+ options: t,
1096
+ async fn(e) {
1097
+ var n, r;
1098
+ const {
1099
+ placement: o,
1100
+ rects: i,
1101
+ platform: c,
1102
+ elements: s
1103
+ } = e, {
1104
+ apply: u = () => {
1105
+ },
1106
+ ...f
1107
+ } = Y(t, e), l = await c.detectOverflow(e, f), a = j(o), m = ot(o), h = I(o) === "y", {
1108
+ width: v,
1109
+ height: d
1110
+ } = i.floating;
1111
+ let g, p;
1112
+ a === "top" || a === "bottom" ? (g = a, p = m === (await (c.isRTL == null ? void 0 : c.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (p = a, g = m === "end" ? "top" : "bottom");
1113
+ const y = d - l.top - l.bottom, x = v - l.left - l.right, b = U(d - l[g], y), S = U(v - l[p], x), C = !e.middlewareData.shift;
1114
+ let R = b, M = S;
1115
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (M = x), (r = e.middlewareData.shift) != null && r.enabled.y && (R = y), C && !m) {
1116
+ const O = B(l.left, 0), P = B(l.right, 0), T = B(l.top, 0), D = B(l.bottom, 0);
1117
+ h ? M = v - 2 * (O !== 0 || P !== 0 ? O + P : B(l.left, l.right)) : R = d - 2 * (T !== 0 || D !== 0 ? T + D : B(l.top, l.bottom));
1118
+ }
1119
+ await u({
1120
+ ...e,
1121
+ availableWidth: M,
1122
+ availableHeight: R
1123
+ });
1124
+ const L = await c.getDimensions(s.floating);
1125
+ return v !== L.width || d !== L.height ? {
1126
+ reset: {
1127
+ rects: !0
1128
+ }
1129
+ } : {};
1130
+ }
1131
+ };
1132
+ };
1133
+ function bt() {
1134
+ return typeof window < "u";
1135
+ }
1136
+ function it(t) {
1137
+ return he(t) ? (t.nodeName || "").toLowerCase() : "#document";
1138
+ }
1139
+ function F(t) {
1140
+ var e;
1141
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
1142
+ }
1143
+ function X(t) {
1144
+ var e;
1145
+ return (e = (he(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
1146
+ }
1147
+ function he(t) {
1148
+ return bt() ? t instanceof Node || t instanceof F(t).Node : !1;
1149
+ }
1150
+ function V(t) {
1151
+ return bt() ? t instanceof Element || t instanceof F(t).Element : !1;
1152
+ }
1153
+ function _(t) {
1154
+ return bt() ? t instanceof HTMLElement || t instanceof F(t).HTMLElement : !1;
1155
+ }
1156
+ function Kt(t) {
1157
+ return !bt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof F(t).ShadowRoot;
1158
+ }
1159
+ const Dn = /* @__PURE__ */ new Set(["inline", "contents"]);
1160
+ function st(t) {
1161
+ const {
1162
+ overflow: e,
1163
+ overflowX: n,
1164
+ overflowY: r,
1165
+ display: o
1166
+ } = H(t);
1167
+ return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !Dn.has(o);
1168
+ }
1169
+ const Wn = /* @__PURE__ */ new Set(["table", "td", "th"]);
1170
+ function Nn(t) {
1171
+ return Wn.has(it(t));
1172
+ }
1173
+ const Bn = [":popover-open", ":modal"];
1174
+ function St(t) {
1175
+ return Bn.some((e) => {
1176
+ try {
1177
+ return t.matches(e);
1178
+ } catch {
1179
+ return !1;
1180
+ }
1181
+ });
1182
+ }
1183
+ const Fn = ["transform", "translate", "scale", "rotate", "perspective"], Vn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Hn = ["paint", "layout", "strict", "content"];
1184
+ function Vt(t) {
1185
+ const e = Ht(), n = V(t) ? H(t) : t;
1186
+ return Fn.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Vn.some((r) => (n.willChange || "").includes(r)) || Hn.some((r) => (n.contain || "").includes(r));
1187
+ }
1188
+ function $n(t) {
1189
+ let e = G(t);
1190
+ for (; _(e) && !rt(e); ) {
1191
+ if (Vt(e))
1192
+ return e;
1193
+ if (St(e))
1194
+ return null;
1195
+ e = G(e);
1196
+ }
1197
+ return null;
1198
+ }
1199
+ function Ht() {
1200
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1201
+ }
1202
+ const In = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1203
+ function rt(t) {
1204
+ return In.has(it(t));
1205
+ }
1206
+ function H(t) {
1207
+ return F(t).getComputedStyle(t);
1208
+ }
1209
+ function Ct(t) {
1210
+ return V(t) ? {
1211
+ scrollLeft: t.scrollLeft,
1212
+ scrollTop: t.scrollTop
1213
+ } : {
1214
+ scrollLeft: t.scrollX,
1215
+ scrollTop: t.scrollY
1216
+ };
1217
+ }
1218
+ function G(t) {
1219
+ if (it(t) === "html")
1220
+ return t;
1221
+ const e = (
1222
+ // Step into the shadow DOM of the parent of a slotted node.
1223
+ t.assignedSlot || // DOM Element detected.
1224
+ t.parentNode || // ShadowRoot detected.
1225
+ Kt(t) && t.host || // Fallback.
1226
+ X(t)
1227
+ );
1228
+ return Kt(e) ? e.host : e;
1229
+ }
1230
+ function me(t) {
1231
+ const e = G(t);
1232
+ return rt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : _(e) && st(e) ? e : me(e);
1233
+ }
1234
+ function ct(t, e, n) {
1235
+ var r;
1236
+ e === void 0 && (e = []), n === void 0 && (n = !0);
1237
+ const o = me(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), c = F(o);
1238
+ if (i) {
1239
+ const s = Wt(c);
1240
+ return e.concat(c, c.visualViewport || [], st(o) ? o : [], s && n ? ct(s) : []);
1241
+ }
1242
+ return e.concat(o, ct(o, [], n));
1243
+ }
1244
+ function Wt(t) {
1245
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
1246
+ }
1247
+ function ge(t) {
1248
+ const e = H(t);
1249
+ let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
1250
+ const o = _(t), i = o ? t.offsetWidth : n, c = o ? t.offsetHeight : r, s = vt(n) !== i || vt(r) !== c;
1251
+ return s && (n = i, r = c), {
1252
+ width: n,
1253
+ height: r,
1254
+ $: s
1255
+ };
1256
+ }
1257
+ function $t(t) {
1258
+ return V(t) ? t : t.contextElement;
1259
+ }
1260
+ function nt(t) {
1261
+ const e = $t(t);
1262
+ if (!_(e))
1263
+ return z(1);
1264
+ const n = e.getBoundingClientRect(), {
1265
+ width: r,
1266
+ height: o,
1267
+ $: i
1268
+ } = ge(e);
1269
+ let c = (i ? vt(n.width) : n.width) / r, s = (i ? vt(n.height) : n.height) / o;
1270
+ return (!c || !Number.isFinite(c)) && (c = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1271
+ x: c,
1272
+ y: s
1273
+ };
1274
+ }
1275
+ const zn = /* @__PURE__ */ z(0);
1276
+ function ve(t) {
1277
+ const e = F(t);
1278
+ return !Ht() || !e.visualViewport ? zn : {
1279
+ x: e.visualViewport.offsetLeft,
1280
+ y: e.visualViewport.offsetTop
1281
+ };
1282
+ }
1283
+ function _n(t, e, n) {
1284
+ return e === void 0 && (e = !1), !n || e && n !== F(t) ? !1 : e;
1285
+ }
1286
+ function K(t, e, n, r) {
1287
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
1288
+ const o = t.getBoundingClientRect(), i = $t(t);
1289
+ let c = z(1);
1290
+ e && (r ? V(r) && (c = nt(r)) : c = nt(t));
1291
+ const s = _n(i, n, r) ? ve(i) : z(0);
1292
+ let u = (o.left + s.x) / c.x, f = (o.top + s.y) / c.y, l = o.width / c.x, a = o.height / c.y;
1293
+ if (i) {
1294
+ const m = F(i), h = r && V(r) ? F(r) : r;
1295
+ let v = m, d = Wt(v);
1296
+ for (; d && r && h !== v; ) {
1297
+ const g = nt(d), p = d.getBoundingClientRect(), y = H(d), x = p.left + (d.clientLeft + parseFloat(y.paddingLeft)) * g.x, b = p.top + (d.clientTop + parseFloat(y.paddingTop)) * g.y;
1298
+ u *= g.x, f *= g.y, l *= g.x, a *= g.y, u += x, f += b, v = F(d), d = Wt(v);
1299
+ }
1300
+ }
1301
+ return wt({
1302
+ width: l,
1303
+ height: a,
1304
+ x: u,
1305
+ y: f
1306
+ });
1307
+ }
1308
+ function Rt(t, e) {
1309
+ const n = Ct(t).scrollLeft;
1310
+ return e ? e.left + n : K(X(t)).left + n;
1311
+ }
1312
+ function pe(t, e) {
1313
+ const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Rt(t, n), o = n.top + e.scrollTop;
1314
+ return {
1315
+ x: r,
1316
+ y: o
1317
+ };
1318
+ }
1319
+ function Xn(t) {
1320
+ let {
1321
+ elements: e,
1322
+ rect: n,
1323
+ offsetParent: r,
1324
+ strategy: o
1325
+ } = t;
1326
+ const i = o === "fixed", c = X(r), s = e ? St(e.floating) : !1;
1327
+ if (r === c || s && i)
1328
+ return n;
1329
+ let u = {
1330
+ scrollLeft: 0,
1331
+ scrollTop: 0
1332
+ }, f = z(1);
1333
+ const l = z(0), a = _(r);
1334
+ if ((a || !a && !i) && ((it(r) !== "body" || st(c)) && (u = Ct(r)), _(r))) {
1335
+ const h = K(r);
1336
+ f = nt(r), l.x = h.x + r.clientLeft, l.y = h.y + r.clientTop;
1337
+ }
1338
+ const m = c && !a && !i ? pe(c, u) : z(0);
1339
+ return {
1340
+ width: n.width * f.x,
1341
+ height: n.height * f.y,
1342
+ x: n.x * f.x - u.scrollLeft * f.x + l.x + m.x,
1343
+ y: n.y * f.y - u.scrollTop * f.y + l.y + m.y
1344
+ };
1345
+ }
1346
+ function Yn(t) {
1347
+ return Array.from(t.getClientRects());
1348
+ }
1349
+ function jn(t) {
1350
+ const e = X(t), n = Ct(t), r = t.ownerDocument.body, o = B(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = B(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
1351
+ let c = -n.scrollLeft + Rt(t);
1352
+ const s = -n.scrollTop;
1353
+ return H(r).direction === "rtl" && (c += B(e.clientWidth, r.clientWidth) - o), {
1354
+ width: o,
1355
+ height: i,
1356
+ x: c,
1357
+ y: s
1358
+ };
1359
+ }
1360
+ const Qt = 25;
1361
+ function qn(t, e) {
1362
+ const n = F(t), r = X(t), o = n.visualViewport;
1363
+ let i = r.clientWidth, c = r.clientHeight, s = 0, u = 0;
1364
+ if (o) {
1365
+ i = o.width, c = o.height;
1366
+ const l = Ht();
1367
+ (!l || l && e === "fixed") && (s = o.offsetLeft, u = o.offsetTop);
1368
+ }
1369
+ const f = Rt(r);
1370
+ if (f <= 0) {
1371
+ const l = r.ownerDocument, a = l.body, m = getComputedStyle(a), h = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, v = Math.abs(r.clientWidth - a.clientWidth - h);
1372
+ v <= Qt && (i -= v);
1373
+ } else f <= Qt && (i += f);
1374
+ return {
1375
+ width: i,
1376
+ height: c,
1377
+ x: s,
1378
+ y: u
1379
+ };
1380
+ }
1381
+ const Zn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1382
+ function Un(t, e) {
1383
+ const n = K(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i = _(t) ? nt(t) : z(1), c = t.clientWidth * i.x, s = t.clientHeight * i.y, u = o * i.x, f = r * i.y;
1384
+ return {
1385
+ width: c,
1386
+ height: s,
1387
+ x: u,
1388
+ y: f
1389
+ };
1390
+ }
1391
+ function Jt(t, e, n) {
1392
+ let r;
1393
+ if (e === "viewport")
1394
+ r = qn(t, n);
1395
+ else if (e === "document")
1396
+ r = jn(X(t));
1397
+ else if (V(e))
1398
+ r = Un(e, n);
1399
+ else {
1400
+ const o = ve(t);
1401
+ r = {
1402
+ x: e.x - o.x,
1403
+ y: e.y - o.y,
1404
+ width: e.width,
1405
+ height: e.height
1406
+ };
1407
+ }
1408
+ return wt(r);
1409
+ }
1410
+ function we(t, e) {
1411
+ const n = G(t);
1412
+ return n === e || !V(n) || rt(n) ? !1 : H(n).position === "fixed" || we(n, e);
1413
+ }
1414
+ function Gn(t, e) {
1415
+ const n = e.get(t);
1416
+ if (n)
1417
+ return n;
1418
+ let r = ct(t, [], !1).filter((s) => V(s) && it(s) !== "body"), o = null;
1419
+ const i = H(t).position === "fixed";
1420
+ let c = i ? G(t) : t;
1421
+ for (; V(c) && !rt(c); ) {
1422
+ const s = H(c), u = Vt(c);
1423
+ !u && s.position === "fixed" && (o = null), (i ? !u && !o : !u && s.position === "static" && !!o && Zn.has(o.position) || st(c) && !u && we(t, c)) ? r = r.filter((l) => l !== c) : o = s, c = G(c);
1424
+ }
1425
+ return e.set(t, r), r;
1426
+ }
1427
+ function Kn(t) {
1428
+ let {
1429
+ element: e,
1430
+ boundary: n,
1431
+ rootBoundary: r,
1432
+ strategy: o
1433
+ } = t;
1434
+ const c = [...n === "clippingAncestors" ? St(e) ? [] : Gn(e, this._c) : [].concat(n), r], s = c[0], u = c.reduce((f, l) => {
1435
+ const a = Jt(e, l, o);
1436
+ return f.top = B(a.top, f.top), f.right = U(a.right, f.right), f.bottom = U(a.bottom, f.bottom), f.left = B(a.left, f.left), f;
1437
+ }, Jt(e, s, o));
1438
+ return {
1439
+ width: u.right - u.left,
1440
+ height: u.bottom - u.top,
1441
+ x: u.left,
1442
+ y: u.top
1443
+ };
1444
+ }
1445
+ function Qn(t) {
1446
+ const {
1447
+ width: e,
1448
+ height: n
1449
+ } = ge(t);
1450
+ return {
1451
+ width: e,
1452
+ height: n
1453
+ };
1454
+ }
1455
+ function Jn(t, e, n) {
1456
+ const r = _(e), o = X(e), i = n === "fixed", c = K(t, !0, i, e);
1457
+ let s = {
1458
+ scrollLeft: 0,
1459
+ scrollTop: 0
1460
+ };
1461
+ const u = z(0);
1462
+ function f() {
1463
+ u.x = Rt(o);
1464
+ }
1465
+ if (r || !r && !i)
1466
+ if ((it(e) !== "body" || st(o)) && (s = Ct(e)), r) {
1467
+ const h = K(e, !0, i, e);
1468
+ u.x = h.x + e.clientLeft, u.y = h.y + e.clientTop;
1469
+ } else o && f();
1470
+ i && !r && o && f();
1471
+ const l = o && !r && !i ? pe(o, s) : z(0), a = c.left + s.scrollLeft - u.x - l.x, m = c.top + s.scrollTop - u.y - l.y;
1472
+ return {
1473
+ x: a,
1474
+ y: m,
1475
+ width: c.width,
1476
+ height: c.height
1477
+ };
1478
+ }
1479
+ function Pt(t) {
1480
+ return H(t).position === "static";
1481
+ }
1482
+ function te(t, e) {
1483
+ if (!_(t) || H(t).position === "fixed")
1484
+ return null;
1485
+ if (e)
1486
+ return e(t);
1487
+ let n = t.offsetParent;
1488
+ return X(t) === n && (n = n.ownerDocument.body), n;
1489
+ }
1490
+ function ye(t, e) {
1491
+ const n = F(t);
1492
+ if (St(t))
1493
+ return n;
1494
+ if (!_(t)) {
1495
+ let o = G(t);
1496
+ for (; o && !rt(o); ) {
1497
+ if (V(o) && !Pt(o))
1498
+ return o;
1499
+ o = G(o);
1500
+ }
1501
+ return n;
1502
+ }
1503
+ let r = te(t, e);
1504
+ for (; r && Nn(r) && Pt(r); )
1505
+ r = te(r, e);
1506
+ return r && rt(r) && Pt(r) && !Vt(r) ? n : r || $n(t) || n;
1507
+ }
1508
+ const tr = async function(t) {
1509
+ const e = this.getOffsetParent || ye, n = this.getDimensions, r = await n(t.floating);
1510
+ return {
1511
+ reference: Jn(t.reference, await e(t.floating), t.strategy),
1512
+ floating: {
1513
+ x: 0,
1514
+ y: 0,
1515
+ width: r.width,
1516
+ height: r.height
1517
+ }
1518
+ };
1519
+ };
1520
+ function er(t) {
1521
+ return H(t).direction === "rtl";
1522
+ }
1523
+ const nr = {
1524
+ convertOffsetParentRelativeRectToViewportRelativeRect: Xn,
1525
+ getDocumentElement: X,
1526
+ getClippingRect: Kn,
1527
+ getOffsetParent: ye,
1528
+ getElementRects: tr,
1529
+ getClientRects: Yn,
1530
+ getDimensions: Qn,
1531
+ getScale: nt,
1532
+ isElement: V,
1533
+ isRTL: er
1534
+ };
1535
+ function xe(t, e) {
1536
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1537
+ }
1538
+ function rr(t, e) {
1539
+ let n = null, r;
1540
+ const o = X(t);
1541
+ function i() {
1542
+ var s;
1543
+ clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1544
+ }
1545
+ function c(s, u) {
1546
+ s === void 0 && (s = !1), u === void 0 && (u = 1), i();
1547
+ const f = t.getBoundingClientRect(), {
1548
+ left: l,
1549
+ top: a,
1550
+ width: m,
1551
+ height: h
1552
+ } = f;
1553
+ if (s || e(), !m || !h)
1554
+ return;
1555
+ const v = dt(a), d = dt(o.clientWidth - (l + m)), g = dt(o.clientHeight - (a + h)), p = dt(l), x = {
1556
+ rootMargin: -v + "px " + -d + "px " + -g + "px " + -p + "px",
1557
+ threshold: B(0, U(1, u)) || 1
1558
+ };
1559
+ let b = !0;
1560
+ function S(C) {
1561
+ const R = C[0].intersectionRatio;
1562
+ if (R !== u) {
1563
+ if (!b)
1564
+ return c();
1565
+ R ? c(!1, R) : r = setTimeout(() => {
1566
+ c(!1, 1e-7);
1567
+ }, 1e3);
1568
+ }
1569
+ R === 1 && !xe(f, t.getBoundingClientRect()) && c(), b = !1;
1570
+ }
1571
+ try {
1572
+ n = new IntersectionObserver(S, {
1573
+ ...x,
1574
+ // Handle <iframe>s
1575
+ root: o.ownerDocument
1576
+ });
1577
+ } catch {
1578
+ n = new IntersectionObserver(S, x);
1579
+ }
1580
+ n.observe(t);
1581
+ }
1582
+ return c(!0), i;
1583
+ }
1584
+ function pr(t, e, n, r) {
1585
+ r === void 0 && (r = {});
1586
+ const {
1587
+ ancestorScroll: o = !0,
1588
+ ancestorResize: i = !0,
1589
+ elementResize: c = typeof ResizeObserver == "function",
1590
+ layoutShift: s = typeof IntersectionObserver == "function",
1591
+ animationFrame: u = !1
1592
+ } = r, f = $t(t), l = o || i ? [...f ? ct(f) : [], ...ct(e)] : [];
1593
+ l.forEach((p) => {
1594
+ o && p.addEventListener("scroll", n, {
1595
+ passive: !0
1596
+ }), i && p.addEventListener("resize", n);
1597
+ });
1598
+ const a = f && s ? rr(f, n) : null;
1599
+ let m = -1, h = null;
1600
+ c && (h = new ResizeObserver((p) => {
1601
+ let [y] = p;
1602
+ y && y.target === f && h && (h.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1603
+ var x;
1604
+ (x = h) == null || x.observe(e);
1605
+ })), n();
1606
+ }), f && !u && h.observe(f), h.observe(e));
1607
+ let v, d = u ? K(t) : null;
1608
+ u && g();
1609
+ function g() {
1610
+ const p = K(t);
1611
+ d && !xe(d, p) && n(), d = p, v = requestAnimationFrame(g);
1612
+ }
1613
+ return n(), () => {
1614
+ var p;
1615
+ l.forEach((y) => {
1616
+ o && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
1617
+ }), a == null || a(), (p = h) == null || p.disconnect(), h = null, u && cancelAnimationFrame(v);
1618
+ };
1619
+ }
1620
+ const or = Pn, ir = kn, cr = En, sr = Tn, ar = On, ee = An, lr = Ln, fr = (t, e, n) => {
1621
+ const r = /* @__PURE__ */ new Map(), o = {
1622
+ platform: nr,
1623
+ ...n
1624
+ }, i = {
1625
+ ...o.platform,
1626
+ _c: r
1627
+ };
1628
+ return Rn(t, e, {
1629
+ ...o,
1630
+ platform: i
1631
+ });
1632
+ };
1633
+ var ur = typeof document < "u", dr = function() {
1634
+ }, gt = ur ? Ce : dr;
1635
+ function yt(t, e) {
1636
+ if (t === e)
1637
+ return !0;
1638
+ if (typeof t != typeof e)
1639
+ return !1;
1640
+ if (typeof t == "function" && t.toString() === e.toString())
1641
+ return !0;
1642
+ let n, r, o;
1643
+ if (t && e && typeof t == "object") {
1644
+ if (Array.isArray(t)) {
1645
+ if (n = t.length, n !== e.length) return !1;
1646
+ for (r = n; r-- !== 0; )
1647
+ if (!yt(t[r], e[r]))
1648
+ return !1;
1649
+ return !0;
1650
+ }
1651
+ if (o = Object.keys(t), n = o.length, n !== Object.keys(e).length)
1652
+ return !1;
1653
+ for (r = n; r-- !== 0; )
1654
+ if (!{}.hasOwnProperty.call(e, o[r]))
1655
+ return !1;
1656
+ for (r = n; r-- !== 0; ) {
1657
+ const i = o[r];
1658
+ if (!(i === "_owner" && t.$$typeof) && !yt(t[i], e[i]))
1659
+ return !1;
1660
+ }
1661
+ return !0;
1662
+ }
1663
+ return t !== t && e !== e;
1664
+ }
1665
+ function be(t) {
1666
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1667
+ }
1668
+ function ne(t, e) {
1669
+ const n = be(t);
1670
+ return Math.round(e * n) / n;
1671
+ }
1672
+ function kt(t) {
1673
+ const e = w.useRef(t);
1674
+ return gt(() => {
1675
+ e.current = t;
1676
+ }), e;
1677
+ }
1678
+ function wr(t) {
1679
+ t === void 0 && (t = {});
1680
+ const {
1681
+ placement: e = "bottom",
1682
+ strategy: n = "absolute",
1683
+ middleware: r = [],
1684
+ platform: o,
1685
+ elements: {
1686
+ reference: i,
1687
+ floating: c
1688
+ } = {},
1689
+ transform: s = !0,
1690
+ whileElementsMounted: u,
1691
+ open: f
1692
+ } = t, [l, a] = w.useState({
1693
+ x: 0,
1694
+ y: 0,
1695
+ strategy: n,
1696
+ placement: e,
1697
+ middlewareData: {},
1698
+ isPositioned: !1
1699
+ }), [m, h] = w.useState(r);
1700
+ yt(m, r) || h(r);
1701
+ const [v, d] = w.useState(null), [g, p] = w.useState(null), y = w.useCallback((A) => {
1702
+ A !== C.current && (C.current = A, d(A));
1703
+ }, []), x = w.useCallback((A) => {
1704
+ A !== R.current && (R.current = A, p(A));
1705
+ }, []), b = i || v, S = c || g, C = w.useRef(null), R = w.useRef(null), M = w.useRef(l), L = u != null, O = kt(u), P = kt(o), T = kt(f), D = w.useCallback(() => {
1706
+ if (!C.current || !R.current)
1707
+ return;
1708
+ const A = {
1709
+ placement: e,
1710
+ strategy: n,
1711
+ middleware: m
1712
+ };
1713
+ P.current && (A.platform = P.current), fr(C.current, R.current, A).then((N) => {
1714
+ const q = {
1715
+ ...N,
1716
+ // The floating element's position may be recomputed while it's closed
1717
+ // but still mounted (such as when transitioning out). To ensure
1718
+ // `isPositioned` will be `false` initially on the next open, avoid
1719
+ // setting it to `true` when `open === false` (must be specified).
1720
+ isPositioned: T.current !== !1
1721
+ };
1722
+ E.current && !yt(M.current, q) && (M.current = q, Ae.flushSync(() => {
1723
+ a(q);
1724
+ }));
1725
+ });
1726
+ }, [m, e, n, P, T]);
1727
+ gt(() => {
1728
+ f === !1 && M.current.isPositioned && (M.current.isPositioned = !1, a((A) => ({
1729
+ ...A,
1730
+ isPositioned: !1
1731
+ })));
1732
+ }, [f]);
1733
+ const E = w.useRef(!1);
1734
+ gt(() => (E.current = !0, () => {
1735
+ E.current = !1;
1736
+ }), []), gt(() => {
1737
+ if (b && (C.current = b), S && (R.current = S), b && S) {
1738
+ if (O.current)
1739
+ return O.current(b, S, D);
1740
+ D();
1741
+ }
1742
+ }, [b, S, D, O, L]);
1743
+ const $ = w.useMemo(() => ({
1744
+ reference: C,
1745
+ floating: R,
1746
+ setReference: y,
1747
+ setFloating: x
1748
+ }), [y, x]), k = w.useMemo(() => ({
1749
+ reference: b,
1750
+ floating: S
1751
+ }), [b, S]), W = w.useMemo(() => {
1752
+ const A = {
1753
+ position: n,
1754
+ left: 0,
1755
+ top: 0
1756
+ };
1757
+ if (!k.floating)
1758
+ return A;
1759
+ const N = ne(k.floating, l.x), q = ne(k.floating, l.y);
1760
+ return s ? {
1761
+ ...A,
1762
+ transform: "translate(" + N + "px, " + q + "px)",
1763
+ ...be(k.floating) >= 1.5 && {
1764
+ willChange: "transform"
1765
+ }
1766
+ } : {
1767
+ position: n,
1768
+ left: N,
1769
+ top: q
1770
+ };
1771
+ }, [n, s, k.floating, l.x, l.y]);
1772
+ return w.useMemo(() => ({
1773
+ ...l,
1774
+ update: D,
1775
+ refs: $,
1776
+ elements: k,
1777
+ floatingStyles: W
1778
+ }), [l, D, $, k, W]);
1779
+ }
1780
+ const hr = (t) => {
1781
+ function e(n) {
1782
+ return {}.hasOwnProperty.call(n, "current");
1783
+ }
1784
+ return {
1785
+ name: "arrow",
1786
+ options: t,
1787
+ fn(n) {
1788
+ const {
1789
+ element: r,
1790
+ padding: o
1791
+ } = typeof t == "function" ? t(n) : t;
1792
+ return r && e(r) ? r.current != null ? ee({
1793
+ element: r.current,
1794
+ padding: o
1795
+ }).fn(n) : {} : r ? ee({
1796
+ element: r,
1797
+ padding: o
1798
+ }).fn(n) : {};
1799
+ }
1800
+ };
1801
+ }, yr = (t, e) => ({
1802
+ ...or(t),
1803
+ options: [t, e]
1804
+ }), xr = (t, e) => ({
1805
+ ...ir(t),
1806
+ options: [t, e]
1807
+ }), br = (t, e) => ({
1808
+ ...lr(t),
1809
+ options: [t, e]
1810
+ }), Sr = (t, e) => ({
1811
+ ...cr(t),
1812
+ options: [t, e]
1813
+ }), Cr = (t, e) => ({
1814
+ ...sr(t),
1815
+ options: [t, e]
1816
+ }), Rr = (t, e) => ({
1817
+ ...ar(t),
1818
+ options: [t, e]
1819
+ }), Ar = (t, e) => ({
1820
+ ...hr(t),
1821
+ options: [t, e]
1822
+ });
1823
+ export {
1824
+ an as R,
1825
+ Cr as a,
1826
+ Ar as b,
1827
+ Rr as c,
1828
+ pr as d,
1829
+ Sr as f,
1830
+ vr as h,
1831
+ br as l,
1832
+ yr as o,
1833
+ xr as s,
1834
+ wr as u
1835
+ };