@motiadev/plugin-observability 0.13.2-beta.164-732151 → 0.13.2-beta.164-704005

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 (3) hide show
  1. package/dist/index.cjs +40 -40
  2. package/dist/index.js +952 -942
  3. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as m from "react";
2
- import Pe, { forwardRef as Kt, createElement as kt, memo as V, useState as G, useEffect as _e, useCallback as de, useMemo as z, useLayoutEffect as Ho, createContext as Bo, useContext as Ce, isValidElement as zo, useRef as Qt, Fragment as pr } from "react";
3
- import { Input as Vo, cn as De, Button as ct, LevelDot as Uo, Sidebar as Yo, Badge as hr } from "@motiadev/ui";
4
- import { useStreamItem as Go, useStreamGroup as gr } from "@motiadev/stream-client-react";
5
- import * as vr from "react-dom";
6
- import Zo from "react-dom";
2
+ import Pe, { forwardRef as Kt, createElement as kt, memo as V, useState as Y, useEffect as _e, useCallback as fe, useMemo as z, useLayoutEffect as Vo, createContext as Uo, useContext as Ce, isValidElement as Yo, useRef as Qt, Fragment as vr } from "react";
3
+ import { Input as Go, cn as De, Button as ct, LevelDot as Zo, Sidebar as Xo, Badge as yr } from "@motiadev/ui";
4
+ import { useStreamItem as qo, useStreamGroup as xr } from "@motiadev/stream-client-react";
5
+ import * as br from "react-dom";
6
+ import Jo from "react-dom";
7
7
  var qe = { exports: {} }, We = {};
8
8
  /**
9
9
  * @license React
@@ -14,10 +14,10 @@ var qe = { exports: {} }, We = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var xn;
18
- function Xo() {
19
- if (xn) return We;
20
- xn = 1;
17
+ var wn;
18
+ function Ko() {
19
+ if (wn) return We;
20
+ wn = 1;
21
21
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
22
22
  function n(r, o, s) {
23
23
  var a = null;
@@ -46,9 +46,9 @@ var He = {};
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
48
  */
49
- var bn;
50
- function qo() {
51
- return bn || (bn = 1, process.env.NODE_ENV !== "production" && function() {
49
+ var jn;
50
+ function Qo() {
51
+ return jn || (jn = 1, process.env.NODE_ENV !== "production" && function() {
52
52
  function e(y) {
53
53
  if (y == null) return null;
54
54
  if (typeof y == "function")
@@ -155,12 +155,12 @@ function qo() {
155
155
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
156
  )), y = this.props.ref, y !== void 0 ? y : null;
157
157
  }
158
- function l(y, N, $, P, F, Z, Ie, se) {
159
- return $ = Z.ref, y = {
158
+ function l(y, N, $, P, F, G, Ie, oe) {
159
+ return $ = G.ref, y = {
160
160
  $$typeof: p,
161
161
  type: y,
162
162
  key: N,
163
- props: Z,
163
+ props: G,
164
164
  _owner: F
165
165
  }, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(y, "ref", {
166
166
  enumerable: !1,
@@ -184,10 +184,10 @@ function qo() {
184
184
  configurable: !1,
185
185
  enumerable: !1,
186
186
  writable: !0,
187
- value: se
187
+ value: oe
188
188
  }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
189
189
  }
190
- function f(y, N, $, P, F, Z, Ie, se) {
190
+ function f(y, N, $, P, F, G, Ie, oe) {
191
191
  var U = N.children;
192
192
  if (U !== void 0)
193
193
  if (P)
@@ -202,10 +202,10 @@ function qo() {
202
202
  else d(U);
203
203
  if (H.call(N, "key")) {
204
204
  U = e(y);
205
- var le = Object.keys(N).filter(function(wt) {
205
+ var ce = Object.keys(N).filter(function(wt) {
206
206
  return wt !== "key";
207
207
  });
208
- P = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", B[U + P] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
208
+ P = 0 < ce.length ? "{key: someKey, " + ce.join(": ..., ") + ": ...}" : "{key: someKey}", B[U + P] || (ce = 0 < ce.length ? "{" + ce.join(": ..., ") + ": ...}" : "{}", console.error(
209
209
  `A props object containing a "key" prop is being spread into JSX:
210
210
  let props = %s;
211
211
  <%s {...props} />
@@ -214,7 +214,7 @@ React keys must be passed directly to JSX without using spread:
214
214
  <%s key={someKey} {...props} />`,
215
215
  P,
216
216
  U,
217
- le,
217
+ ce,
218
218
  U
219
219
  ), B[U + P] = !0);
220
220
  }
@@ -229,12 +229,12 @@ React keys must be passed directly to JSX without using spread:
229
229
  ), l(
230
230
  y,
231
231
  U,
232
- Z,
232
+ G,
233
233
  F,
234
234
  o(),
235
235
  $,
236
236
  Ie,
237
- se
237
+ oe
238
238
  );
239
239
  }
240
240
  function d(y) {
@@ -253,7 +253,7 @@ React keys must be passed directly to JSX without using spread:
253
253
  s
254
254
  )(), O = M(r(s)), B = {};
255
255
  He.Fragment = g, He.jsx = function(y, N, $, P, F) {
256
- var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
256
+ var G = 1e4 > W.recentlyCreatedOwnerStacks++;
257
257
  return f(
258
258
  y,
259
259
  N,
@@ -261,11 +261,11 @@ React keys must be passed directly to JSX without using spread:
261
261
  !1,
262
262
  P,
263
263
  F,
264
- Z ? Error("react-stack-top-frame") : R,
265
- Z ? M(r(y)) : O
264
+ G ? Error("react-stack-top-frame") : R,
265
+ G ? M(r(y)) : O
266
266
  );
267
267
  }, He.jsxs = function(y, N, $, P, F) {
268
- var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
268
+ var G = 1e4 > W.recentlyCreatedOwnerStacks++;
269
269
  return f(
270
270
  y,
271
271
  N,
@@ -273,41 +273,41 @@ React keys must be passed directly to JSX without using spread:
273
273
  !0,
274
274
  P,
275
275
  F,
276
- Z ? Error("react-stack-top-frame") : R,
277
- Z ? M(r(y)) : O
276
+ G ? Error("react-stack-top-frame") : R,
277
+ G ? M(r(y)) : O
278
278
  );
279
279
  };
280
280
  }()), He;
281
281
  }
282
- var wn;
283
- function Jo() {
284
- return wn || (wn = 1, process.env.NODE_ENV === "production" ? qe.exports = Xo() : qe.exports = qo()), qe.exports;
282
+ var Cn;
283
+ function es() {
284
+ return Cn || (Cn = 1, process.env.NODE_ENV === "production" ? qe.exports = Ko() : qe.exports = Qo()), qe.exports;
285
285
  }
286
- var c = Jo();
286
+ var c = es();
287
287
  /**
288
- * @license lucide-react v0.545.0 - ISC
288
+ * @license lucide-react v0.548.0 - ISC
289
289
  *
290
290
  * This source code is licensed under the ISC license.
291
291
  * See the LICENSE file in the root directory of this source tree.
292
292
  */
293
- const Ko = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Qo = (e) => e.replace(
293
+ const ts = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ns = (e) => e.replace(
294
294
  /^([A-Z])|[\s-_]+(\w)/g,
295
295
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
296
- ), jn = (e) => {
297
- const t = Qo(e);
296
+ ), En = (e) => {
297
+ const t = ns(e);
298
298
  return t.charAt(0).toUpperCase() + t.slice(1);
299
- }, yr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), es = (e) => {
299
+ }, wr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), rs = (e) => {
300
300
  for (const t in e)
301
301
  if (t.startsWith("aria-") || t === "role" || t === "title")
302
302
  return !0;
303
303
  };
304
304
  /**
305
- * @license lucide-react v0.545.0 - ISC
305
+ * @license lucide-react v0.548.0 - ISC
306
306
  *
307
307
  * This source code is licensed under the ISC license.
308
308
  * See the LICENSE file in the root directory of this source tree.
309
309
  */
310
- var ts = {
310
+ var os = {
311
311
  xmlns: "http://www.w3.org/2000/svg",
312
312
  width: 24,
313
313
  height: 24,
@@ -319,12 +319,12 @@ var ts = {
319
319
  strokeLinejoin: "round"
320
320
  };
321
321
  /**
322
- * @license lucide-react v0.545.0 - ISC
322
+ * @license lucide-react v0.548.0 - ISC
323
323
  *
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
326
  */
327
- const ns = Kt(
327
+ const ss = Kt(
328
328
  ({
329
329
  color: e = "currentColor",
330
330
  size: t = 24,
@@ -338,13 +338,13 @@ const ns = Kt(
338
338
  "svg",
339
339
  {
340
340
  ref: u,
341
- ...ts,
341
+ ...os,
342
342
  width: t,
343
343
  height: t,
344
344
  stroke: e,
345
345
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
346
- className: yr("lucide", o),
347
- ...!s && !es(i) && { "aria-hidden": "true" },
346
+ className: wr("lucide", o),
347
+ ...!s && !rs(i) && { "aria-hidden": "true" },
348
348
  ...i
349
349
  },
350
350
  [
@@ -354,57 +354,57 @@ const ns = Kt(
354
354
  )
355
355
  );
356
356
  /**
357
- * @license lucide-react v0.545.0 - ISC
357
+ * @license lucide-react v0.548.0 - ISC
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
361
  */
362
- const J = (e, t) => {
362
+ const q = (e, t) => {
363
363
  const n = Kt(
364
- ({ className: r, ...o }, s) => kt(ns, {
364
+ ({ className: r, ...o }, s) => kt(ss, {
365
365
  ref: s,
366
366
  iconNode: t,
367
- className: yr(
368
- `lucide-${Ko(jn(e))}`,
367
+ className: wr(
368
+ `lucide-${ts(En(e))}`,
369
369
  `lucide-${e}`,
370
370
  r
371
371
  ),
372
372
  ...o
373
373
  })
374
374
  );
375
- return n.displayName = jn(e), n;
375
+ return n.displayName = En(e), n;
376
376
  };
377
377
  /**
378
- * @license lucide-react v0.545.0 - ISC
378
+ * @license lucide-react v0.548.0 - ISC
379
379
  *
380
380
  * This source code is licensed under the ISC license.
381
381
  * See the LICENSE file in the root directory of this source tree.
382
382
  */
383
- const rs = [
383
+ const as = [
384
384
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
385
385
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
386
- ], os = J("search", rs);
386
+ ], is = q("search", as);
387
387
  /**
388
- * @license lucide-react v0.545.0 - ISC
388
+ * @license lucide-react v0.548.0 - ISC
389
389
  *
390
390
  * This source code is licensed under the ISC license.
391
391
  * See the LICENSE file in the root directory of this source tree.
392
392
  */
393
- const ss = [
393
+ const cs = [
394
394
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
395
395
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
396
396
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
397
- ], as = J("trash", ss);
397
+ ], ls = q("trash", cs);
398
398
  /**
399
- * @license lucide-react v0.545.0 - ISC
399
+ * @license lucide-react v0.548.0 - ISC
400
400
  *
401
401
  * This source code is licensed under the ISC license.
402
402
  * See the LICENSE file in the root directory of this source tree.
403
403
  */
404
- const is = [
404
+ const us = [
405
405
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
406
406
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
407
- ], xr = J("x", is), Cn = (e) => {
407
+ ], jr = q("x", us), Sn = (e) => {
408
408
  let t;
409
409
  const n = /* @__PURE__ */ new Set(), r = (l, f) => {
410
410
  const d = typeof l == "function" ? l(t) : l;
@@ -414,8 +414,8 @@ const is = [
414
414
  }
415
415
  }, o = () => t, i = { setState: r, getState: o, getInitialState: () => u, subscribe: (l) => (n.add(l), () => n.delete(l)) }, u = t = e(r, o, i);
416
416
  return i;
417
- }, cs = (e) => e ? Cn(e) : Cn, ls = (e) => e;
418
- function us(e, t = ls) {
417
+ }, fs = (e) => e ? Sn(e) : Sn, ds = (e) => e;
418
+ function ms(e, t = ds) {
419
419
  const n = Pe.useSyncExternalStore(
420
420
  e.subscribe,
421
421
  Pe.useCallback(() => t(e.getState()), [e, t]),
@@ -423,10 +423,10 @@ function us(e, t = ls) {
423
423
  );
424
424
  return Pe.useDebugValue(n), n;
425
425
  }
426
- const fs = (e) => {
427
- const t = cs(e), n = (r) => us(t, r);
426
+ const ps = (e) => {
427
+ const t = fs(e), n = (r) => ms(t, r);
428
428
  return Object.assign(n, t), n;
429
- }, ds = (e) => fs, K = ds()((e) => ({
429
+ }, hs = (e) => ps, J = hs()((e) => ({
430
430
  selectedTraceGroupId: "",
431
431
  selectedTraceId: void 0,
432
432
  search: "",
@@ -436,12 +436,12 @@ const fs = (e) => {
436
436
  clearTraces: () => {
437
437
  fetch("/__motia/trace/clear", { method: "POST" });
438
438
  }
439
- })), br = V(() => {
440
- const e = K((r) => r.search), t = K((r) => r.setSearch), n = K((r) => r.clearTraces);
439
+ })), Cr = V(() => {
440
+ const e = J((r) => r.search), t = J((r) => r.setSearch), n = J((r) => r.clearTraces);
441
441
  return /* @__PURE__ */ c.jsxs("div", { className: "flex p-2 border-b gap-2", "data-testid": "logs-search-container", children: [
442
442
  /* @__PURE__ */ c.jsxs("div", { className: "flex-1 relative", children: [
443
443
  /* @__PURE__ */ c.jsx(
444
- Vo,
444
+ Go,
445
445
  {
446
446
  variant: "shade",
447
447
  value: e,
@@ -450,9 +450,9 @@ const fs = (e) => {
450
450
  placeholder: "Search by Trace ID or Step Name"
451
451
  }
452
452
  ),
453
- /* @__PURE__ */ c.jsx(os, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
453
+ /* @__PURE__ */ c.jsx(is, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
454
454
  /* @__PURE__ */ c.jsx(
455
- xr,
455
+ jr,
456
456
  {
457
457
  className: De(
458
458
  "cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground",
@@ -466,46 +466,46 @@ const fs = (e) => {
466
466
  )
467
467
  ] }),
468
468
  /* @__PURE__ */ c.jsxs(ct, { variant: "default", onClick: n, className: "h-[34px]", children: [
469
- /* @__PURE__ */ c.jsx(as, {}),
469
+ /* @__PURE__ */ c.jsx(ls, {}),
470
470
  " Clear"
471
471
  ] })
472
472
  ] });
473
473
  });
474
- br.displayName = "SearchBar";
475
- const wr = V(() => K((t) => t.selectedTraceGroupId) ? null : /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center h-full text-muted-foreground text-center", children: "Select a trace or trace group to view the timeline" }));
476
- wr.displayName = "TraceEmptyState";
474
+ Cr.displayName = "SearchBar";
475
+ const Er = V(() => J((t) => t.selectedTraceGroupId) ? null : /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center h-full text-muted-foreground text-center", children: "Select a trace or trace group to view the timeline" }));
476
+ Er.displayName = "TraceEmptyState";
477
477
  /**
478
- * @license lucide-react v0.545.0 - ISC
478
+ * @license lucide-react v0.548.0 - ISC
479
479
  *
480
480
  * This source code is licensed under the ISC license.
481
481
  * See the LICENSE file in the root directory of this source tree.
482
482
  */
483
- const ms = [["path", { d: "M5 12h14", key: "1ays0h" }]], ps = J("minus", ms);
483
+ const gs = [["path", { d: "M5 12h14", key: "1ays0h" }]], vs = q("minus", gs);
484
484
  /**
485
- * @license lucide-react v0.545.0 - ISC
485
+ * @license lucide-react v0.548.0 - ISC
486
486
  *
487
487
  * This source code is licensed under the ISC license.
488
488
  * See the LICENSE file in the root directory of this source tree.
489
489
  */
490
- const hs = [
490
+ const ys = [
491
491
  ["path", { d: "M5 12h14", key: "1ays0h" }],
492
492
  ["path", { d: "M12 5v14", key: "s699le" }]
493
- ], gs = J("plus", hs), vs = (e) => {
494
- const t = e?.endTime, [n, r] = G(() => t || Date.now());
493
+ ], xs = q("plus", ys), bs = (e) => {
494
+ const t = e?.endTime, [n, r] = Y(() => t || Date.now());
495
495
  return _e(() => {
496
496
  let o;
497
497
  return t ? t !== n && r(t) : o = setInterval(() => r(Date.now()), 100), () => clearInterval(o);
498
498
  }, [t, n]), n;
499
- }, we = (e) => e == null ? "N/A" : e < 1e3 ? `${e}ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)}s` : e < 36e5 ? `${(e / 6e4).toFixed(1)}min` : `${(e / 36e5).toFixed(1)}h`, ys = {
499
+ }, we = (e) => e == null ? "N/A" : e < 1e3 ? `${e}ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)}s` : e < 36e5 ? `${(e / 6e4).toFixed(1)}min` : `${(e / 36e5).toFixed(1)}h`, ws = {
500
500
  running: "bg-[repeating-linear-gradient(140deg,#BEFE29,#BEFE29_8px,#ABE625_8px,#ABE625_16px)]",
501
501
  completed: "bg-[repeating-linear-gradient(140deg,#2862FE,#2862FE_8px,#2358E5_8px,#2358E5_16px)]",
502
502
  failed: "bg-[repeating-linear-gradient(140deg,#EA2069,#EA2069_8px,#D41E60_8px,#D41E60_16px)]"
503
- }, jr = V(
503
+ }, Sr = V(
504
504
  ({ traceId: e, traceName: t, traceStatus: n, traceStartTime: r, traceEndTime: o, groupStartTime: s, groupEndTime: a, onExpand: i }) => {
505
- const u = de(() => {
505
+ const u = fe(() => {
506
506
  i(e);
507
507
  }, [i, e]), l = z(
508
- () => De("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", ys[n]),
508
+ () => De("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", ws[n]),
509
509
  [n]
510
510
  ), f = z(
511
511
  () => ({
@@ -528,14 +528,14 @@ const hs = [
528
528
  );
529
529
  }
530
530
  );
531
- jr.displayName = "TraceItem";
531
+ Sr.displayName = "TraceItem";
532
532
  /**
533
- * @license lucide-react v0.545.0 - ISC
533
+ * @license lucide-react v0.548.0 - ISC
534
534
  *
535
535
  * This source code is licensed under the ISC license.
536
536
  * See the LICENSE file in the root directory of this source tree.
537
537
  */
538
- const xs = [
538
+ const js = [
539
539
  [
540
540
  "path",
541
541
  {
@@ -543,14 +543,14 @@ const xs = [
543
543
  key: "1sd12s"
544
544
  }
545
545
  ]
546
- ], bs = J("message-circle", xs);
546
+ ], Cs = q("message-circle", js);
547
547
  /**
548
- * @license lucide-react v0.545.0 - ISC
548
+ * @license lucide-react v0.548.0 - ISC
549
549
  *
550
550
  * This source code is licensed under the ISC license.
551
551
  * See the LICENSE file in the root directory of this source tree.
552
552
  */
553
- const ws = [
553
+ const Es = [
554
554
  [
555
555
  "path",
556
556
  {
@@ -561,27 +561,27 @@ const ws = [
561
561
  ["path", { d: "M12 22V12", key: "d0xqtd" }],
562
562
  ["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
563
563
  ["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
564
- ], js = J("package", ws);
564
+ ], Ss = q("package", Es);
565
565
  /**
566
- * @license lucide-react v0.545.0 - ISC
566
+ * @license lucide-react v0.548.0 - ISC
567
567
  *
568
568
  * This source code is licensed under the ISC license.
569
569
  * See the LICENSE file in the root directory of this source tree.
570
570
  */
571
- const Cs = [
571
+ const As = [
572
572
  ["path", { d: "M16.247 7.761a6 6 0 0 1 0 8.478", key: "1fwjs5" }],
573
573
  ["path", { d: "M19.075 4.933a10 10 0 0 1 0 14.134", key: "ehdyv1" }],
574
574
  ["path", { d: "M4.925 19.067a10 10 0 0 1 0-14.134", key: "1q22gi" }],
575
575
  ["path", { d: "M7.753 16.239a6 6 0 0 1 0-8.478", key: "r2q7qm" }],
576
576
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }]
577
- ], Es = J("radio", Cs);
577
+ ], Ps = q("radio", As);
578
578
  /**
579
- * @license lucide-react v0.545.0 - ISC
579
+ * @license lucide-react v0.548.0 - ISC
580
580
  *
581
581
  * This source code is licensed under the ISC license.
582
582
  * See the LICENSE file in the root directory of this source tree.
583
583
  */
584
- const Ss = [
584
+ const Ns = [
585
585
  ["path", { d: "M15 12h-5", key: "r7krc0" }],
586
586
  ["path", { d: "M15 8h-5", key: "1khuty" }],
587
587
  ["path", { d: "M19 17V5a2 2 0 0 0-2-2H4", key: "zz82l3" }],
@@ -592,34 +592,34 @@ const Ss = [
592
592
  key: "1ph1d7"
593
593
  }
594
594
  ]
595
- ], As = J("scroll-text", Ss), Ps = ({ event: e }) => {
595
+ ], Os = q("scroll-text", Ns), Rs = ({ event: e }) => {
596
596
  if (e.type === "log")
597
- return /* @__PURE__ */ c.jsx(As, { className: "w-4 h-4 text-muted-foreground" });
597
+ return /* @__PURE__ */ c.jsx(Os, { className: "w-4 h-4 text-muted-foreground" });
598
598
  if (e.type === "emit")
599
- return /* @__PURE__ */ c.jsx(bs, { className: "w-4 h-4 text-muted-foreground" });
599
+ return /* @__PURE__ */ c.jsx(Cs, { className: "w-4 h-4 text-muted-foreground" });
600
600
  if (e.type === "state")
601
- return /* @__PURE__ */ c.jsx(js, { className: "w-4 h-4 text-muted-foreground" });
601
+ return /* @__PURE__ */ c.jsx(Ss, { className: "w-4 h-4 text-muted-foreground" });
602
602
  if (e.type === "stream")
603
- return /* @__PURE__ */ c.jsx(Es, { className: "w-4 h-4 text-muted-foreground" });
603
+ return /* @__PURE__ */ c.jsx(Ps, { className: "w-4 h-4 text-muted-foreground" });
604
604
  };
605
605
  /**
606
- * @license lucide-react v0.545.0 - ISC
606
+ * @license lucide-react v0.548.0 - ISC
607
607
  *
608
608
  * This source code is licensed under the ISC license.
609
609
  * See the LICENSE file in the root directory of this source tree.
610
610
  */
611
- const Ns = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Os = J("check", Ns);
611
+ const Ts = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], ks = q("check", Ts);
612
612
  /**
613
- * @license lucide-react v0.545.0 - ISC
613
+ * @license lucide-react v0.548.0 - ISC
614
614
  *
615
615
  * This source code is licensed under the ISC license.
616
616
  * See the LICENSE file in the root directory of this source tree.
617
617
  */
618
- const Rs = [
618
+ const Ms = [
619
619
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
620
620
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
621
- ], Ts = J("copy", Rs), Mt = ({ textToCopy: e, className: t, title: n }) => {
622
- const [r, o] = G(!1), s = de(async () => {
621
+ ], _s = q("copy", Ms), Mt = ({ textToCopy: e, className: t, title: n }) => {
622
+ const [r, o] = Y(!1), s = fe(async () => {
623
623
  try {
624
624
  await navigator.clipboard.writeText(e), o(!0), setTimeout(() => o(!1), 2e3);
625
625
  } catch (a) {
@@ -634,41 +634,41 @@ const Rs = [
634
634
  onClick: s,
635
635
  className: De("cursor-pointer p-3 rounded-full", t),
636
636
  title: n ?? (r ? "Copied!" : "Copy"),
637
- children: r ? /* @__PURE__ */ c.jsx(Os, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ c.jsx(Ts, { className: "w-4 h-4 text-gray-400" })
637
+ children: r ? /* @__PURE__ */ c.jsx(ks, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ c.jsx(_s, { className: "w-4 h-4 text-gray-400" })
638
638
  }
639
639
  );
640
640
  };
641
- function fe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
641
+ function ue(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
642
642
  return function(o) {
643
643
  if (e?.(o), n === !1 || !o.defaultPrevented)
644
644
  return t?.(o);
645
645
  };
646
646
  }
647
- function En(e, t) {
647
+ function An(e, t) {
648
648
  if (typeof e == "function")
649
649
  return e(t);
650
650
  e != null && (e.current = t);
651
651
  }
652
- function Cr(...e) {
652
+ function Ar(...e) {
653
653
  return (t) => {
654
654
  let n = !1;
655
655
  const r = e.map((o) => {
656
- const s = En(o, t);
656
+ const s = An(o, t);
657
657
  return !n && typeof s == "function" && (n = !0), s;
658
658
  });
659
659
  if (n)
660
660
  return () => {
661
661
  for (let o = 0; o < r.length; o++) {
662
662
  const s = r[o];
663
- typeof s == "function" ? s() : En(e[o], null);
663
+ typeof s == "function" ? s() : An(e[o], null);
664
664
  }
665
665
  };
666
666
  };
667
667
  }
668
668
  function ve(...e) {
669
- return m.useCallback(Cr(...e), e);
669
+ return m.useCallback(Ar(...e), e);
670
670
  }
671
- function Er(e, t = []) {
671
+ function Pr(e, t = []) {
672
672
  let n = [];
673
673
  function r(s, a) {
674
674
  const i = m.createContext(a), u = n.length;
@@ -696,9 +696,9 @@ function Er(e, t = []) {
696
696
  );
697
697
  };
698
698
  };
699
- return o.scopeName = e, [r, ks(o, ...t)];
699
+ return o.scopeName = e, [r, Ds(o, ...t)];
700
700
  }
701
- function ks(...e) {
701
+ function Ds(...e) {
702
702
  const t = e[0];
703
703
  if (e.length === 1) return t;
704
704
  const n = () => {
@@ -717,9 +717,9 @@ function ks(...e) {
717
717
  return n.scopeName = t.scopeName, n;
718
718
  }
719
719
  // @__NO_SIDE_EFFECTS__
720
- function Sr(e) {
721
- const t = /* @__PURE__ */ Ms(e), n = m.forwardRef((r, o) => {
722
- const { children: s, ...a } = r, i = m.Children.toArray(s), u = i.find(Ds);
720
+ function Nr(e) {
721
+ const t = /* @__PURE__ */ Fs(e), n = m.forwardRef((r, o) => {
722
+ const { children: s, ...a } = r, i = m.Children.toArray(s), u = i.find(Is);
723
723
  if (u) {
724
724
  const l = u.props.children, f = i.map((d) => d === u ? m.Children.count(l) > 1 ? m.Children.only(null) : m.isValidElement(l) ? l.props.children : null : d);
725
725
  return /* @__PURE__ */ c.jsx(t, { ...a, ref: o, children: m.isValidElement(l) ? m.cloneElement(l, void 0, f) : null });
@@ -729,22 +729,22 @@ function Sr(e) {
729
729
  return n.displayName = `${e}.Slot`, n;
730
730
  }
731
731
  // @__NO_SIDE_EFFECTS__
732
- function Ms(e) {
732
+ function Fs(e) {
733
733
  const t = m.forwardRef((n, r) => {
734
734
  const { children: o, ...s } = n;
735
735
  if (m.isValidElement(o)) {
736
- const a = Ls(o), i = Fs(s, o.props);
737
- return o.type !== m.Fragment && (i.ref = r ? Cr(r, a) : a), m.cloneElement(o, i);
736
+ const a = Ws(o), i = $s(s, o.props);
737
+ return o.type !== m.Fragment && (i.ref = r ? Ar(r, a) : a), m.cloneElement(o, i);
738
738
  }
739
739
  return m.Children.count(o) > 1 ? m.Children.only(null) : null;
740
740
  });
741
741
  return t.displayName = `${e}.SlotClone`, t;
742
742
  }
743
- var _s = Symbol("radix.slottable");
744
- function Ds(e) {
745
- return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === _s;
743
+ var Ls = Symbol("radix.slottable");
744
+ function Is(e) {
745
+ return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ls;
746
746
  }
747
- function Fs(e, t) {
747
+ function $s(e, t) {
748
748
  const n = { ...t };
749
749
  for (const r in t) {
750
750
  const o = e[r], s = t[r];
@@ -755,11 +755,11 @@ function Fs(e, t) {
755
755
  }
756
756
  return { ...e, ...n };
757
757
  }
758
- function Ls(e) {
758
+ function Ws(e) {
759
759
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
760
760
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
761
761
  }
762
- var Is = [
762
+ var Hs = [
763
763
  "a",
764
764
  "button",
765
765
  "div",
@@ -777,15 +777,15 @@ var Is = [
777
777
  "span",
778
778
  "svg",
779
779
  "ul"
780
- ], ce = Is.reduce((e, t) => {
781
- const n = /* @__PURE__ */ Sr(`Primitive.${t}`), r = m.forwardRef((o, s) => {
780
+ ], ie = Hs.reduce((e, t) => {
781
+ const n = /* @__PURE__ */ Nr(`Primitive.${t}`), r = m.forwardRef((o, s) => {
782
782
  const { asChild: a, ...i } = o, u = a ? n : t;
783
783
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(u, { ...i, ref: s });
784
784
  });
785
785
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
786
786
  }, {});
787
- function $s(e, t) {
788
- e && vr.flushSync(() => e.dispatchEvent(t));
787
+ function Bs(e, t) {
788
+ e && br.flushSync(() => e.dispatchEvent(t));
789
789
  }
790
790
  function Te(e) {
791
791
  const t = m.useRef(e);
@@ -793,7 +793,7 @@ function Te(e) {
793
793
  t.current = e;
794
794
  }), m.useMemo(() => (...n) => t.current?.(...n), []);
795
795
  }
796
- function Ws(e, t = globalThis?.document) {
796
+ function zs(e, t = globalThis?.document) {
797
797
  const n = Te(e);
798
798
  m.useEffect(() => {
799
799
  const r = (o) => {
@@ -802,11 +802,11 @@ function Ws(e, t = globalThis?.document) {
802
802
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
803
803
  }, [n, t]);
804
804
  }
805
- var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLayer.pointerDownOutside", zs = "dismissableLayer.focusOutside", Sn, Ar = m.createContext({
805
+ var Vs = "DismissableLayer", _t = "dismissableLayer.update", Us = "dismissableLayer.pointerDownOutside", Ys = "dismissableLayer.focusOutside", Pn, Or = m.createContext({
806
806
  layers: /* @__PURE__ */ new Set(),
807
807
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
808
808
  branches: /* @__PURE__ */ new Set()
809
- }), Pr = m.forwardRef(
809
+ }), Rr = m.forwardRef(
810
810
  (e, t) => {
811
811
  const {
812
812
  disableOutsidePointerEvents: n = !1,
@@ -816,27 +816,27 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
816
816
  onInteractOutside: a,
817
817
  onDismiss: i,
818
818
  ...u
819
- } = e, l = m.useContext(Ar), [f, d] = m.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, p] = m.useState({}), v = ve(t, (C) => d(C)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(x), S = f ? g.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= b, j = Ys((C) => {
819
+ } = e, l = m.useContext(Or), [f, d] = m.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, p] = m.useState({}), v = ve(t, (C) => d(C)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(x), S = f ? g.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= b, j = Xs((C) => {
820
820
  const T = C.target, k = [...l.branches].some((L) => L.contains(T));
821
821
  !w || k || (o?.(C), a?.(C), C.defaultPrevented || i?.());
822
- }, h), A = Gs((C) => {
822
+ }, h), A = qs((C) => {
823
823
  const T = C.target;
824
824
  [...l.branches].some((L) => L.contains(T)) || (s?.(C), a?.(C), C.defaultPrevented || i?.());
825
825
  }, h);
826
- return Ws((C) => {
826
+ return zs((C) => {
827
827
  S === l.layers.size - 1 && (r?.(C), !C.defaultPrevented && i && (C.preventDefault(), i()));
828
828
  }, h), m.useEffect(() => {
829
829
  if (f)
830
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Sn = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), An(), () => {
831
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Sn);
830
+ return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (Pn = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Nn(), () => {
831
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Pn);
832
832
  };
833
833
  }, [f, h, n, l]), m.useEffect(() => () => {
834
- f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), An());
834
+ f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Nn());
835
835
  }, [f, l]), m.useEffect(() => {
836
836
  const C = () => p({});
837
837
  return document.addEventListener(_t, C), () => document.removeEventListener(_t, C);
838
838
  }, []), /* @__PURE__ */ c.jsx(
839
- ce.div,
839
+ ie.div,
840
840
  {
841
841
  ...u,
842
842
  ref: v,
@@ -844,9 +844,9 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
844
844
  pointerEvents: E ? w ? "auto" : "none" : void 0,
845
845
  ...e.style
846
846
  },
847
- onFocusCapture: fe(e.onFocusCapture, A.onFocusCapture),
848
- onBlurCapture: fe(e.onBlurCapture, A.onBlurCapture),
849
- onPointerDownCapture: fe(
847
+ onFocusCapture: ue(e.onFocusCapture, A.onFocusCapture),
848
+ onBlurCapture: ue(e.onBlurCapture, A.onBlurCapture),
849
+ onPointerDownCapture: ue(
850
850
  e.onPointerDownCapture,
851
851
  j.onPointerDownCapture
852
852
  )
@@ -854,27 +854,27 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
854
854
  );
855
855
  }
856
856
  );
857
- Pr.displayName = Hs;
858
- var Vs = "DismissableLayerBranch", Us = m.forwardRef((e, t) => {
859
- const n = m.useContext(Ar), r = m.useRef(null), o = ve(t, r);
857
+ Rr.displayName = Vs;
858
+ var Gs = "DismissableLayerBranch", Zs = m.forwardRef((e, t) => {
859
+ const n = m.useContext(Or), r = m.useRef(null), o = ve(t, r);
860
860
  return m.useEffect(() => {
861
861
  const s = r.current;
862
862
  if (s)
863
863
  return n.branches.add(s), () => {
864
864
  n.branches.delete(s);
865
865
  };
866
- }, [n.branches]), /* @__PURE__ */ c.jsx(ce.div, { ...e, ref: o });
866
+ }, [n.branches]), /* @__PURE__ */ c.jsx(ie.div, { ...e, ref: o });
867
867
  });
868
- Us.displayName = Vs;
869
- function Ys(e, t = globalThis?.document) {
868
+ Zs.displayName = Gs;
869
+ function Xs(e, t = globalThis?.document) {
870
870
  const n = Te(e), r = m.useRef(!1), o = m.useRef(() => {
871
871
  });
872
872
  return m.useEffect(() => {
873
873
  const s = (i) => {
874
874
  if (i.target && !r.current) {
875
875
  let u = function() {
876
- Nr(
877
- Bs,
876
+ Tr(
877
+ Us,
878
878
  n,
879
879
  l,
880
880
  { discrete: !0 }
@@ -896,11 +896,11 @@ function Ys(e, t = globalThis?.document) {
896
896
  onPointerDownCapture: () => r.current = !0
897
897
  };
898
898
  }
899
- function Gs(e, t = globalThis?.document) {
899
+ function qs(e, t = globalThis?.document) {
900
900
  const n = Te(e), r = m.useRef(!1);
901
901
  return m.useEffect(() => {
902
902
  const o = (s) => {
903
- s.target && !r.current && Nr(zs, n, { originalEvent: s }, {
903
+ s.target && !r.current && Tr(Ys, n, { originalEvent: s }, {
904
904
  discrete: !1
905
905
  });
906
906
  };
@@ -910,28 +910,28 @@ function Gs(e, t = globalThis?.document) {
910
910
  onBlurCapture: () => r.current = !1
911
911
  };
912
912
  }
913
- function An() {
913
+ function Nn() {
914
914
  const e = new CustomEvent(_t);
915
915
  document.dispatchEvent(e);
916
916
  }
917
- function Nr(e, t, n, { discrete: r }) {
917
+ function Tr(e, t, n, { discrete: r }) {
918
918
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
919
- t && o.addEventListener(e, t, { once: !0 }), r ? $s(o, s) : o.dispatchEvent(s);
919
+ t && o.addEventListener(e, t, { once: !0 }), r ? Bs(o, s) : o.dispatchEvent(s);
920
920
  }
921
921
  var jt = 0;
922
- function Zs() {
922
+ function Js() {
923
923
  m.useEffect(() => {
924
924
  const e = document.querySelectorAll("[data-radix-focus-guard]");
925
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Pn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Pn()), jt++, () => {
925
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? On()), document.body.insertAdjacentElement("beforeend", e[1] ?? On()), jt++, () => {
926
926
  jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), jt--;
927
927
  };
928
928
  }, []);
929
929
  }
930
- function Pn() {
930
+ function On() {
931
931
  const e = document.createElement("span");
932
932
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
933
933
  }
934
- var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn = { bubbles: !1, cancelable: !0 }, Xs = "FocusScope", Or = m.forwardRef((e, t) => {
934
+ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Rn = { bubbles: !1, cancelable: !0 }, Ks = "FocusScope", kr = m.forwardRef((e, t) => {
935
935
  const {
936
936
  loop: n = !1,
937
937
  trapped: r = !1,
@@ -952,15 +952,15 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn
952
952
  let g = function(E) {
953
953
  if (p.paused || !i) return;
954
954
  const w = E.target;
955
- i.contains(w) ? d.current = w : ue(d.current, { select: !0 });
955
+ i.contains(w) ? d.current = w : le(d.current, { select: !0 });
956
956
  }, x = function(E) {
957
957
  if (p.paused || !i) return;
958
958
  const w = E.relatedTarget;
959
- w !== null && (i.contains(w) || ue(d.current, { select: !0 }));
959
+ w !== null && (i.contains(w) || le(d.current, { select: !0 }));
960
960
  }, b = function(E) {
961
961
  if (document.activeElement === document.body)
962
962
  for (const j of E)
963
- j.removedNodes.length > 0 && ue(i);
963
+ j.removedNodes.length > 0 && le(i);
964
964
  };
965
965
  document.addEventListener("focusin", g), document.addEventListener("focusout", x);
966
966
  const S = new MutationObserver(b);
@@ -970,16 +970,16 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn
970
970
  }
971
971
  }, [r, i, p.paused]), m.useEffect(() => {
972
972
  if (i) {
973
- Rn.add(p);
973
+ kn.add(p);
974
974
  const g = document.activeElement;
975
975
  if (!i.contains(g)) {
976
- const b = new CustomEvent(Ct, Nn);
977
- i.addEventListener(Ct, l), i.dispatchEvent(b), b.defaultPrevented || (qs(ta(Rr(i)), { select: !0 }), document.activeElement === g && ue(i));
976
+ const b = new CustomEvent(Ct, Rn);
977
+ i.addEventListener(Ct, l), i.dispatchEvent(b), b.defaultPrevented || (Qs(oa(Mr(i)), { select: !0 }), document.activeElement === g && le(i));
978
978
  }
979
979
  return () => {
980
980
  i.removeEventListener(Ct, l), setTimeout(() => {
981
- const b = new CustomEvent(Et, Nn);
982
- i.addEventListener(Et, f), i.dispatchEvent(b), b.defaultPrevented || ue(g ?? document.body, { select: !0 }), i.removeEventListener(Et, f), Rn.remove(p);
981
+ const b = new CustomEvent(Et, Rn);
982
+ i.addEventListener(Et, f), i.dispatchEvent(b), b.defaultPrevented || le(g ?? document.body, { select: !0 }), i.removeEventListener(Et, f), kn.remove(p);
983
983
  }, 0);
984
984
  };
985
985
  }
@@ -989,25 +989,25 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn
989
989
  if (!n && !r || p.paused) return;
990
990
  const x = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, b = document.activeElement;
991
991
  if (x && b) {
992
- const S = g.currentTarget, [E, w] = Js(S);
993
- E && w ? !g.shiftKey && b === w ? (g.preventDefault(), n && ue(E, { select: !0 })) : g.shiftKey && b === E && (g.preventDefault(), n && ue(w, { select: !0 })) : b === S && g.preventDefault();
992
+ const S = g.currentTarget, [E, w] = ea(S);
993
+ E && w ? !g.shiftKey && b === w ? (g.preventDefault(), n && le(E, { select: !0 })) : g.shiftKey && b === E && (g.preventDefault(), n && le(w, { select: !0 })) : b === S && g.preventDefault();
994
994
  }
995
995
  },
996
996
  [n, r, p.paused]
997
997
  );
998
- return /* @__PURE__ */ c.jsx(ce.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
998
+ return /* @__PURE__ */ c.jsx(ie.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
999
999
  });
1000
- Or.displayName = Xs;
1001
- function qs(e, { select: t = !1 } = {}) {
1000
+ kr.displayName = Ks;
1001
+ function Qs(e, { select: t = !1 } = {}) {
1002
1002
  const n = document.activeElement;
1003
1003
  for (const r of e)
1004
- if (ue(r, { select: t }), document.activeElement !== n) return;
1004
+ if (le(r, { select: t }), document.activeElement !== n) return;
1005
1005
  }
1006
- function Js(e) {
1007
- const t = Rr(e), n = On(t, e), r = On(t.reverse(), e);
1006
+ function ea(e) {
1007
+ const t = Mr(e), n = Tn(t, e), r = Tn(t.reverse(), e);
1008
1008
  return [n, r];
1009
1009
  }
1010
- function Rr(e) {
1010
+ function Mr(e) {
1011
1011
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
1012
1012
  acceptNode: (r) => {
1013
1013
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -1017,11 +1017,11 @@ function Rr(e) {
1017
1017
  for (; n.nextNode(); ) t.push(n.currentNode);
1018
1018
  return t;
1019
1019
  }
1020
- function On(e, t) {
1020
+ function Tn(e, t) {
1021
1021
  for (const n of e)
1022
- if (!Ks(n, { upTo: t })) return n;
1022
+ if (!ta(n, { upTo: t })) return n;
1023
1023
  }
1024
- function Ks(e, { upTo: t }) {
1024
+ function ta(e, { upTo: t }) {
1025
1025
  if (getComputedStyle(e).visibility === "hidden") return !0;
1026
1026
  for (; e; ) {
1027
1027
  if (t !== void 0 && e === t) return !1;
@@ -1030,63 +1030,63 @@ function Ks(e, { upTo: t }) {
1030
1030
  }
1031
1031
  return !1;
1032
1032
  }
1033
- function Qs(e) {
1033
+ function na(e) {
1034
1034
  return e instanceof HTMLInputElement && "select" in e;
1035
1035
  }
1036
- function ue(e, { select: t = !1 } = {}) {
1036
+ function le(e, { select: t = !1 } = {}) {
1037
1037
  if (e && e.focus) {
1038
1038
  const n = document.activeElement;
1039
- e.focus({ preventScroll: !0 }), e !== n && Qs(e) && t && e.select();
1039
+ e.focus({ preventScroll: !0 }), e !== n && na(e) && t && e.select();
1040
1040
  }
1041
1041
  }
1042
- var Rn = ea();
1043
- function ea() {
1042
+ var kn = ra();
1043
+ function ra() {
1044
1044
  let e = [];
1045
1045
  return {
1046
1046
  add(t) {
1047
1047
  const n = e[0];
1048
- t !== n && n?.pause(), e = Tn(e, t), e.unshift(t);
1048
+ t !== n && n?.pause(), e = Mn(e, t), e.unshift(t);
1049
1049
  },
1050
1050
  remove(t) {
1051
- e = Tn(e, t), e[0]?.resume();
1051
+ e = Mn(e, t), e[0]?.resume();
1052
1052
  }
1053
1053
  };
1054
1054
  }
1055
- function Tn(e, t) {
1055
+ function Mn(e, t) {
1056
1056
  const n = [...e], r = n.indexOf(t);
1057
1057
  return r !== -1 && n.splice(r, 1), n;
1058
1058
  }
1059
- function ta(e) {
1059
+ function oa(e) {
1060
1060
  return e.filter((t) => t.tagName !== "A");
1061
1061
  }
1062
- var me = globalThis?.document ? m.useLayoutEffect : () => {
1063
- }, na = m[" useId ".trim().toString()] || (() => {
1064
- }), ra = 0;
1065
- function oa(e) {
1066
- const [t, n] = m.useState(na());
1067
- return me(() => {
1068
- n((r) => r ?? String(ra++));
1062
+ var de = globalThis?.document ? m.useLayoutEffect : () => {
1063
+ }, sa = m[" useId ".trim().toString()] || (() => {
1064
+ }), aa = 0;
1065
+ function ia(e) {
1066
+ const [t, n] = m.useState(sa());
1067
+ return de(() => {
1068
+ n((r) => r ?? String(aa++));
1069
1069
  }, [e]), e || (t ? `radix-${t}` : "");
1070
1070
  }
1071
- const sa = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, lt = Math.round, Je = Math.floor, ne = (e) => ({
1071
+ const ca = ["top", "right", "bottom", "left"], me = Math.min, Z = Math.max, lt = Math.round, Je = Math.floor, te = (e) => ({
1072
1072
  x: e,
1073
1073
  y: e
1074
- }), aa = {
1074
+ }), la = {
1075
1075
  left: "right",
1076
1076
  right: "left",
1077
1077
  bottom: "top",
1078
1078
  top: "bottom"
1079
- }, ia = {
1079
+ }, ua = {
1080
1080
  start: "end",
1081
1081
  end: "start"
1082
1082
  };
1083
1083
  function Dt(e, t, n) {
1084
- return X(e, pe(t, n));
1084
+ return Z(e, me(t, n));
1085
1085
  }
1086
- function ae(e, t) {
1086
+ function se(e, t) {
1087
1087
  return typeof e == "function" ? e(t) : e;
1088
1088
  }
1089
- function ie(e) {
1089
+ function ae(e) {
1090
1090
  return e.split("-")[0];
1091
1091
  }
1092
1092
  function Fe(e) {
@@ -1098,26 +1098,26 @@ function en(e) {
1098
1098
  function tn(e) {
1099
1099
  return e === "y" ? "height" : "width";
1100
1100
  }
1101
- function he(e) {
1102
- return ["top", "bottom"].includes(ie(e)) ? "y" : "x";
1101
+ function pe(e) {
1102
+ return ["top", "bottom"].includes(ae(e)) ? "y" : "x";
1103
1103
  }
1104
1104
  function nn(e) {
1105
- return en(he(e));
1105
+ return en(pe(e));
1106
1106
  }
1107
- function ca(e, t, n) {
1107
+ function fa(e, t, n) {
1108
1108
  n === void 0 && (n = !1);
1109
1109
  const r = Fe(e), o = nn(e), s = tn(o);
1110
1110
  let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
1111
1111
  return t.reference[s] > t.floating[s] && (a = ut(a)), [a, ut(a)];
1112
1112
  }
1113
- function la(e) {
1113
+ function da(e) {
1114
1114
  const t = ut(e);
1115
1115
  return [Ft(e), t, Ft(t)];
1116
1116
  }
1117
1117
  function Ft(e) {
1118
- return e.replace(/start|end/g, (t) => ia[t]);
1118
+ return e.replace(/start|end/g, (t) => ua[t]);
1119
1119
  }
1120
- function ua(e, t, n) {
1120
+ function ma(e, t, n) {
1121
1121
  const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
1122
1122
  switch (e) {
1123
1123
  case "top":
@@ -1130,15 +1130,15 @@ function ua(e, t, n) {
1130
1130
  return [];
1131
1131
  }
1132
1132
  }
1133
- function fa(e, t, n, r) {
1133
+ function pa(e, t, n, r) {
1134
1134
  const o = Fe(e);
1135
- let s = ua(ie(e), n === "start", r);
1135
+ let s = ma(ae(e), n === "start", r);
1136
1136
  return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Ft)))), s;
1137
1137
  }
1138
1138
  function ut(e) {
1139
- return e.replace(/left|right|bottom|top/g, (t) => aa[t]);
1139
+ return e.replace(/left|right|bottom|top/g, (t) => la[t]);
1140
1140
  }
1141
- function da(e) {
1141
+ function ha(e) {
1142
1142
  return {
1143
1143
  top: 0,
1144
1144
  right: 0,
@@ -1147,8 +1147,8 @@ function da(e) {
1147
1147
  ...e
1148
1148
  };
1149
1149
  }
1150
- function Tr(e) {
1151
- return typeof e != "number" ? da(e) : {
1150
+ function _r(e) {
1151
+ return typeof e != "number" ? ha(e) : {
1152
1152
  top: e,
1153
1153
  right: e,
1154
1154
  bottom: e,
@@ -1173,12 +1173,12 @@ function ft(e) {
1173
1173
  y: n
1174
1174
  };
1175
1175
  }
1176
- function kn(e, t, n) {
1176
+ function _n(e, t, n) {
1177
1177
  let {
1178
1178
  reference: r,
1179
1179
  floating: o
1180
1180
  } = e;
1181
- const s = he(t), a = nn(t), i = tn(a), u = ie(t), l = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, h = r[i] / 2 - o[i] / 2;
1181
+ const s = pe(t), a = nn(t), i = tn(a), u = ae(t), l = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, h = r[i] / 2 - o[i] / 2;
1182
1182
  let p;
1183
1183
  switch (u) {
1184
1184
  case "top":
@@ -1221,7 +1221,7 @@ function kn(e, t, n) {
1221
1221
  }
1222
1222
  return p;
1223
1223
  }
1224
- const ma = async (e, t, n) => {
1224
+ const ga = async (e, t, n) => {
1225
1225
  const {
1226
1226
  placement: r = "bottom",
1227
1227
  strategy: o = "absolute",
@@ -1235,7 +1235,7 @@ const ma = async (e, t, n) => {
1235
1235
  }), {
1236
1236
  x: f,
1237
1237
  y: d
1238
- } = kn(l, r, u), h = r, p = {}, v = 0;
1238
+ } = _n(l, r, u), h = r, p = {}, v = 0;
1239
1239
  for (let g = 0; g < i.length; g++) {
1240
1240
  const {
1241
1241
  name: x,
@@ -1272,7 +1272,7 @@ const ma = async (e, t, n) => {
1272
1272
  }) : j.rects), {
1273
1273
  x: f,
1274
1274
  y: d
1275
- } = kn(l, h, u)), g = -1);
1275
+ } = _n(l, h, u)), g = -1);
1276
1276
  }
1277
1277
  return {
1278
1278
  x: f,
@@ -1298,7 +1298,7 @@ async function Ue(e, t) {
1298
1298
  elementContext: d = "floating",
1299
1299
  altBoundary: h = !1,
1300
1300
  padding: p = 0
1301
- } = ae(t, e), v = Tr(p), x = i[h ? d === "floating" ? "reference" : "floating" : d], b = ft(await s.getClippingRect({
1301
+ } = se(t, e), v = _r(p), x = i[h ? d === "floating" ? "reference" : "floating" : d], b = ft(await s.getClippingRect({
1302
1302
  element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
1303
1303
  boundary: l,
1304
1304
  rootBoundary: f,
@@ -1327,7 +1327,7 @@ async function Ue(e, t) {
1327
1327
  right: (j.right - b.right + v.right) / w.x
1328
1328
  };
1329
1329
  }
1330
- const pa = (e) => ({
1330
+ const va = (e) => ({
1331
1331
  name: "arrow",
1332
1332
  options: e,
1333
1333
  async fn(t) {
@@ -1342,16 +1342,16 @@ const pa = (e) => ({
1342
1342
  } = t, {
1343
1343
  element: l,
1344
1344
  padding: f = 0
1345
- } = ae(e, t) || {};
1345
+ } = se(e, t) || {};
1346
1346
  if (l == null)
1347
1347
  return {};
1348
- const d = Tr(f), h = {
1348
+ const d = _r(f), h = {
1349
1349
  x: n,
1350
1350
  y: r
1351
1351
  }, p = nn(o), v = tn(p), g = await a.getDimensions(l), x = p === "y", b = x ? "top" : "left", S = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[p] - h[p] - s.floating[v], j = h[p] - s.reference[p], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1352
1352
  let C = A ? A[E] : 0;
1353
1353
  (!C || !await (a.isElement == null ? void 0 : a.isElement(A))) && (C = i.floating[E] || s.floating[v]);
1354
- const T = w / 2 - j / 2, k = C / 2 - g[v] / 2 - 1, L = pe(d[b], k), W = pe(d[S], k), H = L, I = C - g[v] - W, M = C / 2 - g[v] / 2 + T, _ = Dt(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - g[v] / 2 < 0, R = D ? M < H ? M - H : M - I : 0;
1354
+ const T = w / 2 - j / 2, k = C / 2 - g[v] / 2 - 1, L = me(d[b], k), W = me(d[S], k), H = L, I = C - g[v] - W, M = C / 2 - g[v] / 2 + T, _ = Dt(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - g[v] / 2 < 0, R = D ? M < H ? M - H : M - I : 0;
1355
1355
  return {
1356
1356
  [p]: h[p] + R,
1357
1357
  data: {
@@ -1364,7 +1364,7 @@ const pa = (e) => ({
1364
1364
  reset: D
1365
1365
  };
1366
1366
  }
1367
- }), ha = function(e) {
1367
+ }), ya = function(e) {
1368
1368
  return e === void 0 && (e = {}), {
1369
1369
  name: "flip",
1370
1370
  options: e,
@@ -1385,15 +1385,15 @@ const pa = (e) => ({
1385
1385
  fallbackAxisSideDirection: v = "none",
1386
1386
  flipAlignment: g = !0,
1387
1387
  ...x
1388
- } = ae(e, t);
1388
+ } = se(e, t);
1389
1389
  if ((n = s.arrow) != null && n.alignmentOffset)
1390
1390
  return {};
1391
- const b = ie(o), S = he(i), E = ie(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j = h || (E || !g ? [ut(i)] : la(i)), A = v !== "none";
1392
- !h && A && j.push(...fa(i, g, v, w));
1391
+ const b = ae(o), S = pe(i), E = ae(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j = h || (E || !g ? [ut(i)] : da(i)), A = v !== "none";
1392
+ !h && A && j.push(...pa(i, g, v, w));
1393
1393
  const C = [i, ...j], T = await Ue(t, x), k = [];
1394
1394
  let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
1395
1395
  if (f && k.push(T[b]), d) {
1396
- const M = ca(o, a, w);
1396
+ const M = fa(o, a, w);
1397
1397
  k.push(T[M[0]], T[M[1]]);
1398
1398
  }
1399
1399
  if (L = [...L, {
@@ -1419,7 +1419,7 @@ const pa = (e) => ({
1419
1419
  var I;
1420
1420
  const R = (I = L.filter((O) => {
1421
1421
  if (A) {
1422
- const B = he(O.placement);
1422
+ const B = pe(O.placement);
1423
1423
  return B === S || // Create a bias to the `y` side axis due to horizontal
1424
1424
  // reading directions favoring greater width.
1425
1425
  B === "y";
@@ -1444,7 +1444,7 @@ const pa = (e) => ({
1444
1444
  }
1445
1445
  };
1446
1446
  };
1447
- function Mn(e, t) {
1447
+ function Dn(e, t) {
1448
1448
  return {
1449
1449
  top: e.top - t.height,
1450
1450
  right: e.right - t.width,
@@ -1452,10 +1452,10 @@ function Mn(e, t) {
1452
1452
  left: e.left - t.width
1453
1453
  };
1454
1454
  }
1455
- function _n(e) {
1456
- return sa.some((t) => e[t] >= 0);
1455
+ function Fn(e) {
1456
+ return ca.some((t) => e[t] >= 0);
1457
1457
  }
1458
- const ga = function(e) {
1458
+ const xa = function(e) {
1459
1459
  return e === void 0 && (e = {}), {
1460
1460
  name: "hide",
1461
1461
  options: e,
@@ -1465,17 +1465,17 @@ const ga = function(e) {
1465
1465
  } = t, {
1466
1466
  strategy: r = "referenceHidden",
1467
1467
  ...o
1468
- } = ae(e, t);
1468
+ } = se(e, t);
1469
1469
  switch (r) {
1470
1470
  case "referenceHidden": {
1471
1471
  const s = await Ue(t, {
1472
1472
  ...o,
1473
1473
  elementContext: "reference"
1474
- }), a = Mn(s, n.reference);
1474
+ }), a = Dn(s, n.reference);
1475
1475
  return {
1476
1476
  data: {
1477
1477
  referenceHiddenOffsets: a,
1478
- referenceHidden: _n(a)
1478
+ referenceHidden: Fn(a)
1479
1479
  }
1480
1480
  };
1481
1481
  }
@@ -1483,11 +1483,11 @@ const ga = function(e) {
1483
1483
  const s = await Ue(t, {
1484
1484
  ...o,
1485
1485
  altBoundary: !0
1486
- }), a = Mn(s, n.floating);
1486
+ }), a = Dn(s, n.floating);
1487
1487
  return {
1488
1488
  data: {
1489
1489
  escapedOffsets: a,
1490
- escaped: _n(a)
1490
+ escaped: Fn(a)
1491
1491
  }
1492
1492
  };
1493
1493
  }
@@ -1497,12 +1497,12 @@ const ga = function(e) {
1497
1497
  }
1498
1498
  };
1499
1499
  };
1500
- async function va(e, t) {
1500
+ async function ba(e, t) {
1501
1501
  const {
1502
1502
  placement: n,
1503
1503
  platform: r,
1504
1504
  elements: o
1505
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = ie(n), i = Fe(n), u = he(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = s && u ? -1 : 1, d = ae(t, e);
1505
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = ae(n), i = Fe(n), u = pe(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = s && u ? -1 : 1, d = se(t, e);
1506
1506
  let {
1507
1507
  mainAxis: h,
1508
1508
  crossAxis: p,
@@ -1524,7 +1524,7 @@ async function va(e, t) {
1524
1524
  y: p * f
1525
1525
  };
1526
1526
  }
1527
- const ya = function(e) {
1527
+ const wa = function(e) {
1528
1528
  return e === void 0 && (e = 0), {
1529
1529
  name: "offset",
1530
1530
  options: e,
@@ -1535,7 +1535,7 @@ const ya = function(e) {
1535
1535
  y: s,
1536
1536
  placement: a,
1537
1537
  middlewareData: i
1538
- } = t, u = await va(t, e);
1538
+ } = t, u = await ba(t, e);
1539
1539
  return a === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
1540
1540
  x: o + u.x,
1541
1541
  y: s + u.y,
@@ -1546,7 +1546,7 @@ const ya = function(e) {
1546
1546
  };
1547
1547
  }
1548
1548
  };
1549
- }, xa = function(e) {
1549
+ }, ja = function(e) {
1550
1550
  return e === void 0 && (e = {}), {
1551
1551
  name: "shift",
1552
1552
  options: e,
@@ -1571,10 +1571,10 @@ const ya = function(e) {
1571
1571
  }
1572
1572
  },
1573
1573
  ...u
1574
- } = ae(e, t), l = {
1574
+ } = se(e, t), l = {
1575
1575
  x: n,
1576
1576
  y: r
1577
- }, f = await Ue(t, u), d = he(ie(o)), h = en(d);
1577
+ }, f = await Ue(t, u), d = pe(ae(o)), h = en(d);
1578
1578
  let p = l[h], v = l[d];
1579
1579
  if (s) {
1580
1580
  const x = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", S = p + f[x], E = p - f[b];
@@ -1602,7 +1602,7 @@ const ya = function(e) {
1602
1602
  };
1603
1603
  }
1604
1604
  };
1605
- }, ba = function(e) {
1605
+ }, Ca = function(e) {
1606
1606
  return e === void 0 && (e = {}), {
1607
1607
  options: e,
1608
1608
  fn(t) {
@@ -1616,12 +1616,12 @@ const ya = function(e) {
1616
1616
  offset: i = 0,
1617
1617
  mainAxis: u = !0,
1618
1618
  crossAxis: l = !0
1619
- } = ae(e, t), f = {
1619
+ } = se(e, t), f = {
1620
1620
  x: n,
1621
1621
  y: r
1622
- }, d = he(o), h = en(d);
1622
+ }, d = pe(o), h = en(d);
1623
1623
  let p = f[h], v = f[d];
1624
- const g = ae(i, t), x = typeof g == "number" ? {
1624
+ const g = se(i, t), x = typeof g == "number" ? {
1625
1625
  mainAxis: g,
1626
1626
  crossAxis: 0
1627
1627
  } : {
@@ -1635,7 +1635,7 @@ const ya = function(e) {
1635
1635
  }
1636
1636
  if (l) {
1637
1637
  var b, S;
1638
- const E = h === "y" ? "width" : "height", w = ["top", "left"].includes(ie(o)), j = s.reference[d] - s.floating[E] + (w && ((b = a.offset) == null ? void 0 : b[d]) || 0) + (w ? 0 : x.crossAxis), A = s.reference[d] + s.reference[E] + (w ? 0 : ((S = a.offset) == null ? void 0 : S[d]) || 0) - (w ? x.crossAxis : 0);
1638
+ const E = h === "y" ? "width" : "height", w = ["top", "left"].includes(ae(o)), j = s.reference[d] - s.floating[E] + (w && ((b = a.offset) == null ? void 0 : b[d]) || 0) + (w ? 0 : x.crossAxis), A = s.reference[d] + s.reference[E] + (w ? 0 : ((S = a.offset) == null ? void 0 : S[d]) || 0) - (w ? x.crossAxis : 0);
1639
1639
  v < j ? v = j : v > A && (v = A);
1640
1640
  }
1641
1641
  return {
@@ -1644,7 +1644,7 @@ const ya = function(e) {
1644
1644
  };
1645
1645
  }
1646
1646
  };
1647
- }, wa = function(e) {
1647
+ }, Ea = function(e) {
1648
1648
  return e === void 0 && (e = {}), {
1649
1649
  name: "size",
1650
1650
  options: e,
@@ -1659,17 +1659,17 @@ const ya = function(e) {
1659
1659
  apply: u = () => {
1660
1660
  },
1661
1661
  ...l
1662
- } = ae(e, t), f = await Ue(t, l), d = ie(o), h = Fe(o), p = he(o) === "y", {
1662
+ } = se(e, t), f = await Ue(t, l), d = ae(o), h = Fe(o), p = pe(o) === "y", {
1663
1663
  width: v,
1664
1664
  height: g
1665
1665
  } = s.floating;
1666
1666
  let x, b;
1667
1667
  d === "top" || d === "bottom" ? (x = d, b = h === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (b = d, x = h === "end" ? "top" : "bottom");
1668
- const S = g - f.top - f.bottom, E = v - f.left - f.right, w = pe(g - f[x], S), j = pe(v - f[b], E), A = !t.middlewareData.shift;
1668
+ const S = g - f.top - f.bottom, E = v - f.left - f.right, w = me(g - f[x], S), j = me(v - f[b], E), A = !t.middlewareData.shift;
1669
1669
  let C = w, T = j;
1670
1670
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = S), A && !h) {
1671
- const L = X(f.left, 0), W = X(f.right, 0), H = X(f.top, 0), I = X(f.bottom, 0);
1672
- p ? T = v - 2 * (L !== 0 || W !== 0 ? L + W : X(f.left, f.right)) : C = g - 2 * (H !== 0 || I !== 0 ? H + I : X(f.top, f.bottom));
1671
+ const L = Z(f.left, 0), W = Z(f.right, 0), H = Z(f.top, 0), I = Z(f.bottom, 0);
1672
+ p ? T = v - 2 * (L !== 0 || W !== 0 ? L + W : Z(f.left, f.right)) : C = g - 2 * (H !== 0 || I !== 0 ? H + I : Z(f.top, f.bottom));
1673
1673
  }
1674
1674
  await u({
1675
1675
  ...t,
@@ -1689,27 +1689,27 @@ function mt() {
1689
1689
  return typeof window < "u";
1690
1690
  }
1691
1691
  function Le(e) {
1692
- return kr(e) ? (e.nodeName || "").toLowerCase() : "#document";
1692
+ return Dr(e) ? (e.nodeName || "").toLowerCase() : "#document";
1693
1693
  }
1694
- function q(e) {
1694
+ function X(e) {
1695
1695
  var t;
1696
1696
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1697
1697
  }
1698
- function oe(e) {
1698
+ function re(e) {
1699
1699
  var t;
1700
- return (t = (kr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1700
+ return (t = (Dr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1701
1701
  }
1702
- function kr(e) {
1703
- return mt() ? e instanceof Node || e instanceof q(e).Node : !1;
1702
+ function Dr(e) {
1703
+ return mt() ? e instanceof Node || e instanceof X(e).Node : !1;
1704
1704
  }
1705
- function Q(e) {
1706
- return mt() ? e instanceof Element || e instanceof q(e).Element : !1;
1705
+ function K(e) {
1706
+ return mt() ? e instanceof Element || e instanceof X(e).Element : !1;
1707
1707
  }
1708
- function re(e) {
1709
- return mt() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
1708
+ function ne(e) {
1709
+ return mt() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
1710
1710
  }
1711
- function Dn(e) {
1712
- return !mt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
1711
+ function Ln(e) {
1712
+ return !mt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
1713
1713
  }
1714
1714
  function Ge(e) {
1715
1715
  const {
@@ -1717,10 +1717,10 @@ function Ge(e) {
1717
1717
  overflowX: n,
1718
1718
  overflowY: r,
1719
1719
  display: o
1720
- } = ee(e);
1720
+ } = Q(e);
1721
1721
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
1722
1722
  }
1723
- function ja(e) {
1723
+ function Sa(e) {
1724
1724
  return ["table", "td", "th"].includes(Le(e));
1725
1725
  }
1726
1726
  function pt(e) {
@@ -1733,17 +1733,17 @@ function pt(e) {
1733
1733
  });
1734
1734
  }
1735
1735
  function rn(e) {
1736
- const t = on(), n = Q(e) ? ee(e) : e;
1736
+ const t = on(), n = K(e) ? Q(e) : e;
1737
1737
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1738
1738
  }
1739
- function Ca(e) {
1740
- let t = ge(e);
1741
- for (; re(t) && !ke(t); ) {
1739
+ function Aa(e) {
1740
+ let t = he(e);
1741
+ for (; ne(t) && !ke(t); ) {
1742
1742
  if (rn(t))
1743
1743
  return t;
1744
1744
  if (pt(t))
1745
1745
  return null;
1746
- t = ge(t);
1746
+ t = he(t);
1747
1747
  }
1748
1748
  return null;
1749
1749
  }
@@ -1753,11 +1753,11 @@ function on() {
1753
1753
  function ke(e) {
1754
1754
  return ["html", "body", "#document"].includes(Le(e));
1755
1755
  }
1756
- function ee(e) {
1757
- return q(e).getComputedStyle(e);
1756
+ function Q(e) {
1757
+ return X(e).getComputedStyle(e);
1758
1758
  }
1759
1759
  function ht(e) {
1760
- return Q(e) ? {
1760
+ return K(e) ? {
1761
1761
  scrollLeft: e.scrollLeft,
1762
1762
  scrollTop: e.scrollTop
1763
1763
  } : {
@@ -1765,26 +1765,26 @@ function ht(e) {
1765
1765
  scrollTop: e.scrollY
1766
1766
  };
1767
1767
  }
1768
- function ge(e) {
1768
+ function he(e) {
1769
1769
  if (Le(e) === "html")
1770
1770
  return e;
1771
1771
  const t = (
1772
1772
  // Step into the shadow DOM of the parent of a slotted node.
1773
1773
  e.assignedSlot || // DOM Element detected.
1774
1774
  e.parentNode || // ShadowRoot detected.
1775
- Dn(e) && e.host || // Fallback.
1776
- oe(e)
1775
+ Ln(e) && e.host || // Fallback.
1776
+ re(e)
1777
1777
  );
1778
- return Dn(t) ? t.host : t;
1778
+ return Ln(t) ? t.host : t;
1779
1779
  }
1780
- function Mr(e) {
1781
- const t = ge(e);
1782
- return ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : re(t) && Ge(t) ? t : Mr(t);
1780
+ function Fr(e) {
1781
+ const t = he(e);
1782
+ return ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ne(t) && Ge(t) ? t : Fr(t);
1783
1783
  }
1784
1784
  function Ye(e, t, n) {
1785
1785
  var r;
1786
1786
  t === void 0 && (t = []), n === void 0 && (n = !0);
1787
- const o = Mr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = q(o);
1787
+ const o = Fr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = X(o);
1788
1788
  if (s) {
1789
1789
  const i = Lt(a);
1790
1790
  return t.concat(a, a.visualViewport || [], Ge(o) ? o : [], i && n ? Ye(i) : []);
@@ -1794,10 +1794,10 @@ function Ye(e, t, n) {
1794
1794
  function Lt(e) {
1795
1795
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1796
1796
  }
1797
- function _r(e) {
1798
- const t = ee(e);
1797
+ function Lr(e) {
1798
+ const t = Q(e);
1799
1799
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1800
- const o = re(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = lt(n) !== s || lt(r) !== a;
1800
+ const o = ne(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = lt(n) !== s || lt(r) !== a;
1801
1801
  return i && (n = s, r = a), {
1802
1802
  width: n,
1803
1803
  height: r,
@@ -1805,47 +1805,47 @@ function _r(e) {
1805
1805
  };
1806
1806
  }
1807
1807
  function sn(e) {
1808
- return Q(e) ? e : e.contextElement;
1808
+ return K(e) ? e : e.contextElement;
1809
1809
  }
1810
1810
  function Ne(e) {
1811
1811
  const t = sn(e);
1812
- if (!re(t))
1813
- return ne(1);
1812
+ if (!ne(t))
1813
+ return te(1);
1814
1814
  const n = t.getBoundingClientRect(), {
1815
1815
  width: r,
1816
1816
  height: o,
1817
1817
  $: s
1818
- } = _r(t);
1818
+ } = Lr(t);
1819
1819
  let a = (s ? lt(n.width) : n.width) / r, i = (s ? lt(n.height) : n.height) / o;
1820
1820
  return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
1821
1821
  x: a,
1822
1822
  y: i
1823
1823
  };
1824
1824
  }
1825
- const Ea = /* @__PURE__ */ ne(0);
1826
- function Dr(e) {
1827
- const t = q(e);
1828
- return !on() || !t.visualViewport ? Ea : {
1825
+ const Pa = /* @__PURE__ */ te(0);
1826
+ function Ir(e) {
1827
+ const t = X(e);
1828
+ return !on() || !t.visualViewport ? Pa : {
1829
1829
  x: t.visualViewport.offsetLeft,
1830
1830
  y: t.visualViewport.offsetTop
1831
1831
  };
1832
1832
  }
1833
- function Sa(e, t, n) {
1834
- return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
1833
+ function Na(e, t, n) {
1834
+ return t === void 0 && (t = !1), !n || t && n !== X(e) ? !1 : t;
1835
1835
  }
1836
1836
  function je(e, t, n, r) {
1837
1837
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1838
1838
  const o = e.getBoundingClientRect(), s = sn(e);
1839
- let a = ne(1);
1840
- t && (r ? Q(r) && (a = Ne(r)) : a = Ne(e));
1841
- const i = Sa(s, n, r) ? Dr(s) : ne(0);
1839
+ let a = te(1);
1840
+ t && (r ? K(r) && (a = Ne(r)) : a = Ne(e));
1841
+ const i = Na(s, n, r) ? Ir(s) : te(0);
1842
1842
  let u = (o.left + i.x) / a.x, l = (o.top + i.y) / a.y, f = o.width / a.x, d = o.height / a.y;
1843
1843
  if (s) {
1844
- const h = q(s), p = r && Q(r) ? q(r) : r;
1844
+ const h = X(s), p = r && K(r) ? X(r) : r;
1845
1845
  let v = h, g = Lt(v);
1846
1846
  for (; g && r && p !== v; ) {
1847
- const x = Ne(g), b = g.getBoundingClientRect(), S = ee(g), E = b.left + (g.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (g.clientTop + parseFloat(S.paddingTop)) * x.y;
1848
- u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(g), g = Lt(v);
1847
+ const x = Ne(g), b = g.getBoundingClientRect(), S = Q(g), E = b.left + (g.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (g.clientTop + parseFloat(S.paddingTop)) * x.y;
1848
+ u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = X(g), g = Lt(v);
1849
1849
  }
1850
1850
  }
1851
1851
  return ft({
@@ -1857,9 +1857,9 @@ function je(e, t, n, r) {
1857
1857
  }
1858
1858
  function an(e, t) {
1859
1859
  const n = ht(e).scrollLeft;
1860
- return t ? t.left + n : je(oe(e)).left + n;
1860
+ return t ? t.left + n : je(re(e)).left + n;
1861
1861
  }
1862
- function Fr(e, t, n) {
1862
+ function $r(e, t, n) {
1863
1863
  n === void 0 && (n = !1);
1864
1864
  const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
1865
1865
  // RTL <body> scrollbar.
@@ -1870,26 +1870,26 @@ function Fr(e, t, n) {
1870
1870
  y: s
1871
1871
  };
1872
1872
  }
1873
- function Aa(e) {
1873
+ function Oa(e) {
1874
1874
  let {
1875
1875
  elements: t,
1876
1876
  rect: n,
1877
1877
  offsetParent: r,
1878
1878
  strategy: o
1879
1879
  } = e;
1880
- const s = o === "fixed", a = oe(r), i = t ? pt(t.floating) : !1;
1880
+ const s = o === "fixed", a = re(r), i = t ? pt(t.floating) : !1;
1881
1881
  if (r === a || i && s)
1882
1882
  return n;
1883
1883
  let u = {
1884
1884
  scrollLeft: 0,
1885
1885
  scrollTop: 0
1886
- }, l = ne(1);
1887
- const f = ne(0), d = re(r);
1888
- if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = ht(r)), re(r))) {
1886
+ }, l = te(1);
1887
+ const f = te(0), d = ne(r);
1888
+ if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = ht(r)), ne(r))) {
1889
1889
  const p = je(r);
1890
1890
  l = Ne(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
1891
1891
  }
1892
- const h = a && !d && !s ? Fr(a, u, !0) : ne(0);
1892
+ const h = a && !d && !s ? $r(a, u, !0) : te(0);
1893
1893
  return {
1894
1894
  width: n.width * l.x,
1895
1895
  height: n.height * l.y,
@@ -1897,22 +1897,22 @@ function Aa(e) {
1897
1897
  y: n.y * l.y - u.scrollTop * l.y + f.y + h.y
1898
1898
  };
1899
1899
  }
1900
- function Pa(e) {
1900
+ function Ra(e) {
1901
1901
  return Array.from(e.getClientRects());
1902
1902
  }
1903
- function Na(e) {
1904
- const t = oe(e), n = ht(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1903
+ function Ta(e) {
1904
+ const t = re(e), n = ht(e), r = e.ownerDocument.body, o = Z(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Z(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1905
1905
  let a = -n.scrollLeft + an(e);
1906
1906
  const i = -n.scrollTop;
1907
- return ee(r).direction === "rtl" && (a += X(t.clientWidth, r.clientWidth) - o), {
1907
+ return Q(r).direction === "rtl" && (a += Z(t.clientWidth, r.clientWidth) - o), {
1908
1908
  width: o,
1909
1909
  height: s,
1910
1910
  x: a,
1911
1911
  y: i
1912
1912
  };
1913
1913
  }
1914
- function Oa(e, t) {
1915
- const n = q(e), r = oe(e), o = n.visualViewport;
1914
+ function ka(e, t) {
1915
+ const n = X(e), r = re(e), o = n.visualViewport;
1916
1916
  let s = r.clientWidth, a = r.clientHeight, i = 0, u = 0;
1917
1917
  if (o) {
1918
1918
  s = o.width, a = o.height;
@@ -1926,8 +1926,8 @@ function Oa(e, t) {
1926
1926
  y: u
1927
1927
  };
1928
1928
  }
1929
- function Ra(e, t) {
1930
- const n = je(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = re(e) ? Ne(e) : ne(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, u = o * s.x, l = r * s.y;
1929
+ function Ma(e, t) {
1930
+ const n = je(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = ne(e) ? Ne(e) : te(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, u = o * s.x, l = r * s.y;
1931
1931
  return {
1932
1932
  width: a,
1933
1933
  height: i,
@@ -1935,16 +1935,16 @@ function Ra(e, t) {
1935
1935
  y: l
1936
1936
  };
1937
1937
  }
1938
- function Fn(e, t, n) {
1938
+ function In(e, t, n) {
1939
1939
  let r;
1940
1940
  if (t === "viewport")
1941
- r = Oa(e, n);
1941
+ r = ka(e, n);
1942
1942
  else if (t === "document")
1943
- r = Na(oe(e));
1944
- else if (Q(t))
1945
- r = Ra(t, n);
1943
+ r = Ta(re(e));
1944
+ else if (K(t))
1945
+ r = Ma(t, n);
1946
1946
  else {
1947
- const o = Dr(e);
1947
+ const o = Ir(e);
1948
1948
  r = {
1949
1949
  x: t.x - o.x,
1950
1950
  y: t.y - o.y,
@@ -1954,34 +1954,34 @@ function Fn(e, t, n) {
1954
1954
  }
1955
1955
  return ft(r);
1956
1956
  }
1957
- function Lr(e, t) {
1958
- const n = ge(e);
1959
- return n === t || !Q(n) || ke(n) ? !1 : ee(n).position === "fixed" || Lr(n, t);
1957
+ function Wr(e, t) {
1958
+ const n = he(e);
1959
+ return n === t || !K(n) || ke(n) ? !1 : Q(n).position === "fixed" || Wr(n, t);
1960
1960
  }
1961
- function Ta(e, t) {
1961
+ function _a(e, t) {
1962
1962
  const n = t.get(e);
1963
1963
  if (n)
1964
1964
  return n;
1965
- let r = Ye(e, [], !1).filter((i) => Q(i) && Le(i) !== "body"), o = null;
1966
- const s = ee(e).position === "fixed";
1967
- let a = s ? ge(e) : e;
1968
- for (; Q(a) && !ke(a); ) {
1969
- const i = ee(a), u = rn(a);
1970
- !u && i.position === "fixed" && (o = null), (s ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ge(a) && !u && Lr(e, a)) ? r = r.filter((f) => f !== a) : o = i, a = ge(a);
1965
+ let r = Ye(e, [], !1).filter((i) => K(i) && Le(i) !== "body"), o = null;
1966
+ const s = Q(e).position === "fixed";
1967
+ let a = s ? he(e) : e;
1968
+ for (; K(a) && !ke(a); ) {
1969
+ const i = Q(a), u = rn(a);
1970
+ !u && i.position === "fixed" && (o = null), (s ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ge(a) && !u && Wr(e, a)) ? r = r.filter((f) => f !== a) : o = i, a = he(a);
1971
1971
  }
1972
1972
  return t.set(e, r), r;
1973
1973
  }
1974
- function ka(e) {
1974
+ function Da(e) {
1975
1975
  let {
1976
1976
  element: t,
1977
1977
  boundary: n,
1978
1978
  rootBoundary: r,
1979
1979
  strategy: o
1980
1980
  } = e;
1981
- const a = [...n === "clippingAncestors" ? pt(t) ? [] : Ta(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((l, f) => {
1982
- const d = Fn(t, f, o);
1983
- return l.top = X(d.top, l.top), l.right = pe(d.right, l.right), l.bottom = pe(d.bottom, l.bottom), l.left = X(d.left, l.left), l;
1984
- }, Fn(t, i, o));
1981
+ const a = [...n === "clippingAncestors" ? pt(t) ? [] : _a(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((l, f) => {
1982
+ const d = In(t, f, o);
1983
+ return l.top = Z(d.top, l.top), l.right = me(d.right, l.right), l.bottom = me(d.bottom, l.bottom), l.left = Z(d.left, l.left), l;
1984
+ }, In(t, i, o));
1985
1985
  return {
1986
1986
  width: u.right - u.left,
1987
1987
  height: u.bottom - u.top,
@@ -1989,29 +1989,29 @@ function ka(e) {
1989
1989
  y: u.top
1990
1990
  };
1991
1991
  }
1992
- function Ma(e) {
1992
+ function Fa(e) {
1993
1993
  const {
1994
1994
  width: t,
1995
1995
  height: n
1996
- } = _r(e);
1996
+ } = Lr(e);
1997
1997
  return {
1998
1998
  width: t,
1999
1999
  height: n
2000
2000
  };
2001
2001
  }
2002
- function _a(e, t, n) {
2003
- const r = re(t), o = oe(t), s = n === "fixed", a = je(e, !0, s, t);
2002
+ function La(e, t, n) {
2003
+ const r = ne(t), o = re(t), s = n === "fixed", a = je(e, !0, s, t);
2004
2004
  let i = {
2005
2005
  scrollLeft: 0,
2006
2006
  scrollTop: 0
2007
2007
  };
2008
- const u = ne(0);
2008
+ const u = te(0);
2009
2009
  if (r || !r && !s)
2010
2010
  if ((Le(t) !== "body" || Ge(o)) && (i = ht(t)), r) {
2011
2011
  const h = je(t, !0, s, t);
2012
2012
  u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
2013
2013
  } else o && (u.x = an(o));
2014
- const l = o && !r && !s ? Fr(o, i) : ne(0), f = a.left + i.scrollLeft - u.x - l.x, d = a.top + i.scrollTop - u.y - l.y;
2014
+ const l = o && !r && !s ? $r(o, i) : te(0), f = a.left + i.scrollLeft - u.x - l.x, d = a.top + i.scrollTop - u.y - l.y;
2015
2015
  return {
2016
2016
  x: f,
2017
2017
  y: d,
@@ -2020,38 +2020,38 @@ function _a(e, t, n) {
2020
2020
  };
2021
2021
  }
2022
2022
  function St(e) {
2023
- return ee(e).position === "static";
2023
+ return Q(e).position === "static";
2024
2024
  }
2025
- function Ln(e, t) {
2026
- if (!re(e) || ee(e).position === "fixed")
2025
+ function $n(e, t) {
2026
+ if (!ne(e) || Q(e).position === "fixed")
2027
2027
  return null;
2028
2028
  if (t)
2029
2029
  return t(e);
2030
2030
  let n = e.offsetParent;
2031
- return oe(e) === n && (n = n.ownerDocument.body), n;
2031
+ return re(e) === n && (n = n.ownerDocument.body), n;
2032
2032
  }
2033
- function Ir(e, t) {
2034
- const n = q(e);
2033
+ function Hr(e, t) {
2034
+ const n = X(e);
2035
2035
  if (pt(e))
2036
2036
  return n;
2037
- if (!re(e)) {
2038
- let o = ge(e);
2037
+ if (!ne(e)) {
2038
+ let o = he(e);
2039
2039
  for (; o && !ke(o); ) {
2040
- if (Q(o) && !St(o))
2040
+ if (K(o) && !St(o))
2041
2041
  return o;
2042
- o = ge(o);
2042
+ o = he(o);
2043
2043
  }
2044
2044
  return n;
2045
2045
  }
2046
- let r = Ln(e, t);
2047
- for (; r && ja(r) && St(r); )
2048
- r = Ln(r, t);
2049
- return r && ke(r) && St(r) && !rn(r) ? n : r || Ca(e) || n;
2046
+ let r = $n(e, t);
2047
+ for (; r && Sa(r) && St(r); )
2048
+ r = $n(r, t);
2049
+ return r && ke(r) && St(r) && !rn(r) ? n : r || Aa(e) || n;
2050
2050
  }
2051
- const Da = async function(e) {
2052
- const t = this.getOffsetParent || Ir, n = this.getDimensions, r = await n(e.floating);
2051
+ const Ia = async function(e) {
2052
+ const t = this.getOffsetParent || Hr, n = this.getDimensions, r = await n(e.floating);
2053
2053
  return {
2054
- reference: _a(e.reference, await t(e.floating), e.strategy),
2054
+ reference: La(e.reference, await t(e.floating), e.strategy),
2055
2055
  floating: {
2056
2056
  x: 0,
2057
2057
  y: 0,
@@ -2060,27 +2060,27 @@ const Da = async function(e) {
2060
2060
  }
2061
2061
  };
2062
2062
  };
2063
- function Fa(e) {
2064
- return ee(e).direction === "rtl";
2065
- }
2066
- const La = {
2067
- convertOffsetParentRelativeRectToViewportRelativeRect: Aa,
2068
- getDocumentElement: oe,
2069
- getClippingRect: ka,
2070
- getOffsetParent: Ir,
2071
- getElementRects: Da,
2072
- getClientRects: Pa,
2073
- getDimensions: Ma,
2063
+ function $a(e) {
2064
+ return Q(e).direction === "rtl";
2065
+ }
2066
+ const Wa = {
2067
+ convertOffsetParentRelativeRectToViewportRelativeRect: Oa,
2068
+ getDocumentElement: re,
2069
+ getClippingRect: Da,
2070
+ getOffsetParent: Hr,
2071
+ getElementRects: Ia,
2072
+ getClientRects: Ra,
2073
+ getDimensions: Fa,
2074
2074
  getScale: Ne,
2075
- isElement: Q,
2076
- isRTL: Fa
2075
+ isElement: K,
2076
+ isRTL: $a
2077
2077
  };
2078
- function $r(e, t) {
2078
+ function Br(e, t) {
2079
2079
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
2080
2080
  }
2081
- function Ia(e, t) {
2081
+ function Ha(e, t) {
2082
2082
  let n = null, r;
2083
- const o = oe(e);
2083
+ const o = re(e);
2084
2084
  function s() {
2085
2085
  var i;
2086
2086
  clearTimeout(r), (i = n) == null || i.disconnect(), n = null;
@@ -2097,7 +2097,7 @@ function Ia(e, t) {
2097
2097
  return;
2098
2098
  const v = Je(d), g = Je(o.clientWidth - (f + h)), x = Je(o.clientHeight - (d + p)), b = Je(f), E = {
2099
2099
  rootMargin: -v + "px " + -g + "px " + -x + "px " + -b + "px",
2100
- threshold: X(0, pe(1, u)) || 1
2100
+ threshold: Z(0, me(1, u)) || 1
2101
2101
  };
2102
2102
  let w = !0;
2103
2103
  function j(A) {
@@ -2109,7 +2109,7 @@ function Ia(e, t) {
2109
2109
  a(!1, 1e-7);
2110
2110
  }, 1e3);
2111
2111
  }
2112
- C === 1 && !$r(l, e.getBoundingClientRect()) && a(), w = !1;
2112
+ C === 1 && !Br(l, e.getBoundingClientRect()) && a(), w = !1;
2113
2113
  }
2114
2114
  try {
2115
2115
  n = new IntersectionObserver(j, {
@@ -2124,7 +2124,7 @@ function Ia(e, t) {
2124
2124
  }
2125
2125
  return a(!0), s;
2126
2126
  }
2127
- function $a(e, t, n, r) {
2127
+ function Ba(e, t, n, r) {
2128
2128
  r === void 0 && (r = {});
2129
2129
  const {
2130
2130
  ancestorScroll: o = !0,
@@ -2138,7 +2138,7 @@ function $a(e, t, n, r) {
2138
2138
  passive: !0
2139
2139
  }), s && b.addEventListener("resize", n);
2140
2140
  });
2141
- const d = l && i ? Ia(l, n) : null;
2141
+ const d = l && i ? Ha(l, n) : null;
2142
2142
  let h = -1, p = null;
2143
2143
  a && (p = new ResizeObserver((b) => {
2144
2144
  let [S] = b;
@@ -2151,7 +2151,7 @@ function $a(e, t, n, r) {
2151
2151
  u && x();
2152
2152
  function x() {
2153
2153
  const b = je(e);
2154
- g && !$r(g, b) && n(), g = b, v = requestAnimationFrame(x);
2154
+ g && !Br(g, b) && n(), g = b, v = requestAnimationFrame(x);
2155
2155
  }
2156
2156
  return n(), () => {
2157
2157
  var b;
@@ -2160,20 +2160,20 @@ function $a(e, t, n, r) {
2160
2160
  }), d?.(), (b = p) == null || b.disconnect(), p = null, u && cancelAnimationFrame(v);
2161
2161
  };
2162
2162
  }
2163
- const Wa = ya, Ha = xa, Ba = ha, za = wa, Va = ga, In = pa, Ua = ba, Ya = (e, t, n) => {
2163
+ const za = wa, Va = ja, Ua = ya, Ya = Ea, Ga = xa, Wn = va, Za = Ca, Xa = (e, t, n) => {
2164
2164
  const r = /* @__PURE__ */ new Map(), o = {
2165
- platform: La,
2165
+ platform: Wa,
2166
2166
  ...n
2167
2167
  }, s = {
2168
2168
  ...o.platform,
2169
2169
  _c: r
2170
2170
  };
2171
- return ma(e, t, {
2171
+ return ga(e, t, {
2172
2172
  ...o,
2173
2173
  platform: s
2174
2174
  });
2175
2175
  };
2176
- var ot = typeof document < "u" ? Ho : _e;
2176
+ var ot = typeof document < "u" ? Vo : _e;
2177
2177
  function dt(e, t) {
2178
2178
  if (e === t)
2179
2179
  return !0;
@@ -2204,11 +2204,11 @@ function dt(e, t) {
2204
2204
  }
2205
2205
  return e !== e && t !== t;
2206
2206
  }
2207
- function Wr(e) {
2207
+ function zr(e) {
2208
2208
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
2209
2209
  }
2210
- function $n(e, t) {
2211
- const n = Wr(e);
2210
+ function Hn(e, t) {
2211
+ const n = zr(e);
2212
2212
  return Math.round(t * n) / n;
2213
2213
  }
2214
2214
  function At(e) {
@@ -2217,7 +2217,7 @@ function At(e) {
2217
2217
  t.current = e;
2218
2218
  }), t;
2219
2219
  }
2220
- function Ga(e) {
2220
+ function qa(e) {
2221
2221
  e === void 0 && (e = {});
2222
2222
  const {
2223
2223
  placement: t = "bottom",
@@ -2252,7 +2252,7 @@ function Ga(e) {
2252
2252
  strategy: n,
2253
2253
  middleware: h
2254
2254
  };
2255
- W.current && (O.platform = W.current), Ya(A.current, C.current, O).then((B) => {
2255
+ W.current && (O.platform = W.current), Xa(A.current, C.current, O).then((B) => {
2256
2256
  const y = {
2257
2257
  ...B,
2258
2258
  // The floating element's position may be recomputed while it's closed
@@ -2261,7 +2261,7 @@ function Ga(e) {
2261
2261
  // setting it to `true` when `open === false` (must be specified).
2262
2262
  isPositioned: H.current !== !1
2263
2263
  };
2264
- M.current && !dt(T.current, y) && (T.current = y, vr.flushSync(() => {
2264
+ M.current && !dt(T.current, y) && (T.current = y, br.flushSync(() => {
2265
2265
  d(y);
2266
2266
  }));
2267
2267
  });
@@ -2298,11 +2298,11 @@ function Ga(e) {
2298
2298
  };
2299
2299
  if (!D.floating)
2300
2300
  return O;
2301
- const B = $n(D.floating, f.x), y = $n(D.floating, f.y);
2301
+ const B = Hn(D.floating, f.x), y = Hn(D.floating, f.y);
2302
2302
  return i ? {
2303
2303
  ...O,
2304
2304
  transform: "translate(" + B + "px, " + y + "px)",
2305
- ...Wr(D.floating) >= 1.5 && {
2305
+ ...zr(D.floating) >= 1.5 && {
2306
2306
  willChange: "transform"
2307
2307
  }
2308
2308
  } : {
@@ -2319,7 +2319,7 @@ function Ga(e) {
2319
2319
  floatingStyles: R
2320
2320
  }), [f, I, _, D, R]);
2321
2321
  }
2322
- const Za = (e) => {
2322
+ const Ja = (e) => {
2323
2323
  function t(n) {
2324
2324
  return {}.hasOwnProperty.call(n, "current");
2325
2325
  }
@@ -2331,41 +2331,41 @@ const Za = (e) => {
2331
2331
  element: r,
2332
2332
  padding: o
2333
2333
  } = typeof e == "function" ? e(n) : e;
2334
- return r && t(r) ? r.current != null ? In({
2334
+ return r && t(r) ? r.current != null ? Wn({
2335
2335
  element: r.current,
2336
2336
  padding: o
2337
- }).fn(n) : {} : r ? In({
2337
+ }).fn(n) : {} : r ? Wn({
2338
2338
  element: r,
2339
2339
  padding: o
2340
2340
  }).fn(n) : {};
2341
2341
  }
2342
2342
  };
2343
- }, Xa = (e, t) => ({
2344
- ...Wa(e),
2345
- options: [e, t]
2346
- }), qa = (e, t) => ({
2347
- ...Ha(e),
2348
- options: [e, t]
2349
- }), Ja = (e, t) => ({
2350
- ...Ua(e),
2351
- options: [e, t]
2352
- }), Ka = (e, t) => ({
2353
- ...Ba(e),
2343
+ }, Ka = (e, t) => ({
2344
+ ...za(e),
2354
2345
  options: [e, t]
2355
2346
  }), Qa = (e, t) => ({
2356
- ...za(e),
2347
+ ...Va(e),
2357
2348
  options: [e, t]
2358
2349
  }), ei = (e, t) => ({
2359
- ...Va(e),
2350
+ ...Za(e),
2360
2351
  options: [e, t]
2361
2352
  }), ti = (e, t) => ({
2362
- ...Za(e),
2353
+ ...Ua(e),
2354
+ options: [e, t]
2355
+ }), ni = (e, t) => ({
2356
+ ...Ya(e),
2357
+ options: [e, t]
2358
+ }), ri = (e, t) => ({
2359
+ ...Ga(e),
2360
+ options: [e, t]
2361
+ }), oi = (e, t) => ({
2362
+ ...Ja(e),
2363
2363
  options: [e, t]
2364
2364
  });
2365
- var ni = "Arrow", Hr = m.forwardRef((e, t) => {
2365
+ var si = "Arrow", Vr = m.forwardRef((e, t) => {
2366
2366
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
2367
2367
  return /* @__PURE__ */ c.jsx(
2368
- ce.svg,
2368
+ ie.svg,
2369
2369
  {
2370
2370
  ...s,
2371
2371
  ref: t,
@@ -2377,11 +2377,11 @@ var ni = "Arrow", Hr = m.forwardRef((e, t) => {
2377
2377
  }
2378
2378
  );
2379
2379
  });
2380
- Hr.displayName = ni;
2381
- var ri = Hr;
2382
- function oi(e) {
2380
+ Vr.displayName = si;
2381
+ var ai = Vr;
2382
+ function ii(e) {
2383
2383
  const [t, n] = m.useState(void 0);
2384
- return me(() => {
2384
+ return de(() => {
2385
2385
  if (e) {
2386
2386
  n({ width: e.offsetWidth, height: e.offsetHeight });
2387
2387
  const r = new ResizeObserver((o) => {
@@ -2401,22 +2401,22 @@ function oi(e) {
2401
2401
  n(void 0);
2402
2402
  }, [e]), t;
2403
2403
  }
2404
- var cn = "Popper", [Br, zr] = Er(cn), [si, Vr] = Br(cn), Ur = (e) => {
2404
+ var cn = "Popper", [Ur, Yr] = Pr(cn), [ci, Gr] = Ur(cn), Zr = (e) => {
2405
2405
  const { __scopePopper: t, children: n } = e, [r, o] = m.useState(null);
2406
- return /* @__PURE__ */ c.jsx(si, { scope: t, anchor: r, onAnchorChange: o, children: n });
2406
+ return /* @__PURE__ */ c.jsx(ci, { scope: t, anchor: r, onAnchorChange: o, children: n });
2407
2407
  };
2408
- Ur.displayName = cn;
2409
- var Yr = "PopperAnchor", Gr = m.forwardRef(
2408
+ Zr.displayName = cn;
2409
+ var Xr = "PopperAnchor", qr = m.forwardRef(
2410
2410
  (e, t) => {
2411
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = Vr(Yr, n), a = m.useRef(null), i = ve(t, a), u = m.useRef(null);
2411
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = Gr(Xr, n), a = m.useRef(null), i = ve(t, a), u = m.useRef(null);
2412
2412
  return m.useEffect(() => {
2413
2413
  const l = u.current;
2414
2414
  u.current = r?.current || a.current, l !== u.current && s.onAnchorChange(u.current);
2415
- }), r ? null : /* @__PURE__ */ c.jsx(ce.div, { ...o, ref: i });
2415
+ }), r ? null : /* @__PURE__ */ c.jsx(ie.div, { ...o, ref: i });
2416
2416
  }
2417
2417
  );
2418
- Gr.displayName = Yr;
2419
- var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2418
+ qr.displayName = Xr;
2419
+ var ln = "PopperContent", [li, ui] = Ur(ln), Jr = m.forwardRef(
2420
2420
  (e, t) => {
2421
2421
  const {
2422
2422
  __scopePopper: n,
@@ -2433,47 +2433,47 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2433
2433
  updatePositionStrategy: p = "optimized",
2434
2434
  onPlaced: v,
2435
2435
  ...g
2436
- } = e, x = Vr(ln, n), [b, S] = m.useState(null), E = ve(t, (se) => S(se)), [w, j] = m.useState(null), A = oi(w), C = A?.width ?? 0, T = A?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], H = W.length > 0, I = {
2436
+ } = e, x = Gr(ln, n), [b, S] = m.useState(null), E = ve(t, (oe) => S(oe)), [w, j] = m.useState(null), A = ii(w), C = A?.width ?? 0, T = A?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], H = W.length > 0, I = {
2437
2437
  padding: L,
2438
- boundary: W.filter(li),
2438
+ boundary: W.filter(di),
2439
2439
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2440
2440
  altBoundary: H
2441
- }, { refs: M, floatingStyles: _, placement: D, isPositioned: R, middlewareData: O } = Ga({
2441
+ }, { refs: M, floatingStyles: _, placement: D, isPositioned: R, middlewareData: O } = qa({
2442
2442
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2443
2443
  strategy: "fixed",
2444
2444
  placement: k,
2445
- whileElementsMounted: (...se) => $a(...se, {
2445
+ whileElementsMounted: (...oe) => Ba(...oe, {
2446
2446
  animationFrame: p === "always"
2447
2447
  }),
2448
2448
  elements: {
2449
2449
  reference: x.anchor
2450
2450
  },
2451
2451
  middleware: [
2452
- Xa({ mainAxis: o + T, alignmentAxis: a }),
2453
- u && qa({
2452
+ Ka({ mainAxis: o + T, alignmentAxis: a }),
2453
+ u && Qa({
2454
2454
  mainAxis: !0,
2455
2455
  crossAxis: !1,
2456
- limiter: d === "partial" ? Ja() : void 0,
2456
+ limiter: d === "partial" ? ei() : void 0,
2457
2457
  ...I
2458
2458
  }),
2459
- u && Ka({ ...I }),
2460
- Qa({
2459
+ u && ti({ ...I }),
2460
+ ni({
2461
2461
  ...I,
2462
- apply: ({ elements: se, rects: U, availableWidth: le, availableHeight: $e }) => {
2463
- const { width: wt, height: Wo } = U.reference, Xe = se.floating.style;
2464
- Xe.setProperty("--radix-popper-available-width", `${le}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${wt}px`), Xe.setProperty("--radix-popper-anchor-height", `${Wo}px`);
2462
+ apply: ({ elements: oe, rects: U, availableWidth: ce, availableHeight: $e }) => {
2463
+ const { width: wt, height: zo } = U.reference, Xe = oe.floating.style;
2464
+ Xe.setProperty("--radix-popper-available-width", `${ce}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${wt}px`), Xe.setProperty("--radix-popper-anchor-height", `${zo}px`);
2465
2465
  }
2466
2466
  }),
2467
- w && ti({ element: w, padding: i }),
2468
- ui({ arrowWidth: C, arrowHeight: T }),
2469
- h && ei({ strategy: "referenceHidden", ...I })
2467
+ w && oi({ element: w, padding: i }),
2468
+ mi({ arrowWidth: C, arrowHeight: T }),
2469
+ h && ri({ strategy: "referenceHidden", ...I })
2470
2470
  ]
2471
- }), [B, y] = Jr(D), N = Te(v);
2472
- me(() => {
2471
+ }), [B, y] = eo(D), N = Te(v);
2472
+ de(() => {
2473
2473
  R && N?.();
2474
2474
  }, [R, N]);
2475
- const $ = O.arrow?.x, P = O.arrow?.y, F = O.arrow?.centerOffset !== 0, [Z, Ie] = m.useState();
2476
- return me(() => {
2475
+ const $ = O.arrow?.x, P = O.arrow?.y, F = O.arrow?.centerOffset !== 0, [G, Ie] = m.useState();
2476
+ return de(() => {
2477
2477
  b && Ie(window.getComputedStyle(b).zIndex);
2478
2478
  }, [b]), /* @__PURE__ */ c.jsx(
2479
2479
  "div",
@@ -2485,7 +2485,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2485
2485
  transform: R ? _.transform : "translate(0, -200%)",
2486
2486
  // keep off the page when measuring
2487
2487
  minWidth: "max-content",
2488
- zIndex: Z,
2488
+ zIndex: G,
2489
2489
  "--radix-popper-transform-origin": [
2490
2490
  O.transformOrigin?.x,
2491
2491
  O.transformOrigin?.y
@@ -2500,7 +2500,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2500
2500
  },
2501
2501
  dir: e.dir,
2502
2502
  children: /* @__PURE__ */ c.jsx(
2503
- ai,
2503
+ li,
2504
2504
  {
2505
2505
  scope: n,
2506
2506
  placedSide: B,
@@ -2509,7 +2509,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2509
2509
  arrowY: P,
2510
2510
  shouldHideArrow: F,
2511
2511
  children: /* @__PURE__ */ c.jsx(
2512
- ce.div,
2512
+ ie.div,
2513
2513
  {
2514
2514
  "data-side": B,
2515
2515
  "data-align": y,
@@ -2529,14 +2529,14 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2529
2529
  );
2530
2530
  }
2531
2531
  );
2532
- Zr.displayName = ln;
2533
- var Xr = "PopperArrow", ci = {
2532
+ Jr.displayName = ln;
2533
+ var Kr = "PopperArrow", fi = {
2534
2534
  top: "bottom",
2535
2535
  right: "left",
2536
2536
  bottom: "top",
2537
2537
  left: "right"
2538
- }, qr = m.forwardRef(function(t, n) {
2539
- const { __scopePopper: r, ...o } = t, s = ii(Xr, r), a = ci[s.placedSide];
2538
+ }, Qr = m.forwardRef(function(t, n) {
2539
+ const { __scopePopper: r, ...o } = t, s = ui(Kr, r), a = fi[s.placedSide];
2540
2540
  return (
2541
2541
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2542
2542
  // doesn't report size as we'd expect on SVG elements.
@@ -2565,7 +2565,7 @@ var Xr = "PopperArrow", ci = {
2565
2565
  visibility: s.shouldHideArrow ? "hidden" : void 0
2566
2566
  },
2567
2567
  children: /* @__PURE__ */ c.jsx(
2568
- ri,
2568
+ ai,
2569
2569
  {
2570
2570
  ...o,
2571
2571
  ref: n,
@@ -2580,40 +2580,40 @@ var Xr = "PopperArrow", ci = {
2580
2580
  )
2581
2581
  );
2582
2582
  });
2583
- qr.displayName = Xr;
2584
- function li(e) {
2583
+ Qr.displayName = Kr;
2584
+ function di(e) {
2585
2585
  return e !== null;
2586
2586
  }
2587
- var ui = (e) => ({
2587
+ var mi = (e) => ({
2588
2588
  name: "transformOrigin",
2589
2589
  options: e,
2590
2590
  fn(t) {
2591
- const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Jr(n), d = { start: "0%", center: "50%", end: "100%" }[f], h = (o.arrow?.x ?? 0) + i / 2, p = (o.arrow?.y ?? 0) + u / 2;
2591
+ const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = eo(n), d = { start: "0%", center: "50%", end: "100%" }[f], h = (o.arrow?.x ?? 0) + i / 2, p = (o.arrow?.y ?? 0) + u / 2;
2592
2592
  let v = "", g = "";
2593
2593
  return l === "bottom" ? (v = a ? d : `${h}px`, g = `${-u}px`) : l === "top" ? (v = a ? d : `${h}px`, g = `${r.floating.height + u}px`) : l === "right" ? (v = `${-u}px`, g = a ? d : `${p}px`) : l === "left" && (v = `${r.floating.width + u}px`, g = a ? d : `${p}px`), { data: { x: v, y: g } };
2594
2594
  }
2595
2595
  });
2596
- function Jr(e) {
2596
+ function eo(e) {
2597
2597
  const [t, n = "center"] = e.split("-");
2598
2598
  return [t, n];
2599
2599
  }
2600
- var fi = Ur, Kr = Gr, di = Zr, mi = qr, pi = "Portal", Qr = m.forwardRef((e, t) => {
2600
+ var pi = Zr, to = qr, hi = Jr, gi = Qr, vi = "Portal", no = m.forwardRef((e, t) => {
2601
2601
  const { container: n, ...r } = e, [o, s] = m.useState(!1);
2602
- me(() => s(!0), []);
2602
+ de(() => s(!0), []);
2603
2603
  const a = n || o && globalThis?.document?.body;
2604
- return a ? Zo.createPortal(/* @__PURE__ */ c.jsx(ce.div, { ...r, ref: t }), a) : null;
2604
+ return a ? Jo.createPortal(/* @__PURE__ */ c.jsx(ie.div, { ...r, ref: t }), a) : null;
2605
2605
  });
2606
- Qr.displayName = pi;
2607
- function hi(e, t) {
2606
+ no.displayName = vi;
2607
+ function yi(e, t) {
2608
2608
  return m.useReducer((n, r) => t[n][r] ?? n, e);
2609
2609
  }
2610
2610
  var un = (e) => {
2611
- const { present: t, children: n } = e, r = gi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ve(r.ref, vi(o));
2611
+ const { present: t, children: n } = e, r = xi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ve(r.ref, bi(o));
2612
2612
  return typeof n == "function" || r.isPresent ? m.cloneElement(o, { ref: s }) : null;
2613
2613
  };
2614
2614
  un.displayName = "Presence";
2615
- function gi(e) {
2616
- const [t, n] = m.useState(), r = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, u] = hi(a, {
2615
+ function xi(e) {
2616
+ const [t, n] = m.useState(), r = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, u] = yi(a, {
2617
2617
  mounted: {
2618
2618
  UNMOUNT: "unmounted",
2619
2619
  ANIMATION_OUT: "unmountSuspended"
@@ -2629,13 +2629,13 @@ function gi(e) {
2629
2629
  return m.useEffect(() => {
2630
2630
  const l = Ke(r.current);
2631
2631
  s.current = i === "mounted" ? l : "none";
2632
- }, [i]), me(() => {
2632
+ }, [i]), de(() => {
2633
2633
  const l = r.current, f = o.current;
2634
2634
  if (f !== e) {
2635
2635
  const h = s.current, p = Ke(l);
2636
2636
  e ? u("MOUNT") : p === "none" || l?.display === "none" ? u("UNMOUNT") : u(f && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2637
2637
  }
2638
- }, [e, u]), me(() => {
2638
+ }, [e, u]), de(() => {
2639
2639
  if (t) {
2640
2640
  let l;
2641
2641
  const f = t.ownerDocument.defaultView ?? window, d = (p) => {
@@ -2664,19 +2664,19 @@ function gi(e) {
2664
2664
  function Ke(e) {
2665
2665
  return e?.animationName || "none";
2666
2666
  }
2667
- function vi(e) {
2667
+ function bi(e) {
2668
2668
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
2669
2669
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2670
2670
  }
2671
- var yi = m[" useInsertionEffect ".trim().toString()] || me;
2672
- function xi({
2671
+ var wi = m[" useInsertionEffect ".trim().toString()] || de;
2672
+ function ji({
2673
2673
  prop: e,
2674
2674
  defaultProp: t,
2675
2675
  onChange: n = () => {
2676
2676
  },
2677
2677
  caller: r
2678
2678
  }) {
2679
- const [o, s, a] = bi({
2679
+ const [o, s, a] = Ci({
2680
2680
  defaultProp: t,
2681
2681
  onChange: n
2682
2682
  }), i = e !== void 0, u = i ? e : o;
@@ -2692,7 +2692,7 @@ function xi({
2692
2692
  const l = m.useCallback(
2693
2693
  (f) => {
2694
2694
  if (i) {
2695
- const d = wi(f) ? f(e) : f;
2695
+ const d = Ei(f) ? f(e) : f;
2696
2696
  d !== e && a.current?.(d);
2697
2697
  } else
2698
2698
  s(f);
@@ -2701,38 +2701,38 @@ function xi({
2701
2701
  );
2702
2702
  return [u, l];
2703
2703
  }
2704
- function bi({
2704
+ function Ci({
2705
2705
  defaultProp: e,
2706
2706
  onChange: t
2707
2707
  }) {
2708
2708
  const [n, r] = m.useState(e), o = m.useRef(n), s = m.useRef(t);
2709
- return yi(() => {
2709
+ return wi(() => {
2710
2710
  s.current = t;
2711
2711
  }, [t]), m.useEffect(() => {
2712
2712
  o.current !== n && (s.current?.(n), o.current = n);
2713
2713
  }, [n, o]), [n, r, s];
2714
2714
  }
2715
- function wi(e) {
2715
+ function Ei(e) {
2716
2716
  return typeof e == "function";
2717
2717
  }
2718
- var ji = function(e) {
2718
+ var Si = function(e) {
2719
2719
  if (typeof document > "u")
2720
2720
  return null;
2721
2721
  var t = Array.isArray(e) ? e[0] : e;
2722
2722
  return t.ownerDocument.body;
2723
- }, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Pt = 0, eo = function(e) {
2724
- return e && (e.host || eo(e.parentNode));
2725
- }, Ci = function(e, t) {
2723
+ }, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Pt = 0, ro = function(e) {
2724
+ return e && (e.host || ro(e.parentNode));
2725
+ }, Ai = function(e, t) {
2726
2726
  return t.map(function(n) {
2727
2727
  if (e.contains(n))
2728
2728
  return n;
2729
- var r = eo(n);
2729
+ var r = ro(n);
2730
2730
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2731
2731
  }).filter(function(n) {
2732
2732
  return !!n;
2733
2733
  });
2734
- }, Ei = function(e, t, n, r) {
2735
- var o = Ci(t, Array.isArray(e) ? e : [e]);
2734
+ }, Pi = function(e, t, n, r) {
2735
+ var o = Ai(t, Array.isArray(e) ? e : [e]);
2736
2736
  et[n] || (et[n] = /* @__PURE__ */ new WeakMap());
2737
2737
  var s = et[n], a = [], i = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
2738
2738
  !d || i.has(d) || (i.add(d), l(d.parentNode));
@@ -2757,22 +2757,22 @@ var ji = function(e) {
2757
2757
  Ee.set(d, h), s.set(d, p), h || (Qe.has(d) || d.removeAttribute(r), Qe.delete(d)), p || d.removeAttribute(n);
2758
2758
  }), Pt--, Pt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {});
2759
2759
  };
2760
- }, Si = function(e, t, n) {
2760
+ }, Ni = function(e, t, n) {
2761
2761
  n === void 0 && (n = "data-aria-hidden");
2762
- var r = Array.from(Array.isArray(e) ? e : [e]), o = ji(e);
2763
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ei(r, o, n, "aria-hidden")) : function() {
2762
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Si(e);
2763
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Pi(r, o, n, "aria-hidden")) : function() {
2764
2764
  return null;
2765
2765
  };
2766
- }, te = function() {
2767
- return te = Object.assign || function(t) {
2766
+ }, ee = function() {
2767
+ return ee = Object.assign || function(t) {
2768
2768
  for (var n, r = 1, o = arguments.length; r < o; r++) {
2769
2769
  n = arguments[r];
2770
2770
  for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
2771
2771
  }
2772
2772
  return t;
2773
- }, te.apply(this, arguments);
2773
+ }, ee.apply(this, arguments);
2774
2774
  };
2775
- function to(e, t) {
2775
+ function oo(e, t) {
2776
2776
  var n = {};
2777
2777
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2778
2778
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2780,17 +2780,17 @@ function to(e, t) {
2780
2780
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2781
2781
  return n;
2782
2782
  }
2783
- function Ai(e, t, n) {
2783
+ function Oi(e, t, n) {
2784
2784
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
2785
2785
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
2786
2786
  return e.concat(s || Array.prototype.slice.call(t));
2787
2787
  }
2788
- var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Pi = "with-scroll-bars-hidden", Ni = "--removed-body-scroll-bar-size";
2788
+ var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Ri = "with-scroll-bars-hidden", Ti = "--removed-body-scroll-bar-size";
2789
2789
  function Nt(e, t) {
2790
2790
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2791
2791
  }
2792
- function Oi(e, t) {
2793
- var n = G(function() {
2792
+ function ki(e, t) {
2793
+ var n = Y(function() {
2794
2794
  return {
2795
2795
  // value
2796
2796
  value: e,
@@ -2810,15 +2810,15 @@ function Oi(e, t) {
2810
2810
  })[0];
2811
2811
  return n.callback = t, n.facade;
2812
2812
  }
2813
- var Ri = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Wn = /* @__PURE__ */ new WeakMap();
2814
- function Ti(e, t) {
2815
- var n = Oi(null, function(r) {
2813
+ var Mi = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Bn = /* @__PURE__ */ new WeakMap();
2814
+ function _i(e, t) {
2815
+ var n = ki(null, function(r) {
2816
2816
  return e.forEach(function(o) {
2817
2817
  return Nt(o, r);
2818
2818
  });
2819
2819
  });
2820
- return Ri(function() {
2821
- var r = Wn.get(n);
2820
+ return Mi(function() {
2821
+ var r = Bn.get(n);
2822
2822
  if (r) {
2823
2823
  var o = new Set(r), s = new Set(e), a = n.current;
2824
2824
  o.forEach(function(i) {
@@ -2827,14 +2827,14 @@ function Ti(e, t) {
2827
2827
  o.has(i) || Nt(i, a);
2828
2828
  });
2829
2829
  }
2830
- Wn.set(n, e);
2830
+ Bn.set(n, e);
2831
2831
  }, [e]), n;
2832
2832
  }
2833
- function ki(e) {
2833
+ function Di(e) {
2834
2834
  return e;
2835
2835
  }
2836
- function Mi(e, t) {
2837
- t === void 0 && (t = ki);
2836
+ function Fi(e, t) {
2837
+ t === void 0 && (t = Di);
2838
2838
  var n = [], r = !1, o = {
2839
2839
  read: function() {
2840
2840
  if (r)
@@ -2888,36 +2888,36 @@ function Mi(e, t) {
2888
2888
  };
2889
2889
  return o;
2890
2890
  }
2891
- function _i(e) {
2891
+ function Li(e) {
2892
2892
  e === void 0 && (e = {});
2893
- var t = Mi(null);
2894
- return t.options = te({ async: !0, ssr: !1 }, e), t;
2893
+ var t = Fi(null);
2894
+ return t.options = ee({ async: !0, ssr: !1 }, e), t;
2895
2895
  }
2896
- var no = function(e) {
2897
- var t = e.sideCar, n = to(e, ["sideCar"]);
2896
+ var so = function(e) {
2897
+ var t = e.sideCar, n = oo(e, ["sideCar"]);
2898
2898
  if (!t)
2899
2899
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2900
2900
  var r = t.read();
2901
2901
  if (!r)
2902
2902
  throw new Error("Sidecar medium not found");
2903
- return m.createElement(r, te({}, n));
2903
+ return m.createElement(r, ee({}, n));
2904
2904
  };
2905
- no.isSideCarExport = !0;
2906
- function Di(e, t) {
2907
- return e.useMedium(t), no;
2905
+ so.isSideCarExport = !0;
2906
+ function Ii(e, t) {
2907
+ return e.useMedium(t), so;
2908
2908
  }
2909
- var ro = _i(), Ot = function() {
2909
+ var ao = Li(), Ot = function() {
2910
2910
  }, gt = m.forwardRef(function(e, t) {
2911
2911
  var n = m.useRef(null), r = m.useState({
2912
2912
  onScrollCapture: Ot,
2913
2913
  onWheelCapture: Ot,
2914
2914
  onTouchMoveCapture: Ot
2915
- }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, h = e.sideCar, p = e.noIsolation, v = e.inert, g = e.allowPinchZoom, x = e.as, b = x === void 0 ? "div" : x, S = e.gapMode, E = to(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, j = Ti([n, t]), A = te(te({}, E), o);
2915
+ }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, h = e.sideCar, p = e.noIsolation, v = e.inert, g = e.allowPinchZoom, x = e.as, b = x === void 0 ? "div" : x, S = e.gapMode, E = oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = h, j = _i([n, t]), A = ee(ee({}, E), o);
2916
2916
  return m.createElement(
2917
2917
  m.Fragment,
2918
2918
  null,
2919
- f && m.createElement(w, { sideCar: ro, removeScrollBar: l, shards: d, noIsolation: p, inert: v, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: S }),
2920
- a ? m.cloneElement(m.Children.only(i), te(te({}, A), { ref: j })) : m.createElement(b, te({}, A, { className: u, ref: j }), i)
2919
+ f && m.createElement(w, { sideCar: ao, removeScrollBar: l, shards: d, noIsolation: p, inert: v, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: S }),
2920
+ a ? m.cloneElement(m.Children.only(i), ee(ee({}, A), { ref: j })) : m.createElement(b, ee({}, A, { className: u, ref: j }), i)
2921
2921
  );
2922
2922
  });
2923
2923
  gt.defaultProps = {
@@ -2929,37 +2929,37 @@ gt.classNames = {
2929
2929
  fullWidth: at,
2930
2930
  zeroRight: st
2931
2931
  };
2932
- var Fi = function() {
2932
+ var $i = function() {
2933
2933
  if (typeof __webpack_nonce__ < "u")
2934
2934
  return __webpack_nonce__;
2935
2935
  };
2936
- function Li() {
2936
+ function Wi() {
2937
2937
  if (!document)
2938
2938
  return null;
2939
2939
  var e = document.createElement("style");
2940
2940
  e.type = "text/css";
2941
- var t = Fi();
2941
+ var t = $i();
2942
2942
  return t && e.setAttribute("nonce", t), e;
2943
2943
  }
2944
- function Ii(e, t) {
2944
+ function Hi(e, t) {
2945
2945
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2946
2946
  }
2947
- function $i(e) {
2947
+ function Bi(e) {
2948
2948
  var t = document.head || document.getElementsByTagName("head")[0];
2949
2949
  t.appendChild(e);
2950
2950
  }
2951
- var Wi = function() {
2951
+ var zi = function() {
2952
2952
  var e = 0, t = null;
2953
2953
  return {
2954
2954
  add: function(n) {
2955
- e == 0 && (t = Li()) && (Ii(t, n), $i(t)), e++;
2955
+ e == 0 && (t = Wi()) && (Hi(t, n), Bi(t)), e++;
2956
2956
  },
2957
2957
  remove: function() {
2958
2958
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2959
2959
  }
2960
2960
  };
2961
- }, Hi = function() {
2962
- var e = Wi();
2961
+ }, Vi = function() {
2962
+ var e = zi();
2963
2963
  return function(t, n) {
2964
2964
  m.useEffect(function() {
2965
2965
  return e.add(t), function() {
@@ -2967,36 +2967,36 @@ var Wi = function() {
2967
2967
  };
2968
2968
  }, [t && n]);
2969
2969
  };
2970
- }, oo = function() {
2971
- var e = Hi(), t = function(n) {
2970
+ }, io = function() {
2971
+ var e = Vi(), t = function(n) {
2972
2972
  var r = n.styles, o = n.dynamic;
2973
2973
  return e(r, o), null;
2974
2974
  };
2975
2975
  return t;
2976
- }, Bi = {
2976
+ }, Ui = {
2977
2977
  left: 0,
2978
2978
  top: 0,
2979
2979
  right: 0,
2980
2980
  gap: 0
2981
2981
  }, Rt = function(e) {
2982
2982
  return parseInt(e || "", 10) || 0;
2983
- }, zi = function(e) {
2983
+ }, Yi = function(e) {
2984
2984
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2985
2985
  return [Rt(n), Rt(r), Rt(o)];
2986
- }, Vi = function(e) {
2986
+ }, Gi = function(e) {
2987
2987
  if (e === void 0 && (e = "margin"), typeof window > "u")
2988
- return Bi;
2989
- var t = zi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2988
+ return Ui;
2989
+ var t = Yi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2990
2990
  return {
2991
2991
  left: t[0],
2992
2992
  top: t[1],
2993
2993
  right: t[2],
2994
2994
  gap: Math.max(0, r - n + t[2] - t[0])
2995
2995
  };
2996
- }, Ui = oo(), Oe = "data-scroll-locked", Yi = function(e, t, n, r) {
2996
+ }, Zi = io(), Oe = "data-scroll-locked", Xi = function(e, t, n, r) {
2997
2997
  var o = e.left, s = e.top, a = e.right, i = e.gap;
2998
2998
  return n === void 0 && (n = "margin"), `
2999
- .`.concat(Pi, ` {
2999
+ .`.concat(Ri, ` {
3000
3000
  overflow: hidden `).concat(r, `;
3001
3001
  padding-right: `).concat(i, "px ").concat(r, `;
3002
3002
  }
@@ -3034,26 +3034,26 @@ var Wi = function() {
3034
3034
  }
3035
3035
 
3036
3036
  body[`).concat(Oe, `] {
3037
- `).concat(Ni, ": ").concat(i, `px;
3037
+ `).concat(Ti, ": ").concat(i, `px;
3038
3038
  }
3039
3039
  `);
3040
- }, Hn = function() {
3040
+ }, zn = function() {
3041
3041
  var e = parseInt(document.body.getAttribute(Oe) || "0", 10);
3042
3042
  return isFinite(e) ? e : 0;
3043
- }, Gi = function() {
3043
+ }, qi = function() {
3044
3044
  m.useEffect(function() {
3045
- return document.body.setAttribute(Oe, (Hn() + 1).toString()), function() {
3046
- var e = Hn() - 1;
3045
+ return document.body.setAttribute(Oe, (zn() + 1).toString()), function() {
3046
+ var e = zn() - 1;
3047
3047
  e <= 0 ? document.body.removeAttribute(Oe) : document.body.setAttribute(Oe, e.toString());
3048
3048
  };
3049
3049
  }, []);
3050
- }, Zi = function(e) {
3050
+ }, Ji = function(e) {
3051
3051
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
3052
- Gi();
3052
+ qi();
3053
3053
  var s = m.useMemo(function() {
3054
- return Vi(o);
3054
+ return Gi(o);
3055
3055
  }, [o]);
3056
- return m.createElement(Ui, { styles: Yi(s, !t, o, n ? "" : "!important") });
3056
+ return m.createElement(Zi, { styles: Xi(s, !t, o, n ? "" : "!important") });
3057
3057
  }, It = !1;
3058
3058
  if (typeof window < "u")
3059
3059
  try {
@@ -3066,59 +3066,59 @@ if (typeof window < "u")
3066
3066
  } catch {
3067
3067
  It = !1;
3068
3068
  }
3069
- var Se = It ? { passive: !1 } : !1, Xi = function(e) {
3069
+ var Se = It ? { passive: !1 } : !1, Ki = function(e) {
3070
3070
  return e.tagName === "TEXTAREA";
3071
- }, so = function(e, t) {
3071
+ }, co = function(e, t) {
3072
3072
  if (!(e instanceof Element))
3073
3073
  return !1;
3074
3074
  var n = window.getComputedStyle(e);
3075
3075
  return (
3076
3076
  // not-not-scrollable
3077
3077
  n[t] !== "hidden" && // contains scroll inside self
3078
- !(n.overflowY === n.overflowX && !Xi(e) && n[t] === "visible")
3078
+ !(n.overflowY === n.overflowX && !Ki(e) && n[t] === "visible")
3079
3079
  );
3080
- }, qi = function(e) {
3081
- return so(e, "overflowY");
3082
- }, Ji = function(e) {
3083
- return so(e, "overflowX");
3084
- }, Bn = function(e, t) {
3080
+ }, Qi = function(e) {
3081
+ return co(e, "overflowY");
3082
+ }, ec = function(e) {
3083
+ return co(e, "overflowX");
3084
+ }, Vn = function(e, t) {
3085
3085
  var n = t.ownerDocument, r = t;
3086
3086
  do {
3087
3087
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
3088
- var o = ao(e, r);
3088
+ var o = lo(e, r);
3089
3089
  if (o) {
3090
- var s = io(e, r), a = s[1], i = s[2];
3090
+ var s = uo(e, r), a = s[1], i = s[2];
3091
3091
  if (a > i)
3092
3092
  return !0;
3093
3093
  }
3094
3094
  r = r.parentNode;
3095
3095
  } while (r && r !== n.body);
3096
3096
  return !1;
3097
- }, Ki = function(e) {
3097
+ }, tc = function(e) {
3098
3098
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
3099
3099
  return [
3100
3100
  t,
3101
3101
  n,
3102
3102
  r
3103
3103
  ];
3104
- }, Qi = function(e) {
3104
+ }, nc = function(e) {
3105
3105
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
3106
3106
  return [
3107
3107
  t,
3108
3108
  n,
3109
3109
  r
3110
3110
  ];
3111
- }, ao = function(e, t) {
3112
- return e === "v" ? qi(t) : Ji(t);
3113
- }, io = function(e, t) {
3114
- return e === "v" ? Ki(t) : Qi(t);
3115
- }, ec = function(e, t) {
3111
+ }, lo = function(e, t) {
3112
+ return e === "v" ? Qi(t) : ec(t);
3113
+ }, uo = function(e, t) {
3114
+ return e === "v" ? tc(t) : nc(t);
3115
+ }, rc = function(e, t) {
3116
3116
  return e === "h" && t === "rtl" ? -1 : 1;
3117
- }, tc = function(e, t, n, r, o) {
3118
- var s = ec(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, u = t.contains(i), l = !1, f = a > 0, d = 0, h = 0;
3117
+ }, oc = function(e, t, n, r, o) {
3118
+ var s = rc(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, u = t.contains(i), l = !1, f = a > 0, d = 0, h = 0;
3119
3119
  do {
3120
- var p = io(e, i), v = p[0], g = p[1], x = p[2], b = g - x - s * v;
3121
- (v || b) && ao(e, i) && (d += b, h += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
3120
+ var p = uo(e, i), v = p[0], g = p[1], x = p[2], b = g - x - s * v;
3121
+ (v || b) && lo(e, i) && (d += b, h += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
3122
3122
  } while (
3123
3123
  // portaled content
3124
3124
  !u && i !== document.body || // self content
@@ -3127,26 +3127,26 @@ var Se = It ? { passive: !1 } : !1, Xi = function(e) {
3127
3127
  return (f && Math.abs(d) < 1 || !f && Math.abs(h) < 1) && (l = !0), l;
3128
3128
  }, nt = function(e) {
3129
3129
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
3130
- }, zn = function(e) {
3130
+ }, Un = function(e) {
3131
3131
  return [e.deltaX, e.deltaY];
3132
- }, Vn = function(e) {
3132
+ }, Yn = function(e) {
3133
3133
  return e && "current" in e ? e.current : e;
3134
- }, nc = function(e, t) {
3134
+ }, sc = function(e, t) {
3135
3135
  return e[0] === t[0] && e[1] === t[1];
3136
- }, rc = function(e) {
3136
+ }, ac = function(e) {
3137
3137
  return `
3138
3138
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
3139
3139
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
3140
3140
  `);
3141
- }, oc = 0, Ae = [];
3142
- function sc(e) {
3143
- var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(oc++)[0], s = m.useState(oo)[0], a = m.useRef(e);
3141
+ }, ic = 0, Ae = [];
3142
+ function cc(e) {
3143
+ var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(ic++)[0], s = m.useState(io)[0], a = m.useRef(e);
3144
3144
  m.useEffect(function() {
3145
3145
  a.current = e;
3146
3146
  }, [e]), m.useEffect(function() {
3147
3147
  if (e.inert) {
3148
3148
  document.body.classList.add("block-interactivity-".concat(o));
3149
- var g = Ai([e.lockRef.current], (e.shards || []).map(Vn), !0).filter(Boolean);
3149
+ var g = Oi([e.lockRef.current], (e.shards || []).map(Yn), !0).filter(Boolean);
3150
3150
  return g.forEach(function(x) {
3151
3151
  return x.classList.add("allow-interactivity-".concat(o));
3152
3152
  }), function() {
@@ -3162,34 +3162,34 @@ function sc(e) {
3162
3162
  var b = nt(g), S = n.current, E = "deltaX" in g ? g.deltaX : S[0] - b[0], w = "deltaY" in g ? g.deltaY : S[1] - b[1], j, A = g.target, C = Math.abs(E) > Math.abs(w) ? "h" : "v";
3163
3163
  if ("touches" in g && C === "h" && A.type === "range")
3164
3164
  return !1;
3165
- var T = Bn(C, A);
3165
+ var T = Vn(C, A);
3166
3166
  if (!T)
3167
3167
  return !0;
3168
- if (T ? j = C : (j = C === "v" ? "h" : "v", T = Bn(C, A)), !T)
3168
+ if (T ? j = C : (j = C === "v" ? "h" : "v", T = Vn(C, A)), !T)
3169
3169
  return !1;
3170
3170
  if (!r.current && "changedTouches" in g && (E || w) && (r.current = j), !j)
3171
3171
  return !0;
3172
3172
  var k = r.current || j;
3173
- return tc(k, x, g, k === "h" ? E : w);
3173
+ return oc(k, x, g, k === "h" ? E : w);
3174
3174
  }, []), u = m.useCallback(function(g) {
3175
3175
  var x = g;
3176
3176
  if (!(!Ae.length || Ae[Ae.length - 1] !== s)) {
3177
- var b = "deltaY" in x ? zn(x) : nt(x), S = t.current.filter(function(j) {
3178
- return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) && nc(j.delta, b);
3177
+ var b = "deltaY" in x ? Un(x) : nt(x), S = t.current.filter(function(j) {
3178
+ return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) && sc(j.delta, b);
3179
3179
  })[0];
3180
3180
  if (S && S.should) {
3181
3181
  x.cancelable && x.preventDefault();
3182
3182
  return;
3183
3183
  }
3184
3184
  if (!S) {
3185
- var E = (a.current.shards || []).map(Vn).filter(Boolean).filter(function(j) {
3185
+ var E = (a.current.shards || []).map(Yn).filter(Boolean).filter(function(j) {
3186
3186
  return j.contains(x.target);
3187
3187
  }), w = E.length > 0 ? i(x, E[0]) : !a.current.noIsolation;
3188
3188
  w && x.cancelable && x.preventDefault();
3189
3189
  }
3190
3190
  }
3191
3191
  }, []), l = m.useCallback(function(g, x, b, S) {
3192
- var E = { name: g, delta: x, target: b, should: S, shadowParent: ac(b) };
3192
+ var E = { name: g, delta: x, target: b, should: S, shadowParent: lc(b) };
3193
3193
  t.current.push(E), setTimeout(function() {
3194
3194
  t.current = t.current.filter(function(w) {
3195
3195
  return w !== E;
@@ -3198,7 +3198,7 @@ function sc(e) {
3198
3198
  }, []), f = m.useCallback(function(g) {
3199
3199
  n.current = nt(g), r.current = void 0;
3200
3200
  }, []), d = m.useCallback(function(g) {
3201
- l(g.type, zn(g), g.target, i(g, e.lockRef.current));
3201
+ l(g.type, Un(g), g.target, i(g, e.lockRef.current));
3202
3202
  }, []), h = m.useCallback(function(g) {
3203
3203
  l(g.type, nt(g), g.target, i(g, e.lockRef.current));
3204
3204
  }, []);
@@ -3217,23 +3217,23 @@ function sc(e) {
3217
3217
  return m.createElement(
3218
3218
  m.Fragment,
3219
3219
  null,
3220
- v ? m.createElement(s, { styles: rc(o) }) : null,
3221
- p ? m.createElement(Zi, { gapMode: e.gapMode }) : null
3220
+ v ? m.createElement(s, { styles: ac(o) }) : null,
3221
+ p ? m.createElement(Ji, { gapMode: e.gapMode }) : null
3222
3222
  );
3223
3223
  }
3224
- function ac(e) {
3224
+ function lc(e) {
3225
3225
  for (var t = null; e !== null; )
3226
3226
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3227
3227
  return t;
3228
3228
  }
3229
- const ic = Di(ro, sc);
3230
- var co = m.forwardRef(function(e, t) {
3231
- return m.createElement(gt, te({}, e, { ref: t, sideCar: ic }));
3229
+ const uc = Ii(ao, cc);
3230
+ var fo = m.forwardRef(function(e, t) {
3231
+ return m.createElement(gt, ee({}, e, { ref: t, sideCar: uc }));
3232
3232
  });
3233
- co.classNames = gt.classNames;
3234
- var vt = "Popover", [lo] = Er(vt, [
3235
- zr
3236
- ]), Ze = zr(), [cc, ye] = lo(vt), uo = (e) => {
3233
+ fo.classNames = gt.classNames;
3234
+ var vt = "Popover", [mo] = Pr(vt, [
3235
+ Yr
3236
+ ]), Ze = Yr(), [fc, ye] = mo(vt), po = (e) => {
3237
3237
  const {
3238
3238
  __scopePopover: t,
3239
3239
  children: n,
@@ -3241,17 +3241,17 @@ var vt = "Popover", [lo] = Er(vt, [
3241
3241
  defaultOpen: o,
3242
3242
  onOpenChange: s,
3243
3243
  modal: a = !1
3244
- } = e, i = Ze(t), u = m.useRef(null), [l, f] = m.useState(!1), [d, h] = xi({
3244
+ } = e, i = Ze(t), u = m.useRef(null), [l, f] = m.useState(!1), [d, h] = ji({
3245
3245
  prop: r,
3246
3246
  defaultProp: o ?? !1,
3247
3247
  onChange: s,
3248
3248
  caller: vt
3249
3249
  });
3250
- return /* @__PURE__ */ c.jsx(fi, { ...i, children: /* @__PURE__ */ c.jsx(
3251
- cc,
3250
+ return /* @__PURE__ */ c.jsx(pi, { ...i, children: /* @__PURE__ */ c.jsx(
3251
+ fc,
3252
3252
  {
3253
3253
  scope: t,
3254
- contentId: oa(),
3254
+ contentId: ia(),
3255
3255
  triggerRef: u,
3256
3256
  open: d,
3257
3257
  onOpenChange: h,
@@ -3264,64 +3264,64 @@ var vt = "Popover", [lo] = Er(vt, [
3264
3264
  }
3265
3265
  ) });
3266
3266
  };
3267
- uo.displayName = vt;
3268
- var fo = "PopoverAnchor", lc = m.forwardRef(
3267
+ po.displayName = vt;
3268
+ var ho = "PopoverAnchor", dc = m.forwardRef(
3269
3269
  (e, t) => {
3270
- const { __scopePopover: n, ...r } = e, o = ye(fo, n), s = Ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
3271
- return m.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ c.jsx(Kr, { ...s, ...r, ref: t });
3270
+ const { __scopePopover: n, ...r } = e, o = ye(ho, n), s = Ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
3271
+ return m.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ c.jsx(to, { ...s, ...r, ref: t });
3272
3272
  }
3273
3273
  );
3274
- lc.displayName = fo;
3275
- var mo = "PopoverTrigger", po = m.forwardRef(
3274
+ dc.displayName = ho;
3275
+ var go = "PopoverTrigger", vo = m.forwardRef(
3276
3276
  (e, t) => {
3277
- const { __scopePopover: n, ...r } = e, o = ye(mo, n), s = Ze(n), a = ve(t, o.triggerRef), i = /* @__PURE__ */ c.jsx(
3278
- ce.button,
3277
+ const { __scopePopover: n, ...r } = e, o = ye(go, n), s = Ze(n), a = ve(t, o.triggerRef), i = /* @__PURE__ */ c.jsx(
3278
+ ie.button,
3279
3279
  {
3280
3280
  type: "button",
3281
3281
  "aria-haspopup": "dialog",
3282
3282
  "aria-expanded": o.open,
3283
3283
  "aria-controls": o.contentId,
3284
- "data-state": xo(o.open),
3284
+ "data-state": jo(o.open),
3285
3285
  ...r,
3286
3286
  ref: a,
3287
- onClick: fe(e.onClick, o.onOpenToggle)
3287
+ onClick: ue(e.onClick, o.onOpenToggle)
3288
3288
  }
3289
3289
  );
3290
- return o.hasCustomAnchor ? i : /* @__PURE__ */ c.jsx(Kr, { asChild: !0, ...s, children: i });
3290
+ return o.hasCustomAnchor ? i : /* @__PURE__ */ c.jsx(to, { asChild: !0, ...s, children: i });
3291
3291
  }
3292
3292
  );
3293
- po.displayName = mo;
3294
- var fn = "PopoverPortal", [uc, fc] = lo(fn, {
3293
+ vo.displayName = go;
3294
+ var fn = "PopoverPortal", [mc, pc] = mo(fn, {
3295
3295
  forceMount: void 0
3296
- }), ho = (e) => {
3296
+ }), yo = (e) => {
3297
3297
  const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ye(fn, t);
3298
- return /* @__PURE__ */ c.jsx(uc, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(un, { present: n || s.open, children: /* @__PURE__ */ c.jsx(Qr, { asChild: !0, container: o, children: r }) }) });
3298
+ return /* @__PURE__ */ c.jsx(mc, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(un, { present: n || s.open, children: /* @__PURE__ */ c.jsx(no, { asChild: !0, container: o, children: r }) }) });
3299
3299
  };
3300
- ho.displayName = fn;
3301
- var Me = "PopoverContent", go = m.forwardRef(
3300
+ yo.displayName = fn;
3301
+ var Me = "PopoverContent", xo = m.forwardRef(
3302
3302
  (e, t) => {
3303
- const n = fc(Me, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ye(Me, e.__scopePopover);
3304
- return /* @__PURE__ */ c.jsx(un, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(mc, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(pc, { ...o, ref: t }) });
3303
+ const n = pc(Me, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ye(Me, e.__scopePopover);
3304
+ return /* @__PURE__ */ c.jsx(un, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(gc, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(vc, { ...o, ref: t }) });
3305
3305
  }
3306
3306
  );
3307
- go.displayName = Me;
3308
- var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3307
+ xo.displayName = Me;
3308
+ var hc = /* @__PURE__ */ Nr("PopoverContent.RemoveScroll"), gc = m.forwardRef(
3309
3309
  (e, t) => {
3310
3310
  const n = ye(Me, e.__scopePopover), r = m.useRef(null), o = ve(t, r), s = m.useRef(!1);
3311
3311
  return m.useEffect(() => {
3312
3312
  const a = r.current;
3313
- if (a) return Si(a);
3314
- }, []), /* @__PURE__ */ c.jsx(co, { as: dc, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
3315
- vo,
3313
+ if (a) return Ni(a);
3314
+ }, []), /* @__PURE__ */ c.jsx(fo, { as: hc, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
3315
+ bo,
3316
3316
  {
3317
3317
  ...e,
3318
3318
  ref: o,
3319
3319
  trapFocus: n.open,
3320
3320
  disableOutsidePointerEvents: !0,
3321
- onCloseAutoFocus: fe(e.onCloseAutoFocus, (a) => {
3321
+ onCloseAutoFocus: ue(e.onCloseAutoFocus, (a) => {
3322
3322
  a.preventDefault(), s.current || n.triggerRef.current?.focus();
3323
3323
  }),
3324
- onPointerDownOutside: fe(
3324
+ onPointerDownOutside: ue(
3325
3325
  e.onPointerDownOutside,
3326
3326
  (a) => {
3327
3327
  const i = a.detail.originalEvent, u = i.button === 0 && i.ctrlKey === !0, l = i.button === 2 || u;
@@ -3329,7 +3329,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3329
3329
  },
3330
3330
  { checkForDefaultPrevented: !1 }
3331
3331
  ),
3332
- onFocusOutside: fe(
3332
+ onFocusOutside: ue(
3333
3333
  e.onFocusOutside,
3334
3334
  (a) => a.preventDefault(),
3335
3335
  { checkForDefaultPrevented: !1 }
@@ -3337,11 +3337,11 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3337
3337
  }
3338
3338
  ) });
3339
3339
  }
3340
- ), pc = m.forwardRef(
3340
+ ), vc = m.forwardRef(
3341
3341
  (e, t) => {
3342
3342
  const n = ye(Me, e.__scopePopover), r = m.useRef(!1), o = m.useRef(!1);
3343
3343
  return /* @__PURE__ */ c.jsx(
3344
- vo,
3344
+ bo,
3345
3345
  {
3346
3346
  ...e,
3347
3347
  ref: t,
@@ -3358,7 +3358,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3358
3358
  }
3359
3359
  );
3360
3360
  }
3361
- ), vo = m.forwardRef(
3361
+ ), bo = m.forwardRef(
3362
3362
  (e, t) => {
3363
3363
  const {
3364
3364
  __scopePopover: n,
@@ -3372,8 +3372,8 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3372
3372
  onInteractOutside: f,
3373
3373
  ...d
3374
3374
  } = e, h = ye(Me, n), p = Ze(n);
3375
- return Zs(), /* @__PURE__ */ c.jsx(
3376
- Or,
3375
+ return Js(), /* @__PURE__ */ c.jsx(
3376
+ kr,
3377
3377
  {
3378
3378
  asChild: !0,
3379
3379
  loop: !0,
@@ -3381,7 +3381,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3381
3381
  onMountAutoFocus: o,
3382
3382
  onUnmountAutoFocus: s,
3383
3383
  children: /* @__PURE__ */ c.jsx(
3384
- Pr,
3384
+ Rr,
3385
3385
  {
3386
3386
  asChild: !0,
3387
3387
  disableOutsidePointerEvents: a,
@@ -3391,9 +3391,9 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3391
3391
  onFocusOutside: l,
3392
3392
  onDismiss: () => h.onOpenChange(!1),
3393
3393
  children: /* @__PURE__ */ c.jsx(
3394
- di,
3394
+ hi,
3395
3395
  {
3396
- "data-state": xo(h.open),
3396
+ "data-state": jo(h.open),
3397
3397
  role: "dialog",
3398
3398
  id: h.contentId,
3399
3399
  ...p,
@@ -3414,39 +3414,39 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3414
3414
  }
3415
3415
  );
3416
3416
  }
3417
- ), yo = "PopoverClose", hc = m.forwardRef(
3417
+ ), wo = "PopoverClose", yc = m.forwardRef(
3418
3418
  (e, t) => {
3419
- const { __scopePopover: n, ...r } = e, o = ye(yo, n);
3419
+ const { __scopePopover: n, ...r } = e, o = ye(wo, n);
3420
3420
  return /* @__PURE__ */ c.jsx(
3421
- ce.button,
3421
+ ie.button,
3422
3422
  {
3423
3423
  type: "button",
3424
3424
  ...r,
3425
3425
  ref: t,
3426
- onClick: fe(e.onClick, () => o.onOpenChange(!1))
3426
+ onClick: ue(e.onClick, () => o.onOpenChange(!1))
3427
3427
  }
3428
3428
  );
3429
3429
  }
3430
3430
  );
3431
- hc.displayName = yo;
3432
- var gc = "PopoverArrow", vc = m.forwardRef(
3431
+ yc.displayName = wo;
3432
+ var xc = "PopoverArrow", bc = m.forwardRef(
3433
3433
  (e, t) => {
3434
3434
  const { __scopePopover: n, ...r } = e, o = Ze(n);
3435
- return /* @__PURE__ */ c.jsx(mi, { ...o, ...r, ref: t });
3435
+ return /* @__PURE__ */ c.jsx(gi, { ...o, ...r, ref: t });
3436
3436
  }
3437
3437
  );
3438
- vc.displayName = gc;
3439
- function xo(e) {
3438
+ bc.displayName = xc;
3439
+ function jo(e) {
3440
3440
  return e ? "open" : "closed";
3441
3441
  }
3442
- var yc = uo, xc = po, bc = ho, wc = go;
3443
- const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(yc, { "data-slot": "popover", ...e }), wo = ({ ...e }) => /* @__PURE__ */ c.jsx(xc, { "data-slot": "popover-trigger", ...e }), jo = ({
3442
+ var wc = po, jc = vo, Cc = yo, Ec = xo;
3443
+ const Co = ({ ...e }) => /* @__PURE__ */ c.jsx(wc, { "data-slot": "popover", ...e }), Eo = ({ ...e }) => /* @__PURE__ */ c.jsx(jc, { "data-slot": "popover-trigger", ...e }), So = ({
3444
3444
  className: e,
3445
3445
  align: t = "center",
3446
3446
  sideOffset: n = 4,
3447
3447
  ...r
3448
- }) => /* @__PURE__ */ c.jsx(bc, { children: /* @__PURE__ */ c.jsx(
3449
- wc,
3448
+ }) => /* @__PURE__ */ c.jsx(Cc, { children: /* @__PURE__ */ c.jsx(
3449
+ Ec,
3450
3450
  {
3451
3451
  "data-slot": "popover-content",
3452
3452
  align: t,
@@ -3458,7 +3458,7 @@ const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(yc, { "data-slot": "popover", ...
3458
3458
  ...r
3459
3459
  }
3460
3460
  ) });
3461
- function jc(e, t, n, r) {
3461
+ function Sc(e, t, n, r) {
3462
3462
  function o(s) {
3463
3463
  return s instanceof n ? s : new n(function(a) {
3464
3464
  a(s);
@@ -3485,7 +3485,7 @@ function jc(e, t, n, r) {
3485
3485
  l((r = r.apply(e, [])).next());
3486
3486
  });
3487
3487
  }
3488
- var Cc = function() {
3488
+ var Ac = function() {
3489
3489
  var e = document.getSelection();
3490
3490
  if (!e.rangeCount)
3491
3491
  return function() {
@@ -3507,24 +3507,24 @@ var Cc = function() {
3507
3507
  e.addRange(o);
3508
3508
  }), t && t.focus();
3509
3509
  };
3510
- }, Ec = Cc, Un = {
3510
+ }, Pc = Ac, Gn = {
3511
3511
  "text/plain": "Text",
3512
3512
  "text/html": "Url",
3513
3513
  default: "Text"
3514
- }, Sc = "Copy to clipboard: #{key}, Enter";
3515
- function Ac(e) {
3514
+ }, Nc = "Copy to clipboard: #{key}, Enter";
3515
+ function Oc(e) {
3516
3516
  var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
3517
3517
  return e.replace(/#{\s*key\s*}/g, t);
3518
3518
  }
3519
- function Pc(e, t) {
3519
+ function Rc(e, t) {
3520
3520
  var n, r, o, s, a, i, u = !1;
3521
3521
  t || (t = {}), n = t.debug || !1;
3522
3522
  try {
3523
- o = Ec(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = e, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(f) {
3523
+ o = Pc(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = e, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(f) {
3524
3524
  if (f.stopPropagation(), t.format)
3525
3525
  if (f.preventDefault(), typeof f.clipboardData > "u") {
3526
3526
  n && console.warn("unable to use e.clipboardData"), n && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
3527
- var d = Un[t.format] || Un.default;
3527
+ var d = Gn[t.format] || Gn.default;
3528
3528
  window.clipboardData.setData(d, e);
3529
3529
  } else
3530
3530
  f.clipboardData.clearData(), f.clipboardData.setData(t.format, e);
@@ -3539,21 +3539,21 @@ function Pc(e, t) {
3539
3539
  try {
3540
3540
  window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), u = !0;
3541
3541
  } catch (d) {
3542
- n && console.error("unable to copy using clipboardData: ", d), n && console.error("falling back to prompt"), r = Ac("message" in t ? t.message : Sc), window.prompt(r, e);
3542
+ n && console.error("unable to copy using clipboardData: ", d), n && console.error("falling back to prompt"), r = Oc("message" in t ? t.message : Nc), window.prompt(r, e);
3543
3543
  }
3544
3544
  } finally {
3545
3545
  a && (typeof a.removeRange == "function" ? a.removeRange(s) : a.removeAllRanges()), i && document.body.removeChild(i), o();
3546
3546
  }
3547
3547
  return u;
3548
3548
  }
3549
- var Nc = Pc;
3549
+ var Tc = Rc;
3550
3550
  function xe(e) {
3551
3551
  return Object.prototype.toString.call(e) === "[object Object]";
3552
3552
  }
3553
3553
  function Ve(e) {
3554
3554
  return Array.isArray(e) ? e.length : xe(e) ? Object.keys(e).length : 0;
3555
3555
  }
3556
- function Oc(e, t) {
3556
+ function kc(e, t) {
3557
3557
  if (typeof e == "string")
3558
3558
  return e;
3559
3559
  try {
@@ -3574,16 +3574,16 @@ function Oc(e, t) {
3574
3574
  return `${n.name}: ${n.message}` || "JSON.stringify failed";
3575
3575
  }
3576
3576
  }
3577
- function Rc(e) {
3578
- return jc(this, void 0, void 0, function* () {
3577
+ function Mc(e) {
3578
+ return Sc(this, void 0, void 0, function* () {
3579
3579
  try {
3580
3580
  yield navigator.clipboard.writeText(e);
3581
3581
  } catch {
3582
- Nc(e);
3582
+ Tc(e);
3583
3583
  }
3584
3584
  });
3585
3585
  }
3586
- function Yn(e, t, n, r, o, s) {
3586
+ function Zn(e, t, n, r, o, s) {
3587
3587
  if (s && s.collapsed !== void 0)
3588
3588
  return !!s.collapsed;
3589
3589
  if (typeof r == "boolean")
@@ -3598,7 +3598,7 @@ function Yn(e, t, n, r, o, s) {
3598
3598
  }
3599
3599
  return !!(Array.isArray(e) && a > o || xe(e) && a > o);
3600
3600
  }
3601
- function Gn(e, t, n, r, o, s) {
3601
+ function Xn(e, t, n, r, o, s) {
3602
3602
  if (s && s.collapsed !== void 0)
3603
3603
  return !!s.collapsed;
3604
3604
  if (typeof r == "boolean")
@@ -3623,11 +3623,11 @@ function dn(e, t) {
3623
3623
  reportError(n);
3624
3624
  }
3625
3625
  }
3626
- function Co(e) {
3626
+ function Ao(e) {
3627
3627
  if (e === !0 || xe(e) && e.add === !0)
3628
3628
  return !0;
3629
3629
  }
3630
- function Zn(e) {
3630
+ function qn(e) {
3631
3631
  if (e === !0 || xe(e) && e.edit === !0)
3632
3632
  return !0;
3633
3633
  }
@@ -3635,13 +3635,13 @@ function mn(e) {
3635
3635
  if (e === !0 || xe(e) && e.delete === !0)
3636
3636
  return !0;
3637
3637
  }
3638
- function Tc(e) {
3638
+ function _c(e) {
3639
3639
  return typeof e == "function";
3640
3640
  }
3641
- function Eo(e) {
3641
+ function Po(e) {
3642
3642
  return !e || e.add === void 0 || !!e.add;
3643
3643
  }
3644
- function Xn(e) {
3644
+ function Jn(e) {
3645
3645
  return !e || e.edit === void 0 || !!e.edit;
3646
3646
  }
3647
3647
  function pn(e) {
@@ -3650,13 +3650,13 @@ function pn(e) {
3650
3650
  function yt(e) {
3651
3651
  return !e || e.enableClipboard === void 0 || !!e.enableClipboard;
3652
3652
  }
3653
- function kc(e) {
3653
+ function Dc(e) {
3654
3654
  return !e || e.matchesURL === void 0 || !!e.matchesURL;
3655
3655
  }
3656
- function Mc(e, t) {
3656
+ function Fc(e, t) {
3657
3657
  return e === "string" ? t.trim().replace(/^\"([\s\S]+?)\"$/, "$1") : t;
3658
3658
  }
3659
- var qn;
3659
+ var Kn;
3660
3660
  function $t() {
3661
3661
  return $t = Object.assign ? Object.assign.bind() : function(e) {
3662
3662
  for (var t = 1; t < arguments.length; t++) {
@@ -3674,11 +3674,11 @@ var hn = function(t) {
3674
3674
  height: 16,
3675
3675
  fill: "none",
3676
3676
  viewBox: "0 0 16 16"
3677
- }, t), qn || (qn = /* @__PURE__ */ m.createElement("path", {
3677
+ }, t), Kn || (Kn = /* @__PURE__ */ m.createElement("path", {
3678
3678
  fill: "currentColor",
3679
3679
  d: "M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"
3680
3680
  })));
3681
- }, Jn;
3681
+ }, Qn;
3682
3682
  function Wt() {
3683
3683
  return Wt = Object.assign ? Object.assign.bind() : function(e) {
3684
3684
  for (var t = 1; t < arguments.length; t++) {
@@ -3689,18 +3689,18 @@ function Wt() {
3689
3689
  return e;
3690
3690
  }, Wt.apply(this, arguments);
3691
3691
  }
3692
- var _c = function(t) {
3692
+ var Lc = function(t) {
3693
3693
  return /* @__PURE__ */ m.createElement("svg", Wt({
3694
3694
  xmlns: "http://www.w3.org/2000/svg",
3695
3695
  width: 24,
3696
3696
  height: 24,
3697
3697
  fill: "none",
3698
3698
  viewBox: "0 0 24 24"
3699
- }, t), Jn || (Jn = /* @__PURE__ */ m.createElement("path", {
3699
+ }, t), Qn || (Qn = /* @__PURE__ */ m.createElement("path", {
3700
3700
  fill: "currentColor",
3701
3701
  d: "M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"
3702
3702
  })));
3703
- }, Kn, Qn;
3703
+ }, er, tr;
3704
3704
  function Ht() {
3705
3705
  return Ht = Object.assign ? Object.assign.bind() : function(e) {
3706
3706
  for (var t = 1; t < arguments.length; t++) {
@@ -3711,34 +3711,34 @@ function Ht() {
3711
3711
  return e;
3712
3712
  }, Ht.apply(this, arguments);
3713
3713
  }
3714
- var Dc = function(t) {
3714
+ var Ic = function(t) {
3715
3715
  return /* @__PURE__ */ m.createElement("svg", Ht({
3716
3716
  xmlns: "http://www.w3.org/2000/svg",
3717
3717
  width: 24,
3718
3718
  height: 24,
3719
3719
  fill: "none",
3720
3720
  viewBox: "0 0 24 24"
3721
- }, t), Kn || (Kn = /* @__PURE__ */ m.createElement("path", {
3721
+ }, t), er || (er = /* @__PURE__ */ m.createElement("path", {
3722
3722
  fill: "currentColor",
3723
3723
  d: "M17.25 3H6.75A3.755 3.755 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"
3724
- })), Qn || (Qn = /* @__PURE__ */ m.createElement("path", {
3724
+ })), tr || (tr = /* @__PURE__ */ m.createElement("path", {
3725
3725
  fill: "#14C786",
3726
3726
  d: "M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"
3727
3727
  })));
3728
3728
  };
3729
3729
  function xt({ node: e, nodeMeta: t }) {
3730
- const { customizeCopy: n, CopyComponent: r, CopiedComponent: o } = Ce(be), [s, a] = G(!1), i = (u) => {
3730
+ const { customizeCopy: n, CopyComponent: r, CopiedComponent: o } = Ce(be), [s, a] = Y(!1), i = (u) => {
3731
3731
  u.stopPropagation();
3732
3732
  const l = n(e, t);
3733
- typeof l == "string" && l && Rc(l), a(!0), setTimeout(() => a(!1), 3e3);
3733
+ typeof l == "string" && l && Mc(l), a(!0), setTimeout(() => a(!1), 3e3);
3734
3734
  };
3735
- return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(Dc, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof r == "function" ? c.jsx(r, { onClick: i, className: "json-view--copy" }) : c.jsx(_c, { onClick: i, className: "json-view--copy" });
3735
+ return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(Ic, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof r == "function" ? c.jsx(r, { onClick: i, className: "json-view--copy" }) : c.jsx(Lc, { onClick: i, className: "json-view--copy" });
3736
3736
  }
3737
3737
  function Bt({ indexOrName: e, value: t, depth: n, deleteHandle: r, editHandle: o, parent: s, parentPath: a }) {
3738
3738
  const { displayArrayIndex: i } = Ce(be), u = Array.isArray(s);
3739
- return c.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!u || u && i ? c.jsxs(c.Fragment, { children: [c.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : c.jsx(c.Fragment, {}), c.jsx(Ao, { node: t, depth: n + 1, deleteHandle: (l, f) => r(l, f), editHandle: (l, f, d, h) => o(l, f, d, h), parent: s, indexOrName: e, parentPath: a })] }));
3739
+ return c.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!u || u && i ? c.jsxs(c.Fragment, { children: [c.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : c.jsx(c.Fragment, {}), c.jsx(Oo, { node: t, depth: n + 1, deleteHandle: (l, f) => r(l, f), editHandle: (l, f, d, h) => o(l, f, d, h), parent: s, indexOrName: e, parentPath: a })] }));
3740
3740
  }
3741
- var er, tr;
3741
+ var nr, rr;
3742
3742
  function zt() {
3743
3743
  return zt = Object.assign ? Object.assign.bind() : function(e) {
3744
3744
  for (var t = 1; t < arguments.length; t++) {
@@ -3756,14 +3756,14 @@ var gn = function(t) {
3756
3756
  height: 24,
3757
3757
  fill: "none",
3758
3758
  viewBox: "0 0 24 24"
3759
- }, t), er || (er = /* @__PURE__ */ m.createElement("path", {
3759
+ }, t), nr || (nr = /* @__PURE__ */ m.createElement("path", {
3760
3760
  fill: "currentColor",
3761
3761
  d: "M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"
3762
- })), tr || (tr = /* @__PURE__ */ m.createElement("path", {
3762
+ })), rr || (rr = /* @__PURE__ */ m.createElement("path", {
3763
3763
  fill: "#DA0000",
3764
3764
  d: "M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"
3765
3765
  })));
3766
- }, nr, rr;
3766
+ }, or, sr;
3767
3767
  function Vt() {
3768
3768
  return Vt = Object.assign ? Object.assign.bind() : function(e) {
3769
3769
  for (var t = 1; t < arguments.length; t++) {
@@ -3774,21 +3774,21 @@ function Vt() {
3774
3774
  return e;
3775
3775
  }, Vt.apply(this, arguments);
3776
3776
  }
3777
- var So = function(t) {
3777
+ var No = function(t) {
3778
3778
  return /* @__PURE__ */ m.createElement("svg", Vt({
3779
3779
  xmlns: "http://www.w3.org/2000/svg",
3780
3780
  width: 24,
3781
3781
  height: 24,
3782
3782
  fill: "none",
3783
3783
  viewBox: "0 0 24 24"
3784
- }, t), nr || (nr = /* @__PURE__ */ m.createElement("path", {
3784
+ }, t), or || (or = /* @__PURE__ */ m.createElement("path", {
3785
3785
  fill: "currentColor",
3786
3786
  d: "M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"
3787
- })), rr || (rr = /* @__PURE__ */ m.createElement("path", {
3787
+ })), sr || (sr = /* @__PURE__ */ m.createElement("path", {
3788
3788
  fill: "#14C786",
3789
3789
  d: "M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"
3790
3790
  })));
3791
- }, or, sr;
3791
+ }, ar, ir;
3792
3792
  function Ut() {
3793
3793
  return Ut = Object.assign ? Object.assign.bind() : function(e) {
3794
3794
  for (var t = 1; t < arguments.length; t++) {
@@ -3806,14 +3806,14 @@ var vn = function(t) {
3806
3806
  height: 24,
3807
3807
  fill: "none",
3808
3808
  viewBox: "0 0 24 24"
3809
- }, t), or || (or = /* @__PURE__ */ m.createElement("path", {
3809
+ }, t), ar || (ar = /* @__PURE__ */ m.createElement("path", {
3810
3810
  fill: "currentColor",
3811
3811
  d: "M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"
3812
- })), sr || (sr = /* @__PURE__ */ m.createElement("path", {
3812
+ })), ir || (ir = /* @__PURE__ */ m.createElement("path", {
3813
3813
  fill: "#14C786",
3814
3814
  d: "m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"
3815
3815
  })));
3816
- }, ar, ir;
3816
+ }, cr, lr;
3817
3817
  function Yt() {
3818
3818
  return Yt = Object.assign ? Object.assign.bind() : function(e) {
3819
3819
  for (var t = 1; t < arguments.length; t++) {
@@ -3831,16 +3831,16 @@ var yn = function(t) {
3831
3831
  height: 24,
3832
3832
  fill: "none",
3833
3833
  viewBox: "0 0 24 24"
3834
- }, t), ar || (ar = /* @__PURE__ */ m.createElement("path", {
3834
+ }, t), cr || (cr = /* @__PURE__ */ m.createElement("path", {
3835
3835
  fill: "#DA0000",
3836
3836
  d: "M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"
3837
- })), ir || (ir = /* @__PURE__ */ m.createElement("path", {
3837
+ })), lr || (lr = /* @__PURE__ */ m.createElement("path", {
3838
3838
  fill: "currentColor",
3839
3839
  d: "M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"
3840
3840
  })));
3841
3841
  };
3842
- function Fc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, customOptions: s, startIndex: a, parent: i, parentPath: u }) {
3843
- const { enableClipboard: l, src: f, onEdit: d, onChange: h, forceUpdate: p, displaySize: v, CustomOperation: g } = Ce(be), x = [...u, String(r)], [b, S] = G(!0), E = de((A, C, T) => {
3842
+ function $c({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, customOptions: s, startIndex: a, parent: i, parentPath: u }) {
3843
+ const { enableClipboard: l, src: f, onEdit: d, onChange: h, forceUpdate: p, displaySize: v, CustomOperation: g } = Ce(be), x = [...u, String(r)], [b, S] = Y(!0), E = fe((A, C, T) => {
3844
3844
  e[A] = C, d && d({
3845
3845
  newValue: C,
3846
3846
  oldValue: T,
@@ -3855,15 +3855,15 @@ function Fc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, custo
3855
3855
  }, j = c.jsxs(c.Fragment, { children: [!b && c.jsxs("span", Object.assign({ onClick: () => S(!0), className: "jv-size-chevron" }, { children: [Re(v, n, b) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(t), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), !b && l && yt(s) && c.jsx(xt, { node: t, nodeMeta: { depth: n, indexOrName: r, parent: i, parentPath: u, currentPath: x } }), typeof g == "function" ? c.jsx(g, { node: t }) : null] });
3856
3856
  return c.jsxs("div", { children: [c.jsx("span", { children: "[" }), j, b ? c.jsxs("button", Object.assign({ onClick: () => S(!1), className: "jv-button" }, { children: [a, " ... ", a + t.length - 1] })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: t.map((A, C) => c.jsx(Bt, { indexOrName: C + a, value: A, depth: n, parent: t, deleteHandle: w, editHandle: E, parentPath: u }, String(r) + String(C))) })), c.jsx("span", { children: "]" })] });
3857
3857
  }
3858
- function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions: o, parent: s, parentPath: a }) {
3858
+ function Wc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions: o, parent: s, parentPath: a }) {
3859
3859
  const i = typeof r < "u" ? [...a, String(r)] : a, u = [];
3860
3860
  for (let _ = 0; _ < e.length; _ += 100)
3861
3861
  u.push(e.slice(_, _ + 100));
3862
- const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, CustomOperation: x, onChange: b, forceUpdate: S, displaySize: E } = Ce(be), [w, j] = G(Gn(e, t, r, l, d, o));
3862
+ const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, CustomOperation: x, onChange: b, forceUpdate: S, displaySize: E } = Ce(be), [w, j] = Y(Xn(e, t, r, l, d, o));
3863
3863
  _e(() => {
3864
- j(Gn(e, t, r, l, d, o));
3864
+ j(Xn(e, t, r, l, d, o));
3865
3865
  }, [l, d]);
3866
- const [A, C] = G(!1), T = () => {
3866
+ const [A, C] = Y(!1), T = () => {
3867
3867
  C(!1), n && n(r, a), p && p({ value: e, depth: t, src: v, indexOrName: r, parentType: "array", parentPath: a }), b && b({
3868
3868
  type: "delete",
3869
3869
  depth: t,
@@ -3872,30 +3872,30 @@ function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions:
3872
3872
  parentType: "array",
3873
3873
  parentPath: a
3874
3874
  });
3875
- }, [k, L] = G(!1), W = () => {
3875
+ }, [k, L] = Y(!1), W = () => {
3876
3876
  const _ = e;
3877
3877
  _.push(null), g && g({ indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), b && b({ type: "add", indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), S();
3878
3878
  }, H = A || k, I = () => {
3879
3879
  C(!1), L(!1);
3880
- }, M = c.jsxs(c.Fragment, { children: [!w && !H && c.jsxs("span", Object.assign({ onClick: () => j(!0), className: "jv-size-chevron" }, { children: [Re(E, t, w) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [e.length, " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), H && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? W : T }), H && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: I }), !w && !H && f && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: s, parentPath: a, currentPath: i } }), !w && !H && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3880
+ }, M = c.jsxs(c.Fragment, { children: [!w && !H && c.jsxs("span", Object.assign({ onClick: () => j(!0), className: "jv-size-chevron" }, { children: [Re(E, t, w) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [e.length, " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), H && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? W : T }), H && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: I }), !w && !H && f && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: s, parentPath: a, currentPath: i } }), !w && !H && Ao(h) && Po(o) && c.jsx(No, { className: "json-view--edit", onClick: () => {
3881
3881
  W();
3882
3882
  } }), !w && !H && mn(h) && pn(o) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => C(!0) }), typeof x == "function" ? c.jsx(x, { node: e }) : null] });
3883
- return c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), M, w ? c.jsx("button", Object.assign({ onClick: () => j(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: u.map((_, D) => c.jsx(Fc, { originNode: e, node: _, depth: t, index: D, startIndex: D * 100, deleteHandle: n, customOptions: o, parentPath: a }, String(r) + String(D))) })), c.jsx("span", { children: "]" }), w && Re(E, t, w) && c.jsxs("span", Object.assign({ onClick: () => j(!1), className: "jv-size" }, { children: [e.length, " Items"] }))] });
3883
+ return c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), M, w ? c.jsx("button", Object.assign({ onClick: () => j(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: u.map((_, D) => c.jsx($c, { originNode: e, node: _, depth: t, index: D, startIndex: D * 100, deleteHandle: n, customOptions: o, parentPath: a }, String(r) + String(D))) })), c.jsx("span", { children: "]" }), w && Re(E, t, w) && c.jsxs("span", Object.assign({ onClick: () => j(!1), className: "jv-size" }, { children: [e.length, " Items"] }))] });
3884
3884
  }
3885
- function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parent: s, parentPath: a }) {
3885
+ function Hc({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parent: s, parentPath: a }) {
3886
3886
  const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, onEdit: x, onChange: b, forceUpdate: S, displaySize: E, CustomOperation: w } = Ce(be), j = typeof n < "u" ? [...a, String(n)] : a;
3887
3887
  if (!f && Array.isArray(e) && e.length > 100)
3888
- return c.jsx(Lc, { node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parentPath: j });
3889
- const A = xe(e), [C, T] = G(Yn(e, t, n, i, d, o)), k = (P) => {
3888
+ return c.jsx(Wc, { node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parentPath: j });
3889
+ const A = xe(e), [C, T] = Y(Zn(e, t, n, i, d, o)), k = (P) => {
3890
3890
  u?.({ isCollapsing: !P, node: e, depth: t, indexOrName: n }), T(P);
3891
3891
  };
3892
3892
  _e(() => {
3893
- k(Yn(e, t, n, i, d, o));
3893
+ k(Zn(e, t, n, i, d, o));
3894
3894
  }, [i, d]);
3895
- const L = de((P, F, Z) => {
3895
+ const L = fe((P, F, G) => {
3896
3896
  Array.isArray(e) ? e[+P] = F : e && (e[P] = F), x && x({
3897
3897
  newValue: F,
3898
- oldValue: Z,
3898
+ oldValue: G,
3899
3899
  depth: t,
3900
3900
  src: v,
3901
3901
  indexOrName: P,
@@ -3904,7 +3904,7 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
3904
3904
  }), b && b({ type: "edit", depth: t, src: v, indexOrName: P, parentType: A ? "object" : "array", parentPath: j }), S();
3905
3905
  }, [e, x, b, S]), W = (P) => {
3906
3906
  Array.isArray(e) ? e.splice(+P, 1) : e && delete e[P], S();
3907
- }, [H, I] = G(!1), M = () => {
3907
+ }, [H, I] = Y(!1), M = () => {
3908
3908
  I(!1), r && r(n, j), p && p({ value: e, depth: t, src: v, indexOrName: n, parentType: A ? "object" : "array", parentPath: j }), b && b({
3909
3909
  type: "delete",
3910
3910
  depth: t,
@@ -3913,7 +3913,7 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
3913
3913
  parentType: A ? "object" : "array",
3914
3914
  parentPath: j
3915
3915
  });
3916
- }, [_, D] = G(!1), R = Qt(null), O = () => {
3916
+ }, [_, D] = Y(!1), R = Qt(null), O = () => {
3917
3917
  var P;
3918
3918
  if (A) {
3919
3919
  const F = (P = R.current) === null || P === void 0 ? void 0 : P.value;
@@ -3927,7 +3927,7 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
3927
3927
  P.key === "Enter" ? (P.preventDefault(), O()) : P.key === "Escape" && N();
3928
3928
  }, y = H || _, N = () => {
3929
3929
  I(!1), D(!1);
3930
- }, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [Re(E, t, C) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(e), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: R, onKeyDown: B }), y && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? O : M }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: N }), !C && !y && l && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: s, parentPath: a, currentPath: j } }), !C && !y && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3930
+ }, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [Re(E, t, C) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(e), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: R, onKeyDown: B }), y && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? O : M }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: N }), !C && !y && l && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: s, parentPath: a, currentPath: j } }), !C && !y && Ao(h) && Po(o) && c.jsx(No, { className: "json-view--edit", onClick: () => {
3931
3931
  A ? (D(!0), setTimeout(() => {
3932
3932
  var P;
3933
3933
  return (P = R.current) === null || P === void 0 ? void 0 : P.focus();
@@ -3935,9 +3935,9 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
3935
3935
  } }), !C && !y && mn(h) && pn(o) && r && c.jsx(gn, { className: "json-view--edit", onClick: () => I(!0) }), typeof w == "function" ? c.jsx(w, { node: e }) : null] });
3936
3936
  return Array.isArray(e) ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((P, F) => c.jsx(Bt, { indexOrName: F, value: P, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(F))) })), c.jsx("span", { children: "]" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : A ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "{" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: Object.entries(e).map(([P, F]) => c.jsx(Bt, { indexOrName: P, value: F, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(P))) })), c.jsx("span", { children: "}" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : c.jsx("span", { children: String(e) });
3937
3937
  }
3938
- const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3938
+ const Bc = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3939
3939
  let { collapseStringMode: o, collapseStringsAfterLength: s, customizeCollapseStringUI: a } = Ce(be);
3940
- const [i, u] = G(!0), l = Qt(null);
3940
+ const [i, u] = Y(!0), l = Qt(null);
3941
3941
  s = s > 0 ? s : 0;
3942
3942
  const f = e.replace(/\s+/g, " "), d = typeof a == "function" ? a(f, i) : typeof a == "string" ? a : "...", h = (p) => {
3943
3943
  var v;
@@ -3977,7 +3977,7 @@ const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3977
3977
  }
3978
3978
  return c.jsxs("span", Object.assign({ ref: l, className: t }, { children: ['"', e, '"'] }));
3979
3979
  });
3980
- var cr;
3980
+ var ur;
3981
3981
  function Gt() {
3982
3982
  return Gt = Object.assign ? Object.assign.bind() : function(e) {
3983
3983
  for (var t = 1; t < arguments.length; t++) {
@@ -3988,18 +3988,18 @@ function Gt() {
3988
3988
  return e;
3989
3989
  }, Gt.apply(this, arguments);
3990
3990
  }
3991
- var Wc = function(t) {
3991
+ var zc = function(t) {
3992
3992
  return /* @__PURE__ */ m.createElement("svg", Gt({
3993
3993
  xmlns: "http://www.w3.org/2000/svg",
3994
3994
  width: 24,
3995
3995
  height: 24,
3996
3996
  fill: "none",
3997
3997
  viewBox: "0 0 24 24"
3998
- }, t), cr || (cr = /* @__PURE__ */ m.createElement("path", {
3998
+ }, t), ur || (ur = /* @__PURE__ */ m.createElement("path", {
3999
3999
  fill: "currentColor",
4000
4000
  d: "M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"
4001
4001
  })));
4002
- }, lr, ur;
4002
+ }, fr, dr;
4003
4003
  function Zt() {
4004
4004
  return Zt = Object.assign ? Object.assign.bind() : function(e) {
4005
4005
  for (var t = 1; t < arguments.length; t++) {
@@ -4010,48 +4010,48 @@ function Zt() {
4010
4010
  return e;
4011
4011
  }, Zt.apply(this, arguments);
4012
4012
  }
4013
- var Hc = function(t) {
4013
+ var Vc = function(t) {
4014
4014
  return /* @__PURE__ */ m.createElement("svg", Zt({
4015
4015
  xmlns: "http://www.w3.org/2000/svg",
4016
4016
  width: 24,
4017
4017
  height: 24,
4018
4018
  fill: "none",
4019
4019
  viewBox: "0 0 24 24"
4020
- }, t), lr || (lr = /* @__PURE__ */ m.createElement("path", {
4020
+ }, t), fr || (fr = /* @__PURE__ */ m.createElement("path", {
4021
4021
  fill: "currentColor",
4022
4022
  d: "M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"
4023
- })), ur || (ur = /* @__PURE__ */ m.createElement("path", {
4023
+ })), dr || (dr = /* @__PURE__ */ m.createElement("path", {
4024
4024
  fill: "currentColor",
4025
4025
  d: "M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"
4026
4026
  })));
4027
4027
  };
4028
- function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, editHandle: s, parentPath: a }) {
4028
+ function Oo({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, editHandle: s, parentPath: a }) {
4029
4029
  const { collapseStringsAfterLength: i, enableClipboard: u, editable: l, src: f, onDelete: d, onChange: h, customizeNode: p, matchesURL: v, urlRegExp: g, EditComponent: x, DoneComponent: b, CancelComponent: S, CustomOperation: E } = Ce(be);
4030
4030
  let w;
4031
4031
  if (typeof p == "function" && (w = dn(p, [{ node: e, depth: t, indexOrName: r }])), w) {
4032
- if (zo(w))
4032
+ if (Yo(w))
4033
4033
  return w;
4034
- if (Tc(w)) {
4034
+ if (_c(w)) {
4035
4035
  const j = w;
4036
4036
  return c.jsx(j, { node: e, depth: t, indexOrName: r });
4037
4037
  }
4038
4038
  }
4039
4039
  if (Array.isArray(e) || xe(e))
4040
- return c.jsx(Ic, { parent: o, node: e, depth: t, indexOrName: r, deleteHandle: n, parentPath: a, customOptions: typeof w == "object" ? w : void 0 });
4040
+ return c.jsx(Hc, { parent: o, node: e, depth: t, indexOrName: r, deleteHandle: n, parentPath: a, customOptions: typeof w == "object" ? w : void 0 });
4041
4041
  {
4042
- const j = typeof e, A = typeof r < "u" ? [...a, String(r)] : a, [C, T] = G(!1), [k, L] = G(!1), W = Qt(null), H = () => {
4042
+ const j = typeof e, A = typeof r < "u" ? [...a, String(r)] : a, [C, T] = Y(!1), [k, L] = Y(!1), W = Qt(null), H = () => {
4043
4043
  T(!0), setTimeout(() => {
4044
4044
  var P, F;
4045
4045
  (P = window.getSelection()) === null || P === void 0 || P.selectAllChildren(W.current), (F = W.current) === null || F === void 0 || F.focus();
4046
4046
  });
4047
- }, I = de(() => {
4047
+ }, I = fe(() => {
4048
4048
  let P = W.current.innerText;
4049
4049
  try {
4050
4050
  const F = JSON.parse(P);
4051
4051
  s && s(r, F, e, a);
4052
4052
  } catch {
4053
- const Z = Mc(j, P);
4054
- s && s(r, Z, e, a);
4053
+ const G = Fc(j, P);
4054
+ s && s(r, G, e, a);
4055
4055
  }
4056
4056
  T(!1);
4057
4057
  }, [s, r, e, a, j]), M = () => {
@@ -4072,11 +4072,11 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4072
4072
  type: "delete",
4073
4073
  parentPath: a
4074
4074
  });
4075
- }, D = de((P) => {
4075
+ }, D = fe((P) => {
4076
4076
  P.key === "Enter" ? (P.preventDefault(), I()) : P.key === "Escape" && M();
4077
- }, [I]), R = C || k, O = !R && Zn(l) && Xn(w) && s ? (P) => {
4077
+ }, [I]), R = C || k, O = !R && qn(l) && Jn(w) && s ? (P) => {
4078
4078
  (P.ctrlKey || P.metaKey) && H();
4079
- } : void 0, B = c.jsxs(c.Fragment, { children: [R && (typeof b == "function" ? c.jsx(b, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I }) : c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I })), R && (typeof S == "function" ? c.jsx(S, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M }) : c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M })), !R && u && yt(w) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: o, parentPath: a, currentPath: A } }), !R && v && j === "string" && g.test(e) && kc(w) && c.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: c.jsx(Hc, {}) })), !R && Zn(l) && Xn(w) && s && (typeof x == "function" ? c.jsx(x, { className: "json-view--edit", onClick: H }) : c.jsx(Wc, { className: "json-view--edit", onClick: H })), !R && mn(l) && pn(w) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => L(!0) }), typeof E == "function" ? c.jsx(E, { node: e }) : null] });
4079
+ } : void 0, B = c.jsxs(c.Fragment, { children: [R && (typeof b == "function" ? c.jsx(b, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I }) : c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I })), R && (typeof S == "function" ? c.jsx(S, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M }) : c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M })), !R && u && yt(w) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: o, parentPath: a, currentPath: A } }), !R && v && j === "string" && g.test(e) && Dc(w) && c.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: c.jsx(Vc, {}) })), !R && qn(l) && Jn(w) && s && (typeof x == "function" ? c.jsx(x, { className: "json-view--edit", onClick: H }) : c.jsx(zc, { className: "json-view--edit", onClick: H })), !R && mn(l) && pn(w) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => L(!0) }), typeof E == "function" ? c.jsx(E, { node: e }) : null] });
4080
4080
  let y = "json-view--string";
4081
4081
  switch (j) {
4082
4082
  case "number":
@@ -4094,10 +4094,10 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4094
4094
  let N = String(e);
4095
4095
  j === "bigint" && (N += "n");
4096
4096
  const $ = z(() => c.jsx("span", { contentEditable: !0, className: y, dangerouslySetInnerHTML: { __html: j === "string" ? `"${N}"` : N }, ref: W, onKeyDown: D }), [N, j, D]);
4097
- return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx($c, { str: e, ref: W, className: y, ctrlClick: O }) : c.jsxs("span", Object.assign({ className: y, onClick: O }, { children: ['"', N, '"'] })), B] }) : c.jsxs(c.Fragment, { children: [C ? $ : c.jsx("span", Object.assign({ className: y, onClick: O }, { children: N })), B] });
4097
+ return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx(Bc, { str: e, ref: W, className: y, ctrlClick: O }) : c.jsxs("span", Object.assign({ className: y, onClick: O }, { children: ['"', N, '"'] })), B] }) : c.jsxs(c.Fragment, { children: [C ? $ : c.jsx("span", Object.assign({ className: y, onClick: O }, { children: N })), B] });
4098
4098
  }
4099
4099
  }
4100
- const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, be = Bo({
4100
+ const Ro = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, be = Uo({
4101
4101
  src: void 0,
4102
4102
  collapseStringsAfterLength: 99,
4103
4103
  collapseStringMode: "directly",
@@ -4119,7 +4119,7 @@ const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
4119
4119
  displaySize: void 0,
4120
4120
  displayArrayIndex: !0,
4121
4121
  matchesURL: !1,
4122
- urlRegExp: Po,
4122
+ urlRegExp: Ro,
4123
4123
  ignoreLargeArray: !1,
4124
4124
  CopyComponent: void 0,
4125
4125
  CopiedComponent: void 0,
@@ -4128,8 +4128,8 @@ const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
4128
4128
  DoneComponent: void 0,
4129
4129
  CustomOperation: void 0
4130
4130
  });
4131
- function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: h, dark: p = !1, theme: v = "default", customizeNode: g, customizeCopy: x = (M) => Oc(M), displaySize: b, displayArrayIndex: S = !0, style: E, className: w, matchesURL: j = !1, urlRegExp: A = Po, ignoreLargeArray: C = !1, CopyComponent: T, CopiedComponent: k, EditComponent: L, CancelComponent: W, DoneComponent: H, CustomOperation: I }) {
4132
- const [M, _] = G(0), D = de(() => _((B) => ++B), []), [R, O] = G(e);
4131
+ function mr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: h, dark: p = !1, theme: v = "default", customizeNode: g, customizeCopy: x = (M) => kc(M), displaySize: b, displayArrayIndex: S = !0, style: E, className: w, matchesURL: j = !1, urlRegExp: A = Ro, ignoreLargeArray: C = !1, CopyComponent: T, CopiedComponent: k, EditComponent: L, CancelComponent: W, DoneComponent: H, CustomOperation: I }) {
4132
+ const [M, _] = Y(0), D = fe(() => _((B) => ++B), []), [R, O] = Y(e);
4133
4133
  return _e(() => O(e), [e]), c.jsx(be.Provider, Object.assign({ value: {
4134
4134
  src: R,
4135
4135
  collapseStringsAfterLength: t,
@@ -4158,7 +4158,7 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
4158
4158
  CancelComponent: W,
4159
4159
  DoneComponent: H,
4160
4160
  CustomOperation: I
4161
- } }, { children: c.jsx("code", Object.assign({ className: "json-view" + (p ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node: R, depth: 1, editHandle: (B, y, N, $) => {
4161
+ } }, { children: c.jsx("code", Object.assign({ className: "json-view" + (p ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Oo, { node: R, depth: 1, editHandle: (B, y, N, $) => {
4162
4162
  O(y), l && l({
4163
4163
  newValue: y,
4164
4164
  oldValue: N,
@@ -4186,25 +4186,25 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
4186
4186
  });
4187
4187
  }, parentPath: [] }) })) }));
4188
4188
  }
4189
- const Bc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1) : e === null ? "null" : e.toString(), Xt = V(({ arg: e, popover: t = !0 }) => {
4190
- const n = z(() => typeof e == "object" && e !== null, [e]), r = z(() => Bc(e), [e]), o = z(() => JSON.stringify(e, null, 2), [e]);
4191
- return t ? /* @__PURE__ */ c.jsxs(bo, { children: [
4192
- /* @__PURE__ */ c.jsx(wo, { asChild: !0, children: /* @__PURE__ */ c.jsx("span", { className: "truncate font-mono text-blue-500 cursor-pointer inline-block", children: r }) }),
4189
+ const Uc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1) : e === null ? "null" : e.toString(), Xt = V(({ arg: e, popover: t = !0 }) => {
4190
+ const n = z(() => typeof e == "object" && e !== null, [e]), r = z(() => Uc(e), [e]), o = z(() => JSON.stringify(e, null, 2), [e]);
4191
+ return t ? /* @__PURE__ */ c.jsxs(Co, { children: [
4192
+ /* @__PURE__ */ c.jsx(Eo, { asChild: !0, children: /* @__PURE__ */ c.jsx("span", { className: "truncate font-mono text-blue-500 cursor-pointer inline-block", children: r }) }),
4193
4193
  /* @__PURE__ */ c.jsx(
4194
- jo,
4194
+ So,
4195
4195
  {
4196
4196
  className: "backdrop-blur-md w-auto max-w-2xl relative max-h-[50vh] overflow-y-auto",
4197
4197
  hideWhenDetached: !0,
4198
4198
  children: n ? /* @__PURE__ */ c.jsxs("div", { children: [
4199
4199
  /* @__PURE__ */ c.jsx(Mt, { textToCopy: o, className: "absolute top-4 right-4", title: "Copy JSON" }),
4200
- /* @__PURE__ */ c.jsx(fr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } })
4200
+ /* @__PURE__ */ c.jsx(mr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } })
4201
4201
  ] }) : /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
4202
4202
  /* @__PURE__ */ c.jsx("span", { children: r }),
4203
4203
  /* @__PURE__ */ c.jsx(Mt, { textToCopy: o, className: "ml-2", title: "Copy JSON" })
4204
4204
  ] })
4205
4205
  }
4206
4206
  )
4207
- ] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: n ? /* @__PURE__ */ c.jsx(fr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } }) : /* @__PURE__ */ c.jsx("span", { className: "font-mono text-blue-500", children: r }) });
4207
+ ] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: n ? /* @__PURE__ */ c.jsx(mr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } }) : /* @__PURE__ */ c.jsx("span", { className: "font-mono text-blue-500", children: r }) });
4208
4208
  });
4209
4209
  Xt.displayName = "Argument";
4210
4210
  const qt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
@@ -4233,7 +4233,7 @@ const Jt = Kt(
4233
4233
  ] })
4234
4234
  );
4235
4235
  Jt.displayName = "FunctionCallContent";
4236
- const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4236
+ const Yc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4237
4237
  ({ topLevelClassName: e, objectName: t, functionName: n, args: r, callsQuantity: o }) => {
4238
4238
  const s = z(() => r.filter((u) => u !== void 0), [r]), a = z(
4239
4239
  () => ({ gridTemplateColumns: `repeat(${s.length * 2}, minmax(0, auto))` }),
@@ -4242,9 +4242,9 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4242
4242
  const u = [e, t].filter(Boolean).join("."), l = u ? `${u}.` : "", f = s.map((d) => typeof d == "object" && d !== null ? JSON.stringify(d, null, 2) : d === null ? "null" : typeof d == "string" ? `'${d}'` : String(d)).join(", ");
4243
4243
  return `${l}${n}(${f})`;
4244
4244
  }, [e, t, n, s]);
4245
- return /* @__PURE__ */ c.jsxs("div", { className: "grid overflow-hidden items-center", style: zc, children: [
4246
- /* @__PURE__ */ c.jsxs(bo, { children: [
4247
- /* @__PURE__ */ c.jsx(wo, { asChild: !0, children: /* @__PURE__ */ c.jsx(
4245
+ return /* @__PURE__ */ c.jsxs("div", { className: "grid overflow-hidden items-center", style: Yc, children: [
4246
+ /* @__PURE__ */ c.jsxs(Co, { children: [
4247
+ /* @__PURE__ */ c.jsx(Eo, { asChild: !0, children: /* @__PURE__ */ c.jsx(
4248
4248
  Jt,
4249
4249
  {
4250
4250
  className: "cursor-pointer",
@@ -4254,7 +4254,7 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4254
4254
  }
4255
4255
  ) }),
4256
4256
  /* @__PURE__ */ c.jsxs(
4257
- jo,
4257
+ So,
4258
4258
  {
4259
4259
  className: "grid grid-rows-auto backdrop-blur-md w-auto max-w-2xl max-h-[50vh] overflow-y-auto",
4260
4260
  hideWhenDetached: !0,
@@ -4279,7 +4279,7 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4279
4279
  }
4280
4280
  )
4281
4281
  ] }),
4282
- /* @__PURE__ */ c.jsx("div", { className: "grid items-center min-w-0", style: a, children: s.map((u, l) => /* @__PURE__ */ c.jsxs(pr, { children: [
4282
+ /* @__PURE__ */ c.jsx("div", { className: "grid items-center min-w-0", style: a, children: s.map((u, l) => /* @__PURE__ */ c.jsxs(vr, { children: [
4283
4283
  /* @__PURE__ */ c.jsx(Xt, { arg: u }),
4284
4284
  l < s.length - 1 && /* @__PURE__ */ c.jsx("span", { children: ", " })
4285
4285
  ] }, l)) }),
@@ -4288,23 +4288,23 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4288
4288
  }
4289
4289
  );
4290
4290
  bt.displayName = "FunctionCall";
4291
- const No = V(({ event: e }) => {
4291
+ const To = V(({ event: e }) => {
4292
4292
  const t = z(() => [{ topic: e.topic, data: e.data }], [e]);
4293
4293
  return /* @__PURE__ */ c.jsx(bt, { functionName: "emit", args: t });
4294
4294
  });
4295
- No.displayName = "TraceEmitEvent";
4296
- const Oo = V(({ event: e }) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2", children: [
4297
- /* @__PURE__ */ c.jsx(Uo, { level: e.level }),
4295
+ To.displayName = "TraceEmitEvent";
4296
+ const ko = V(({ event: e }) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2", children: [
4297
+ /* @__PURE__ */ c.jsx(Zo, { level: e.level }),
4298
4298
  " ",
4299
4299
  e.message
4300
4300
  ] }));
4301
- Oo.displayName = "TraceLogEvent";
4302
- const Ro = V(({ event: e }) => {
4301
+ ko.displayName = "TraceLogEvent";
4302
+ const Mo = V(({ event: e }) => {
4303
4303
  const t = z(() => [e.data.traceId, e.data.key, e.data.value], [e]);
4304
4304
  return /* @__PURE__ */ c.jsx(bt, { objectName: "state", functionName: e.operation, args: t });
4305
4305
  });
4306
- Ro.displayName = "TraceStateEvent";
4307
- const To = V(({ event: e }) => {
4306
+ Mo.displayName = "TraceStateEvent";
4307
+ const _o = V(({ event: e }) => {
4308
4308
  const t = z(
4309
4309
  () => [e.data.groupId, e.data.id, e.data.data],
4310
4310
  [e]
@@ -4320,32 +4320,32 @@ const To = V(({ event: e }) => {
4320
4320
  }
4321
4321
  );
4322
4322
  });
4323
- To.displayName = "TraceStreamEvent";
4324
- const ko = V(({ event: e }) => {
4323
+ _o.displayName = "TraceStreamEvent";
4324
+ const Do = V(({ event: e }) => {
4325
4325
  if (e.type === "log")
4326
- return /* @__PURE__ */ c.jsx(Oo, { event: e });
4326
+ return /* @__PURE__ */ c.jsx(ko, { event: e });
4327
4327
  if (e.type === "emit")
4328
- return /* @__PURE__ */ c.jsx(No, { event: e });
4328
+ return /* @__PURE__ */ c.jsx(To, { event: e });
4329
4329
  if (e.type === "state")
4330
- return /* @__PURE__ */ c.jsx(Ro, { event: e });
4330
+ return /* @__PURE__ */ c.jsx(Mo, { event: e });
4331
4331
  if (e.type === "stream")
4332
- return /* @__PURE__ */ c.jsx(To, { event: e });
4332
+ return /* @__PURE__ */ c.jsx(_o, { event: e });
4333
4333
  });
4334
- ko.displayName = "TraceEvent";
4335
- const Mo = V(({ event: e, traceStartTime: t }) => /* @__PURE__ */ c.jsxs(pr, { children: [
4334
+ Do.displayName = "TraceEvent";
4335
+ const Fo = V(({ event: e, traceStartTime: t }) => /* @__PURE__ */ c.jsxs(vr, { children: [
4336
4336
  /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx("div", { className: "w-1 h-1 rounded-full bg-emerald-500 outline outline-2 outline-emerald-500/50 -ml-[26px]" }) }),
4337
- /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(Ps, { event: e }) }),
4337
+ /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(Rs, { event: e }) }),
4338
4338
  /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsxs("span", { className: "text-sm font-mono text-muted-foreground", children: [
4339
4339
  "+",
4340
4340
  we(Math.floor(e.timestamp - t))
4341
4341
  ] }) }),
4342
- /* @__PURE__ */ c.jsx("div", { className: "grid place-items-start", children: /* @__PURE__ */ c.jsx(ko, { event: e }) })
4342
+ /* @__PURE__ */ c.jsx("div", { className: "grid place-items-start", children: /* @__PURE__ */ c.jsx(Do, { event: e }) })
4343
4343
  ] }));
4344
- Mo.displayName = "TraceEventItem";
4345
- const _o = V(({ trace: e, onClose: t }) => {
4346
- const n = z(() => [{ icon: /* @__PURE__ */ c.jsx(xr, {}), onClick: t, label: "Close" }], [t]);
4344
+ Fo.displayName = "TraceEventItem";
4345
+ const Lo = V(({ trace: e, onClose: t }) => {
4346
+ const n = z(() => [{ icon: /* @__PURE__ */ c.jsx(jr, {}), onClick: t, label: "Close" }], [t]);
4347
4347
  return /* @__PURE__ */ c.jsxs(
4348
- Yo,
4348
+ Xo,
4349
4349
  {
4350
4350
  onClose: t,
4351
4351
  initialWidth: 600,
@@ -4360,12 +4360,12 @@ const _o = V(({ trace: e, onClose: t }) => {
4360
4360
  we(e.endTime - e.startTime)
4361
4361
  ] }),
4362
4362
  /* @__PURE__ */ c.jsx("div", { className: "bg-blue-500 font-bold text-xs px-[4px] py-[2px] rounded-sm text-blue-100", children: e.entryPoint.type }),
4363
- e.correlationId && /* @__PURE__ */ c.jsxs(hr, { variant: "outline", children: [
4363
+ e.correlationId && /* @__PURE__ */ c.jsxs(yr, { variant: "outline", children: [
4364
4364
  "Correlated: ",
4365
4365
  e.correlationId
4366
4366
  ] })
4367
4367
  ] }),
4368
- /* @__PURE__ */ c.jsx("div", { className: "grid grid-cols-[auto_auto_auto_1fr] gap-x-2 gap-y-3 font-mono text-xs border-l-1 border-gray-500/40 pl-6", children: e.events.map((r, o) => /* @__PURE__ */ c.jsx(Mo, { event: r, traceStartTime: e.startTime }, o)) })
4368
+ /* @__PURE__ */ c.jsx("div", { className: "grid grid-cols-[auto_auto_auto_1fr] gap-x-2 gap-y-3 font-mono text-xs border-l-1 border-gray-500/40 pl-6", children: e.events.map((r, o) => /* @__PURE__ */ c.jsx(Fo, { event: r, traceStartTime: e.startTime }, o)) })
4369
4369
  ] }),
4370
4370
  e.error && /* @__PURE__ */ c.jsxs("div", { className: "p-4 bg-red-800/10", children: [
4371
4371
  /* @__PURE__ */ c.jsx("div", { className: "text-sm text-red-800 dark:text-red-400 font-semibold", children: e.error.message }),
@@ -4375,27 +4375,27 @@ const _o = V(({ trace: e, onClose: t }) => {
4375
4375
  }
4376
4376
  );
4377
4377
  });
4378
- _o.displayName = "TraceItemDetail";
4379
- const Do = V(() => {
4380
- const e = K((t) => t.selectedTraceGroupId);
4381
- return e ? /* @__PURE__ */ c.jsx(Fo, { groupId: e }) : null;
4378
+ Lo.displayName = "TraceItemDetail";
4379
+ const Io = V(() => {
4380
+ const e = J((t) => t.selectedTraceGroupId);
4381
+ return e ? /* @__PURE__ */ c.jsx($o, { groupId: e }) : null;
4382
4382
  });
4383
- Do.displayName = "TraceTimeline";
4384
- const Fo = V(({ groupId: e }) => {
4383
+ Io.displayName = "TraceTimeline";
4384
+ const $o = V(({ groupId: e }) => {
4385
4385
  const t = z(
4386
4386
  () => ({ streamName: "motia-trace-group", groupId: "default", id: e }),
4387
4387
  [e]
4388
- ), { data: n } = Go(t), r = z(() => ({ streamName: "motia-trace", groupId: e }), [e]), { data: o } = gr(r), s = vs(n), [a, i] = G(100), u = K((p) => p.selectedTraceId), l = K((p) => p.selectTraceId), f = z(() => o?.find((p) => p.id === u), [o, u]), d = () => a > 100 && i((p) => p - 10), h = () => a < 200 && i((p) => p + 10);
4388
+ ), { data: n } = qo(t), r = z(() => ({ streamName: "motia-trace", groupId: e }), [e]), { data: o } = xr(r), s = bs(n), [a, i] = Y(100), u = J((p) => p.selectedTraceId), l = J((p) => p.selectTraceId), f = z(() => o?.find((p) => p.id === u), [o, u]), d = () => a > 100 && i((p) => p - 10), h = () => a < 200 && i((p) => p + 10);
4389
4389
  return n ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4390
4390
  /* @__PURE__ */ c.jsx("div", { className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", style: { width: `${a}%` }, children: [
4391
4391
  /* @__PURE__ */ c.jsxs("div", { className: "flex flex-1 bg-background", style: { width: `${a}%` }, children: [
4392
4392
  /* @__PURE__ */ c.jsxs("div", { className: "shrink-0 w-[200px] h-[37px] flex items-center justify-center gap-2 sticky left-0 top-0 z-10 bg-card backdrop-blur-xs backdrop-filter", children: [
4393
- /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: d, disabled: a <= 100, children: /* @__PURE__ */ c.jsx(ps, { className: "w-4 h-4 cursor-pointer" }) }),
4393
+ /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: d, disabled: a <= 100, children: /* @__PURE__ */ c.jsx(vs, { className: "w-4 h-4 cursor-pointer" }) }),
4394
4394
  /* @__PURE__ */ c.jsxs("span", { className: "min-w-12 text-center select-none text-sm font-bold text-muted-foreground", children: [
4395
4395
  a,
4396
4396
  "%"
4397
4397
  ] }),
4398
- /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: h, disabled: a >= 200, children: /* @__PURE__ */ c.jsx(gs, { className: "w-4 h-4 cursor-pointer" }) })
4398
+ /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: h, disabled: a >= 200, children: /* @__PURE__ */ c.jsx(xs, { className: "w-4 h-4 cursor-pointer" }) })
4399
4399
  ] }),
4400
4400
  /* @__PURE__ */ c.jsxs("div", { className: "flex justify-between font-mono p-2 w-full text-xs text-muted-foreground bg-card", children: [
4401
4401
  /* @__PURE__ */ c.jsx("span", { children: "0ms" }),
@@ -4406,7 +4406,7 @@ const Fo = V(({ groupId: e }) => {
4406
4406
  ] })
4407
4407
  ] }),
4408
4408
  /* @__PURE__ */ c.jsx("div", { className: "flex flex-col h-full", style: { width: `${a}%` }, children: o?.map((p) => /* @__PURE__ */ c.jsx(
4409
- jr,
4409
+ Sr,
4410
4410
  {
4411
4411
  traceId: p.id,
4412
4412
  traceName: p.name,
@@ -4420,33 +4420,31 @@ const Fo = V(({ groupId: e }) => {
4420
4420
  p.id
4421
4421
  )) })
4422
4422
  ] }) }),
4423
- f && /* @__PURE__ */ c.jsx(_o, { trace: f, onClose: () => l(void 0) })
4423
+ f && /* @__PURE__ */ c.jsx(Lo, { trace: f, onClose: () => l(void 0) })
4424
4424
  ] }) : null;
4425
4425
  });
4426
- Fo.displayName = "TraceTimelineComponent";
4427
- const Vc = () => {
4428
- const e = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: t } = gr(e), n = K((r) => r.search);
4426
+ $o.displayName = "TraceTimelineComponent";
4427
+ const Gc = () => {
4428
+ const e = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: t } = xr(e), n = J((r) => r.search);
4429
4429
  return z(
4430
4430
  () => t?.filter(
4431
4431
  (r) => r.name.toLowerCase().includes(n.toLowerCase()) || r.id.toLowerCase().includes(n.toLowerCase())
4432
4432
  ),
4433
4433
  [t, n]
4434
4434
  );
4435
- };
4436
- function Y(e) {
4437
- const t = Object.prototype.toString.call(e);
4438
- return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
4435
+ }, rt = 43200, pr = 1440, hr = Symbol.for("constructDateFrom");
4436
+ function xn(e, t) {
4437
+ return typeof e == "function" ? e(t) : e && typeof e == "object" && hr in e ? e[hr](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
4439
4438
  }
4440
- function Uc(e, t) {
4441
- return e instanceof Date ? new e.constructor(t) : new Date(t);
4439
+ function ge(e, t) {
4440
+ return xn(e, e);
4442
4441
  }
4443
- const rt = 43200, dr = 1440;
4444
- let Yc = {};
4445
- function Gc() {
4446
- return Yc;
4442
+ let Zc = {};
4443
+ function Xc() {
4444
+ return Zc;
4447
4445
  }
4448
- function mr(e) {
4449
- const t = Y(e), n = new Date(
4446
+ function gr(e) {
4447
+ const t = ge(e), n = new Date(
4450
4448
  Date.UTC(
4451
4449
  t.getFullYear(),
4452
4450
  t.getMonth(),
@@ -4459,57 +4457,70 @@ function mr(e) {
4459
4457
  );
4460
4458
  return n.setUTCFullYear(t.getFullYear()), +e - +n;
4461
4459
  }
4460
+ function bn(e, ...t) {
4461
+ const n = xn.bind(
4462
+ null,
4463
+ t.find((r) => typeof r == "object")
4464
+ );
4465
+ return t.map(n);
4466
+ }
4462
4467
  function it(e, t) {
4463
- const n = Y(e), r = Y(t), o = n.getTime() - r.getTime();
4464
- return o < 0 ? -1 : o > 0 ? 1 : o;
4468
+ const n = +ge(e) - +ge(t);
4469
+ return n < 0 ? -1 : n > 0 ? 1 : n;
4465
4470
  }
4466
- function Zc(e) {
4467
- return Uc(e, Date.now());
4471
+ function qc(e) {
4472
+ return xn(e, Date.now());
4468
4473
  }
4469
- function Xc(e, t) {
4470
- const n = Y(e), r = Y(t), o = n.getFullYear() - r.getFullYear(), s = n.getMonth() - r.getMonth();
4471
- return o * 12 + s;
4474
+ function Jc(e, t, n) {
4475
+ const [r, o] = bn(
4476
+ n?.in,
4477
+ e,
4478
+ t
4479
+ ), s = r.getFullYear() - o.getFullYear(), a = r.getMonth() - o.getMonth();
4480
+ return s * 12 + a;
4472
4481
  }
4473
- function qc(e) {
4482
+ function Kc(e) {
4474
4483
  return (t) => {
4475
4484
  const n = Math.trunc, r = n(t);
4476
4485
  return r === 0 ? 0 : r;
4477
4486
  };
4478
4487
  }
4479
- function Jc(e, t) {
4480
- return +Y(e) - +Y(t);
4481
- }
4482
- function Kc(e) {
4483
- const t = Y(e);
4484
- return t.setHours(23, 59, 59, 999), t;
4485
- }
4486
- function Qc(e) {
4487
- const t = Y(e), n = t.getMonth();
4488
- return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
4488
+ function Qc(e, t) {
4489
+ return +ge(e) - +ge(t);
4489
4490
  }
4490
- function el(e) {
4491
- const t = Y(e);
4492
- return +Kc(t) == +Qc(t);
4491
+ function el(e, t) {
4492
+ const n = ge(e);
4493
+ return n.setHours(23, 59, 59, 999), n;
4493
4494
  }
4494
4495
  function tl(e, t) {
4495
- const n = Y(e), r = Y(t), o = it(n, r), s = Math.abs(
4496
- Xc(n, r)
4496
+ const n = ge(e), r = n.getMonth();
4497
+ return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
4498
+ }
4499
+ function nl(e, t) {
4500
+ const n = ge(e);
4501
+ return +el(n) == +tl(n);
4502
+ }
4503
+ function rl(e, t, n) {
4504
+ const [r, o, s] = bn(
4505
+ n?.in,
4506
+ e,
4507
+ e,
4508
+ t
4509
+ ), a = it(o, s), i = Math.abs(
4510
+ Jc(o, s)
4497
4511
  );
4498
- let a;
4499
- if (s < 1)
4500
- a = 0;
4501
- else {
4502
- n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - o * s);
4503
- let i = it(n, r) === -o;
4504
- el(Y(e)) && s === 1 && it(e, r) === 1 && (i = !1), a = o * (s - Number(i));
4505
- }
4506
- return a === 0 ? 0 : a;
4512
+ if (i < 1) return 0;
4513
+ o.getMonth() === 1 && o.getDate() > 27 && o.setDate(30), o.setMonth(o.getMonth() - a * i);
4514
+ let u = it(o, s) === -a;
4515
+ nl(r) && i === 1 && it(r, s) === 1 && (u = !1);
4516
+ const l = a * (i - +u);
4517
+ return l === 0 ? 0 : l;
4507
4518
  }
4508
- function nl(e, t, n) {
4509
- const r = Jc(e, t) / 1e3;
4510
- return qc()(r);
4519
+ function ol(e, t, n) {
4520
+ const r = Qc(e, t) / 1e3;
4521
+ return Kc()(r);
4511
4522
  }
4512
- const rl = {
4523
+ const sl = {
4513
4524
  lessThanXSeconds: {
4514
4525
  one: "less than a second",
4515
4526
  other: "less than {{count}} seconds"
@@ -4571,9 +4582,9 @@ const rl = {
4571
4582
  one: "almost 1 year",
4572
4583
  other: "almost {{count}} years"
4573
4584
  }
4574
- }, ol = (e, t, n) => {
4585
+ }, al = (e, t, n) => {
4575
4586
  let r;
4576
- const o = rl[e];
4587
+ const o = sl[e];
4577
4588
  return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
4578
4589
  };
4579
4590
  function Tt(e) {
@@ -4582,42 +4593,42 @@ function Tt(e) {
4582
4593
  return e.formats[n] || e.formats[e.defaultWidth];
4583
4594
  };
4584
4595
  }
4585
- const sl = {
4596
+ const il = {
4586
4597
  full: "EEEE, MMMM do, y",
4587
4598
  long: "MMMM do, y",
4588
4599
  medium: "MMM d, y",
4589
4600
  short: "MM/dd/yyyy"
4590
- }, al = {
4601
+ }, cl = {
4591
4602
  full: "h:mm:ss a zzzz",
4592
4603
  long: "h:mm:ss a z",
4593
4604
  medium: "h:mm:ss a",
4594
4605
  short: "h:mm a"
4595
- }, il = {
4606
+ }, ll = {
4596
4607
  full: "{{date}} 'at' {{time}}",
4597
4608
  long: "{{date}} 'at' {{time}}",
4598
4609
  medium: "{{date}}, {{time}}",
4599
4610
  short: "{{date}}, {{time}}"
4600
- }, cl = {
4611
+ }, ul = {
4601
4612
  date: Tt({
4602
- formats: sl,
4613
+ formats: il,
4603
4614
  defaultWidth: "full"
4604
4615
  }),
4605
4616
  time: Tt({
4606
- formats: al,
4617
+ formats: cl,
4607
4618
  defaultWidth: "full"
4608
4619
  }),
4609
4620
  dateTime: Tt({
4610
- formats: il,
4621
+ formats: ll,
4611
4622
  defaultWidth: "full"
4612
4623
  })
4613
- }, ll = {
4624
+ }, fl = {
4614
4625
  lastWeek: "'last' eeee 'at' p",
4615
4626
  yesterday: "'yesterday at' p",
4616
4627
  today: "'today at' p",
4617
4628
  tomorrow: "'tomorrow at' p",
4618
4629
  nextWeek: "eeee 'at' p",
4619
4630
  other: "P"
4620
- }, ul = (e, t, n, r) => ll[e];
4631
+ }, dl = (e, t, n, r) => fl[e];
4621
4632
  function Be(e) {
4622
4633
  return (t, n) => {
4623
4634
  const r = n?.context ? String(n.context) : "standalone";
@@ -4633,15 +4644,15 @@ function Be(e) {
4633
4644
  return o[s];
4634
4645
  };
4635
4646
  }
4636
- const fl = {
4647
+ const ml = {
4637
4648
  narrow: ["B", "A"],
4638
4649
  abbreviated: ["BC", "AD"],
4639
4650
  wide: ["Before Christ", "Anno Domini"]
4640
- }, dl = {
4651
+ }, pl = {
4641
4652
  narrow: ["1", "2", "3", "4"],
4642
4653
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
4643
4654
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
4644
- }, ml = {
4655
+ }, hl = {
4645
4656
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
4646
4657
  abbreviated: [
4647
4658
  "Jan",
@@ -4671,7 +4682,7 @@ const fl = {
4671
4682
  "November",
4672
4683
  "December"
4673
4684
  ]
4674
- }, pl = {
4685
+ }, gl = {
4675
4686
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
4676
4687
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
4677
4688
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -4684,7 +4695,7 @@ const fl = {
4684
4695
  "Friday",
4685
4696
  "Saturday"
4686
4697
  ]
4687
- }, hl = {
4698
+ }, vl = {
4688
4699
  narrow: {
4689
4700
  am: "a",
4690
4701
  pm: "p",
@@ -4715,7 +4726,7 @@ const fl = {
4715
4726
  evening: "evening",
4716
4727
  night: "night"
4717
4728
  }
4718
- }, gl = {
4729
+ }, yl = {
4719
4730
  narrow: {
4720
4731
  am: "a",
4721
4732
  pm: "p",
@@ -4746,7 +4757,7 @@ const fl = {
4746
4757
  evening: "in the evening",
4747
4758
  night: "at night"
4748
4759
  }
4749
- }, vl = (e, t) => {
4760
+ }, xl = (e, t) => {
4750
4761
  const n = Number(e), r = n % 100;
4751
4762
  if (r > 20 || r < 10)
4752
4763
  switch (r % 10) {
@@ -4758,29 +4769,29 @@ const fl = {
4758
4769
  return n + "rd";
4759
4770
  }
4760
4771
  return n + "th";
4761
- }, yl = {
4762
- ordinalNumber: vl,
4772
+ }, bl = {
4773
+ ordinalNumber: xl,
4763
4774
  era: Be({
4764
- values: fl,
4775
+ values: ml,
4765
4776
  defaultWidth: "wide"
4766
4777
  }),
4767
4778
  quarter: Be({
4768
- values: dl,
4779
+ values: pl,
4769
4780
  defaultWidth: "wide",
4770
4781
  argumentCallback: (e) => e - 1
4771
4782
  }),
4772
4783
  month: Be({
4773
- values: ml,
4784
+ values: hl,
4774
4785
  defaultWidth: "wide"
4775
4786
  }),
4776
4787
  day: Be({
4777
- values: pl,
4788
+ values: gl,
4778
4789
  defaultWidth: "wide"
4779
4790
  }),
4780
4791
  dayPeriod: Be({
4781
- values: hl,
4792
+ values: vl,
4782
4793
  defaultWidth: "wide",
4783
- formattingValues: gl,
4794
+ formattingValues: yl,
4784
4795
  defaultFormattingWidth: "wide"
4785
4796
  })
4786
4797
  };
@@ -4789,30 +4800,30 @@ function ze(e) {
4789
4800
  const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
4790
4801
  if (!s)
4791
4802
  return null;
4792
- const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? bl(i, (d) => d.test(a)) : (
4793
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
4794
- xl(i, (d) => d.test(a))
4803
+ const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? jl(i, (d) => d.test(a)) : (
4804
+ // [TODO] -- I challenge you to fix the type
4805
+ wl(i, (d) => d.test(a))
4795
4806
  );
4796
4807
  let l;
4797
4808
  l = e.valueCallback ? e.valueCallback(u) : u, l = n.valueCallback ? (
4798
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
4809
+ // [TODO] -- I challenge you to fix the type
4799
4810
  n.valueCallback(l)
4800
4811
  ) : l;
4801
4812
  const f = t.slice(a.length);
4802
4813
  return { value: l, rest: f };
4803
4814
  };
4804
4815
  }
4805
- function xl(e, t) {
4816
+ function wl(e, t) {
4806
4817
  for (const n in e)
4807
4818
  if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
4808
4819
  return n;
4809
4820
  }
4810
- function bl(e, t) {
4821
+ function jl(e, t) {
4811
4822
  for (let n = 0; n < e.length; n++)
4812
4823
  if (t(e[n]))
4813
4824
  return n;
4814
4825
  }
4815
- function wl(e) {
4826
+ function Cl(e) {
4816
4827
  return (t, n = {}) => {
4817
4828
  const r = t.match(e.matchPattern);
4818
4829
  if (!r) return null;
@@ -4824,23 +4835,23 @@ function wl(e) {
4824
4835
  return { value: a, rest: i };
4825
4836
  };
4826
4837
  }
4827
- const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4838
+ const El = /^(\d+)(th|st|nd|rd)?/i, Sl = /\d+/i, Al = {
4828
4839
  narrow: /^(b|a)/i,
4829
4840
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
4830
4841
  wide: /^(before christ|before common era|anno domini|common era)/i
4831
- }, Sl = {
4842
+ }, Pl = {
4832
4843
  any: [/^b/i, /^(a|c)/i]
4833
- }, Al = {
4844
+ }, Nl = {
4834
4845
  narrow: /^[1234]/i,
4835
4846
  abbreviated: /^q[1234]/i,
4836
4847
  wide: /^[1234](th|st|nd|rd)? quarter/i
4837
- }, Pl = {
4848
+ }, Ol = {
4838
4849
  any: [/1/i, /2/i, /3/i, /4/i]
4839
- }, Nl = {
4850
+ }, Rl = {
4840
4851
  narrow: /^[jfmasond]/i,
4841
4852
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
4842
4853
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
4843
- }, Ol = {
4854
+ }, Tl = {
4844
4855
  narrow: [
4845
4856
  /^j/i,
4846
4857
  /^f/i,
@@ -4869,18 +4880,18 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4869
4880
  /^n/i,
4870
4881
  /^d/i
4871
4882
  ]
4872
- }, Rl = {
4883
+ }, kl = {
4873
4884
  narrow: /^[smtwf]/i,
4874
4885
  short: /^(su|mo|tu|we|th|fr|sa)/i,
4875
4886
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
4876
4887
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
4877
- }, Tl = {
4888
+ }, Ml = {
4878
4889
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
4879
4890
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
4880
- }, kl = {
4891
+ }, _l = {
4881
4892
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
4882
4893
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
4883
- }, Ml = {
4894
+ }, Dl = {
4884
4895
  any: {
4885
4896
  am: /^a/i,
4886
4897
  pm: /^p/i,
@@ -4891,66 +4902,65 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4891
4902
  evening: /evening/i,
4892
4903
  night: /night/i
4893
4904
  }
4894
- }, _l = {
4895
- ordinalNumber: wl({
4896
- matchPattern: jl,
4897
- parsePattern: Cl,
4905
+ }, Fl = {
4906
+ ordinalNumber: Cl({
4907
+ matchPattern: El,
4908
+ parsePattern: Sl,
4898
4909
  valueCallback: (e) => parseInt(e, 10)
4899
4910
  }),
4900
4911
  era: ze({
4901
- matchPatterns: El,
4912
+ matchPatterns: Al,
4902
4913
  defaultMatchWidth: "wide",
4903
- parsePatterns: Sl,
4914
+ parsePatterns: Pl,
4904
4915
  defaultParseWidth: "any"
4905
4916
  }),
4906
4917
  quarter: ze({
4907
- matchPatterns: Al,
4918
+ matchPatterns: Nl,
4908
4919
  defaultMatchWidth: "wide",
4909
- parsePatterns: Pl,
4920
+ parsePatterns: Ol,
4910
4921
  defaultParseWidth: "any",
4911
4922
  valueCallback: (e) => e + 1
4912
4923
  }),
4913
4924
  month: ze({
4914
- matchPatterns: Nl,
4925
+ matchPatterns: Rl,
4915
4926
  defaultMatchWidth: "wide",
4916
- parsePatterns: Ol,
4927
+ parsePatterns: Tl,
4917
4928
  defaultParseWidth: "any"
4918
4929
  }),
4919
4930
  day: ze({
4920
- matchPatterns: Rl,
4931
+ matchPatterns: kl,
4921
4932
  defaultMatchWidth: "wide",
4922
- parsePatterns: Tl,
4933
+ parsePatterns: Ml,
4923
4934
  defaultParseWidth: "any"
4924
4935
  }),
4925
4936
  dayPeriod: ze({
4926
- matchPatterns: kl,
4937
+ matchPatterns: _l,
4927
4938
  defaultMatchWidth: "any",
4928
- parsePatterns: Ml,
4939
+ parsePatterns: Dl,
4929
4940
  defaultParseWidth: "any"
4930
4941
  })
4931
- }, Dl = {
4942
+ }, Ll = {
4932
4943
  code: "en-US",
4933
- formatDistance: ol,
4934
- formatLong: cl,
4935
- formatRelative: ul,
4936
- localize: yl,
4937
- match: _l,
4944
+ formatDistance: al,
4945
+ formatLong: ul,
4946
+ formatRelative: dl,
4947
+ localize: bl,
4948
+ match: Fl,
4938
4949
  options: {
4939
4950
  weekStartsOn: 0,
4940
4951
  firstWeekContainsDate: 1
4941
4952
  }
4942
4953
  };
4943
- function Fl(e, t, n) {
4944
- const r = Gc(), o = n?.locale ?? r.locale ?? Dl, s = 2520, a = it(e, t);
4945
- if (isNaN(a))
4946
- throw new RangeError("Invalid time value");
4954
+ function Il(e, t, n) {
4955
+ const r = Xc(), o = n?.locale ?? r.locale ?? Ll, s = 2520, a = it(e, t);
4956
+ if (isNaN(a)) throw new RangeError("Invalid time value");
4947
4957
  const i = Object.assign({}, n, {
4948
4958
  addSuffix: n?.addSuffix,
4949
4959
  comparison: a
4950
- });
4951
- let u, l;
4952
- a > 0 ? (u = Y(t), l = Y(e)) : (u = Y(e), l = Y(t));
4953
- const f = nl(l, u), d = (mr(l) - mr(u)) / 1e3, h = Math.round((f - d) / 60);
4960
+ }), [u, l] = bn(
4961
+ n?.in,
4962
+ ...a > 0 ? [t, e] : [e, t]
4963
+ ), f = ol(l, u), d = (gr(l) - gr(u)) / 1e3, h = Math.round((f - d) / 60);
4954
4964
  let p;
4955
4965
  if (h < 2)
4956
4966
  return h === 0 ? o.formatDistance("lessThanXMinutes", 1, i) : o.formatDistance("xMinutes", h, i);
@@ -4958,19 +4968,19 @@ function Fl(e, t, n) {
4958
4968
  return o.formatDistance("xMinutes", h, i);
4959
4969
  if (h < 90)
4960
4970
  return o.formatDistance("aboutXHours", 1, i);
4961
- if (h < dr) {
4971
+ if (h < pr) {
4962
4972
  const v = Math.round(h / 60);
4963
4973
  return o.formatDistance("aboutXHours", v, i);
4964
4974
  } else {
4965
4975
  if (h < s)
4966
4976
  return o.formatDistance("xDays", 1, i);
4967
4977
  if (h < rt) {
4968
- const v = Math.round(h / dr);
4978
+ const v = Math.round(h / pr);
4969
4979
  return o.formatDistance("xDays", v, i);
4970
4980
  } else if (h < rt * 2)
4971
4981
  return p = Math.round(h / rt), o.formatDistance("aboutXMonths", p, i);
4972
4982
  }
4973
- if (p = tl(l, u), p < 12) {
4983
+ if (p = rl(l, u), p < 12) {
4974
4984
  const v = Math.round(h / rt);
4975
4985
  return o.formatDistance("xMonths", v, i);
4976
4986
  } else {
@@ -4978,22 +4988,22 @@ function Fl(e, t, n) {
4978
4988
  return v < 3 ? o.formatDistance("aboutXYears", g, i) : v < 9 ? o.formatDistance("overXYears", g, i) : o.formatDistance("almostXYears", g + 1, i);
4979
4989
  }
4980
4990
  }
4981
- function Ll(e, t) {
4982
- return Fl(e, Zc(e), t);
4991
+ function $l(e, t) {
4992
+ return Il(e, qc(e), t);
4983
4993
  }
4984
- const Il = {
4994
+ const Wl = {
4985
4995
  running: "info",
4986
4996
  completed: "success",
4987
4997
  failed: "error",
4988
4998
  default: "default"
4989
- }, Lo = V(({ status: e, duration: t }) => /* @__PURE__ */ c.jsx(hr, { variant: Il[e], children: t && e !== "failed" ? t : e }));
4990
- Lo.displayName = "TraceStatusBadge";
4991
- const Io = V(
4999
+ }, Wo = V(({ status: e, duration: t }) => /* @__PURE__ */ c.jsx(yr, { variant: Wl[e], children: t && e !== "failed" ? t : e }));
5000
+ Wo.displayName = "TraceStatusBadge";
5001
+ const Ho = V(
4992
5002
  ({ groupId: e, groupName: t, groupStatus: n, groupStartTime: r, groupEndTime: o, totalSteps: s, activeSteps: a, isSelected: i }) => {
4993
- const u = K((d) => d.selectTraceGroupId), l = z(
5003
+ const u = J((d) => d.selectTraceGroupId), l = z(
4994
5004
  () => o ? we(o - r) : void 0,
4995
5005
  [o, r]
4996
- ), f = de(() => {
5006
+ ), f = fe(() => {
4997
5007
  u(e);
4998
5008
  }, [e, u]);
4999
5009
  return /* @__PURE__ */ c.jsx(
@@ -5009,7 +5019,7 @@ const Io = V(
5009
5019
  children: /* @__PURE__ */ c.jsxs("div", { className: "p-3 flex flex-col gap-1", children: [
5010
5020
  /* @__PURE__ */ c.jsxs("div", { className: "flex flex-row justify-between items-center gap-2", children: [
5011
5021
  /* @__PURE__ */ c.jsx("span", { className: "font-semibold text-lg truncate flex-1 min-w-0", children: t }),
5012
- /* @__PURE__ */ c.jsx(Lo, { status: n, duration: l })
5022
+ /* @__PURE__ */ c.jsx(Wo, { status: n, duration: l })
5013
5023
  ] }),
5014
5024
  /* @__PURE__ */ c.jsxs("div", { className: "text-xs text-muted-foreground space-y-1", children: [
5015
5025
  /* @__PURE__ */ c.jsxs("div", { className: "flex justify-between", children: [
@@ -5020,7 +5030,7 @@ const Io = V(
5020
5030
  ] })
5021
5031
  ] }),
5022
5032
  /* @__PURE__ */ c.jsxs("div", { className: "flex justify-between", children: [
5023
- Ll(r),
5033
+ $l(r),
5024
5034
  " ago"
5025
5035
  ] }),
5026
5036
  a > 0 && /* @__PURE__ */ c.jsxs("div", { className: "text-blue-600", children: [
@@ -5034,9 +5044,9 @@ const Io = V(
5034
5044
  );
5035
5045
  }
5036
5046
  );
5037
- Io.displayName = "TraceGroupItem";
5038
- const $o = V(() => {
5039
- const e = Vc(), t = K((a) => a.selectedTraceGroupId), n = K((a) => a.selectTraceGroupId), r = z(() => e?.length || 0, [e]), o = z(() => {
5047
+ Ho.displayName = "TraceGroupItem";
5048
+ const Bo = V(() => {
5049
+ const e = Gc(), t = J((a) => a.selectedTraceGroupId), n = J((a) => a.selectTraceGroupId), r = z(() => e?.length || 0, [e]), o = z(() => {
5040
5050
  if (!e || e.length === 0) return "";
5041
5051
  const a = e[e.length - 1];
5042
5052
  return a?.status === "running" ? a.id : "";
@@ -5046,7 +5056,7 @@ const $o = V(() => {
5046
5056
  }, [o, r]);
5047
5057
  const s = z(() => [...e].reverse(), [e]);
5048
5058
  return !e || e.length === 0 ? null : /* @__PURE__ */ c.jsx("div", { className: "overflow-auto", children: s.map((a) => /* @__PURE__ */ c.jsx(
5049
- Io,
5059
+ Ho,
5050
5060
  {
5051
5061
  groupId: a.id,
5052
5062
  groupName: a.name,
@@ -5060,34 +5070,34 @@ const $o = V(() => {
5060
5070
  a.id
5061
5071
  )) });
5062
5072
  });
5063
- $o.displayName = "TracesGroups";
5064
- const $l = V(() => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-rows-[auto_1fr] h-full", children: [
5065
- /* @__PURE__ */ c.jsx(br, {}),
5073
+ Bo.displayName = "TracesGroups";
5074
+ const Hl = V(() => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-rows-[auto_1fr] h-full", children: [
5075
+ /* @__PURE__ */ c.jsx(Cr, {}),
5066
5076
  /* @__PURE__ */ c.jsxs("div", { className: "grid grid-cols-[300px_1fr] overflow-hidden", children: [
5067
- /* @__PURE__ */ c.jsx("div", { className: "w-[300px] border-r border-border overflow-auto h-full", "data-testid": "traces-container", children: /* @__PURE__ */ c.jsx($o, {}) }),
5077
+ /* @__PURE__ */ c.jsx("div", { className: "w-[300px] border-r border-border overflow-auto h-full", "data-testid": "traces-container", children: /* @__PURE__ */ c.jsx(Bo, {}) }),
5068
5078
  /* @__PURE__ */ c.jsxs("div", { className: "overflow-auto", "data-testid": "trace-details", children: [
5069
- /* @__PURE__ */ c.jsx(Do, {}),
5070
- /* @__PURE__ */ c.jsx(wr, {})
5079
+ /* @__PURE__ */ c.jsx(Io, {}),
5080
+ /* @__PURE__ */ c.jsx(Er, {})
5071
5081
  ] })
5072
5082
  ] })
5073
5083
  ] }));
5074
- $l.displayName = "ObservabilityPage";
5084
+ Hl.displayName = "ObservabilityPage";
5075
5085
  /**
5076
- * @license lucide-react v0.545.0 - ISC
5086
+ * @license lucide-react v0.548.0 - ISC
5077
5087
  *
5078
5088
  * This source code is licensed under the ISC license.
5079
5089
  * See the LICENSE file in the root directory of this source tree.
5080
5090
  */
5081
- const Wl = [
5091
+ const Bl = [
5082
5092
  ["path", { d: "M6 5h12", key: "fvfigv" }],
5083
5093
  ["path", { d: "M4 12h10", key: "oujl3d" }],
5084
5094
  ["path", { d: "M12 19h8", key: "baeox8" }]
5085
- ], Hl = J("chart-no-axes-gantt", Wl), Bl = V(() => /* @__PURE__ */ c.jsxs("div", { "data-testid": "observability-link", children: [
5086
- /* @__PURE__ */ c.jsx(Hl, { "aria-hidden": "true" }),
5095
+ ], zl = q("chart-no-axes-gantt", Bl), Vl = V(() => /* @__PURE__ */ c.jsxs("div", { "data-testid": "observability-link", children: [
5096
+ /* @__PURE__ */ c.jsx(zl, { "aria-hidden": "true" }),
5087
5097
  /* @__PURE__ */ c.jsx("span", { children: "Tracing" })
5088
5098
  ] }));
5089
- Bl.displayName = "ObservabilityTabLabel";
5099
+ Vl.displayName = "ObservabilityTabLabel";
5090
5100
  export {
5091
- $l as ObservabilityPage,
5092
- Bl as ObservabilityTabLabel
5101
+ Hl as ObservabilityPage,
5102
+ Vl as ObservabilityTabLabel
5093
5103
  };