@sheetxl/utils-react 0.8.0-beta.3 → 0.8.0-beta.4

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.
@@ -1,35 +1,35 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.3
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.4
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { CommonUtils as e, DefaultLanguagePackService as t, DefaultNotifier as n, ExpectedError as o, InternalClipboard as r, Notifier as i, TimerUtils as s, fetchLocaleResourceAll as l, formatMessage as a, loadPackageLocales as c, mergeMessageFiles as h, resolveLocaleChain as u } from "@sheetxl/utils";
8
- import * as d from "react";
9
- import f, { Component as p, cloneElement as m, createContext as g, createElement as _, forwardRef as v, isValidElement as y, lazy as b, memo as w, useCallback as x, useContext as S, useEffect as C, useId as M, useImperativeHandle as E, useLayoutEffect as T, useMemo as k, useReducer as L, useRef as D, useState as P, useSyncExternalStore as A } from "react";
10
- import { Fragment as z, jsx as R, jsxs as $ } from "react/jsx-runtime";
11
- import * as B from "detect-it";
12
- import { useMeasure as I } from "react-use";
13
- import { mergeRefs as H } from "react-merge-refs";
14
- import { createRoot as N } from "react-dom/client";
15
- import { createPortal as O, unstable_batchedUpdates as F } from "react-dom";
16
- import W from "clsx";
17
- import { autoUpdate as K, flip as V, offset as j, size as Y, useFloating as U } from "@floating-ui/react-dom";
18
- import { DraggableCore as X } from "react-draggable";
19
- import q from "prop-types";
20
- var Z = Object.defineProperty, G = (e, t) => {
7
+ import { CommonUtils as e, DefaultLanguagePackService as t, DefaultNotifier as n, ExpectedError as o, InternalClipboard as r, Notifier as i, TimerUtils as s, fetchLocaleResourceAll as l, formatMessage as a, loadPackageLocales as c, mergeMessageFiles as h, onResourceRootsChange as u, resolveLocaleChain as d } from "@sheetxl/utils";
8
+ import * as f from "react";
9
+ import p, { Component as m, cloneElement as g, createContext as _, createElement as v, forwardRef as y, isValidElement as b, lazy as w, memo as x, useCallback as S, useContext as C, useEffect as M, useId as E, useImperativeHandle as T, useLayoutEffect as k, useMemo as L, useReducer as D, useRef as P, useState as A, useSyncExternalStore as z } from "react";
10
+ import { Fragment as R, jsx as $, jsxs as B } from "react/jsx-runtime";
11
+ import * as I from "detect-it";
12
+ import { useMeasure as H } from "react-use";
13
+ import { mergeRefs as N } from "react-merge-refs";
14
+ import { createRoot as O } from "react-dom/client";
15
+ import { createPortal as F, unstable_batchedUpdates as W } from "react-dom";
16
+ import K from "clsx";
17
+ import { autoUpdate as V, flip as j, offset as Y, size as U, useFloating as X } from "@floating-ui/react-dom";
18
+ import { DraggableCore as q } from "react-draggable";
19
+ import Z from "prop-types";
20
+ var G = Object.defineProperty, J = (e, t) => {
21
21
  let n = {};
22
- for (var o in e) Z(n, o, {
22
+ for (var o in e) G(n, o, {
23
23
  get: e[o],
24
24
  enumerable: !0
25
25
  });
26
- return t || Z(n, Symbol.toStringTag, { value: "Module" }), n;
27
- }, J = {
26
+ return t || G(n, Symbol.toStringTag, { value: "Module" }), n;
27
+ }, Q = {
28
28
  Shift: "shift",
29
29
  Alt: "alt",
30
30
  Ctrl: "ctrl",
31
31
  Meta: "meta"
32
- }, Q = {
32
+ }, ee = {
33
33
  BackSpace: 8,
34
34
  Tab: 9,
35
35
  Clear: 12,
@@ -74,15 +74,15 @@ var Z = Object.defineProperty, G = (e, t) => {
74
74
  BracketRight: 221,
75
75
  BracketLeft: 219,
76
76
  Composition: 229
77
- }, ee = {
77
+ }, te = {
78
78
  Left: 1,
79
79
  Middle: 2,
80
80
  Right: 3
81
- }, te = {
81
+ }, ne = {
82
82
  Toolbar: "toolbar",
83
83
  Menuitem: "menuitem"
84
- }, ne = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
85
- function oe(e, t) {
84
+ }, oe = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
85
+ function re(e, t) {
86
86
  const n = {}, o = {}, r = t.length;
87
87
  for (let i = 0; i < r; i++) {
88
88
  const r = t[i];
@@ -91,7 +91,7 @@ function oe(e, t) {
91
91
  if ("key" === e) continue;
92
92
  const t = r[e];
93
93
  if (void 0 !== t) {
94
- if (ne.has(e) && Array.isArray(t)) {
94
+ if (oe.has(e) && Array.isArray(t)) {
95
95
  const o = n[e];
96
96
  n[e] = [...t, ...o ?? []];
97
97
  } else n[e] = t;
@@ -105,7 +105,7 @@ function oe(e, t) {
105
105
  contributedBy: o
106
106
  };
107
107
  }
108
- var re = class {
108
+ var ie = class {
109
109
  constructor() {
110
110
  this._byName = /* @__PURE__ */ new Map(), this._dynamicByName = /* @__PURE__ */ new Map(), this._listeners = /* @__PURE__ */ new Set(), this._batchDepth = 0, this._batchDirty = !1, this._version = 0;
111
111
  }
@@ -177,7 +177,7 @@ var re = class {
177
177
  const n = this._byName.get(e)?.get(t);
178
178
  if (n && 0 !== n.length) return {
179
179
  key: t,
180
- ...oe(t, n.map((e) => ({
180
+ ...re(t, n.map((e) => ({
181
181
  key: t,
182
182
  ...e.def
183
183
  }))).props
@@ -224,12 +224,12 @@ var re = class {
224
224
  _notify() {
225
225
  this._version++, this._batchDepth > 0 ? this._batchDirty = !0 : this._listeners.forEach((e) => e.onChange?.());
226
226
  }
227
- }, ie = new re(), se = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, le = (e, t) => {
227
+ }, se = new ie(), le = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, ae = (e, t) => {
228
228
  if (e) {
229
229
  for (const n in e) if (n.toLowerCase() === t) return e[n];
230
230
  }
231
231
  };
232
- var ae = new class {
232
+ var ce = new class {
233
233
  constructor() {
234
234
  this._items = /* @__PURE__ */ new Map(), this._version = 0, this._listeners = /* @__PURE__ */ new Set();
235
235
  }
@@ -250,13 +250,13 @@ var ae = new class {
250
250
  this._items.set(o, function(e) {
251
251
  const { getLabel: n, getDescription: o, getIcon: r } = e, i = e.key, s = { ...e };
252
252
  return s.getLabel = (e) => {
253
- const o = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
253
+ const o = e && e !== i ? e : void 0, r = se.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
254
254
  return "string" == typeof s ? r?.params ? a(s, r.params, t.getActive()) : s : (o ? t.lookup(`cmd.${i}.label@${o}`) : void 0) ?? t.lookup(`cmd.${i}.label`) ?? n?.(e);
255
255
  }, s.getDescription = (e) => {
256
- const n = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
256
+ const n = e && e !== i ? e : void 0, r = se.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
257
257
  return "string" == typeof s ? r?.params ? a(s, r.params, t.getActive()) : s : (n ? t.lookup(`cmd.${i}.desc@${n}`) : void 0) ?? t.lookup(`cmd.${i}.desc`) ?? o?.(e);
258
258
  }, s.getIcon = (e) => {
259
- const t = e && e !== i ? e : void 0, n = ie.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
259
+ const t = e && e !== i ? e : void 0, n = se.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
260
260
  return "string" == typeof o ? o : r ? r(e) : void 0;
261
261
  }, s;
262
262
  }(e)), this._notify();
@@ -273,7 +273,7 @@ var ae = new class {
273
273
  if (!n || !Array.isArray(n.members)) return null;
274
274
  const o = n.members, r = /* @__PURE__ */ new Set();
275
275
  for (const e of o) {
276
- const t = se(e);
276
+ const t = le(e);
277
277
  t && r.add(t);
278
278
  }
279
279
  const i = [];
@@ -282,7 +282,7 @@ var ae = new class {
282
282
  const n = e.key;
283
283
  if (!n || n.toLowerCase() === t) continue;
284
284
  if (r.has(n.toLowerCase())) continue;
285
- const o = le(e.contributions, t);
285
+ const o = ae(e.contributions, t);
286
286
  o && i.push({
287
287
  key: n,
288
288
  placement: o,
@@ -300,7 +300,7 @@ var ae = new class {
300
300
  const t = e.placement.order ?? 0;
301
301
  let n;
302
302
  if (e.placement.anchor) {
303
- const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => se(e) === r);
303
+ const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => le(e) === r);
304
304
  n = i >= 0 ? i : t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
305
305
  } else n = t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
306
306
  l.push({
@@ -316,34 +316,34 @@ var ae = new class {
316
316
  for (const e of l) "before" !== e.divider && "both" !== e.divider || a.push("-"), a.push(e.member), "after" !== e.divider && "both" !== e.divider || a.push("-");
317
317
  return a;
318
318
  }
319
- }(), ce = g(null);
320
- function he() {
321
- return A((e) => {
322
- const n = t.addChangeListener(e), o = ie.addListener({ onChange: e }), r = ae.addListener({ onChange: e });
319
+ }(), he = _(null);
320
+ function ue() {
321
+ return z((e) => {
322
+ const n = t.addChangeListener(e), o = se.addListener({ onChange: e }), r = ce.addListener({ onChange: e });
323
323
  return () => {
324
324
  n(), o(), r();
325
325
  };
326
- }, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`), S(ce) ?? ae;
326
+ }, () => `${t.getActive()}:${se.getVersion()}:${ce.getVersion()}`, () => `${t.getActive()}:${se.getVersion()}:${ce.getVersion()}`), C(he) ?? ce;
327
327
  }
328
- function ue({ registry: e = ae, children: t }) {
329
- return R(ce.Provider, {
328
+ function de({ registry: e = ce, children: t }) {
329
+ return $(he.Provider, {
330
330
  value: e,
331
331
  children: t
332
332
  });
333
333
  }
334
- function de(e) {
335
- return he().get(e);
334
+ function fe(e) {
335
+ return ue().get(e);
336
336
  }
337
- var fe = w((e) => {
337
+ var pe = x((e) => {
338
338
  const { entryKey: t, groupKey: n, fallback: o } = e;
339
- return R(z, { children: de(t)?.getLabel?.(n) ?? o ?? t });
339
+ return $(R, { children: fe(t)?.getLabel?.(n) ?? o ?? t });
340
340
  });
341
- fe.displayName = "CommandButtonEntryLabel";
342
- var pe = "quickAction";
343
- function me(e, t) {
341
+ pe.displayName = "CommandButtonEntryLabel";
342
+ var me = "quickAction";
343
+ function ge(e, t) {
344
344
  return "function" == typeof e ? e("function" == typeof t ? t() : t) : e;
345
345
  }
346
- function ge(e, n) {
346
+ function _e(e, n) {
347
347
  const { key: o, props: r, contributedBy: i } = e, s = r.callback, l = () => r.disabledReasons ?? [], c = () => l().length > 0 || !s, h = {
348
348
  contributedBy: i,
349
349
  getKey: () => o,
@@ -351,16 +351,16 @@ function ge(e, n) {
351
351
  getTarget: () => "function" == typeof r.target ? r.target() : r.target,
352
352
  getState: () => r.state,
353
353
  getLabel: (e) => {
354
- const n = me((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
354
+ const n = ge((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
355
355
  return r.params && void 0 !== n ? a(n, r.params, t.getActive()) : n;
356
356
  },
357
357
  getDescription: (e) => {
358
- const n = me((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
358
+ const n = ge((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
359
359
  return r.params && void 0 !== n ? a(n, r.params, t.getActive()) : n;
360
360
  },
361
- getTags: () => me(r.tags, r.context),
362
- getIcon: (e) => me((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
363
- getShortcut: () => me(r.shortcut, r.context),
361
+ getTags: () => ge(r.tags, r.context),
362
+ getIcon: (e) => ge((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
363
+ getShortcut: () => ge(r.shortcut, r.context),
364
364
  disabledReasons: l,
365
365
  disabled: c,
366
366
  execute: async (e) => {
@@ -381,39 +381,39 @@ function ge(e, n) {
381
381
  };
382
382
  return h;
383
383
  }
384
- var _e = [
384
+ var ve = [
385
385
  "ctrl",
386
386
  "shift",
387
387
  "alt",
388
388
  "meta"
389
- ], ve = new Set(_e);
390
- function ye(e) {
389
+ ], ye = new Set(ve);
390
+ function be(e) {
391
391
  const t = e.split("+"), n = t[t.length - 1], o = [];
392
392
  for (let e = 0; e < t.length - 1; e++) {
393
393
  const n = t[e].toLowerCase();
394
- ve.has(n) && o.push(n);
394
+ ye.has(n) && o.push(n);
395
395
  }
396
396
  return o.length ? {
397
397
  key: n,
398
398
  modifiers: o
399
399
  } : { key: n };
400
400
  }
401
- function be(e) {
402
- return [...(e.modifiers ?? []).slice().sort((e, t) => _e.indexOf(e) - _e.indexOf(t)), e.key].join("+");
403
- }
404
401
  function we(e) {
402
+ return [...(e.modifiers ?? []).slice().sort((e, t) => ve.indexOf(e) - ve.indexOf(t)), e.key].join("+");
403
+ }
404
+ function xe(e) {
405
405
  return e;
406
406
  }
407
- async function xe(e) {
407
+ async function Se(e) {
408
408
  const t = await fetch(e);
409
409
  if (!t.ok) throw new Error(`Failed to fetch command catalog '${String(e)}': ${t.status} ${t.statusText}`);
410
410
  return await t.json();
411
411
  }
412
- function Se(e) {
412
+ function Ce(e) {
413
413
  const t = {};
414
- return void 0 !== e.label && (t.label = e.label), void 0 !== e.description && (t.description = e.description), void 0 !== e.groupLabels && (t.groupLabels = e.groupLabels), void 0 !== e.groupDescriptions && (t.groupDescriptions = e.groupDescriptions), void 0 !== e.icon && (t.icon = e.icon), void 0 !== e.groupIcons && (t.groupIcons = e.groupIcons), void 0 !== e.shortcut && null !== e.shortcut && (t.shortcut = Array.isArray(e.shortcut) ? e.shortcut.map(ye) : ye(e.shortcut)), void 0 !== e.tags && (t.tags = e.tags), void 0 !== e.params && (t.params = e.params), t;
414
+ return void 0 !== e.label && (t.label = e.label), void 0 !== e.description && (t.description = e.description), void 0 !== e.groupLabels && (t.groupLabels = e.groupLabels), void 0 !== e.groupDescriptions && (t.groupDescriptions = e.groupDescriptions), void 0 !== e.icon && (t.icon = e.icon), void 0 !== e.groupIcons && (t.groupIcons = e.groupIcons), void 0 !== e.shortcut && null !== e.shortcut && (t.shortcut = Array.isArray(e.shortcut) ? e.shortcut.map(be) : be(e.shortcut)), void 0 !== e.tags && (t.tags = e.tags), void 0 !== e.params && (t.params = e.params), t;
415
415
  }
416
- function Ce(e, t) {
416
+ function Me(e, t) {
417
417
  return t ? e ? {
418
418
  ...e,
419
419
  ...t,
@@ -431,10 +431,10 @@ function Ce(e, t) {
431
431
  } : void 0
432
432
  } : t : e ?? {};
433
433
  }
434
- function Me(e = ie) {
435
- const n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
436
- let s = t.getActive();
437
- function a(e) {
434
+ function Ee(e = se) {
435
+ const n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
436
+ let a = t.getActive();
437
+ function f(e) {
438
438
  if (1 === e.length) return e[0];
439
439
  if (0 === e.length) throw new Error("catalog was not found in any resource root");
440
440
  const t = [...e].reverse(), n = {};
@@ -447,19 +447,19 @@ function Me(e = ie) {
447
447
  commands: n
448
448
  };
449
449
  }
450
- function d(e) {
450
+ function p(e) {
451
451
  const t = e.indexOf("-");
452
452
  return t > 0 ? e.slice(0, t) : void 0;
453
453
  }
454
- function f(e, t) {
454
+ function m(e, t) {
455
455
  return e.byTag.get(t)?.catalog;
456
456
  }
457
- function p(e) {
458
- const t = d(s);
459
- return f(e, s) ?? (t ? f(e, t) : void 0);
457
+ function g(e) {
458
+ const t = p(a);
459
+ return m(e, a) ?? (t ? m(e, t) : void 0);
460
460
  }
461
- function m(t) {
462
- const n = p(t);
461
+ function _(t) {
462
+ const n = g(t);
463
463
  if (!n) return void e.batch(() => {
464
464
  for (const [n, o] of t.contributors) e.removeContributor(n, o);
465
465
  });
@@ -473,13 +473,13 @@ function Me(e = ie) {
473
473
  for (const n of i) {
474
474
  let o = t.contributors.get(n);
475
475
  o || (o = (e) => {
476
- const o = p(t);
477
- if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, Se(i));
476
+ const o = g(t);
477
+ if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, Ce(i));
478
478
  }, t.contributors.set(n, o)), e.registerStatic(n, o);
479
479
  }
480
480
  });
481
481
  }
482
- async function g(e, t) {
482
+ async function v(e, t) {
483
483
  const n = e.byTag.get(t);
484
484
  if (n && !n.catalog) {
485
485
  if (!n.loading) {
@@ -495,70 +495,75 @@ function Me(e = ie) {
495
495
  await n.loading;
496
496
  }
497
497
  }
498
- function _(e, t, o, r) {
499
- const i = r?.sourceId ?? e, l = ((e, t) => `${e} ${t}`)(e, i);
500
- let a = n.get(l);
501
- a || (a = {
498
+ function y(e, t, o, r) {
499
+ const i = r?.sourceId ?? e, s = ((e, t) => `${e} ${t}`)(e, i);
500
+ let l = n.get(s);
501
+ l || (l = {
502
502
  scope: e,
503
503
  sourceId: i,
504
504
  byTag: /* @__PURE__ */ new Map(),
505
505
  contributors: /* @__PURE__ */ new Map()
506
- }, n.set(l, a));
507
- const c = a.byTag.get(t) ?? {};
508
- "function" == typeof o ? (c.loader = o, c.catalog = void 0, c.loading = void 0) : c.catalog = o, a.byTag.set(t, c), t !== s && t !== d(s) || (c.catalog ? m(a) : g(a, t).then(() => m(a)).catch(v));
506
+ }, n.set(s, l));
507
+ const c = l.byTag.get(t) ?? {};
508
+ "function" == typeof o ? (c.loader = o, c.catalog = void 0, c.loading = void 0) : c.catalog = o, l.byTag.set(t, c), t !== a && t !== p(a) || (c.catalog ? _(l) : v(l, t).then(() => _(l)).catch(b));
509
+ }
510
+ function b(e) {}
511
+ function w(e, n, o) {
512
+ const r = c(e, n).then(async (r) => {
513
+ const i = Object.keys(r);
514
+ if (0 === i.length) {
515
+ if (o) return;
516
+ throw new Error(`no locales for '${e}' were found in any resource root`);
517
+ }
518
+ for (const o of i) {
519
+ const i = d(o, r), s = /* @__PURE__ */ new Map();
520
+ for (const e of [...i].reverse()) for (const t of r[e]?.catalogs ?? []) s.set(`${t.scope}\0${t.sourceId}`, t);
521
+ for (const t of s.values()) y(t.scope, o, async () => f((await Promise.all([...i].reverse().map((o) => l(e, `${o}/${t.file}`, n)))).flat().map(xe).reverse()), { sourceId: t.sourceId });
522
+ r[o].messages?.length && t.registerMessages(e, o, async () => {
523
+ const t = await Promise.all([...i].reverse().map((t) => h(e, t, r[t]?.messages ?? [], n)));
524
+ return Object.assign({}, ...t);
525
+ });
526
+ }
527
+ }).catch((e) => {}).finally(() => {
528
+ i.delete(r);
529
+ });
530
+ return i.add(r), r;
509
531
  }
510
- function v(e) {}
511
- async function y(e = s) {
532
+ async function x(e = a) {
512
533
  for (; i.size;) await Promise.all([...i]);
513
- const o = d(e);
534
+ const o = p(e);
514
535
  await Promise.all([...[...n.values()].map(async (t) => {
515
- await g(t, e), o && await g(t, o), m(t);
536
+ await v(t, e), o && await v(t, o), _(t);
516
537
  }), t.prefetch(e)]);
517
538
  }
518
- const b = t.addChangeListener((e) => {
539
+ const S = t.addChangeListener((e) => {
519
540
  (async function(e) {
520
- s = e, await y(e);
541
+ a = e, await x(e);
521
542
  })(e);
522
543
  });
523
544
  return {
524
- register: _,
545
+ register: y,
525
546
  registerFromManifest: function(e, n, o) {
526
547
  o?.messages && t.registerDefaultMessages(e, "en", o.messages);
527
- for (const { sourceId: e, catalog: t } of o?.catalogs ?? []) _(t.scope, "en", t, { sourceId: `${e}\0default` });
528
- const r = c(e, n).then(async (r) => {
529
- const i = Object.keys(r);
530
- if (0 === i.length) {
531
- if (o) return;
532
- throw new Error(`no locales for '${e}' were found in any resource root`);
533
- }
534
- for (const o of i) {
535
- const i = u(o, r), s = /* @__PURE__ */ new Map();
536
- for (const e of [...i].reverse()) for (const t of r[e]?.catalogs ?? []) s.set(`${t.scope}\0${t.sourceId}`, t);
537
- for (const t of s.values()) _(t.scope, o, async () => a((await Promise.all([...i].reverse().map((o) => l(e, `${o}/${t.file}`, n)))).flat().map(we).reverse()), { sourceId: t.sourceId });
538
- r[o].messages?.length && t.registerMessages(e, o, async () => {
539
- const t = await Promise.all([...i].reverse().map((t) => h(e, t, r[t]?.messages ?? [], n)));
540
- return Object.assign({}, ...t);
541
- });
542
- }
543
- }).catch((e) => {}).finally(() => {
544
- i.delete(r);
545
- });
546
- return i.add(r), r;
548
+ for (const { sourceId: e, catalog: t } of o?.catalogs ?? []) y(t.scope, "en", t, { sourceId: `${e}\0default` });
549
+ return s.has(e) || (s.add(e), u(() => {
550
+ w(e, n, o);
551
+ })), w(e, n, o);
547
552
  },
548
- prefetch: y,
549
- getActive: () => s,
553
+ prefetch: x,
554
+ getActive: () => a,
550
555
  getScopeLabel: (e) => o.get(e) ?? e,
551
556
  onScopeLabelsChange: (e) => (r.add(e), () => {
552
557
  r.delete(e);
553
558
  }),
554
- dispose: () => b()
559
+ dispose: () => S()
555
560
  };
556
561
  }
557
- var Ee = Me(), Te = g(null);
558
- function ke() {
559
- return S(Te);
562
+ var Te = Ee(), ke = _(null);
563
+ function Le() {
564
+ return C(ke);
560
565
  }
561
- var Le = class e {
566
+ var De = class e {
562
567
  constructor(e, t = null, n) {
563
568
  this._children = /* @__PURE__ */ new Map(), this._defs = /* @__PURE__ */ new Map(), this._middleware = [], this._version = 0, this._resolveCache = /* @__PURE__ */ new WeakMap(), this._resolveCacheVersion = -1, this._listeners = /* @__PURE__ */ new Set(), this._executeListeners = /* @__PURE__ */ new Map(), this._resolveStaticCache = /* @__PURE__ */ new Map(), this._resolveStaticCacheVersion = -1, this._elements = [], this.key = e, this.name = n?.name ?? e, this._parent = t, this._root = t ? t._root : this, n?.registry && (this._registry = n.registry, this._registryUnsub = n.registry.addListener({ onChange: () => this._bump() }));
564
569
  }
@@ -616,7 +621,7 @@ var Le = class e {
616
621
  let n = e;
617
622
  for (; n;) {
618
623
  const e = t.get(n);
619
- if (e) return De(e) ?? void 0;
624
+ if (e) return Pe(e) ?? void 0;
620
625
  n = n.parentElement;
621
626
  }
622
627
  }
@@ -744,7 +749,7 @@ var Le = class e {
744
749
  }
745
750
  let _;
746
751
  if (m.length > 0) {
747
- const t = oe(e, m), n = t.contributedBy.callback;
752
+ const t = re(e, m), n = t.contributedBy.callback;
748
753
  if (t.props.callback && void 0 !== n) {
749
754
  const e = g[n]?.getMiddleware();
750
755
  if (e && e.length > 0) {
@@ -753,7 +758,7 @@ var Le = class e {
753
758
  t.props.callback = n;
754
759
  }
755
760
  }
756
- _ = ge(t, () => i._executeListeners.get(e));
761
+ _ = _e(t, () => i._executeListeners.get(e));
757
762
  }
758
763
  return l || f || c.set(e, _), _;
759
764
  }
@@ -765,13 +770,13 @@ var Le = class e {
765
770
  if (n._resolveStaticCache.has(r)) return n._resolveStaticCache.get(r);
766
771
  const i = o.findByKey(e, t);
767
772
  let s;
768
- return i && (s = ge(oe(e, [i.def]), () => n._executeListeners.get(e))), n._resolveStaticCache.set(r, s), s;
773
+ return i && (s = _e(re(e, [i.def]), () => n._executeListeners.get(e))), n._resolveStaticCache.set(r, s), s;
769
774
  }
770
775
  };
771
- function De(e) {
772
- return e ? e instanceof Le ? e : "function" == typeof e ? e() : e.getAnchor() : null;
776
+ function Pe(e) {
777
+ return e ? e instanceof De ? e : "function" == typeof e ? e() : e.getAnchor() : null;
773
778
  }
774
- var Pe = class {
779
+ var Ae = class {
775
780
  constructor(e = null) {
776
781
  this._listeners = /* @__PURE__ */ new Set(), this._current = e;
777
782
  }
@@ -786,7 +791,7 @@ var Pe = class {
786
791
  this._listeners.delete(e);
787
792
  };
788
793
  }
789
- }, Ae = class {
794
+ }, ze = class {
790
795
  constructor(e) {
791
796
  this._scope = e;
792
797
  }
@@ -796,7 +801,7 @@ var Pe = class {
796
801
  subscribe() {
797
802
  return () => {};
798
803
  }
799
- }, ze = class {
804
+ }, Re = class {
800
805
  constructor(e, t) {
801
806
  this._scopes = /* @__PURE__ */ new Map(), this._rootElement = null, this._lastFocusEvent = null, this._current = null, this._currentElement = null, this._recall = null, this._recallPending = !1, this._listeners = /* @__PURE__ */ new Set(), this._root = e ?? null, "function" == typeof t ? (this._recall = t, this._invokeRecall()) : null != t && (t instanceof Promise ? t.then((e) => {
802
807
  null != e && this._seed(e);
@@ -820,7 +825,7 @@ var Pe = class {
820
825
  }
821
826
  }
822
827
  getAnchor() {
823
- return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), De(this._current);
828
+ return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), Pe(this._current);
824
829
  }
825
830
  getElement() {
826
831
  return this._rootElement;
@@ -856,7 +861,7 @@ var Pe = class {
856
861
  }
857
862
  }
858
863
  findScope(e) {
859
- return De(this.findSource(e) ?? null) ?? void 0;
864
+ return Pe(this.findSource(e) ?? null) ?? void 0;
860
865
  }
861
866
  attach(e) {
862
867
  this._rootElement = e;
@@ -874,7 +879,7 @@ var Pe = class {
874
879
  _notify() {
875
880
  this._listeners.forEach((e) => e());
876
881
  }
877
- }, Re = class {
882
+ }, $e = class {
878
883
  constructor(e) {
879
884
  this._layers = [], this._listeners = /* @__PURE__ */ new Set(), this._base = e, this._top = e;
880
885
  }
@@ -905,25 +910,25 @@ var Pe = class {
905
910
  this._listeners.delete(e);
906
911
  };
907
912
  }
908
- }, $e = G({
909
- EmptyCssProperties: () => Ie,
910
- createSyntheticEvent: () => qe,
911
- detectIt: () => Fe,
912
- edgeCenter: () => Ue,
913
- edgeTrailingShift: () => Ye,
914
- focusableNodeNames: () => Be,
915
- getDevicePixelRatio: () => We,
916
- isEditable: () => Ne,
917
- replaceRangeText: () => Oe,
918
- snapDeviceEdge: () => Ve,
919
- snapDeviceWidth: () => Ke,
920
- snapLineCenter: () => je,
921
- toPrettyKeyCode: () => Xe
922
- }), Be = /* @__PURE__ */ new Set([
913
+ }, Be = J({
914
+ EmptyCssProperties: () => He,
915
+ createSyntheticEvent: () => Ze,
916
+ detectIt: () => We,
917
+ edgeCenter: () => Xe,
918
+ edgeTrailingShift: () => Ue,
919
+ focusableNodeNames: () => Ie,
920
+ getDevicePixelRatio: () => Ke,
921
+ isEditable: () => Oe,
922
+ replaceRangeText: () => Fe,
923
+ snapDeviceEdge: () => je,
924
+ snapDeviceWidth: () => Ve,
925
+ snapLineCenter: () => Ye,
926
+ toPrettyKeyCode: () => qe
927
+ }), Ie = /* @__PURE__ */ new Set([
923
928
  "INPUT",
924
929
  "TEXTAREA",
925
930
  "SELECT"
926
- ]), Ie = {}, He = /* @__PURE__ */ new Set([
931
+ ]), He = {}, Ne = /* @__PURE__ */ new Set([
927
932
  "button",
928
933
  "checkbox",
929
934
  "radio",
@@ -935,41 +940,41 @@ var Pe = class {
935
940
  "image",
936
941
  "hidden"
937
942
  ]);
938
- function Ne(e) {
943
+ function Oe(e) {
939
944
  if (!e) return !1;
940
945
  const t = e.tagName;
941
- return "TEXTAREA" === t || ("INPUT" === t ? !He.has(e.type) : !0 === e.isContentEditable);
946
+ return "TEXTAREA" === t || ("INPUT" === t ? !Ne.has(e.type) : !0 === e.isContentEditable);
942
947
  }
943
- function Oe(e, t, n, o) {
948
+ function Fe(e, t, n, o) {
944
949
  e.setSelectionRange(t, n);
945
950
  try {
946
951
  if ("undefined" != typeof document && document.activeElement === e && "function" == typeof document.execCommand && document.execCommand("insertText", !1, o)) return !0;
947
952
  } catch {}
948
953
  return e.setRangeText(o, t, n, "end"), e.dispatchEvent(new Event("input", { bubbles: !0 })), !0;
949
954
  }
950
- function Fe() {
951
- return B;
952
- }
953
955
  function We() {
956
+ return I;
957
+ }
958
+ function Ke() {
954
959
  return "undefined" != typeof window && window.devicePixelRatio || 1;
955
960
  }
956
- function Ke(e, t = We()) {
961
+ function Ve(e, t = Ke()) {
957
962
  return Math.max(1, Math.round(e * t)) / t;
958
963
  }
959
- function Ve(e, t = We()) {
964
+ function je(e, t = Ke()) {
960
965
  return Math.round(e * t) / t;
961
966
  }
962
- function je(e, t = 1, n = We()) {
967
+ function Ye(e, t = 1, n = Ke()) {
963
968
  const o = Math.max(1, Math.round(t * n)) % 2 * .5;
964
969
  return (Math.round(e * n - o) + o) / n;
965
970
  }
966
- function Ye(e, t, n = We()) {
971
+ function Ue(e, t, n = Ke()) {
967
972
  return Math.round(t) % 2 == 0 && "trailing" === e ? 1 / n : 0;
968
973
  }
969
- function Ue(e, t, n, o = We()) {
970
- return je(e + Ye(t, n, o), n / o, o);
974
+ function Xe(e, t, n, o = Ke()) {
975
+ return Ye(e + Ue(t, n, o), n / o, o);
971
976
  }
972
- var Xe = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), qe = (e, t) => {
977
+ var qe = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), Ze = (e, t) => {
973
978
  let n = !1, o = !1;
974
979
  const r = {
975
980
  nativeEvent: e,
@@ -995,7 +1000,7 @@ var Xe = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camel
995
1000
  for (const t in e) t in r || "function" == typeof e[t] || (r[t] = e[t]);
996
1001
  return r;
997
1002
  };
998
- function Ze(e, t, n) {
1003
+ function Ge(e, t, n) {
999
1004
  if (!globalThis.__sxlKeyDebug) return;
1000
1005
  const o = e.target, r = [
1001
1006
  e.ctrlKey && "ctrl",
@@ -1009,11 +1014,11 @@ function Ze(e, t, n) {
1009
1014
  const t = e.type ? `[type=${e.type}]` : "", n = e.getAttribute?.("class")?.split(" ").slice(0, 2).join(".") ?? "";
1010
1015
  return `${e.tagName.toLowerCase()}${t}${n ? "." + n : ""}`;
1011
1016
  })(o),
1012
- editable: Ne(o),
1017
+ editable: Oe(o),
1013
1018
  delivery: e.nativeEvent ? "synthetic" : "native"
1014
1019
  });
1015
1020
  }
1016
- var Ge = /* @__PURE__ */ new Set([
1021
+ var Je = /* @__PURE__ */ new Set([
1017
1022
  "Backspace",
1018
1023
  "Delete",
1019
1024
  "Insert",
@@ -1026,10 +1031,10 @@ var Ge = /* @__PURE__ */ new Set([
1026
1031
  "ArrowUp",
1027
1032
  "ArrowDown"
1028
1033
  ]);
1029
- function Je(e) {
1030
- return Ge.has(e.key);
1034
+ function Qe(e) {
1035
+ return Je.has(e.key);
1031
1036
  }
1032
- var Qe = class {
1037
+ var et = class {
1033
1038
  constructor(e) {
1034
1039
  this._lastEvent = null, this._resolver = e;
1035
1040
  }
@@ -1047,12 +1052,12 @@ var Qe = class {
1047
1052
  return t && "number" == typeof t.nodeType ? t : null;
1048
1053
  }
1049
1054
  dispatch(e) {
1050
- if (this._lastEvent === e) return Ze(e, null, "de-duped (reached dispatch again)"), !1;
1055
+ if (this._lastEvent === e) return Ge(e, null, "de-duped (reached dispatch again)"), !1;
1051
1056
  this._lastEvent = e;
1052
1057
  const t = this.findKey(e);
1053
- if (!t) return Ze(e, null, "unmatched"), !1;
1058
+ if (!t) return Ge(e, null, "unmatched"), !1;
1054
1059
  const n = this._resolver.resolve(t, this._eventOrigin(e));
1055
- return n ? n.disabled() ? (Ze(e, t, "disabled"), !1) : (Ze(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (Ze(e, t, "unresolved at this origin"), !1);
1060
+ return n ? n.disabled() ? (Ge(e, t, "disabled"), !1) : (Ge(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (Ge(e, t, "unresolved at this origin"), !1);
1056
1061
  }
1057
1062
  attach(e) {
1058
1063
  const t = (e) => {
@@ -1071,29 +1076,29 @@ var Qe = class {
1071
1076
  return e;
1072
1077
  }
1073
1078
  _eventCandidates(e) {
1074
- return tt(e);
1079
+ return nt(e);
1075
1080
  }
1076
1081
  _shortcutString(e) {
1077
- return et(e);
1082
+ return tt(e);
1078
1083
  }
1079
1084
  };
1080
- function et(e) {
1085
+ function tt(e) {
1081
1086
  const t = e.modifiers ?? [];
1082
- return nt(t.includes(J.Ctrl) || t.includes(J.Meta), t.includes(J.Alt), t.includes(J.Shift)) + ot(e.key);
1087
+ return ot(t.includes(Q.Ctrl) || t.includes(Q.Meta), t.includes(Q.Alt), t.includes(Q.Shift)) + rt(e.key);
1083
1088
  }
1084
- function tt(e) {
1085
- const t = nt(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1086
- return /* @__PURE__ */ new Set([t + ot(e.code), t + ot(e.key)]);
1089
+ function nt(e) {
1090
+ const t = ot(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1091
+ return /* @__PURE__ */ new Set([t + rt(e.code), t + rt(e.key)]);
1087
1092
  }
1088
- function nt(e, t, n) {
1093
+ function ot(e, t, n) {
1089
1094
  return (e ? "mod+" : "") + (t ? "alt+" : "") + (n ? "shift+" : "");
1090
1095
  }
1091
- function ot(e) {
1096
+ function rt(e) {
1092
1097
  return e ? e.length > 3 && e.startsWith("Key") ? e.slice(3).toUpperCase() : e.length > 5 && e.startsWith("Digit") ? e.slice(5) : 1 === e.length ? e.toUpperCase() : e : "";
1093
1098
  }
1094
- var rt = class {
1099
+ var it = class {
1095
1100
  constructor(e, t, n) {
1096
- this._version = 0, this._listeners = /* @__PURE__ */ new Set(), this._dirty = !1, this._hadAnchor = !1, this._unsubs = [], this._connected = !1, this._injectors = /* @__PURE__ */ new Set(), this._keyBindsEl = null, this.scope = e, this._tracker = t, this._root = n?.root, this._debounceMs = n?.debounce ?? 0, this._autoKeyBindings = n?.keyBindings ?? !0, this._keyBindings = new Qe(this);
1101
+ this._version = 0, this._listeners = /* @__PURE__ */ new Set(), this._dirty = !1, this._hadAnchor = !1, this._unsubs = [], this._connected = !1, this._injectors = /* @__PURE__ */ new Set(), this._keyBindsEl = null, this.scope = e, this._tracker = t, this._root = n?.root, this._debounceMs = n?.debounce ?? 0, this._autoKeyBindings = n?.keyBindings ?? !0, this._keyBindings = new et(this);
1097
1102
  }
1098
1103
  connect() {
1099
1104
  this._connected || (this._connected = !0, this._unsubs = [this.scope.addListener({ onChange: () => this._emit() }), this._tracker.subscribe(() => {
@@ -1164,19 +1169,19 @@ var rt = class {
1164
1169
  _notify() {
1165
1170
  this._version++, this._listeners.forEach((e) => e());
1166
1171
  }
1167
- }, it = g(null);
1168
- function st() {
1169
- return S(it);
1172
+ }, st = _(null);
1173
+ function lt() {
1174
+ return C(st);
1170
1175
  }
1171
- var lt = g(0);
1172
- function at() {
1173
- return S(lt);
1176
+ var at = _(0);
1177
+ function ct() {
1178
+ return C(at);
1174
1179
  }
1175
- var ct = g(null);
1176
- function ht() {
1177
- return S(ct);
1180
+ var ht = _(null);
1181
+ function ut() {
1182
+ return C(ht);
1178
1183
  }
1179
- function ut(e, t) {
1184
+ function dt(e, t) {
1180
1185
  let n, o = !1;
1181
1186
  const r = () => {
1182
1187
  if (o) return;
@@ -1187,9 +1192,9 @@ function ut(e, t) {
1187
1192
  o = !0, n?.();
1188
1193
  };
1189
1194
  }
1190
- function dt({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1191
- const a = ht(), c = st(), h = at(), u = o ?? h, d = k(() => e && a ? a.createChild(e.scopeName) : null, [a, e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null]), f = d ?? t ?? null;
1192
- C(() => {
1195
+ function ft({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1196
+ const a = ut(), c = lt(), h = ct(), u = o ?? h, d = L(() => e && a ? a.createChild(e.scopeName) : null, [a, e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null]), f = d ?? t ?? null;
1197
+ M(() => {
1193
1198
  if (!d) return;
1194
1199
  const e = c ? c.register(d, u) : void 0;
1195
1200
  return () => {
@@ -1201,7 +1206,7 @@ function dt({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, sco
1201
1206
  u
1202
1207
  ]);
1203
1208
  const p = e?.contributor?.dynamic, m = e?.data;
1204
- C(() => {
1209
+ M(() => {
1205
1210
  if (!d || !p) return;
1206
1211
  const e = d.contribution(), t = p(e, m);
1207
1212
  return () => {
@@ -1211,49 +1216,49 @@ function dt({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, sco
1211
1216
  d,
1212
1217
  p,
1213
1218
  m
1214
- ]), C(() => {
1219
+ ]), M(() => {
1215
1220
  if (!d || !n) return;
1216
1221
  const e = (Array.isArray(n) ? n : [n]).map((e) => d.use(e));
1217
1222
  return () => {
1218
1223
  for (const t of e) t();
1219
1224
  };
1220
- }, [d, n]), C(() => {
1225
+ }, [d, n]), M(() => {
1221
1226
  if (s) return s.current = f, () => {
1222
1227
  s.current = null;
1223
1228
  };
1224
1229
  }, [s, f]);
1225
- const g = D(null), _ = r ?? g;
1226
- ft(r || "function" == typeof l ? f : null, _, i);
1227
- const v = k(() => d ? d.getRegistry()?.getDynamic(d.name) ?? [] : [], [d]);
1228
- return R(ct.Provider, {
1230
+ const g = P(null), _ = r ?? g;
1231
+ pt(r || "function" == typeof l ? f : null, _, i);
1232
+ const v = L(() => d ? d.getRegistry()?.getDynamic(d.name) ?? [] : [], [d]);
1233
+ return $(ht.Provider, {
1229
1234
  value: f,
1230
- children: $(it.Provider, {
1235
+ children: B(st.Provider, {
1231
1236
  value: d ? null : c,
1232
- children: [d && v.map((e, t) => R(e, {
1237
+ children: [d && v.map((e, t) => $(e, {
1233
1238
  scope: d,
1234
1239
  data: m
1235
1240
  }, t)), "function" == typeof l ? l(_) : l]
1236
1241
  })
1237
1242
  });
1238
1243
  }
1239
- function ft(e, t, n) {
1240
- C(() => {
1244
+ function pt(e, t, n) {
1245
+ M(() => {
1241
1246
  if (!e) return;
1242
- if (!n) return ut(t, (t) => e.attachBounds(t));
1247
+ if (!n) return dt(t, (t) => e.attachBounds(t));
1243
1248
  const o = !0 === n ? void 0 : n;
1244
- return ut(t, (t) => e.attachElement(t, o));
1249
+ return dt(t, (t) => e.attachElement(t, o));
1245
1250
  }, [
1246
1251
  e,
1247
1252
  t,
1248
1253
  n
1249
1254
  ]);
1250
1255
  }
1251
- var pt = g(null);
1252
- function mt() {
1253
- return S(pt);
1256
+ var mt = _(null);
1257
+ function gt() {
1258
+ return C(mt);
1254
1259
  }
1255
- function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1256
- const s = ht(), l = "synthetic" === n, a = k(() => s ? new rt(s, e, {
1260
+ function _t({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1261
+ const s = ut(), l = "synthetic" === n, a = L(() => s ? new it(s, e, {
1257
1262
  debounce: t,
1258
1263
  keyBindings: !l && n,
1259
1264
  root: o
@@ -1264,13 +1269,13 @@ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1264
1269
  n,
1265
1270
  o
1266
1271
  ]);
1267
- C(() => (a?.connect(), () => a?.dispose()), [a]);
1268
- const c = D(null), h = r ?? (l ? c : null);
1269
- return C(() => {
1270
- if (h && e.attach) return ut(h, (t) => e.attach(t));
1271
- }, [h, e]), R(pt.Provider, l ? {
1272
+ M(() => (a?.connect(), () => a?.dispose()), [a]);
1273
+ const c = P(null), h = r ?? (l ? c : null);
1274
+ return M(() => {
1275
+ if (h && e.attach) return dt(h, (t) => e.attach(t));
1276
+ }, [h, e]), $(mt.Provider, l ? {
1272
1277
  value: a,
1273
- children: R("div", {
1278
+ children: $("div", {
1274
1279
  className: "command-key-seam",
1275
1280
  style: { display: "contents" },
1276
1281
  ref: c,
@@ -1284,38 +1289,38 @@ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1284
1289
  children: i
1285
1290
  });
1286
1291
  }
1287
- function _t() {
1288
- const e = mt();
1289
- return x((t, n) => e ? e.execute(t, n) : Promise.resolve(!1), [e]);
1292
+ function vt() {
1293
+ const e = gt();
1294
+ return S((t, n) => e ? e.execute(t, n) : Promise.resolve(!1), [e]);
1290
1295
  }
1291
- var vt = g(null);
1292
- function yt() {
1293
- return S(vt);
1296
+ var yt = _(null);
1297
+ function bt() {
1298
+ return C(yt);
1294
1299
  }
1295
- var bt = [];
1296
- function wt({ prefer: e, children: t }) {
1297
- return R(vt.Provider, {
1298
- value: e ?? bt,
1300
+ var wt = [];
1301
+ function xt({ prefer: e, children: t }) {
1302
+ return $(yt.Provider, {
1303
+ value: e ?? wt,
1299
1304
  children: t
1300
1305
  });
1301
1306
  }
1302
- var xt = g(null), St = xt.Provider;
1303
- function Ct() {
1304
- return S(xt);
1307
+ var St = _(null), Ct = St.Provider;
1308
+ function Mt() {
1309
+ return C(St);
1305
1310
  }
1306
- var Mt = g(null), Et = Mt.Provider, Tt = () => S(Mt);
1307
- function kt(e, t) {
1308
- const n = mt(), o = yt(), r = k(() => Array.isArray(e) ? [...e] : [e], [Array.isArray(e) ? e.join("\0") : String(e)]), i = D(t);
1311
+ var Et = _(null), Tt = Et.Provider, kt = () => C(Et);
1312
+ function Lt(e, t) {
1313
+ const n = gt(), o = bt(), r = L(() => Array.isArray(e) ? [...e] : [e], [Array.isArray(e) ? e.join("\0") : String(e)]), i = P(t);
1309
1314
  i.current = t;
1310
- const s = Tt(), l = D(s);
1315
+ const s = kt(), l = P(s);
1311
1316
  l.current = s;
1312
- const a = Ct(), c = D(a);
1313
- return c.current = a, k(() => n ? r.map((e) => {
1317
+ const a = Mt(), c = P(a);
1318
+ return c.current = a, L(() => n ? r.map((e) => {
1314
1319
  return n.resolve(e) || (o ? n.scope.resolveStatic(e, o) : void 0);
1315
1320
  }) : r.map(() => {}), [
1316
1321
  n,
1317
1322
  r,
1318
- A(x((e) => {
1323
+ z(S((e) => {
1319
1324
  if (!n) return () => {};
1320
1325
  const t = [];
1321
1326
  t.push(n.subscribe(e));
@@ -1337,9 +1342,9 @@ function kt(e, t) {
1337
1342
  o
1338
1343
  ]);
1339
1344
  }
1340
- function Lt(e) {
1341
- const t = ht();
1342
- C(() => {
1345
+ function Dt(e) {
1346
+ const t = ut();
1347
+ M(() => {
1343
1348
  if (!t) return;
1344
1349
  const n = [];
1345
1350
  for (const o of e) {
@@ -1351,73 +1356,73 @@ function Lt(e) {
1351
1356
  };
1352
1357
  }, [t, e]);
1353
1358
  }
1354
- var Dt = G({
1355
- ACCUMULATE: () => ne,
1356
- CommandAnchorProvider: () => gt,
1357
- CommandButtonEntryLabel: () => fe,
1358
- CommandButtonRegistryContext: () => ce,
1359
- CommandButtonRegistryProvider: () => ue,
1360
- CommandButtonType: () => te,
1361
- CommandChainContext: () => it,
1362
- CommandFallbackContext: () => vt,
1363
- CommandFallbackProvider: () => wt,
1364
- CommandFocusProvider: () => St,
1365
- CommandOrderContext: () => lt,
1366
- CommandRegistry: () => re,
1367
- CommandRegistryContext: () => Te,
1368
- CommandResolver: () => rt,
1369
- CommandResolverContext: () => pt,
1370
- CommandScope: () => Le,
1371
- CommandScopeContext: () => ct,
1372
- CommandScopeProvider: () => dt,
1373
- ConstantActivation: () => Ae,
1374
- DefaultCommandButtonRegistry: () => ae,
1375
- DefaultCommandCatalogService: () => Ee,
1376
- DefaultCommandRegistry: () => ie,
1377
- FocusActivation: () => ze,
1378
- KeyBindingDispatcher: () => Qe,
1379
- LayerActivation: () => Re,
1380
- ManualActivation: () => Pe,
1381
- QUICK_ACTION_TAG: () => pe,
1382
- asCommandCatalog: () => we,
1383
- attachWhenReady: () => ut,
1384
- chromeToPartial: () => Se,
1385
- createCommandCatalogService: () => Me,
1386
- createResolvedCommand: () => ge,
1387
- fetchCatalog: () => xe,
1388
- isCaretKey: () => Je,
1389
- keyEventCanonicals: () => tt,
1390
- keyStrokeToCanonical: () => et,
1391
- mergeChrome: () => Ce,
1392
- parseShortcutString: () => ye,
1393
- reduceDefinitions: () => oe,
1394
- resolveAnchorSource: () => De,
1395
- serializeShortcut: () => be,
1396
- useCommandButtonEntry: () => de,
1397
- useCommandButtonRegistry: () => he,
1398
- useCommandChain: () => st,
1399
- useCommandElement: () => ft,
1400
- useCommandExecute: () => _t,
1401
- useCommandFallback: () => yt,
1402
- useCommandFocusRestore: () => Ct,
1403
- useCommandOrder: () => at,
1404
- useCommandRegistry: () => ke,
1405
- useCommandResolver: () => mt,
1406
- useCommandScope: () => ht,
1407
- useCommands: () => kt,
1408
- useContributeCommands: () => Lt
1409
- }), Pt = "idle", At = g({
1359
+ var Pt = J({
1360
+ ACCUMULATE: () => oe,
1361
+ CommandAnchorProvider: () => _t,
1362
+ CommandButtonEntryLabel: () => pe,
1363
+ CommandButtonRegistryContext: () => he,
1364
+ CommandButtonRegistryProvider: () => de,
1365
+ CommandButtonType: () => ne,
1366
+ CommandChainContext: () => st,
1367
+ CommandFallbackContext: () => yt,
1368
+ CommandFallbackProvider: () => xt,
1369
+ CommandFocusProvider: () => Ct,
1370
+ CommandOrderContext: () => at,
1371
+ CommandRegistry: () => ie,
1372
+ CommandRegistryContext: () => ke,
1373
+ CommandResolver: () => it,
1374
+ CommandResolverContext: () => mt,
1375
+ CommandScope: () => De,
1376
+ CommandScopeContext: () => ht,
1377
+ CommandScopeProvider: () => ft,
1378
+ ConstantActivation: () => ze,
1379
+ DefaultCommandButtonRegistry: () => ce,
1380
+ DefaultCommandCatalogService: () => Te,
1381
+ DefaultCommandRegistry: () => se,
1382
+ FocusActivation: () => Re,
1383
+ KeyBindingDispatcher: () => et,
1384
+ LayerActivation: () => $e,
1385
+ ManualActivation: () => Ae,
1386
+ QUICK_ACTION_TAG: () => me,
1387
+ asCommandCatalog: () => xe,
1388
+ attachWhenReady: () => dt,
1389
+ chromeToPartial: () => Ce,
1390
+ createCommandCatalogService: () => Ee,
1391
+ createResolvedCommand: () => _e,
1392
+ fetchCatalog: () => Se,
1393
+ isCaretKey: () => Qe,
1394
+ keyEventCanonicals: () => nt,
1395
+ keyStrokeToCanonical: () => tt,
1396
+ mergeChrome: () => Me,
1397
+ parseShortcutString: () => be,
1398
+ reduceDefinitions: () => re,
1399
+ resolveAnchorSource: () => Pe,
1400
+ serializeShortcut: () => we,
1401
+ useCommandButtonEntry: () => fe,
1402
+ useCommandButtonRegistry: () => ue,
1403
+ useCommandChain: () => lt,
1404
+ useCommandElement: () => pt,
1405
+ useCommandExecute: () => vt,
1406
+ useCommandFallback: () => bt,
1407
+ useCommandFocusRestore: () => Mt,
1408
+ useCommandOrder: () => ct,
1409
+ useCommandRegistry: () => Le,
1410
+ useCommandResolver: () => gt,
1411
+ useCommandScope: () => ut,
1412
+ useCommands: () => Lt,
1413
+ useContributeCommands: () => Dt
1414
+ }), At = "idle", zt = _({
1410
1415
  mode: "idle",
1411
1416
  interrupt: () => {}
1412
1417
  });
1413
- function zt() {
1414
- return S(At);
1418
+ function Rt() {
1419
+ return C(zt);
1415
1420
  }
1416
- function Rt({ children: e }) {
1417
- const t = zt(), [n, o] = P(Pt), r = D(null), i = x(() => {
1418
- o(Pt), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(Pt), 400);
1421
+ function $t({ children: e }) {
1422
+ const t = Rt(), [n, o] = A(At), r = P(null), i = S(() => {
1423
+ o(At), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(At), 400);
1419
1424
  }, []), s = "interrupted" === n || "interrupted" === t?.mode ? "interrupted" : "idle";
1420
- return R(At.Provider, {
1425
+ return $(zt.Provider, {
1421
1426
  value: {
1422
1427
  mode: s,
1423
1428
  interrupt: i
@@ -1425,7 +1430,7 @@ function Rt({ children: e }) {
1425
1430
  children: e
1426
1431
  });
1427
1432
  }
1428
- var $t = 3, Bt = .5, It = 50, Ht = (e) => ({
1433
+ var Bt = 3, It = .5, Ht = 50, Nt = (e) => ({
1429
1434
  x: e.x,
1430
1435
  y: e.y,
1431
1436
  width: e.width,
@@ -1435,8 +1440,8 @@ var $t = 3, Bt = .5, It = 50, Ht = (e) => ({
1435
1440
  right: e.right,
1436
1441
  bottom: e.bottom
1437
1442
  });
1438
- function Nt(e = {}) {
1439
- const { threshold: t = Bt, stillnessThreshold: n = $t, maxHierarchyDepth: o = It } = e, [r, i] = I(), s = D(null), [l, a] = L((e) => e + 1, 0), c = D(void 0), h = D({
1443
+ function Ot(e = {}) {
1444
+ const { threshold: t = It, stillnessThreshold: n = Bt, maxHierarchyDepth: o = Ht } = e, [r, i] = H(), s = P(null), [l, a] = D((e) => e + 1, 0), c = P(void 0), h = P({
1440
1445
  x: 0,
1441
1446
  y: 0,
1442
1447
  width: 0,
@@ -1445,19 +1450,19 @@ function Nt(e = {}) {
1445
1450
  left: 0,
1446
1451
  right: 0,
1447
1452
  bottom: 0
1448
- }), u = x((e) => {
1453
+ }), u = S((e) => {
1449
1454
  s.current = e, "function" == typeof r && r(e);
1450
- }, [r]), [d, f] = P(i);
1451
- return C(() => {
1455
+ }, [r]), [d, f] = A(i);
1456
+ return M(() => {
1452
1457
  i && !d && f(i);
1453
- }, [i, d]), C(() => {
1458
+ }, [i, d]), M(() => {
1454
1459
  const e = s.current;
1455
1460
  if (!e) return;
1456
1461
  let r = !1, i = 0;
1457
1462
  const l = () => {
1458
1463
  if (!e) return;
1459
1464
  const o = e.getBoundingClientRect(), s = h.current;
1460
- Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Ht(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Ht(o)), a()), h.current = Ht(o), c.current = requestAnimationFrame(l);
1465
+ Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Nt(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Nt(o)), a()), h.current = Nt(o), c.current = requestAnimationFrame(l);
1461
1466
  };
1462
1467
  c.current = requestAnimationFrame(l);
1463
1468
  const u = (e) => {
@@ -1481,7 +1486,7 @@ function Nt(e = {}) {
1481
1486
  o
1482
1487
  ]), [u, d];
1483
1488
  }
1484
- var Ot = {
1489
+ var Ft = {
1485
1490
  BottomEnd: "bottom-end",
1486
1491
  BottomStart: "bottom-start",
1487
1492
  Bottom: "bottom",
@@ -1494,8 +1499,8 @@ var Ot = {
1494
1499
  TopEnd: "top-end",
1495
1500
  TopStart: "top-start",
1496
1501
  Top: "top"
1497
- }, Ft = w(v((e, t) => {
1498
- const { refFocusStart: n, ...o } = e, r = D(null), i = x(() => {
1502
+ }, Wt = x(y((e, t) => {
1503
+ const { refFocusStart: n, ...o } = e, r = P(null), i = S(() => {
1499
1504
  if (n) return void n?.current?.focus();
1500
1505
  const e = r.current?.parentElement;
1501
1506
  if (!e) return;
@@ -1513,14 +1518,14 @@ var Ot = {
1513
1518
  return e.tabindex - t.tabindex;
1514
1519
  }), o[0].child.focus());
1515
1520
  }, [n]);
1516
- return R("div", {
1521
+ return $("div", {
1517
1522
  tabIndex: 0,
1518
- ref: H([r, t]),
1523
+ ref: N([r, t]),
1519
1524
  onFocus: i,
1520
1525
  ...o
1521
1526
  });
1522
1527
  }));
1523
- function Wt(e, t, n = !1) {
1528
+ function Kt(e, t, n = !1) {
1524
1529
  if (0 === t) return e;
1525
1530
  function o(e, t, n) {
1526
1531
  let o = t.x - e.x, i = t.y - e.y, s = Math.sqrt(o * o + i * i);
@@ -1580,21 +1585,21 @@ function Wt(e, t, n = !1) {
1580
1585
  return e + t.join(" ") + " ";
1581
1586
  }, "");
1582
1587
  }
1583
- var Kt = w(v((e, t) => {
1584
- const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] = I(), p = D(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = k(() => {
1588
+ var Vt = x(y((e, t) => {
1589
+ const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] = H(), p = P(null), m = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, y = c?.left ?? 0, w = L(() => {
1585
1590
  const e = d - _, t = f - v;
1586
- return Wt(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
1591
+ return Kt(`M ${y} ${m} L ${e} ${m} L ${e} ${t} L ${y} ${t} Z`, i);
1587
1592
  }, [
1588
1593
  d,
1589
1594
  f,
1590
1595
  i,
1591
- g,
1596
+ m,
1592
1597
  _,
1593
1598
  v,
1594
- b
1595
- ]), x = k(() => "rounded" === a ? w : ((e, t = 0) => {
1599
+ y
1600
+ ]), x = L(() => "rounded" === a ? w : ((e, t = 0) => {
1596
1601
  const n = e / 2, o = f - n + t;
1597
- return Wt(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
1602
+ return Kt(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
1598
1603
  })(s), [
1599
1604
  a,
1600
1605
  w,
@@ -1602,11 +1607,11 @@ var Kt = w(v((e, t) => {
1602
1607
  f,
1603
1608
  i,
1604
1609
  s
1605
- ]), S = k(() => {
1610
+ ]), S = L(() => {
1606
1611
  if (0 === i) return;
1607
1612
  if ("rounded" === a) return w;
1608
1613
  const e = f - s / 2;
1609
- return Wt(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
1614
+ return Kt(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
1610
1615
  }, [
1611
1616
  d,
1612
1617
  f,
@@ -1614,11 +1619,11 @@ var Kt = w(v((e, t) => {
1614
1619
  s,
1615
1620
  a,
1616
1621
  w
1617
- ]), C = k(() => ({ style: {
1618
- ...y(r) ? r.props?.style : void 0,
1622
+ ]), C = L(() => ({ style: {
1623
+ ...b(r) ? r.props?.style : void 0,
1619
1624
  clipPath: `path('${S}')`
1620
1625
  } }), [S, r]);
1621
- return $("div", {
1626
+ return B("div", {
1622
1627
  className: n,
1623
1628
  style: {
1624
1629
  display: "flex",
@@ -1626,12 +1631,12 @@ var Kt = w(v((e, t) => {
1626
1631
  ...o
1627
1632
  },
1628
1633
  ...h,
1629
- ref: H([
1634
+ ref: N([
1630
1635
  p,
1631
1636
  u,
1632
1637
  t
1633
1638
  ]),
1634
- children: [y(r) ? m(r, C) : R(z, {}), R("svg", {
1639
+ children: [b(r) ? g(r, C) : $(R, {}), $("svg", {
1635
1640
  style: {
1636
1641
  position: "absolute",
1637
1642
  top: 0,
@@ -1641,7 +1646,7 @@ var Kt = w(v((e, t) => {
1641
1646
  width: d,
1642
1647
  height: f,
1643
1648
  viewBox: `0 0 ${d} ${f}`,
1644
- children: R("path", {
1649
+ children: $("path", {
1645
1650
  d: x,
1646
1651
  stroke: l,
1647
1652
  fill: "none",
@@ -1650,18 +1655,18 @@ var Kt = w(v((e, t) => {
1650
1655
  })
1651
1656
  })]
1652
1657
  });
1653
- })), Vt = g(null);
1654
- function jt() {
1655
- return S(Vt);
1658
+ })), jt = _(null);
1659
+ function Yt() {
1660
+ return C(jt);
1656
1661
  }
1657
- function Yt(e, t) {
1662
+ function Ut(e, t) {
1658
1663
  const n = t?.renderError;
1659
1664
  let o = null;
1660
1665
  const r = () => {
1661
1666
  const t = {
1662
1667
  failed: !1,
1663
1668
  shown: !1,
1664
- component: b(async () => {
1669
+ component: w(async () => {
1665
1670
  try {
1666
1671
  return await e();
1667
1672
  } catch (e) {
@@ -1676,30 +1681,30 @@ function Yt(e, t) {
1676
1681
  return t;
1677
1682
  }, i = () => ((!o || o.failed && o.shown) && (o = r()), o.component);
1678
1683
  return (e) => {
1679
- const [t, n] = P(i), s = x(() => {
1684
+ const [t, n] = A(i), s = S(() => {
1680
1685
  n(() => (o && !o.failed || (o = r()), o.component));
1681
1686
  }, []);
1682
- return R(Vt.Provider, {
1687
+ return $(jt.Provider, {
1683
1688
  value: s,
1684
- children: R(t, { ...e })
1689
+ children: $(t, { ...e })
1685
1690
  });
1686
1691
  };
1687
1692
  }
1688
- var Ut = {
1693
+ var Xt = {
1689
1694
  Default: "default",
1690
1695
  Error: "error",
1691
1696
  Success: "success",
1692
1697
  Warning: "warning",
1693
1698
  Info: "info"
1694
1699
  };
1695
- function Xt(e = () => {}, t = () => {}, n = () => {}) {
1700
+ function qt(e = () => {}, t = () => {}, n = () => {}) {
1696
1701
  const o = () => e();
1697
1702
  return o.setProgress = t, o.setMessage = n, o;
1698
1703
  }
1699
- function qt() {
1700
- return Xt();
1704
+ function Zt() {
1705
+ return qt();
1701
1706
  }
1702
- var Zt = class extends n {
1707
+ var Gt = class extends n {
1703
1708
  setOverrides(e) {
1704
1709
  super.setOverrides(e);
1705
1710
  }
@@ -1709,11 +1714,11 @@ var Zt = class extends n {
1709
1714
  showMessage(e, t) {
1710
1715
  const n = this.getDelegate();
1711
1716
  if (n?.showMessage) return n.showMessage(e, t);
1712
- t?.type !== Ut.Warning ? t?.type !== Ut.Error ? i.log(e) : i.error(e) : i.warn(e);
1717
+ t?.type !== Xt.Warning ? t?.type !== Xt.Error ? i.log(e) : i.error(e) : i.warn(e);
1713
1718
  }
1714
1719
  showBusy(e, t) {
1715
1720
  const n = this.getDelegate();
1716
- return n?.showBusy ? n.showBusy(e, t) : Promise.resolve(qt());
1721
+ return n?.showBusy ? n.showBusy(e, t) : Promise.resolve(Zt());
1717
1722
  }
1718
1723
  showWindow(e, t) {
1719
1724
  const n = this.getDelegate();
@@ -1734,33 +1739,33 @@ var Zt = class extends n {
1734
1739
  option: ""
1735
1740
  });
1736
1741
  }
1737
- }, Gt = g(new Zt()), Jt = ({ children: e, notifier: t }) => (C(() => {
1742
+ }, Jt = _(new Gt()), Qt = ({ children: e, notifier: t }) => (M(() => {
1738
1743
  const e = i.getOverrides();
1739
1744
  return i.setOverrides(t), () => {
1740
1745
  i.setOverrides(e);
1741
1746
  };
1742
- }, [t]), _(Gt.Provider, { value: t }, e)), Qt = () => S(Gt), en = (e, t) => {
1743
- const n = x((...t) => e?.(...t), t), o = D(null);
1747
+ }, [t]), v(Jt.Provider, { value: t }, e)), en = () => C(Jt), tn = (e, t) => {
1748
+ const n = S((...t) => e?.(...t), t), o = P(null);
1744
1749
  o.current = n;
1745
- const r = x((...e) => o.current?.(...e), []);
1750
+ const r = S((...e) => o.current?.(...e), []);
1746
1751
  if (o.current) return r;
1747
- }, tn = () => {};
1748
- function nn(e, t) {
1749
- const n = x((t) => e ? e(t) : tn, [e]), o = x(() => t ? t() : null, [t]);
1750
- return A(n, o, o);
1751
- }
1752
+ }, nn = () => {};
1752
1753
  function on(e, t) {
1753
- const n = x((t) => e.subscribe(t), [e]), o = x(() => t(e), [e, t]);
1754
- return A(n, o, o);
1754
+ const n = S((t) => e ? e(t) : nn, [e]), o = S(() => t ? t() : null, [t]);
1755
+ return z(n, o, o);
1755
1756
  }
1756
- var rn = () => {};
1757
- function sn(e, t) {
1758
- const n = x((t) => e ? e.subscribe(t) : rn, [e]), o = x(() => e ? t(e) : null, [e, t]);
1759
- return A(n, o, o);
1757
+ function rn(e, t) {
1758
+ const n = S((t) => e.subscribe(t), [e]), o = S(() => t(e), [e, t]);
1759
+ return z(n, o, o);
1760
1760
  }
1761
- function ln(e) {
1762
- const [t, n] = P("undefined" != typeof window ? window.devicePixelRatio : 1), o = D(null);
1763
- return C(() => {
1761
+ var sn = () => {};
1762
+ function ln(e, t) {
1763
+ const n = S((t) => e ? e.subscribe(t) : sn, [e]), o = S(() => e ? t(e) : null, [e, t]);
1764
+ return z(n, o, o);
1765
+ }
1766
+ function an(e) {
1767
+ const [t, n] = A("undefined" != typeof window ? window.devicePixelRatio : 1), o = P(null);
1768
+ return M(() => {
1764
1769
  if ("undefined" == typeof window || !("matchMedia" in window)) return;
1765
1770
  const e = () => {
1766
1771
  const t = window.matchMedia(`screen and (resolution: ${window.devicePixelRatio}dppx)`);
@@ -1777,14 +1782,14 @@ function ln(e) {
1777
1782
  };
1778
1783
  }, [e]), t;
1779
1784
  }
1780
- function an(e) {
1785
+ function cn(e) {
1781
1786
  if ("undefined" == typeof window) return 1;
1782
1787
  const { defaultDpr: t = 1, maxDpr: n = 3, round: o = !0 } = e || {}, r = "undefined" != typeof window && "number" == typeof window.devicePixelRatio ? window.devicePixelRatio : t;
1783
1788
  return Math.min(Math.max(1, o ? Math.floor(r) : r), n);
1784
1789
  }
1785
- function cn(e, t, n) {
1786
- const o = en(t, [t]);
1787
- C(() => {
1790
+ function hn(e, t, n) {
1791
+ const o = tn(t, [t]);
1792
+ M(() => {
1788
1793
  const t = (t) => {
1789
1794
  e.current && !e.current.contains(t.target) && o(t);
1790
1795
  };
@@ -1793,32 +1798,32 @@ function cn(e, t, n) {
1793
1798
  };
1794
1799
  }, [e]);
1795
1800
  }
1796
- function hn(e = {}) {
1797
- const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = P(!1), [l, a] = P(null), [c, h] = P(!1);
1798
- C(() => {
1801
+ function un(e = {}) {
1802
+ const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = A(!1), [l, a] = A(null), [c, h] = A(!1);
1803
+ M(() => {
1799
1804
  s(function() {
1800
1805
  if ("undefined" == typeof document) return !1;
1801
1806
  const e = document.permissionsPolicy ?? document.featurePolicy;
1802
1807
  return e?.allowsFeature ? e.allowsFeature("fullscreen") : !!document.fullscreenEnabled;
1803
1808
  }());
1804
1809
  }, []);
1805
- const u = x(async () => {
1810
+ const u = S(async () => {
1806
1811
  const e = t?.current ?? document.documentElement;
1807
1812
  try {
1808
1813
  await e.requestFullscreen(r);
1809
1814
  } catch (e) {
1810
1815
  throw (e instanceof TypeError || e instanceof DOMException && "TypeError" === e.name) && s(!1), e;
1811
1816
  }
1812
- }, [t, r]), d = x(async () => {
1817
+ }, [t, r]), d = S(async () => {
1813
1818
  await document.exitFullscreen();
1814
- }, []), f = x(() => document.fullscreenElement ? d() : u(), [u, d]), p = x((e) => {
1819
+ }, []), f = S(() => document.fullscreenElement ? d() : u(), [u, d]), p = S((e) => {
1815
1820
  const t = document.fullscreenElement ?? null;
1816
1821
  a(t), h(!!t), n?.(e);
1817
- }, [n]), m = x((e) => {
1822
+ }, [n]), m = S((e) => {
1818
1823
  const t = document.fullscreenElement ?? null;
1819
1824
  a(t), h(!!t), o?.(e);
1820
1825
  }, [o]);
1821
- return C(() => (document.addEventListener("fullscreenchange", p), document.addEventListener("fullscreenerror", m), () => {
1826
+ return M(() => (document.addEventListener("fullscreenchange", p), document.addEventListener("fullscreenerror", m), () => {
1822
1827
  document.removeEventListener("fullscreenchange", p), document.removeEventListener("fullscreenerror", m);
1823
1828
  }), [p, m]), {
1824
1829
  isFullscreenAvailable: i,
@@ -1829,21 +1834,21 @@ function hn(e = {}) {
1829
1834
  toggleFullscreen: f
1830
1835
  };
1831
1836
  }
1832
- var un = "_portal-root_105xh_14", dn = "_fullscreen_105xh_31", fn = 0, pn = () => {
1837
+ var dn = "_portal-root_105xh_14", fn = "_fullscreen_105xh_31", pn = 0, mn = () => {
1833
1838
  const e = document.fullscreenElement, t = e ?? document.body;
1834
1839
  let n = document.querySelector(".portal-root");
1835
- n || (n = document.createElement("div"), n.className = `portal-root ${un}`), n.parentElement !== t && t.appendChild(n);
1840
+ n || (n = document.createElement("div"), n.className = `portal-root ${dn}`), n.parentElement !== t && t.appendChild(n);
1836
1841
  const o = !!e;
1837
- return n.classList.toggle("fullscreen", o), n.classList.toggle(dn, o), n;
1842
+ return n.classList.toggle("fullscreen", o), n.classList.toggle(fn, o), n;
1838
1843
  };
1839
- function mn() {
1840
- const [e, t] = P(!!document.fullscreenElement), n = x(() => pn(), []);
1841
- return C(() => {
1844
+ function gn() {
1845
+ const [e, t] = A(!!document.fullscreenElement), n = S(() => mn(), []);
1846
+ return M(() => {
1842
1847
  const e = () => {
1843
- t(!!document.fullscreenElement), pn();
1848
+ t(!!document.fullscreenElement), mn();
1844
1849
  };
1845
- return fn++, pn(), document.addEventListener("fullscreenchange", e), () => {
1846
- document.removeEventListener("fullscreenchange", e), --fn <= 0 && (fn = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1850
+ return pn++, mn(), document.addEventListener("fullscreenchange", e), () => {
1851
+ document.removeEventListener("fullscreenchange", e), --pn <= 0 && (pn = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1847
1852
  e.parentNode?.removeChild(e);
1848
1853
  }));
1849
1854
  };
@@ -1852,35 +1857,35 @@ function mn() {
1852
1857
  isFullscreen: e
1853
1858
  };
1854
1859
  }
1855
- var gn = "_dragging_at5p4_10", _n = /* @__PURE__ */ new Set([
1860
+ var _n = "_dragging_at5p4_10", vn = /* @__PURE__ */ new Set([
1856
1861
  "text",
1857
1862
  "search",
1858
1863
  "url",
1859
1864
  "tel",
1860
1865
  "password",
1861
1866
  ""
1862
- ]), vn = (e, t, n) => {
1867
+ ]), yn = (e, t, n) => {
1863
1868
  const o = e.getBoundingClientRect();
1864
1869
  if (!o.width || !o.height) return null;
1865
1870
  const r = Math.min(Math.max(t, o.left + 1), o.right - 1), i = Math.min(Math.max(n, o.top + 1), o.bottom - 1), s = e.ownerDocument, l = s.caretPositionFromPoint?.(r, i);
1866
1871
  if (l) return l.offset;
1867
1872
  const a = s.caretRangeFromPoint?.(r, i);
1868
1873
  return a ? a.startOffset : null;
1869
- }, yn = () => {
1870
- const e = D(null);
1871
- return C(() => () => {
1874
+ }, bn = () => {
1875
+ const e = P(null);
1876
+ return M(() => () => {
1872
1877
  e.current?.();
1873
- }, []), k(() => ({
1878
+ }, []), L(() => ({
1874
1879
  onPointerDown: (t) => {
1875
1880
  if (void 0 !== t?.button && 0 !== t.button) return;
1876
1881
  if (e.current) return;
1877
- const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && _n.has(o.type) ? o : null);
1882
+ const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && vn.has(o.type) ? o : null);
1878
1883
  var o;
1879
- const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? vn(n, t.clientX, t.clientY) : null;
1884
+ const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? yn(n, t.clientX, t.clientY) : null;
1880
1885
  let i = null !== n && null !== r, s = t?.clientX ?? 0, l = t?.clientY ?? 0;
1881
1886
  const a = (e, t) => {
1882
1887
  if (!i || !n || null === r) return;
1883
- const o = vn(n, e, t);
1888
+ const o = yn(n, e, t);
1884
1889
  null !== o && n.setSelectionRange(Math.min(r, o), Math.max(r, o), o < r ? "backward" : "forward");
1885
1890
  }, c = (e) => {
1886
1891
  s = e.clientX, l = e.clientY, a(s, l);
@@ -1897,9 +1902,9 @@ var gn = "_dragging_at5p4_10", _n = /* @__PURE__ */ new Set([
1897
1902
  const r = (e) => Math.max(-24, Math.min(24, e));
1898
1903
  n.scrollLeft += r(t), n.scrollTop += r(o), a(s, l);
1899
1904
  }, 50) : 0, f = () => {
1900
- e.current = null, u.classList.remove(gn), d && window.clearInterval(d), window.removeEventListener("mousedown", h, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1905
+ e.current = null, u.classList.remove(_n), d && window.clearInterval(d), window.removeEventListener("mousedown", h, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1901
1906
  };
1902
- e.current = f, u.classList.add(gn), i && window.addEventListener("mousedown", h, {
1907
+ e.current = f, u.classList.add(_n), i && window.addEventListener("mousedown", h, {
1903
1908
  capture: !0,
1904
1909
  once: !0
1905
1910
  }), window.addEventListener("pointermove", c, !0), window.addEventListener("pointerup", f, !0), window.addEventListener("pointercancel", f, !0);
@@ -1909,67 +1914,67 @@ var gn = "_dragging_at5p4_10", _n = /* @__PURE__ */ new Set([
1909
1914
  }
1910
1915
  }), []);
1911
1916
  };
1912
- function bn(e) {
1917
+ function wn(e) {
1913
1918
  if (!e) throw new Error("must have a PointerHandlerOptions");
1914
- const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1, consumeTouch: i = !0 } = e, s = en(t, [t]), l = en(n, [n]), a = en(o, [o]), c = D(!1), h = e?.timerInitial ?? 230, u = e?.timerContinuous ?? h / 2, d = D(null), f = D(null), p = D(null), m = D(null), g = x(() => {
1919
+ const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1, consumeTouch: i = !0 } = e, s = tn(t, [t]), l = tn(n, [n]), a = tn(o, [o]), c = P(!1), h = e?.timerInitial ?? 230, u = e?.timerContinuous ?? h / 2, d = P(null), f = P(null), p = P(null), m = P(null), g = S(() => {
1915
1920
  m.current && (clearTimeout(m.current), m.current = null);
1916
- }, []), _ = x((e) => {
1921
+ }, []), _ = S((e) => {
1917
1922
  m.current = setTimeout(() => {
1918
1923
  window.requestAnimationFrame(() => {
1919
1924
  if (!1 === c.current) return;
1920
1925
  const e = f.current, t = d.current;
1921
1926
  if (!e || !t) return;
1922
- const n = qe(e, t.currentTarget);
1927
+ const n = Ze(e, t.currentTarget);
1923
1928
  a?.(n, p.current, t);
1924
1929
  }), _(u);
1925
1930
  }, e ?? h);
1926
1931
  }, []);
1927
- C(() => () => g(), []);
1928
- const v = r ? "pointer" : "mouse", y = x((e) => {
1932
+ M(() => () => g(), []);
1933
+ const v = r ? "pointer" : "mouse", y = S((e) => {
1929
1934
  e.stopPropagation(), e.stopImmediatePropagation(), e.preventDefault();
1930
- }, []), b = en((e) => {
1931
- document.removeEventListener(`${v}move`, M), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup", T), document.removeEventListener("touchstart", y, { capture: !0 }), document.removeEventListener("touchmove", y, { capture: !0 }), window.removeEventListener("blur", w), g(), window.requestAnimationFrame(() => {
1935
+ }, []), b = tn((e) => {
1936
+ document.removeEventListener(`${v}move`, C), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup", T), document.removeEventListener("touchstart", y, { capture: !0 }), document.removeEventListener("touchmove", y, { capture: !0 }), window.removeEventListener("blur", w), g(), window.requestAnimationFrame(() => {
1932
1937
  if (!1 === c.current) return;
1933
1938
  c.current = !1;
1934
1939
  const t = e, n = d.current;
1935
1940
  if (!n) return;
1936
- const o = qe(t, n.currentTarget);
1941
+ const o = Ze(t, n.currentTarget);
1937
1942
  l?.(o, p.current, n), p.current = null;
1938
1943
  });
1939
- }, []), w = x(() => {
1944
+ }, []), w = S(() => {
1940
1945
  !1 !== c.current && (c.current = !1, b(f.current));
1941
- }, []), S = en(() => {
1946
+ }, []), x = tn(() => {
1942
1947
  g(), _(u), window.requestAnimationFrame(() => {
1943
1948
  if (!1 === c.current) return;
1944
1949
  const e = f.current, t = d.current;
1945
1950
  if (!e || !t) return;
1946
- const n = qe(e, t.currentTarget);
1951
+ const n = Ze(e, t.currentTarget);
1947
1952
  a?.(n, p.current, t);
1948
1953
  });
1949
- }, [u]), M = en((e) => {
1950
- f.current = e, S();
1951
- }, []), E = en((e) => {
1954
+ }, [u]), C = tn((e) => {
1955
+ f.current = e, x();
1956
+ }, []), E = tn((e) => {
1952
1957
  p.current = {
1953
1958
  ctrlKey: e.ctrlKey,
1954
1959
  shiftKey: e.shiftKey,
1955
1960
  altKey: e.altKey,
1956
1961
  metaKey: e.metaKey
1957
- }, S();
1958
- }, []), T = en((e) => {
1962
+ }, x();
1963
+ }, []), T = tn((e) => {
1959
1964
  p.current = {
1960
1965
  ctrlKey: e.ctrlKey,
1961
1966
  shiftKey: e.shiftKey,
1962
1967
  altKey: e.altKey,
1963
1968
  metaKey: e.metaKey
1964
- }, S();
1969
+ }, x();
1965
1970
  }, [u]);
1966
- return en((e) => {
1971
+ return tn((e) => {
1967
1972
  e.isDefaultPrevented() || (p.current = {
1968
1973
  ctrlKey: e.ctrlKey,
1969
1974
  shiftKey: e.shiftKey,
1970
1975
  altKey: e.altKey,
1971
1976
  metaKey: e.metaKey
1972
- }, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, M, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup", T, { passive: !1 }), window.addEventListener("blur", w, { passive: !0 }), r && i && (document.addEventListener("touchstart", y, {
1977
+ }, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, C, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup", T, { passive: !1 }), window.addEventListener("blur", w, { passive: !0 }), r && i && (document.addEventListener("touchstart", y, {
1973
1978
  passive: !1,
1974
1979
  capture: !0
1975
1980
  }), document.addEventListener("touchmove", y, {
@@ -1978,8 +1983,8 @@ function bn(e) {
1978
1983
  })), c.current = !0, _(h)));
1979
1984
  }, [h, r]);
1980
1985
  }
1981
- function wn(e, t) {
1982
- return bn({
1986
+ function xn(e, t) {
1987
+ return wn({
1983
1988
  onPointerDown: e,
1984
1989
  onPointerMoveOrWait: (t, n, o) => {
1985
1990
  e?.(o);
@@ -1987,49 +1992,49 @@ function wn(e, t) {
1987
1992
  ...t
1988
1993
  });
1989
1994
  }
1990
- var xn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1991
- const o = D(e);
1995
+ var Sn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1996
+ const o = P(e);
1992
1997
  if ("function" != typeof t) throw new Error("function expected as hook body parameter. got " + typeof t);
1993
1998
  const r = t();
1994
- return T(() => {
1999
+ return k(() => {
1995
2000
  o.current !== r && (o.current = r, n(r));
1996
2001
  }, [n, r]), null;
1997
- }, Sn = (e) => {
2002
+ }, Cn = (e) => {
1998
2003
  console && console.warn && console.warn(e);
1999
- }, Cn = globalThis, Mn = 1, En = !1, Tn = !1, kn = [], Ln = [], Dn = () => {
2000
- Ln.forEach((e) => e());
2001
- }, Pn = ({ automaticContainerInternalUseOnly: e }) => {
2002
- const [t, n] = P([]), o = D([]);
2003
- return o.current = t, e || !1 !== En || (Tn = !0), C(() => {
2004
+ }, Mn = globalThis, En = 1, Tn = !1, kn = !1, Ln = [], Dn = [], Pn = () => {
2005
+ Dn.forEach((e) => e());
2006
+ }, An = ({ automaticContainerInternalUseOnly: e }) => {
2007
+ const [t, n] = A([]), o = P([]);
2008
+ return o.current = t, e || !1 !== Tn || (kn = !0), M(() => {
2004
2009
  let t = !0;
2005
2010
  function r() {
2006
- if (t) return Ln[0] !== r ? (e || !0 !== En || Sn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...kn]);
2011
+ if (t) return Dn[0] !== r ? (e || !0 !== Tn || Cn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...Ln]);
2007
2012
  }
2008
- return Ln.push(r), Dn(), () => {
2009
- t = !1, o.current?.length > 0 && Sn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Ln.splice(Ln.indexOf(r), 1), Dn();
2013
+ return Dn.push(r), Pn(), () => {
2014
+ t = !1, o.current?.length > 0 && Cn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Dn.splice(Dn.indexOf(r), 1), Pn();
2010
2015
  };
2011
- }, [e]), R(z, { children: t.map(({ hook: e, key: t }) => _(xn, {
2016
+ }, [e]), $(R, { children: t.map(({ hook: e, key: t }) => v(Sn, {
2012
2017
  ...e,
2013
2018
  key: t
2014
2019
  })) });
2015
- }, An = (e) => {
2016
- const t = Mn++;
2020
+ }, zn = (e) => {
2021
+ const t = En++;
2017
2022
  var n;
2018
- return kn.push({
2023
+ return Ln.push({
2019
2024
  hook: e,
2020
2025
  key: t
2021
- }), 0 === Ln.length && !1 === Tn && (En = !0, n = Pn, Cn.document && Cn.document.createElement ? N(Cn.document.createElement("div")).render(R(n, { automaticContainerInternalUseOnly: !0 })) : Sn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), Dn(), () => {
2022
- kn.splice(kn.findIndex((e) => e.key === t), 1), Dn();
2026
+ }), 0 === Dn.length && !1 === kn && (Tn = !0, n = An, Mn.document && Mn.document.createElement ? O(Mn.document.createElement("div")).render($(n, { automaticContainerInternalUseOnly: !0 })) : Cn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), Pn(), () => {
2027
+ Ln.splice(Ln.findIndex((e) => e.key === t), 1), Pn();
2023
2028
  };
2024
- }, zn = null;
2025
- zn || (zn = (e, t, n = {}) => {
2029
+ }, Rn = null;
2030
+ Rn || (Rn = (e, t, n = {}) => {
2026
2031
  let o, r, i = !1, s = !1, l = [], { unmountIfNoConsumers: a = !1 } = n;
2027
2032
  const c = (e) => {
2028
- r = e, F(() => l.forEach((t) => t(e)));
2033
+ r = e, W(() => l.forEach((t) => t(e)));
2029
2034
  }, h = () => (s || (r = "function" == typeof e ? e() : e, s = !0), r);
2030
2035
  return () => {
2031
- const [n, s] = P(h);
2032
- return C(() => (i || (i = !0, o = An({
2036
+ const [n, s] = A(h);
2037
+ return M(() => (i || (i = !0, o = zn({
2033
2038
  initValue: e,
2034
2039
  useHookBody: t,
2035
2040
  applyStateChange: c
@@ -2038,27 +2043,27 @@ zn || (zn = (e, t, n = {}) => {
2038
2043
  }), []), n;
2039
2044
  };
2040
2045
  });
2041
- var Rn = zn, $n = () => {
2046
+ var $n = Rn, Bn = () => {
2042
2047
  console.warn("You must call useEditMode before setting its state.");
2043
- }, Bn = Rn(null, () => {
2044
- const [e, t] = P(null);
2045
- return $n = t, e;
2046
- }), In = (e) => {
2047
- $n((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
2048
- }, Hn = () => {
2049
- const e = Bn();
2050
- return k(() => ({
2051
- setMode: In,
2048
+ }, In = $n(null, () => {
2049
+ const [e, t] = A(null);
2050
+ return Bn = t, e;
2051
+ }), Hn = (e) => {
2052
+ Bn((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
2053
+ }, Nn = () => {
2054
+ const e = In();
2055
+ return L(() => ({
2056
+ setMode: Hn,
2052
2057
  getMode: () => e
2053
2058
  }), [e]);
2054
- }, Nn = { Active: "language" };
2055
- function On() {
2056
- return A((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
2057
- }
2059
+ }, On = { Active: "language" };
2058
2060
  function Fn() {
2059
- return k(() => (e, n) => t.lookup(e, n) ?? e, [A((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision())]);
2061
+ return z((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
2060
2062
  }
2061
- var Wn = (e, t, n, o) => ({
2063
+ function Wn() {
2064
+ return L(() => (e, n) => t.lookup(e, n) ?? e, [z((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision())]);
2065
+ }
2066
+ var Kn = (e, t, n, o) => ({
2062
2067
  x: e,
2063
2068
  y: t,
2064
2069
  width: n,
@@ -2077,9 +2082,9 @@ var Wn = (e, t, n, o) => ({
2077
2082
  right: e + n,
2078
2083
  bottom: t + o
2079
2084
  })
2080
- }), Kn = (e) => {
2081
- return Wn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
2082
- }, Vn = [
2085
+ }), Vn = (e) => {
2086
+ return Kn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
2087
+ }, jn = [
2083
2088
  "paddingTop",
2084
2089
  "paddingRight",
2085
2090
  "paddingBottom",
@@ -2109,18 +2114,18 @@ var Wn = (e, t, n, o) => ({
2109
2114
  "wordBreak",
2110
2115
  "overflowWrap",
2111
2116
  "tabSize"
2112
- ], jn = (e, t, n, o = 0) => {
2113
- if (!e || "undefined" == typeof document) return Wn(0, 0, 0, 0);
2117
+ ], Yn = (e, t, n, o = 0) => {
2118
+ if (!e || "undefined" == typeof document) return Kn(0, 0, 0, 0);
2114
2119
  const r = e.value, i = Math.max(0, Math.min(t ?? e.selectionStart ?? r.length, r.length)), s = !n, l = n ?? document.createElement("div");
2115
2120
  l.setAttribute("aria-hidden", "true"), ((e, t) => {
2116
2121
  const n = getComputedStyle(t), o = e.style;
2117
- for (const e of Vn) o[e] = n[e];
2122
+ for (const e of jn) o[e] = n[e];
2118
2123
  o.position = "absolute", o.top = "0", o.left = "0", o.visibility = "hidden", o.pointerEvents = "none", o.overflow = "hidden", o.boxSizing = "border-box", o.height = "auto", o.width = `${t.offsetWidth}px`;
2119
2124
  })(l, e), l.textContent = r.slice(0, i);
2120
2125
  const a = document.createElement("span");
2121
2126
  a.textContent = r.slice(i) || "​", l.appendChild(a), s && document.body.appendChild(l);
2122
2127
  try {
2123
- const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Kn({
2128
+ const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Vn({
2124
2129
  textareaRect: e.getBoundingClientRect(),
2125
2130
  mirrorRect: r,
2126
2131
  markerRect: {
@@ -2131,25 +2136,25 @@ var Wn = (e, t, n, o) => ({
2131
2136
  scrollLeft: e.scrollLeft,
2132
2137
  scrollTop: e.scrollTop
2133
2138
  });
2134
- return o ? Wn(s.left - o, s.top, 0, s.height) : s;
2139
+ return o ? Kn(s.left - o, s.top, 0, s.height) : s;
2135
2140
  } finally {
2136
2141
  s ? l.remove() : l.textContent = "";
2137
2142
  }
2138
- }, Yn = (e) => {
2139
- const t = D(null);
2140
- C(() => {
2143
+ }, Un = (e) => {
2144
+ const t = P(null);
2145
+ M(() => {
2141
2146
  if ("undefined" == typeof document) return;
2142
2147
  const e = document.createElement("div");
2143
2148
  return t.current = e, document.body.appendChild(e), () => {
2144
2149
  e.remove(), t.current = null;
2145
2150
  };
2146
2151
  }, []);
2147
- const n = x((n, o) => jn(e.current, n, t.current ?? void 0, o), [e]);
2152
+ const n = S((n, o) => Yn(e.current, n, t.current ?? void 0, o), [e]);
2148
2153
  return {
2149
2154
  getCaretRect: n,
2150
- caretAnchor: x((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
2155
+ caretAnchor: S((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
2151
2156
  };
2152
- }, Un = Rn({
2157
+ }, Xn = $n({
2153
2158
  setClipboard: (e) => {
2154
2159
  throw new Error("This is only available via the useClipboard.");
2155
2160
  },
@@ -2157,17 +2162,17 @@ var Wn = (e, t, n, o) => ({
2157
2162
  refNativeCopy: { current: null },
2158
2163
  refNativeLastKey: { current: null }
2159
2164
  }, () => {
2160
- const [e, t] = P(r.Global);
2165
+ const [e, t] = A(r.Global);
2161
2166
  return {
2162
2167
  setClipboard: (e) => t(e),
2163
2168
  getClipboard: () => e,
2164
- refNativeCopy: D(null),
2165
- refNativeLastKey: D(null)
2169
+ refNativeCopy: P(null),
2170
+ refNativeLastKey: P(null)
2166
2171
  };
2167
2172
  });
2168
- function Xn(e, t = !0) {
2169
- const n = D(e);
2170
- C(() => {
2173
+ function qn(e, t = !0) {
2174
+ const n = P(e);
2175
+ M(() => {
2171
2176
  if (t) {
2172
2177
  const t = Object.entries(e).reduce((e, [t, o]) => (n.current[t] !== o && (e[t] = [n.current[t], o]), e), {});
2173
2178
  Object.keys(t).length > 0 && console.log("Changed props:", t);
@@ -2175,18 +2180,18 @@ function Xn(e, t = !0) {
2175
2180
  n.current = e;
2176
2181
  });
2177
2182
  }
2178
- var qn = !1, Zn = 0, Gn = "undefined" != typeof document ? T : C, Jn = () => "sheetxl-ui-" + Zn++;
2179
- var Qn = f["useId".toString()], eo = null != Qn ? Qn : function() {
2180
- const [e, t] = P(() => qn ? Jn() : void 0);
2181
- return Gn(() => {
2182
- null == e && t(Jn());
2183
- }, []), C(() => {
2184
- qn || (qn = !0);
2183
+ var Zn = !1, Gn = 0, Jn = "undefined" != typeof document ? k : M, Qn = () => "sheetxl-ui-" + Gn++;
2184
+ var eo = p["useId".toString()], to = null != eo ? eo : function() {
2185
+ const [e, t] = A(() => Zn ? Qn() : void 0);
2186
+ return Jn(() => {
2187
+ null == e && t(Qn());
2188
+ }, []), M(() => {
2189
+ Zn || (Zn = !0);
2185
2190
  }, []), e;
2186
- }, to = [];
2187
- function no(e, t, n = to, o) {
2188
- const r = D(null);
2189
- return E(e, () => {
2191
+ }, no = [];
2192
+ function oo(e, t, n = no, o) {
2193
+ const r = P(null);
2194
+ return T(e, () => {
2190
2195
  const e = void 0 === o ? r.current : o;
2191
2196
  if (!e) return;
2192
2197
  const n = t?.();
@@ -2204,7 +2209,7 @@ function no(e, t, n = to, o) {
2204
2209
  return e;
2205
2210
  }, void 0 === o ? n : [...n, o]), r;
2206
2211
  }
2207
- var oo = class extends p {
2212
+ var ro = class extends m {
2208
2213
  constructor(...e) {
2209
2214
  super(...e), this.state = { error: null }, this._reportedMessage = null;
2210
2215
  }
@@ -2220,22 +2225,27 @@ var oo = class extends p {
2220
2225
  render() {
2221
2226
  return this.state.error ? this.props.fallback ?? null : this.props.children;
2222
2227
  }
2223
- }, ro = ({ children: e, fallback: t }) => {
2224
- const n = Qt();
2225
- return R(oo, {
2228
+ }, io = ({ children: e, fallback: t }) => {
2229
+ const n = en();
2230
+ return $(ro, {
2226
2231
  fallback: t,
2227
- onError: x((e) => {
2232
+ onError: S((e) => {
2228
2233
  n.showError(e);
2229
2234
  }, [n]),
2230
2235
  children: e
2231
2236
  });
2232
- }, io = class {
2237
+ }, so = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, lo = /\breact_devtools_backend/;
2238
+ function ao(e, t) {
2239
+ const n = `${e ?? ""}\n${t instanceof Error ? t.stack ?? "" : ""}`;
2240
+ return so.test(n) || lo.test(n);
2241
+ }
2242
+ var co = class {
2233
2243
  constructor(e) {
2234
2244
  this.notifier = e, this.handleUnhandledRejection = (e) => {
2235
2245
  const t = e.reason;
2236
- t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || (this.notifier.showError(t), t instanceof o && e.preventDefault());
2246
+ t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || ao(void 0, t) || (this.notifier.showError(t), t instanceof o && e.preventDefault());
2237
2247
  }, this.handleGlobalError = (e) => {
2238
- "string" == typeof e.message && e.message.includes("ResizeObserver loop") || this.notifier.showError(e.error ?? e.message);
2248
+ "string" == typeof e.message && e.message.includes("ResizeObserver loop") || ao(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2239
2249
  }, this.setupGlobalHandlers();
2240
2250
  }
2241
2251
  setupGlobalHandlers() {
@@ -2244,15 +2254,15 @@ var oo = class extends p {
2244
2254
  cleanup() {
2245
2255
  window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
2246
2256
  }
2247
- }, so = ({ children: e }) => {
2248
- const t = Qt();
2249
- return C(() => {
2250
- const e = new io(t);
2257
+ }, ho = ({ children: e }) => {
2258
+ const t = en();
2259
+ return M(() => {
2260
+ const e = new co(t);
2251
2261
  return () => {
2252
2262
  e.cleanup();
2253
2263
  };
2254
- }, [t]), R(z, { children: e });
2255
- }, lo = 7, ao = {
2264
+ }, [t]), $(R, { children: e });
2265
+ }, uo = 7, fo = {
2256
2266
  light: {
2257
2267
  "color-base-100": "#ffffff",
2258
2268
  "color-base-200": "#f5f5f5",
@@ -2349,26 +2359,26 @@ var oo = class extends p {
2349
2359
  border: "1px",
2350
2360
  "image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
2351
2361
  }
2352
- }, co = "--sxl-";
2353
- function ho(e) {
2362
+ }, po = "--sxl-";
2363
+ function mo(e) {
2354
2364
  const t = {};
2355
2365
  for (const n in e) {
2356
2366
  const o = e[n];
2357
2367
  null != o && (Array.isArray(o) ? o.forEach((e, o) => {
2358
- null != e && (t[`${co}${n}-${o + 1}`] = String(e));
2359
- }) : t[`${co}${n}`] = String(o));
2368
+ null != e && (t[`${po}${n}-${o + 1}`] = String(e));
2369
+ }) : t[`${po}${n}`] = String(o));
2360
2370
  }
2361
2371
  return t;
2362
2372
  }
2363
- function uo(e, ...t) {
2364
- return ho(Object.assign({}, ao[e], ...t.filter(Boolean)));
2373
+ function go(e, ...t) {
2374
+ return mo(Object.assign({}, fo[e], ...t.filter(Boolean)));
2365
2375
  }
2366
- var fo = ["light", "dark"], po = "--sxl-input-selection", mo = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", go = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${po},${mo});}`, _o = [
2376
+ var _o = ["light", "dark"], vo = "--sxl-input-selection", yo = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", bo = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${vo},${yo});}`, wo = [
2367
2377
  "sxl-defaults",
2368
2378
  "sxl-app",
2369
2379
  "sxl-overrides"
2370
- ], vo = `@layer ${_o.join(", ")};`;
2371
- function yo(e) {
2380
+ ], xo = `@layer ${wo.join(", ")};`;
2381
+ function So(e) {
2372
2382
  let t = "";
2373
2383
  for (const n in e) {
2374
2384
  const o = e[n];
@@ -2378,70 +2388,70 @@ function yo(e) {
2378
2388
  }
2379
2389
  return t;
2380
2390
  }
2381
- function bo(e = {}) {
2382
- const { app: t = ao, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2391
+ function Co(e = {}) {
2392
+ const { app: t = fo, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2383
2393
  app: {
2384
2394
  light: t.light,
2385
2395
  dark: t.dark
2386
2396
  },
2387
2397
  ...n
2388
2398
  }, h = l ? ":scope" : ":root", u = (e) => l ? `:scope${e},${e}` : e, d = (e) => l ? `:where(:scope[${i}="${e}"],[${i}="${e}"])` : `:where([${i}="${e}"])`, f = (e, t) => `${e} ${t}`;
2389
- a.push(`:where(${h}){color-scheme:light;${yo(t.light)}}`);
2399
+ a.push(`:where(${h}){color-scheme:light;${So(t.light)}}`);
2390
2400
  for (const [e, t] of Object.entries(c)) {
2391
2401
  const n = t?.light;
2392
- n && Object.keys(n).length && a.push(`${d(e)}{${yo(n)}}`);
2402
+ n && Object.keys(n).length && a.push(`${d(e)}{${So(n)}}`);
2393
2403
  }
2394
- for (const e of fo) {
2395
- a.push(`${u(`[${r}="${e}"]`)}{color-scheme:${e};${yo(t[e])}}`);
2404
+ for (const e of _o) {
2405
+ a.push(`${u(`[${r}="${e}"]`)}{color-scheme:${e};${So(t[e])}}`);
2396
2406
  for (const [t, n] of Object.entries(c)) {
2397
2407
  const o = n?.[e];
2398
- o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${yo(o)}}`);
2408
+ o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${So(o)}}`);
2399
2409
  }
2400
2410
  }
2401
- for (const e of fo) for (const [t, n] of Object.entries(c)) {
2411
+ for (const e of _o) for (const [t, n] of Object.entries(c)) {
2402
2412
  const o = n?.[e];
2403
- o && Object.keys(o).length && a.push(`${u(`[${r}="${e}"][${i}="${t}"]`)}{${yo(o)}}`);
2413
+ o && Object.keys(o).length && a.push(`${u(`[${r}="${e}"][${i}="${t}"]`)}{${So(o)}}`);
2404
2414
  }
2405
- o && Object.keys(o).length && a.push(`${u(`[${r}="hc"]`)}{${yo(o)}}`), a.push(go);
2415
+ o && Object.keys(o).length && a.push(`${u(`[${r}="hc"]`)}{${So(o)}}`), a.push(bo);
2406
2416
  let p = a.join("\n");
2407
- return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${vo}\n@layer ${s}{\n${p}\n}`), p;
2417
+ return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${xo}\n@layer ${s}{\n${p}\n}`), p;
2408
2418
  }
2409
- var wo = "data-sxl-theme-mode", xo = "data-sxl-theme-surface", So = (e, t) => {
2410
- const n = { [xo]: e };
2411
- return t && (n[wo] = t), n;
2412
- }, Co = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2413
- function Mo(e) {
2414
- const { mode: t } = e || {}, [n, o] = P(() => {
2419
+ var Mo = "data-sxl-theme-mode", Eo = "data-sxl-theme-surface", To = (e, t) => {
2420
+ const n = { [Eo]: e };
2421
+ return t && (n[Mo] = t), n;
2422
+ }, ko = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2423
+ function Lo(e) {
2424
+ const { mode: t } = e || {}, [n, o] = A(() => {
2415
2425
  if ("light" === t || "dark" === t) return {
2416
2426
  themeMode: t,
2417
2427
  source: "prop"
2418
2428
  };
2419
2429
  if ("undefined" != typeof document) {
2420
- const e = Eo();
2430
+ const e = Do();
2421
2431
  if (e) return {
2422
2432
  themeMode: e,
2423
2433
  source: "class"
2424
2434
  };
2425
2435
  }
2426
2436
  return {
2427
- themeMode: To(),
2437
+ themeMode: Po(),
2428
2438
  source: "media"
2429
2439
  };
2430
2440
  });
2431
- return C(() => {
2441
+ return M(() => {
2432
2442
  const e = () => {
2433
2443
  if (t) return void (t === n.themeMode && "prop" === n.source || o((e) => ({
2434
2444
  ...e,
2435
2445
  themeMode: t,
2436
2446
  source: "prop"
2437
2447
  })));
2438
- const e = Eo();
2448
+ const e = Do();
2439
2449
  if (e) o({
2440
2450
  themeMode: e,
2441
2451
  source: "class"
2442
2452
  });
2443
2453
  else {
2444
- const e = To();
2454
+ const e = Po();
2445
2455
  o({
2446
2456
  themeMode: e,
2447
2457
  source: "media"
@@ -2458,16 +2468,16 @@ function Mo(e) {
2458
2468
  };
2459
2469
  }, [t]), n;
2460
2470
  }
2461
- function Eo() {
2471
+ function Do() {
2462
2472
  if ("undefined" == typeof document) return null;
2463
2473
  const e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2464
2474
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2465
2475
  }
2466
- function To() {
2476
+ function Po() {
2467
2477
  return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2468
2478
  }
2469
- var ko = g(null), Lo = () => S(ko), Do = (e) => {
2470
- const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, h = Lo(), u = k(() => ({
2479
+ var Ao = _(null), zo = () => C(Ao), Ro = (e) => {
2480
+ const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, h = zo(), u = L(() => ({
2471
2481
  ...o?.light ?? {},
2472
2482
  ...h?.light ?? {},
2473
2483
  ...t ?? {}
@@ -2475,7 +2485,7 @@ var ko = g(null), Lo = () => S(ko), Do = (e) => {
2475
2485
  o?.light,
2476
2486
  h?.light,
2477
2487
  t
2478
- ]), d = k(() => ({
2488
+ ]), d = L(() => ({
2479
2489
  ...o?.dark ?? {},
2480
2490
  ...h?.dark ?? {},
2481
2491
  ...n ?? {}
@@ -2483,64 +2493,64 @@ var ko = g(null), Lo = () => S(ko), Do = (e) => {
2483
2493
  o?.dark,
2484
2494
  h?.dark,
2485
2495
  n
2486
- ]), p = Co("token", M()), { themeMode: m } = Mo("light" === i || "dark" === i ? { mode: i } : void 0), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? h?.mode, v = k(() => bo({
2496
+ ]), f = ko("token", E()), { themeMode: m } = Lo("light" === i || "dark" === i ? { mode: i } : void 0), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? h?.mode, v = L(() => Co({
2487
2497
  app: {
2488
2498
  light: u,
2489
2499
  dark: d
2490
2500
  },
2491
2501
  surfaces: r,
2492
2502
  layer: a,
2493
- scope: l ? `.${p}` : void 0
2503
+ scope: l ? `.${f}` : void 0
2494
2504
  }), [
2495
2505
  u,
2496
2506
  d,
2497
2507
  r,
2498
2508
  a,
2499
2509
  l,
2500
- p
2501
- ]), y = k(() => ({
2502
- scopeClass: l ? p : void 0,
2510
+ f
2511
+ ]), y = L(() => ({
2512
+ scopeClass: l ? f : void 0,
2503
2513
  mode: _,
2504
2514
  light: u,
2505
2515
  dark: d
2506
2516
  }), [
2507
2517
  l,
2508
- p,
2518
+ f,
2509
2519
  _,
2510
2520
  u,
2511
2521
  d
2512
- ]), b = R("style", { children: v }), w = {};
2513
- g && (w[wo] = g), s && (w[xo] = s);
2522
+ ]), b = $("style", { children: v }), w = {};
2523
+ g && (w[Mo] = g), s && (w[Eo] = s);
2514
2524
  let x = c;
2515
2525
  if (l || Object.keys(w).length > 0) {
2516
- const e = f.Children.only(c);
2517
- l && (w.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), x = f.cloneElement(e, w);
2526
+ const e = p.Children.only(c);
2527
+ l && (w.className = [f, e.props?.className].filter(Boolean).join(" ") || void 0), x = p.cloneElement(e, w);
2518
2528
  }
2519
- return $(ko.Provider, {
2529
+ return B(Ao.Provider, {
2520
2530
  value: y,
2521
2531
  children: [b, x]
2522
2532
  });
2523
2533
  };
2524
- function Po(e, t) {
2534
+ function $o(e, t) {
2525
2535
  if (!e || "undefined" == typeof getComputedStyle) return;
2526
- const n = getComputedStyle(e).getPropertyValue(zo(t)).trim();
2536
+ const n = getComputedStyle(e).getPropertyValue(Io(t)).trim();
2527
2537
  return "" === n ? void 0 : n;
2528
2538
  }
2529
- function Ao(e, t) {
2539
+ function Bo(e, t) {
2530
2540
  const n = {};
2531
2541
  if (!e || "undefined" == typeof getComputedStyle) return n;
2532
2542
  const o = getComputedStyle(e);
2533
2543
  for (const e of t) {
2534
- const t = o.getPropertyValue(zo(e)).trim();
2544
+ const t = o.getPropertyValue(Io(e)).trim();
2535
2545
  "" !== t && (n[e] = t);
2536
2546
  }
2537
2547
  return n;
2538
2548
  }
2539
- function zo(e) {
2549
+ function Io(e) {
2540
2550
  return e.startsWith("--") ? e : `--sxl-${e}`;
2541
2551
  }
2542
- Do.displayName = "TokenThemeProvider";
2543
- var Ro = g(null), $o = () => {
2552
+ Ro.displayName = "TokenThemeProvider";
2553
+ var Ho = _(null), No = () => {
2544
2554
  const e = (n, o) => {
2545
2555
  if (null === o) return;
2546
2556
  n.add(o);
@@ -2587,16 +2597,16 @@ var Ro = g(null), $o = () => {
2587
2597
  }
2588
2598
  };
2589
2599
  return t;
2590
- }, Bo = () => S(Ro), Io = (e) => {
2600
+ }, Oo = () => C(Ho), Fo = (e) => {
2591
2601
  const t = {};
2592
- return e ? (e.mode && (t[wo] = e.mode), e.surface && (t[xo] = e.surface), {
2602
+ return e ? (e.mode && (t[Mo] = e.mode), e.surface && (t[Eo] = e.surface), {
2593
2603
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2594
2604
  attrs: t
2595
2605
  }) : { attrs: t };
2596
- }, Ho = "_float-popper_csci8_1", No = "_float-popper-grow_csci8_7", Oo = "_entered_csci8_15", Fo = [0, 2], Wo = w(v((t, n) => {
2597
- const { open: o, children: r, label: i, offsets: s = Fo, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: h = !0, followAnchor: u = !1, style: d, className: f, onMount: p, onOpening: m, onOpen: g, onClosing: _, onClose: v, ...y } = t;
2606
+ }, Wo = "_float-popper_csci8_1", Ko = "_float-popper-grow_csci8_7", Vo = "_entered_csci8_15", jo = [0, 2], Yo = x(y((t, n) => {
2607
+ const { open: o, children: r, label: i, offsets: s = jo, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: h = !0, followAnchor: u = !1, style: d, className: f, onMount: p, onOpening: m, onOpen: g, onClosing: _, onClose: v, ...y } = t;
2598
2608
  if (Array.isArray(r)) throw new Error("children can not be an array");
2599
- const b = en(p ?? (() => {}), [p]), w = en(m ?? (() => {}), [m]), S = en(g ?? (() => {}), [g]), M = en(_ ?? (() => {}), [_]), T = en(v ?? (() => {}), [v]), [L, A] = P(!1), [z, $] = P(!1), [B, I] = P(!1), [H, N] = P(), [F, X] = P(), q = D(null), Z = D(null), { getPortalContainer: G } = mn(), J = Bo(), Q = Lo(), ee = k(() => {
2609
+ const b = tn(p ?? (() => {}), [p]), w = tn(m ?? (() => {}), [m]), x = tn(g ?? (() => {}), [g]), C = tn(_ ?? (() => {}), [_]), E = tn(v ?? (() => {}), [v]), [k, D] = A(!1), [z, R] = A(!1), [B, I] = A(!1), [H, N] = A(), [O, W] = A(), q = P(null), Z = P(null), { getPortalContainer: G } = gn(), J = Oo(), Q = zo(), ee = L(() => {
2600
2610
  const e = J?.themeScope;
2601
2611
  return Q?.scopeClass || Q?.mode ? {
2602
2612
  classes: Q?.scopeClass ? [...e?.classes ?? [], Q.scopeClass] : e?.classes,
@@ -2607,21 +2617,21 @@ var Ro = g(null), $o = () => {
2607
2617
  J?.themeScope,
2608
2618
  Q?.scopeClass,
2609
2619
  Q?.mode
2610
- ]), te = k(() => {
2611
- const e = [j({
2620
+ ]), te = L(() => {
2621
+ const e = [Y({
2612
2622
  mainAxis: s[1] ?? 0,
2613
2623
  crossAxis: s[0] ?? 0
2614
- }), V({ rootBoundary: "document" })];
2615
- return h && e.push(Y({
2624
+ }), j({ rootBoundary: "document" })];
2625
+ return h && e.push(U({
2616
2626
  rootBoundary: "document",
2617
2627
  apply({ availableHeight: e, availableWidth: t }) {
2618
2628
  const n = Math.max(0, Math.round(e - 10));
2619
2629
  N((e) => e === n ? e : n);
2620
2630
  const o = Math.max(0, Math.round(t - 10));
2621
- X((e) => e === o ? e : o);
2631
+ W((e) => e === o ? e : o);
2622
2632
  }
2623
2633
  })), e;
2624
- }, [h, s]), ne = k(() => {
2634
+ }, [h, s]), ne = L(() => {
2625
2635
  const e = () => ("function" == typeof l ? l() : l) ?? null;
2626
2636
  return {
2627
2637
  getBoundingClientRect: () => {
@@ -2638,97 +2648,97 @@ var Ro = g(null), $o = () => {
2638
2648
  return n && 1 === n.nodeType ? n : void 0;
2639
2649
  }
2640
2650
  };
2641
- }, [a, l]), { refs: oe, floatingStyles: re, isPositioned: ie, placement: se, update: le } = U({
2651
+ }, [a, l]), { refs: oe, floatingStyles: re, isPositioned: ie, placement: se, update: le } = X({
2642
2652
  placement: c,
2643
2653
  middleware: te,
2644
- whileElementsMounted: k(() => u ? (e, t, n) => K(e, t, n, { animationFrame: !0 }) : K, [u]),
2654
+ whileElementsMounted: L(() => u ? (e, t, n) => V(e, t, n, { animationFrame: !0 }) : V, [u]),
2645
2655
  elements: { reference: ne }
2646
- }), ae = x((e) => {
2656
+ }), ae = S((e) => {
2647
2657
  q.current = e, oe.setFloating(e);
2648
2658
  }, [oe]);
2649
- E(n, () => ({
2659
+ T(n, () => ({
2650
2660
  instance: () => q.current ? { update: le } : null,
2651
2661
  element: () => q.current
2652
- }), [le]), C(() => {
2653
- o && A(!0);
2654
- }, [o]), C(() => {
2655
- L && ie && !z && ($(!0), b?.(q.current, { update: le }));
2662
+ }), [le]), M(() => {
2663
+ o && D(!0);
2664
+ }, [o]), M(() => {
2665
+ k && ie && !z && (R(!0), b?.(q.current, { update: le }));
2656
2666
  }, [
2657
- L,
2667
+ k,
2658
2668
  ie,
2659
2669
  z
2660
- ]), C(() => {
2661
- o && z ? w?.() : !o && L && M?.();
2662
- }, [o, z]), C(() => {
2663
- if (L && z && o) {
2670
+ ]), M(() => {
2671
+ o && z ? w?.() : !o && k && C?.();
2672
+ }, [o, z]), M(() => {
2673
+ if (k && z && o) {
2664
2674
  const e = requestAnimationFrame(() => I(!0));
2665
2675
  return () => cancelAnimationFrame(e);
2666
2676
  }
2667
2677
  }, [
2668
- L,
2678
+ k,
2669
2679
  z,
2670
2680
  o
2671
- ]), C(() => {
2672
- !o && L && (I(!1), A(!1), $(!1), T?.());
2673
- }, [o, L]);
2674
- const ce = en((e) => {
2675
- e.target === e.currentTarget && o && B && S?.();
2681
+ ]), M(() => {
2682
+ !o && k && (I(!1), D(!1), R(!1), E?.());
2683
+ }, [o, k]);
2684
+ const ce = tn((e) => {
2685
+ e.target === e.currentTarget && o && B && x?.();
2676
2686
  }, [o, B]);
2677
- if (!L) return null;
2678
- const he = (se ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: ue, attrs: de } = Io(ee);
2687
+ if (!k) return null;
2688
+ const he = (se ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: ue, attrs: de } = Fo(ee);
2679
2689
  if (!ue && !de["data-sxl-theme-mode"] && !de["data-sxl-theme-surface"]) {
2680
- const e = "function" == typeof l ? l() : l, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${wo}]`)?.getAttribute(wo), o = t?.closest(`[${xo}]`)?.getAttribute(xo);
2681
- n && (de[wo] = n), o && (de[xo] = o);
2690
+ const e = "function" == typeof l ? l() : l, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${Mo}]`)?.getAttribute(Mo), o = t?.closest(`[${Eo}]`)?.getAttribute(Eo);
2691
+ n && (de[Mo] = n), o && (de[Eo] = o);
2682
2692
  }
2683
- return O(R("div", {
2693
+ return F($("div", {
2684
2694
  ref: ae,
2685
- className: W(Ho, f, ue),
2695
+ className: K(Wo, f, ue),
2686
2696
  role: void 0,
2687
2697
  ...de,
2688
2698
  style: {
2689
2699
  ...re,
2690
2700
  maxHeight: h ? H : void 0,
2691
- maxWidth: h ? F : void 0,
2701
+ maxWidth: h ? O : void 0,
2692
2702
  zIndex: o ? 1300 : 1299,
2693
- pointerEvents: L && o ? void 0 : "none",
2703
+ pointerEvents: k && o ? void 0 : "none",
2694
2704
  ...d
2695
2705
  },
2696
2706
  ...y,
2697
- children: R("div", {
2698
- className: W(No, { [Oo]: B }),
2707
+ children: $("div", {
2708
+ className: K(Ko, { [Vo]: B }),
2699
2709
  style: { transformOrigin: he },
2700
2710
  onTransitionEnd: ce,
2701
2711
  children: r || e.EmptyArray
2702
2712
  })
2703
2713
  }), G());
2704
2714
  }));
2705
- Wo.displayName = "FloatPopper";
2706
- var Ko = "_float-popup_juap7_1", Vo = (e) => {
2715
+ Yo.displayName = "FloatPopper";
2716
+ var Uo = "_float-popup_juap7_1", Xo = (e) => {
2707
2717
  const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
2708
- return R("div", {
2709
- className: W("menu", Ko, s),
2718
+ return $("div", {
2719
+ className: K("menu", Uo, s),
2710
2720
  ...l,
2711
2721
  children: i
2712
2722
  });
2713
- }, jo = "_float-panel_1f1r8_1", Yo = w(v((e, t) => {
2714
- const { floatReference: n, popupContainer: o, createPopupPanel: r = Vo, children: i, className: s, ...l } = e, a = {
2723
+ }, qo = "_float-panel_1f1r8_1", Zo = x(y((e, t) => {
2724
+ const { floatReference: n, popupContainer: o, createPopupPanel: r = Xo, children: i, className: s, ...l } = e, a = {
2715
2725
  popupContainer: o,
2716
2726
  floatReference: n,
2717
2727
  children: i,
2718
2728
  ...l
2719
2729
  };
2720
- return R("div", {
2730
+ return $("div", {
2721
2731
  ref: t,
2722
- className: W(jo, s),
2732
+ className: K(qo, s),
2723
2733
  tabIndex: 0,
2724
2734
  children: r(a)
2725
2735
  });
2726
2736
  }));
2727
- Yo.displayName = "FloatPanelSurface";
2728
- var Uo = w(v((e, t) => {
2729
- const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, createPopupPanel: l = Vo, propsPopper: a, onMount: c, onClosing: h, onClose: u, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = en(h ?? (() => {}), [h]), v = en(u ?? (() => {}), [u]), y = en(d ?? (() => {}), [d]), b = en(f ?? (() => {}), [f]), [w, x] = P(), S = D(null), C = en((e, t) => {
2737
+ Zo.displayName = "FloatPanelSurface";
2738
+ var Go = x(y((e, t) => {
2739
+ const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, createPopupPanel: l = Xo, propsPopper: a, onMount: c, onClosing: h, onClose: u, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = tn(h ?? (() => {}), [h]), v = tn(u ?? (() => {}), [u]), y = tn(d ?? (() => {}), [d]), b = tn(f ?? (() => {}), [f]), [w, x] = A(), S = P(null), C = tn((e, t) => {
2730
2740
  x(e), c?.(S.current, t);
2731
- }, [c]), M = k(() => R(Yo, {
2741
+ }, [c]), M = L(() => $(Zo, {
2732
2742
  ref: S,
2733
2743
  className: m,
2734
2744
  floatReference: s,
@@ -2742,7 +2752,7 @@ var Uo = w(v((e, t) => {
2742
2752
  w,
2743
2753
  s
2744
2754
  ]);
2745
- return R(Wo, {
2755
+ return $(Yo, {
2746
2756
  ref: t,
2747
2757
  anchorEl: o,
2748
2758
  anchorPosition: r,
@@ -2757,27 +2767,27 @@ var Uo = w(v((e, t) => {
2757
2767
  children: M
2758
2768
  });
2759
2769
  }));
2760
- Uo.displayName = "FloatPanel";
2761
- var Xo = "_float-tooltip_1l6qz_1", qo = w(v((e, t) => {
2770
+ Go.displayName = "FloatPanel";
2771
+ var Jo = "_float-tooltip_1l6qz_1", Qo = x(y((e, t) => {
2762
2772
  const { open: n, title: o, placement: r = "top", anchorEl: i, anchorPosition: s, offsets: l = [0, 8], className: a, ...c } = e;
2763
- return null == o || "" === o ? null : R(Wo, {
2773
+ return null == o || "" === o ? null : $(Yo, {
2764
2774
  open: n,
2765
2775
  anchorEl: i,
2766
2776
  anchorPosition: s,
2767
2777
  placement: r,
2768
2778
  offsets: l,
2769
2779
  resizeOnOverflow: !1,
2770
- children: R("div", {
2780
+ children: $("div", {
2771
2781
  ref: t,
2772
- className: W(Xo, a),
2782
+ className: K(Jo, a),
2773
2783
  ...c,
2774
2784
  children: o
2775
2785
  })
2776
2786
  });
2777
2787
  }));
2778
- qo.displayName = "FloatTooltip";
2779
- var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2780
- const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = S(Ro), u = k(() => {
2788
+ Qo.displayName = "FloatTooltip";
2789
+ var er = (e) => $(Go, { ...e }), tr = (e) => {
2790
+ const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = C(Ho), u = L(() => {
2781
2791
  const e = h?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, u = l?.length || a || c ? {
2782
2792
  classes: l,
2783
2793
  surface: a,
@@ -2797,43 +2807,43 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2797
2807
  i,
2798
2808
  s,
2799
2809
  h
2800
- ]), d = Tt();
2801
- let f = R(Ro.Provider, {
2810
+ ]), d = kt();
2811
+ let f = $(Ho.Provider, {
2802
2812
  value: u,
2803
2813
  children: c
2804
2814
  });
2805
- const p = l || !d, m = D(null);
2806
- p && null === m.current && (m.current = $o());
2815
+ const p = l || !d, m = P(null);
2816
+ p && null === m.current && (m.current = No());
2807
2817
  const g = p ? m.current : null;
2808
- g && (f = R(Et, {
2818
+ g && (f = $(Tt, {
2809
2819
  value: g,
2810
2820
  children: f
2811
2821
  }));
2812
2822
  const _ = (g ?? d).getRoot();
2813
- return C(() => {
2823
+ return M(() => {
2814
2824
  if (a) return "function" == typeof a ? (a(_), () => {
2815
2825
  a(null);
2816
2826
  }) : (a.current = _, () => {
2817
2827
  a.current = null;
2818
2828
  });
2819
2829
  }, [a, _]), f;
2820
- }, Jo = (e) => {
2821
- const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = en(s ?? (() => {}), [s]), d = en(l ?? (() => {}), [l]), f = Bo(), p = h ?? f?.renderFloatPanel ?? Zo, m = void 0 === c ? f?.createPopupPanel ?? Vo : c, g = Tt(), [_, v] = P(null), [y, b] = P(!1), [w, S] = P(!1), M = k(() => i ?? g ?? $o(), []), E = k(() => M.getRoot(), []), T = k(() => ({ label: r }), []), A = D(null), z = D(t);
2822
- C(() => {
2830
+ }, nr = (e) => {
2831
+ const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = tn(s ?? (() => {}), [s]), d = tn(l ?? (() => {}), [l]), f = Oo(), p = h ?? f?.renderFloatPanel ?? er, m = void 0 === c ? f?.createPopupPanel ?? Xo : c, g = kt(), [_, v] = A(null), [y, b] = A(!1), [w, x] = A(!1), C = L(() => i ?? g ?? No(), []), E = L(() => C.getRoot(), []), T = L(() => ({ label: r }), []), k = P(null), z = P(t);
2832
+ M(() => {
2823
2833
  z.current = t;
2824
2834
  }, [t]);
2825
- const $ = (e) => {
2835
+ const R = (e) => {
2826
2836
  const t = E.floatByParents.get(e);
2827
2837
  let n = null;
2828
2838
  return t && (n = E.statesByMovables.get(t)?.close(0) ?? null), n;
2829
- }, B = () => $(G.key), [I, H] = P(null), N = () => {
2839
+ }, B = () => R(G.key), [I, H] = A(null), N = () => {
2830
2840
  if (!_) return V(), null;
2831
2841
  const e = new Promise((e) => {
2832
2842
  H((t) => [...t ?? [], { resolve: e }]);
2833
2843
  });
2834
- return B(), E.floatByParents.delete(M.key), v(!1), e;
2844
+ return B(), E.floatByParents.delete(C.key), v(!1), e;
2835
2845
  };
2836
- C(() => {
2846
+ M(() => {
2837
2847
  if (I) {
2838
2848
  for (const e of I) e.resolve();
2839
2849
  H(null);
@@ -2843,58 +2853,58 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2843
2853
  w,
2844
2854
  I
2845
2855
  ]);
2846
- const O = x(() => {
2847
- let e = M;
2856
+ const O = S(() => {
2857
+ let e = C;
2848
2858
  for (; e.parent;) e = e.parent;
2849
- return $(e.key);
2850
- }, []), F = D(null), W = () => {
2859
+ return R(e.key);
2860
+ }, []), F = P(null), W = () => {
2851
2861
  if (_) return void V();
2852
- M && E.statesByMovables.get(M.key)?.open(0);
2853
- const e = E.floatByParents.get(M.key);
2862
+ C && E.statesByMovables.get(C.key)?.open(0);
2863
+ const e = E.floatByParents.get(C.key);
2854
2864
  e && e !== T && E.statesByMovables.get(e)?.close(0);
2855
2865
  const t = document.activeElement;
2856
2866
  t && t !== document.body && "function" == typeof t.focus && (F.current = t), requestAnimationFrame(() => {
2857
- E.floatByParents.set(M.key, G.key), v(!0);
2867
+ E.floatByParents.set(C.key, G.key), v(!0);
2858
2868
  });
2859
- }, [K, V] = L((e) => e + 1, 0), j = x((e) => null === m ? null : m({
2869
+ }, [K, V] = D((e) => e + 1, 0), j = S((e) => null === m ? null : m({
2860
2870
  closeFloat: X,
2861
2871
  closeFloatAll: Z,
2862
2872
  ...e
2863
- }), [m]), Y = null === m, U = en((e = 120) => E.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), X = en((e = 60) => E.debounce(e, N, E.descendants(G), !0)(), [N]), q = en((e = 360) => E.debounce(e, B, E.descendants(E.getChildRef(G)), !0)(), [B]), Z = en(O, [O]), G = k(() => ({
2873
+ }), [m]), Y = null === m, U = tn((e = 120) => E.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), X = tn((e = 60) => E.debounce(e, N, E.descendants(G), !0)(), [N]), q = tn((e = 360) => E.debounce(e, B, E.descendants(E.getChildRef(G)), !0)(), [B]), Z = tn(O, [O]), G = L(() => ({
2864
2874
  key: T,
2865
2875
  isRoot: !1,
2866
2876
  label: r,
2867
- parent: M,
2877
+ parent: C,
2868
2878
  onChildVisible: () => {
2869
- S(!0);
2879
+ x(!0);
2870
2880
  },
2871
2881
  onChildHidden: () => {
2872
- S(!1);
2882
+ x(!1);
2873
2883
  },
2874
2884
  open: U,
2875
2885
  close: X,
2876
2886
  closeChild: q,
2877
2887
  closeAll: Z,
2878
2888
  getRoot: () => E,
2879
- floatElement: () => A.current,
2889
+ floatElement: () => k.current,
2880
2890
  anchorElement: () => z.current
2881
2891
  }), []);
2882
- C(() => {
2892
+ M(() => {
2883
2893
  E.statesByMovables.set(T, G);
2884
- }, [G]), C(() => () => {
2894
+ }, [G]), M(() => () => {
2885
2895
  E.statesByMovables.delete(T), X(0);
2886
- }, []), C(() => {
2887
- _ && !Y && (b(!0), M.onChildVisible());
2896
+ }, []), M(() => {
2897
+ _ && !Y && (b(!0), C.onChildVisible());
2888
2898
  }, [_, Y]);
2889
- const J = x((e) => {
2890
- e.which === Q.Escape && (e.preventDefault(), e.stopPropagation(), X(0));
2891
- }, []), ee = x(() => {
2892
- const e = F.current, t = A.current;
2899
+ const J = S((e) => {
2900
+ e.which === ee.Escape && (e.preventDefault(), e.stopPropagation(), X(0));
2901
+ }, []), Q = S(() => {
2902
+ const e = F.current, t = k.current;
2893
2903
  e && t && (requestAnimationFrame(() => {
2894
2904
  (t.contains(document.activeElement) || document.activeElement === document.body) && e.focus();
2895
2905
  }), F.current = null), d?.();
2896
- }, []), te = x((e) => {
2897
- A.current = e;
2906
+ }, []), te = S((e) => {
2907
+ k.current = e;
2898
2908
  if (e.addEventListener("focusin", (e) => {
2899
2909
  F.current || (F.current = e.relatedTarget);
2900
2910
  }, {
@@ -2905,9 +2915,9 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2905
2915
  requestAnimationFrame(() => {
2906
2916
  t === document.activeElement && e.focus();
2907
2917
  });
2908
- }, [n]), [ne, oe] = P();
2909
- C(() => {
2910
- Y && (_ ? u?.() : !1 === _ && d?.()), oe(y ? R(Et, {
2918
+ }, [n]), [ne, oe] = A();
2919
+ M(() => {
2920
+ Y && (_ ? u?.() : !1 === _ && d?.()), oe(y ? $(Tt, {
2911
2921
  value: G,
2912
2922
  children: p({
2913
2923
  ...f?.propsFloatPanel,
@@ -2916,11 +2926,11 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2916
2926
  label: r,
2917
2927
  anchorEl: t,
2918
2928
  onOpening: () => {
2919
- u?.(), M.onChildVisible();
2929
+ u?.(), C.onChildVisible();
2920
2930
  },
2921
- onClosing: ee,
2931
+ onClosing: Q,
2922
2932
  onClose: () => {
2923
- b(!1), M.onChildHidden();
2933
+ b(!1), C.onChildHidden();
2924
2934
  },
2925
2935
  onMount: te,
2926
2936
  propsPopper: {
@@ -2944,7 +2954,7 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2944
2954
  f?.propsFloatPanel,
2945
2955
  K
2946
2956
  ]);
2947
- const re = en((e) => {
2957
+ const re = tn((e) => {
2948
2958
  if (0 === E.floatByParents.size) return;
2949
2959
  let t = !1;
2950
2960
  const n = e.composedPath?.() ?? [], r = (t) => !!t && (n.length > 0 ? n.includes(t) : !!t.contains?.(e.target));
@@ -2953,8 +2963,8 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2953
2963
  t || n && (r(n.floatElement()) && (t = !0), r(n.anchorElement()) && (t = !0));
2954
2964
  }), t || "function" == typeof o && o(e.target) || O();
2955
2965
  }, [O, o]);
2956
- return C(() => {
2957
- if (!_ || !M.isRoot || !0 === o) return;
2966
+ return M(() => {
2967
+ if (!_ || !C.isRoot || !0 === o) return;
2958
2968
  const e = (e) => {
2959
2969
  re(e);
2960
2970
  };
@@ -2963,23 +2973,23 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2963
2973
  };
2964
2974
  }, [
2965
2975
  _,
2966
- M,
2976
+ C,
2967
2977
  o
2968
2978
  ]), {
2969
2979
  component: ne,
2970
2980
  reference: G,
2971
2981
  isOpen: !0 === _
2972
2982
  };
2973
- }, Qo = {}, er = (e) => {
2974
- const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Qo, ...c } = e, h = "row" === o, { style: u, className: d, ...f } = a;
2975
- return R("div", {
2983
+ }, or = {}, rr = (e) => {
2984
+ const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = or, ...c } = e, h = "row" === o, { style: u, className: d, ...f } = a;
2985
+ return $("div", {
2976
2986
  style: {
2977
2987
  ...n,
2978
2988
  position: "relative"
2979
2989
  },
2980
2990
  ...c,
2981
- children: R("div", {
2982
- className: W("hit-box", d),
2991
+ children: $("div", {
2992
+ className: K("hit-box", d),
2983
2993
  style: {
2984
2994
  left: (h ? -r : 0) + "px",
2985
2995
  width: `calc(100% + ${h ? r + i : 0}px)`,
@@ -2992,7 +3002,7 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2992
3002
  ...f
2993
3003
  })
2994
3004
  }, l);
2995
- }, tr = {}, nr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, or = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, rr = (e, t) => {
3005
+ }, ir = {}, sr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, lr = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, ar = (e, t) => {
2996
3006
  if (null == e) return null;
2997
3007
  const n = {
2998
3008
  percent: null,
@@ -3000,31 +3010,31 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3000
3010
  };
3001
3011
  let o = t;
3002
3012
  return "string" == typeof e && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), o = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), o = !0), e = parseFloat(e)), o ? n.percent = e : n.pixels = e, Object.freeze(n);
3003
- }, ir = w(v((e, t) => {
3004
- const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: h, maxAfter: u, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = tr, propsPane: w = tr, propsPaneBefore: x = tr, propsPaneAfter: S = tr, renderResizer: M = er } = e;
3013
+ }, cr = x(y((e, t) => {
3014
+ const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: h, maxAfter: u, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y = ir, propsPane: w = ir, propsPaneBefore: x = ir, propsPaneAfter: S = ir, renderResizer: C = rr } = e;
3005
3015
  if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
3006
- const E = k(() => y(o) && y(n), [o, n]), T = k(() => {
3016
+ const E = L(() => b(o) && b(n), [o, n]), T = L(() => {
3007
3017
  let e = null;
3008
3018
  i && ("before" === i ? e = 0 : "after" === i && (e = 1));
3009
3019
  const t = null === e;
3010
3020
  return {
3011
3021
  fixedPaneOffset: e,
3012
3022
  isPercent: t,
3013
- minBefore: rr(a, t),
3014
- maxBefore: rr(c, t),
3015
- minAfter: rr(h, t),
3016
- maxAfter: rr(u, t)
3023
+ minBefore: ar(a, t),
3024
+ maxBefore: ar(c, t),
3025
+ minAfter: ar(h, t),
3026
+ maxAfter: ar(u, t)
3017
3027
  };
3018
3028
  }, [
3019
3029
  a,
3020
3030
  c,
3021
3031
  h,
3022
3032
  u
3023
- ]), L = en(l ?? (() => {}), [l]), [A, z] = P(() => rr(s, null === i));
3024
- C(() => {
3025
- z(rr(s, null === i));
3033
+ ]), k = tn(l ?? (() => {}), [l]), [D, z] = A(() => ar(s, null === i));
3034
+ M(() => {
3035
+ z(ar(s, null === i));
3026
3036
  }, [s, i]);
3027
- const [B, { width: N, height: O }] = I(), [F, { width: K, height: V }] = I(), j = "row" === r ? K : V, Y = "row" === r ? N : O, U = k(() => ((e, t, n, o) => {
3037
+ const [R, { width: I, height: O }] = H(), [F, { width: W, height: V }] = H(), j = "row" === r ? W : V, Y = "row" === r ? I : O, U = L(() => ((e, t, n, o) => {
3028
3038
  const r = [null, null], i = [null, null];
3029
3039
  if (e || (e = {
3030
3040
  percent: null === o.fixedPaneOffset ? 50 : null,
@@ -3032,13 +3042,13 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3032
3042
  }), 0 === t) return void 0 !== e.pixels && null !== e.pixels ? 1 !== o.fixedPaneOffset ? (r[0] = e.pixels, i[1] = 100) : (r[1] = e.pixels - n, i[0] = 100) : void 0 !== e.percent && null !== e.percent && (1 !== o.fixedPaneOffset ? (i[0] = e.percent, i[1] = 100 - e.percent) : (i[1] = e.percent, i[0] = 100 - e.percent)), {
3033
3043
  percents: i,
3034
3044
  pixels: r,
3035
- minBefore: or(o.minBefore, !0),
3036
- maxBefore: or(o.maxBefore, !0),
3037
- minAfter: or(o.minAfter),
3038
- maxAfter: or(o.maxAfter)
3045
+ minBefore: lr(o.minBefore, !0),
3046
+ maxBefore: lr(o.maxBefore, !0),
3047
+ minAfter: lr(o.minAfter),
3048
+ maxAfter: lr(o.maxAfter)
3039
3049
  };
3040
- let s = nr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = nr(o.minBefore, l, !0) ?? 0, c = nr(o.maxBefore, l, !0) ?? l, h = 0, u = 0, d = 0, f = l;
3041
- h = (nr(o.maxAfter, t, !1) ?? n) - n, u = nr(o.minAfter, t, !1) ?? t, d = Math.max(a, h), f = Math.min(c, u), s = Math.max(d, Math.min(s, f)), u = Math.min(l - s, nr(o.maxAfter, l - s, !0) ?? l), h = Math.min(l - s, nr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3050
+ let s = sr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = sr(o.minBefore, l, !0) ?? 0, c = sr(o.maxBefore, l, !0) ?? l, h = 0, u = 0, d = 0, f = l;
3051
+ h = (sr(o.maxAfter, t, !1) ?? n) - n, u = sr(o.minAfter, t, !1) ?? t, d = Math.max(a, h), f = Math.min(c, u), s = Math.max(d, Math.min(s, f)), u = Math.min(l - s, sr(o.maxAfter, l - s, !0) ?? l), h = Math.min(l - s, sr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3042
3052
  const p = Math.max(0, Math.min(100, s / l * 100));
3043
3053
  return i[0] = p, i[1] = 100 - p, {
3044
3054
  percents: i,
@@ -3048,13 +3058,13 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3048
3058
  maxBefore: `${r[0]}px`,
3049
3059
  maxAfter: `${r[1]}px`
3050
3060
  };
3051
- })(A, Y, j, T), [
3061
+ })(D, Y, j, T), [
3052
3062
  T,
3053
- A,
3063
+ D,
3054
3064
  Y,
3055
3065
  j,
3056
3066
  r
3057
- ]), [X, q] = P(!1), Z = en(g ?? (() => {}), [g]), G = en(_ ?? (() => {}), [_]), J = en(v ?? (() => {}), [v]), Q = D(null), ee = D(null), te = D(null), { style: ne, className: oe, ...re } = w, ie = {
3067
+ ]), [X, q] = A(!1), Z = tn(g ?? (() => {}), [g]), G = tn(_ ?? (() => {}), [_]), J = tn(v ?? (() => {}), [v]), Q = P(null), ee = P(null), te = P(null), { style: ne, className: oe, ...re } = w, ie = {
3058
3068
  minWidth: 0,
3059
3069
  minHeight: 0,
3060
3070
  maxWidth: "100%",
@@ -3071,14 +3081,14 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3071
3081
  ...p,
3072
3082
  flexDirection: r,
3073
3083
  display: "flex"
3074
- }, { className: fe, style: pe, onPointerDown: me, ...ge } = b, _e = en((e) => {
3075
- const t = rr(e, null === i);
3084
+ }, { className: fe, style: pe, onPointerDown: me, ...ge } = y, _e = tn((e) => {
3085
+ const t = ar(e, null === i);
3076
3086
  z(t);
3077
- }, [i]), ve = en((e) => {
3087
+ }, [i]), ve = tn((e) => {
3078
3088
  if (m || !X) return;
3079
3089
  const t = we.current?.getBoundingClientRect();
3080
3090
  let n = 0;
3081
- n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(Y, n)), 1 === T.fixedPaneOffset && (n = Y - n), s && A?.pixels === n || z({
3091
+ n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(Y, n)), 1 === T.fixedPaneOffset && (n = Y - n), s && D?.pixels === n || z({
3082
3092
  pixels: n,
3083
3093
  percent: null
3084
3094
  }), G?.(n), e.stopPropagation(), e.preventDefault();
@@ -3087,34 +3097,34 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3087
3097
  r,
3088
3098
  m,
3089
3099
  X,
3090
- A,
3100
+ D,
3091
3101
  Y
3092
- ]), ye = en((e) => {
3093
- if (document.removeEventListener("pointermove", ve), document.removeEventListener("touchmove", ve), document.removeEventListener("pointerup", ye), X && (q(!1), A)) {
3094
- if (J(A.pixels ?? 0), !rr(s, null === i) || A.pixels !== s) {
3095
- const e = A.pixels ?? 0, t = {
3102
+ ]), ye = tn((e) => {
3103
+ if (document.removeEventListener("pointermove", ve), document.removeEventListener("touchmove", ve), document.removeEventListener("pointerup", ye), X && (q(!1), D)) {
3104
+ if (J(D.pixels ?? 0), !ar(s, null === i) || D.pixels !== s) {
3105
+ const e = D.pixels ?? 0, t = {
3096
3106
  pixels: e,
3097
- percent: A.percent ?? e / Y * 100
3107
+ percent: D.percent ?? e / Y * 100
3098
3108
  };
3099
- L(t);
3109
+ k(t);
3100
3110
  }
3101
3111
  e.stopPropagation(), e.preventDefault();
3102
3112
  }
3103
3113
  }, [
3104
- A,
3114
+ D,
3105
3115
  X,
3106
3116
  s,
3107
3117
  i,
3108
3118
  Y
3109
- ]), be = en((e) => {
3119
+ ]), be = tn((e) => {
3110
3120
  me?.(e), e.defaultPrevented || m || X || (q(!0), Z(), document.addEventListener("pointermove", ve, { passive: !1 }), document.addEventListener("touchmove", ve, { passive: !1 }), document.addEventListener("pointerup", ye, { passive: !1 }));
3111
- }, [me]), we = no(t, () => ({
3121
+ }, [me]), we = oo(t, () => ({
3112
3122
  setPosition: _e,
3113
3123
  isSplitPane: () => !0
3114
- }), []), xe = k(() => E ? M?.({
3124
+ }), []), xe = L(() => E ? C?.({
3115
3125
  key: "resizer",
3116
- ref: H([F, ee]),
3117
- className: W("resizer", fe),
3126
+ ref: N([F, ee]),
3127
+ className: K("resizer", fe),
3118
3128
  onPointerDownCapture: be,
3119
3129
  style: {
3120
3130
  cursor: m ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
@@ -3135,7 +3145,7 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3135
3145
  r,
3136
3146
  pe,
3137
3147
  m
3138
- ]), Se = "row" === r ? "Width" : "Height", Ce = k(() => {
3148
+ ]), Se = "row" === r ? "Width" : "Height", Ce = L(() => {
3139
3149
  if (!n) return null;
3140
3150
  const e = {
3141
3151
  ...ie,
@@ -3144,9 +3154,9 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3144
3154
  [`min${Se}`]: U?.minBefore,
3145
3155
  [`max${Se}`]: o ? U?.maxBefore : "100%"
3146
3156
  };
3147
- return R("div", {
3157
+ return $("div", {
3148
3158
  ref: Q,
3149
- className: W("before", oe, se),
3159
+ className: K("before", oe, se),
3150
3160
  style: e,
3151
3161
  ...re,
3152
3162
  ...ae,
@@ -3158,7 +3168,7 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3158
3168
  x,
3159
3169
  T,
3160
3170
  U
3161
- ]), Me = k(() => {
3171
+ ]), Me = L(() => {
3162
3172
  if (!o) return null;
3163
3173
  const e = {
3164
3174
  ...ie,
@@ -3167,9 +3177,9 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3167
3177
  [`min${Se}`]: U?.minAfter,
3168
3178
  [`max${Se}`]: n ? U?.maxAfter : "100%"
3169
3179
  };
3170
- return R("div", {
3180
+ return $("div", {
3171
3181
  ref: te,
3172
- className: W("after", oe, ce),
3182
+ className: K("after", oe, ce),
3173
3183
  style: e,
3174
3184
  ...re,
3175
3185
  ...ue,
@@ -3182,9 +3192,9 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3182
3192
  T,
3183
3193
  U
3184
3194
  ]);
3185
- return $("div", {
3186
- ref: H([B, we]),
3187
- className: W("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3195
+ return B("div", {
3196
+ ref: N([R, we]),
3197
+ className: K("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3188
3198
  style: de,
3189
3199
  children: [
3190
3200
  Ce,
@@ -3193,7 +3203,7 @@ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
3193
3203
  ]
3194
3204
  });
3195
3205
  }));
3196
- function sr(e) {
3206
+ function hr(e) {
3197
3207
  if ("function" == typeof e) return e;
3198
3208
  if ("string" == typeof e) {
3199
3209
  const t = e.trim();
@@ -3226,12 +3236,12 @@ function sr(e) {
3226
3236
  return null;
3227
3237
  }
3228
3238
  }(t);
3229
- if (e) return cr(e);
3239
+ if (e) return fr(e);
3230
3240
  }
3231
3241
  if (t.startsWith("<")) {
3232
- if (/^<\s*svg\b/i.test(t)) return cr(t);
3242
+ if (/^<\s*svg\b/i.test(t)) return fr(t);
3233
3243
  if (/^<\s*path\b/i.test(t)) {
3234
- const e = lr(t);
3244
+ const e = ur(t);
3235
3245
  if (e) return { paths: [{ d: e }] };
3236
3246
  }
3237
3247
  return { paths: [{ d: t }] };
@@ -3243,7 +3253,7 @@ function sr(e) {
3243
3253
  for (const n of e) if ("string" == typeof n) {
3244
3254
  const e = String(n).trim();
3245
3255
  if (e.startsWith("<path")) {
3246
- const n = lr(e);
3256
+ const n = ur(e);
3247
3257
  n && t.push({ d: n });
3248
3258
  } else t.push({ d: e });
3249
3259
  } else n && "object" == typeof n && "d" in n && "string" == typeof n.d && t.push({ ...n });
@@ -3251,14 +3261,14 @@ function sr(e) {
3251
3261
  }
3252
3262
  return e;
3253
3263
  }
3254
- function lr(e) {
3264
+ function ur(e) {
3255
3265
  const t = /\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);
3256
3266
  return t ? t[1] ?? t[2] ?? null : null;
3257
3267
  }
3258
- function ar(e) {
3268
+ function dr(e) {
3259
3269
  if ("svg" in e) return {
3260
3270
  ...e,
3261
- svg: sr(e.svg)
3271
+ svg: hr(e.svg)
3262
3272
  };
3263
3273
  if ("url" in e) {
3264
3274
  const t = "string" == typeof e.url ? { src: e.url } : e.url;
@@ -3276,7 +3286,7 @@ function ar(e) {
3276
3286
  }
3277
3287
  return e;
3278
3288
  }
3279
- function cr(e) {
3289
+ function fr(e) {
3280
3290
  try {
3281
3291
  if ("undefined" != typeof DOMParser) {
3282
3292
  const t = new DOMParser().parseFromString(e, "image/svg+xml"), n = t.querySelector("svg")?.getAttribute("viewBox") ?? void 0, o = [];
@@ -3309,9 +3319,9 @@ function cr(e) {
3309
3319
  paths: o
3310
3320
  };
3311
3321
  }
3312
- function hr(e) {
3322
+ function pr(e) {
3313
3323
  const t = {};
3314
- for (const [n, o] of Object.entries(e.icons)) t[n] = ar(o);
3324
+ for (const [n, o] of Object.entries(e.icons)) t[n] = dr(o);
3315
3325
  const n = {
3316
3326
  label: e.meta?.label ?? "Unnamed",
3317
3327
  version: e.meta?.version ?? "1.0.0",
@@ -3328,14 +3338,14 @@ function hr(e) {
3328
3338
  const e = {};
3329
3339
  for (const [t, n] of Object.entries(r)) {
3330
3340
  const o = {};
3331
- for (const [e, t] of Object.entries(n)) o[e] = ar(t);
3341
+ for (const [e, t] of Object.entries(n)) o[e] = dr(t);
3332
3342
  e[t] = o;
3333
3343
  }
3334
3344
  o.__overrides = e;
3335
3345
  }
3336
3346
  return o;
3337
3347
  }
3338
- function ur() {
3348
+ function mr() {
3339
3349
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3340
3350
  let n = "base", o = /* @__PURE__ */ new Map();
3341
3351
  async function r(t) {
@@ -3346,7 +3356,7 @@ function ur() {
3346
3356
  if (!o.loader) throw new Error(`No loader for icon pack: ${t}`);
3347
3357
  o.loading = o.loader().then((e) => {
3348
3358
  const t = e && "object" == typeof e && "default" in e ? e.default : e;
3349
- o.pack = hr(t);
3359
+ o.pack = pr(t);
3350
3360
  }).catch((e) => {
3351
3361
  throw o.loading = void 0, e;
3352
3362
  });
@@ -3401,7 +3411,7 @@ function ur() {
3401
3411
  return {
3402
3412
  register: function(t, o) {
3403
3413
  const r = e.get(t) ?? {};
3404
- "function" == typeof o ? r.loader = o : r.pack = hr(o), e.set(t, r), n || (n = t);
3414
+ "function" == typeof o ? r.loader = o : r.pack = pr(o), e.set(t, r), n || (n = t);
3405
3415
  },
3406
3416
  prefetch: async function(e = n) {
3407
3417
  const t = Array.isArray(e) ? e : [e];
@@ -3464,25 +3474,25 @@ function ur() {
3464
3474
  }
3465
3475
  };
3466
3476
  }
3467
- ir.displayName = "SplitPane";
3468
- var dr = ur();
3469
- dr.register("base", () => import("./B-FM_8r9Y-QUf82k.mjs")), dr.register("cf", () => import("./DSvJ69_AiNh6hzvs.mjs"));
3470
- var fr = (e) => R("svg", {
3477
+ cr.displayName = "SplitPane";
3478
+ var gr = mr();
3479
+ gr.register("base", () => import("./BerYaZU00kR4Yaop.mjs")), gr.register("cf", () => import("./BzVOR2xcr52Z_2yz.mjs"));
3480
+ var _r = (e) => $("svg", {
3471
3481
  ...e,
3472
- children: R("path", {})
3473
- }), pr = {
3482
+ children: $("path", {})
3483
+ }), vr = {
3474
3484
  Icon: "_Icon_16f7r_10",
3475
3485
  "sxl-walk": "_sxl-walk_16f7r_1"
3476
- }, mr = w((t) => {
3477
- const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: h, children: u, ...d } = t, [f, p] = P(null);
3478
- C(() => {
3486
+ }, yr = x((t) => {
3487
+ const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: h, children: u, ...d } = t, [f, p] = A(null);
3488
+ M(() => {
3479
3489
  let t = !0, r = o, i = n;
3480
3490
  if (!i) {
3481
- const t = dr.getPack(r);
3491
+ const t = gr.getPack(r);
3482
3492
  p({
3483
3493
  glyph: t ? { svg: e.EmptyArray } : void 0,
3484
3494
  pack: t ?? void 0,
3485
- packKey: r ?? dr.getActive()
3495
+ packKey: r ?? gr.getActive()
3486
3496
  });
3487
3497
  return;
3488
3498
  }
@@ -3490,7 +3500,7 @@ var fr = (e) => R("svg", {
3490
3500
  const [e, t] = i.split(":");
3491
3501
  r = e, i = t;
3492
3502
  }
3493
- return dr.resolve(i, { packKey: r }).then((e) => {
3503
+ return gr.resolve(i, { packKey: r }).then((e) => {
3494
3504
  t && p(e);
3495
3505
  }).catch(() => {}), () => {
3496
3506
  t = !1;
@@ -3498,17 +3508,17 @@ var fr = (e) => R("svg", {
3498
3508
  }, [n, o]);
3499
3509
  const m = f?.pack, g = f?.glyph, _ = f?.packKey;
3500
3510
  let v = g ? g.svg : void 0;
3501
- const y = g && !v ? g.url : void 0, b = !g || v || y ? void 0 : g.emoji, w = null != a ? "number" == typeof a ? `${a}px` : a : void 0, x = k(() => [
3502
- pr.Icon,
3511
+ const y = g && !v ? g.url : void 0, b = !g || v || y ? void 0 : g.emoji, w = null != a ? "number" == typeof a ? `${a}px` : a : void 0, x = L(() => [
3512
+ vr.Icon,
3503
3513
  "icon",
3504
3514
  r
3505
- ].filter(Boolean).join(" "), [r]), S = k(() => {
3515
+ ].filter(Boolean).join(" "), [r]), S = L(() => {
3506
3516
  const e = { ...i };
3507
3517
  return e["--icon-size"] = w, e;
3508
- }, [i, w]), M = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0), T = (e) => R("span", {
3518
+ }, [i, w]), C = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0), T = (e) => $("span", {
3509
3519
  className: x,
3510
3520
  style: S,
3511
- role: M,
3521
+ role: C,
3512
3522
  "aria-hidden": E,
3513
3523
  title: l,
3514
3524
  "data-icon-glyph": n,
@@ -3517,30 +3527,30 @@ var fr = (e) => R("svg", {
3517
3527
  children: e
3518
3528
  });
3519
3529
  if (u) return T(u);
3520
- if (b) return T(R("span", { children: "string" == typeof b ? b : b.text }));
3521
- if (y) return T(R("img", {
3530
+ if (b) return T($("span", { children: "string" == typeof b ? b : b.text }));
3531
+ if (y) return T($("img", {
3522
3532
  src: y.src,
3523
3533
  alt: l ?? ""
3524
3534
  }));
3525
3535
  if (g && "react" in g) {
3526
3536
  const e = g.react;
3527
- return T(R(e, {
3537
+ return T($(e, {
3528
3538
  className: x,
3529
3539
  style: S,
3530
- role: M,
3540
+ role: C,
3531
3541
  "aria-hidden": E,
3532
3542
  title: l,
3533
3543
  ...d,
3534
3544
  ...h
3535
3545
  }));
3536
3546
  }
3537
- const L = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
3538
- if ("function" == typeof v) return T(v(L) ?? R(fr, { ...L }));
3539
- if (!v) return T(R(fr, { ...L }));
3547
+ const k = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
3548
+ if ("function" == typeof v) return T(v(k) ?? $(_r, { ...k }));
3549
+ if (!v) return T($(_r, { ...k }));
3540
3550
  const D = v.paths;
3541
- return T(R("svg", {
3542
- ...L,
3543
- children: D ? D.map((e, t) => R("path", {
3551
+ return T($("svg", {
3552
+ ...k,
3553
+ children: D ? D.map((e, t) => $("path", {
3544
3554
  d: e.d,
3545
3555
  className: e.className,
3546
3556
  fill: e.fill,
@@ -3551,8 +3561,8 @@ var fr = (e) => R("svg", {
3551
3561
  }, t)) : null
3552
3562
  }));
3553
3563
  });
3554
- function gr(e) {
3555
- const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...h } = e, u = k(() => {
3564
+ function br(e) {
3565
+ const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...h } = e, u = L(() => {
3556
3566
  if (!t) return;
3557
3567
  const e = {
3558
3568
  "--walk-duration": `${o * (r + i)}ms`,
@@ -3567,10 +3577,10 @@ function gr(e) {
3567
3577
  i,
3568
3578
  n
3569
3579
  ]);
3570
- return R(mr, {
3580
+ return $(yr, {
3571
3581
  iconKey: s,
3572
3582
  packKey: l,
3573
- className: k(() => t ? c + " walking" : c, [t, c]),
3583
+ className: L(() => t ? c + " walking" : c, [t, c]),
3574
3584
  style: {
3575
3585
  ...a,
3576
3586
  ...u
@@ -3578,7 +3588,7 @@ function gr(e) {
3578
3588
  ...h
3579
3589
  });
3580
3590
  }
3581
- var _r = class {
3591
+ var wr = class {
3582
3592
  constructor() {
3583
3593
  this.store = /* @__PURE__ */ new Map();
3584
3594
  }
@@ -3591,34 +3601,34 @@ var _r = class {
3591
3601
  removeItem(e) {
3592
3602
  this.store.delete(e);
3593
3603
  }
3594
- }, vr = g(null), yr = {
3604
+ }, xr = _(null), Sr = {
3595
3605
  parse: (e) => e ? JSON.parse(e) : null,
3596
3606
  stringify: JSON.stringify
3597
- }, br = /* @__PURE__ */ new Map(), wr = {
3598
- store: new _r(),
3607
+ }, Cr = /* @__PURE__ */ new Map(), Mr = {
3608
+ store: new wr(),
3599
3609
  namespace: "",
3600
- serializer: yr,
3610
+ serializer: Sr,
3601
3611
  onReady: (e) => {
3602
3612
  e();
3603
3613
  },
3604
3614
  debounceMs: 0,
3605
3615
  notify: (e, t) => {
3606
- const n = br.get(e);
3616
+ const n = Cr.get(e);
3607
3617
  n && n.forEach((e) => e(t));
3608
3618
  },
3609
3619
  subscribeKey: (e, t) => {
3610
- const n = br.get(e) ?? /* @__PURE__ */ new Set();
3611
- return n.add(t), br.set(e, n), () => {
3612
- const n = br.get(e);
3613
- n && (n.delete(t), 0 === n.size && br.delete(e));
3620
+ const n = Cr.get(e) ?? /* @__PURE__ */ new Set();
3621
+ return n.add(t), Cr.set(e, n), () => {
3622
+ const n = Cr.get(e);
3623
+ n && (n.delete(t), 0 === n.size && Cr.delete(e));
3614
3624
  };
3615
3625
  }
3616
3626
  };
3617
- function xr(e, t, n = Sr) {
3618
- const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a } = S(vr) || wr, c = n.serializer ?? i ?? yr, h = D(null), u = k(() => null == e ? null : `${r}:${e}`, [r, e]), d = u ? `${u}::v` : null, f = () => {
3627
+ function Er(e, t, n = Tr) {
3628
+ const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a } = C(xr) || Mr, c = n.serializer ?? i ?? Sr, h = P(null), u = L(() => null == e ? null : `${r}:${e}`, [r, e]), d = u ? `${u}::v` : null, f = () => {
3619
3629
  const e = t;
3620
3630
  return "function" == typeof e ? e() : e;
3621
- }, [p, m] = P(() => {
3631
+ }, [p, m] = A(() => {
3622
3632
  if (null == u) return f();
3623
3633
  let e, t = o.getItem(u);
3624
3634
  if (null == t) return f();
@@ -3628,12 +3638,12 @@ function xr(e, t, n = Sr) {
3628
3638
  e = f();
3629
3639
  }
3630
3640
  return e;
3631
- }), g = D(p);
3641
+ }), g = P(p);
3632
3642
  g.current = p;
3633
- const _ = D(!1);
3634
- C(() => {
3643
+ const _ = P(!1);
3644
+ M(() => {
3635
3645
  null == u && m(f());
3636
- }, [u]), C(() => {
3646
+ }, [u]), M(() => {
3637
3647
  if (null == u) return;
3638
3648
  let e = !0;
3639
3649
  return _.current = !1, (async () => {
@@ -3656,7 +3666,7 @@ function xr(e, t, n = Sr) {
3656
3666
  n.migrate,
3657
3667
  n.lazy,
3658
3668
  c
3659
- ]), C(() => {
3669
+ ]), M(() => {
3660
3670
  if (null != u && null != e) return l(e, (e) => {
3661
3671
  const t = void 0 !== e ? e : o.getItem(u);
3662
3672
  if (null != t) try {
@@ -3673,7 +3683,7 @@ function xr(e, t, n = Sr) {
3673
3683
  const v = (e) => {
3674
3684
  null != u && (o.setItem(u, c.stringify(e)), null != n.version && d && o.setItem(d, String(n.version)));
3675
3685
  };
3676
- return C(() => () => {
3686
+ return M(() => () => {
3677
3687
  h.current && clearTimeout(h.current);
3678
3688
  }, []), [
3679
3689
  p,
@@ -3690,9 +3700,9 @@ function xr(e, t, n = Sr) {
3690
3700
  }
3691
3701
  ];
3692
3702
  }
3693
- var Sr = {};
3694
- function Cr(e) {
3695
- const { store: t, namespace: n = "", serializer: o = Mr, debounceMs: r = 150, children: i } = e, s = k(() => "undefined" == typeof window ? new _r() : t ?? new _r(), [t]), l = D(/* @__PURE__ */ new Map()), a = k(() => ({
3703
+ var Tr = {};
3704
+ function kr(e) {
3705
+ const { store: t, namespace: n = "", serializer: o = Lr, debounceMs: r = 150, children: i } = e, s = L(() => "undefined" == typeof window ? new wr() : t ?? new wr(), [t]), l = P(/* @__PURE__ */ new Map()), a = L(() => ({
3696
3706
  store: s,
3697
3707
  namespace: n,
3698
3708
  serializer: o,
@@ -3717,21 +3727,21 @@ function Cr(e) {
3717
3727
  o,
3718
3728
  r
3719
3729
  ]);
3720
- return C(() => {
3730
+ return M(() => {
3721
3731
  if (a.store.subscribe) return a.store.subscribe((e) => {
3722
3732
  if (!e.startsWith(a.namespace + ":")) return;
3723
3733
  const t = e.slice(a.namespace.length + 1);
3724
3734
  a.notify(t);
3725
3735
  });
3726
- }, [a]), R(vr.Provider, {
3736
+ }, [a]), $(xr.Provider, {
3727
3737
  value: a,
3728
3738
  children: i
3729
3739
  });
3730
3740
  }
3731
- var Mr = {
3741
+ var Lr = {
3732
3742
  parse: (e) => null == e ? null : JSON.parse(e),
3733
3743
  stringify: JSON.stringify
3734
- }, Er = class {
3744
+ }, Dr = class {
3735
3745
  constructor(e = window.localStorage) {
3736
3746
  this.storage = e;
3737
3747
  }
@@ -3758,41 +3768,41 @@ var Mr = {
3758
3768
  };
3759
3769
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
3760
3770
  }
3761
- }, Tr = {
3771
+ }, Pr = {
3762
3772
  Horizontal: "horizontal",
3763
3773
  Vertical: "vertical"
3764
- }, kr = "_scrollbar_14aps_24", Lr = "_track_14aps_35", Dr = "_thumb_14aps_47", Pr = "_scrollbar-button_14aps_96", Ar = "_touch-thumb_14aps_131", zr = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Rr = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", $r = { transform: "rotate(180deg)" }, Br = (e) => {
3765
- const { style: t, orientation: n = Tr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Tr.Vertical ? zr : Rr;
3766
- return R("button", {
3774
+ }, Ar = "_scrollbar_14aps_24", zr = "_track_14aps_35", Rr = "_thumb_14aps_47", $r = "_scrollbar-button_14aps_96", Br = "_touch-thumb_14aps_131", Ir = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Hr = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Nr = { transform: "rotate(180deg)" }, Or = (e) => {
3775
+ const { style: t, orientation: n = Pr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Pr.Vertical ? Ir : Hr;
3776
+ return $("button", {
3767
3777
  style: t,
3768
- className: W(Pr, n, "scroll-button"),
3778
+ className: K($r, n, "scroll-button"),
3769
3779
  disabled: r,
3770
3780
  ...i,
3771
- children: R("svg", {
3781
+ children: $("svg", {
3772
3782
  width: "9",
3773
3783
  height: "9",
3774
3784
  viewBox: "0 0 9 9",
3775
- children: R("path", { d: s })
3785
+ children: $("path", { d: s })
3776
3786
  })
3777
3787
  });
3778
- }, Ir = (e) => {
3779
- const { style: t, orientation: n = Tr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Tr.Vertical ? zr : Rr;
3780
- return R("button", {
3788
+ }, Fr = (e) => {
3789
+ const { style: t, orientation: n = Pr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Pr.Vertical ? Ir : Hr;
3790
+ return $("button", {
3781
3791
  style: t,
3782
- className: W(Pr, n, "scroll-button"),
3792
+ className: K($r, n, "scroll-button"),
3783
3793
  disabled: r,
3784
3794
  ...i,
3785
- children: R("svg", {
3795
+ children: $("svg", {
3786
3796
  width: "9",
3787
3797
  height: "9",
3788
3798
  viewBox: "0 0 9 9",
3789
- style: $r,
3790
- children: R("path", { d: s })
3799
+ style: Nr,
3800
+ children: $("path", { d: s })
3791
3801
  })
3792
3802
  });
3793
- }, Hr = (e) => {
3794
- const { style: t, orientation: n = Tr.Vertical, isBefore: o, ...r } = e, i = n === Tr.Vertical;
3795
- return R("div", {
3803
+ }, Wr = (e) => {
3804
+ const { style: t, orientation: n = Pr.Vertical, isBefore: o, ...r } = e, i = n === Pr.Vertical;
3805
+ return $("div", {
3796
3806
  style: {
3797
3807
  display: "flex",
3798
3808
  justifyContent: "center",
@@ -3805,7 +3815,7 @@ var Mr = {
3805
3815
  },
3806
3816
  className: `scrollbar-button ${i ? "vertical" : "horizontal"} edge`,
3807
3817
  ...r,
3808
- children: R(mr, {
3818
+ children: $(yr, {
3809
3819
  style: {
3810
3820
  transition: "opacity 240ms ease 0s",
3811
3821
  opacity: e.disabled ? 0 : 1,
@@ -3815,7 +3825,7 @@ var Mr = {
3815
3825
  iconKey: "MoreHorizontal"
3816
3826
  })
3817
3827
  });
3818
- }, Nr = 60, Or = 260, Fr = 120, Wr = (e) => {
3828
+ }, Kr = 60, Vr = 260, jr = 120, Yr = (e) => {
3819
3829
  const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
3820
3830
  let c = null, h = null, u = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
3821
3831
  const v = () => {
@@ -3865,10 +3875,10 @@ var Mr = {
3865
3875
  },
3866
3876
  dispose: () => v()
3867
3877
  };
3868
- }, Kr = (e) => {
3869
- const [t, n] = P(null), o = D(e);
3878
+ }, Ur = (e) => {
3879
+ const [t, n] = A(null), o = P(e);
3870
3880
  o.current = e;
3871
- const r = k(() => Wr({
3881
+ const r = L(() => Yr({
3872
3882
  vertical: o.current.vertical,
3873
3883
  getTrackRect: () => o.current.getTrackRect(),
3874
3884
  getThumb: () => o.current.getThumb(),
@@ -3878,26 +3888,26 @@ var Mr = {
3878
3888
  pageInitialDelayMs: o.current.pageInitialDelayMs,
3879
3889
  pageRepeatDelayMs: o.current.pageRepeatDelayMs
3880
3890
  }), [e.vertical]);
3881
- return C(() => () => r.dispose(), [r]), {
3891
+ return M(() => () => r.dispose(), [r]), {
3882
3892
  onPointerDown: r.onPointerDown,
3883
3893
  onPointerMove: r.onPointerMove,
3884
3894
  onPointerUp: r.onPointerUp,
3885
3895
  dragMode: t
3886
3896
  };
3887
- }, Vr = 22, jr = 1.8, Yr = 8, Ur = 4, Xr = 8, qr = -2, Zr = (e = 22) => e / 2 + 8, Gr = (e = 22) => e + 16, Jr = g(null), Qr = (e) => {
3897
+ }, Xr = 22, qr = 1.8, Zr = 8, Gr = 4, Jr = 8, Qr = -2, ei = (e = 22) => e / 2 + 8, ti = (e = 22) => e + 16, ni = _(null), oi = (e) => {
3888
3898
  const { value: t, children: n } = e;
3889
- return R(Jr.Provider, {
3899
+ return $(ni.Provider, {
3890
3900
  value: t,
3891
3901
  children: n
3892
3902
  });
3893
- }, ei = () => S(Jr), ti = Fe().supportsTouchEvents, ni = (e) => e < 0 ? 0 : e > 1 ? 1 : e, oi = w(v((e, t) => {
3894
- const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = Tr.Vertical, fraction: h = 0, onScrollToFraction: u, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
3895
- if (!ti) return null;
3896
- const _ = c === Tr.Vertical, v = ei(), y = en(u ?? (() => {}), [u]), b = en(d ?? (() => {}), [d]), w = en(f ?? (() => {}), [f]), x = D(null), S = k(() => H([x, t]), [t]), M = en((e) => ({
3903
+ }, ri = () => C(ni), ii = We().supportsTouchEvents, si = (e) => e < 0 ? 0 : e > 1 ? 1 : e, li = x(y((e, t) => {
3904
+ const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = Pr.Vertical, fraction: h = 0, onScrollToFraction: u, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
3905
+ if (!ii) return null;
3906
+ const _ = c === Pr.Vertical, v = ri(), y = tn(u ?? (() => {}), [u]), b = tn(d ?? (() => {}), [d]), w = tn(f ?? (() => {}), [f]), x = P(null), S = L(() => N([x, t]), [t]), C = tn((e) => ({
3897
3907
  dragging: e,
3898
3908
  element: x.current,
3899
3909
  source: "touch"
3900
- }), []), [E, T] = P(!1), L = D({
3910
+ }), []), [E, T] = A(!1), k = P({
3901
3911
  isVertical: _,
3902
3912
  travel: 0,
3903
3913
  startAlong: 0,
@@ -3911,12 +3921,12 @@ var Mr = {
3911
3921
  count: 0,
3912
3922
  timer: null
3913
3923
  });
3914
- L.current.isVertical = _, L.current.fraction = ni(h), L.current.hasEdgeHold = !!d;
3915
- const A = en(() => {
3916
- const e = L.current;
3924
+ k.current.isVertical = _, k.current.fraction = si(h), k.current.hasEdgeHold = !!d;
3925
+ const D = tn(() => {
3926
+ const e = k.current;
3917
3927
  e.timer && clearTimeout(e.timer), e.timer = null;
3918
- }, []), z = en(() => {
3919
- const e = L.current;
3928
+ }, []), z = tn(() => {
3929
+ const e = k.current;
3920
3930
  if (e.timer = null, !e.edge || !e.dragging) return;
3921
3931
  e.count++;
3922
3932
  const t = Math.max(0, e.edge > 0 ? e.rawFraction - 1 : -e.rawFraction) * e.travel;
@@ -3925,43 +3935,43 @@ var Mr = {
3925
3935
  heldMs: Date.now() - e.engagedAt,
3926
3936
  overshootPx: t
3927
3937
  }) && (e.timer = setTimeout(z, 60));
3928
- }, []), $ = en(() => {
3929
- const e = L.current;
3938
+ }, []), R = tn(() => {
3939
+ const e = k.current;
3930
3940
  if (!e.hasEdgeHold) return;
3931
3941
  const t = e.rawFraction < 0 ? -1 : e.rawFraction > 1 ? 1 : 0;
3932
- t !== e.edge && (e.edge = t, A(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(z, 60)));
3933
- }, []), B = bn(k(() => ({
3942
+ t !== e.edge && (e.edge = t, D(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(z, 60)));
3943
+ }, []), B = wn(L(() => ({
3934
3944
  processTouch: !0,
3935
3945
  consumeTouch: !0,
3936
3946
  onPointerDown: (e, t) => {
3937
- const n = L.current;
3938
- n.startAlong = n.isVertical ? e.clientY : e.clientX, n.startFraction = n.fraction, n.rawFraction = n.fraction, n.edge = 0, n.dragging = !0, T(!0), w?.(M(!0)), e.preventDefault(), e.stopPropagation();
3947
+ const n = k.current;
3948
+ n.startAlong = n.isVertical ? e.clientY : e.clientX, n.startFraction = n.fraction, n.rawFraction = n.fraction, n.edge = 0, n.dragging = !0, T(!0), w?.(C(!0)), e.preventDefault(), e.stopPropagation();
3939
3949
  },
3940
3950
  onPointerMoveOrWait: (e) => {
3941
- const t = L.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
3942
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(ni(t.rawFraction)), $();
3951
+ const t = k.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
3952
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(si(t.rawFraction)), R();
3943
3953
  },
3944
3954
  onPointerUp: (e) => {
3945
- const t = L.current;
3946
- t.edge = 0, t.dragging = !1, A(), T(!1), w?.(M(!1)), e.preventDefault(), e.stopPropagation();
3955
+ const t = k.current;
3956
+ t.edge = 0, t.dragging = !1, D(), T(!1), w?.(C(!1)), e.preventDefault(), e.stopPropagation();
3947
3957
  }
3948
3958
  }), []));
3949
- if (C(() => () => {
3950
- const e = L.current;
3951
- e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, w?.(M(!1)));
3959
+ if (M(() => () => {
3960
+ const e = k.current;
3961
+ e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, w?.(C(!1)));
3952
3962
  }, []), !v?.portalTarget) return null;
3953
- const I = 1.8 * s, N = _ ? s : I, F = _ ? I : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, U = Y > 0 ? -2 : 4, X = Math.max(0, K - Y - I - 4 - U);
3954
- L.current.travel = X;
3955
- const q = j + 4 + I / 2 + ni(h) * X;
3963
+ const I = 1.8 * s, H = _ ? s : I, O = _ ? I : s, W = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - W), Y = _ ? v.reserveVertical : v.reserveHorizontal, U = Y > 0 ? -2 : 4, X = Math.max(0, W - Y - I - 4 - U);
3964
+ k.current.travel = X;
3965
+ const q = j + 4 + I / 2 + si(h) * X;
3956
3966
  let Z, G;
3957
- return _ ? (Z = v.width - v.crossInset - N / 2, G = q - F / 2) : (G = v.height - v.crossInset - F / 2, Z = q - N / 2), O(R("div", {
3958
- className: W("touch-thumb", Ar, a, { dragging: E }),
3967
+ return _ ? (Z = v.width - v.crossInset - H / 2, G = q - O / 2) : (G = v.height - v.crossInset - O / 2, Z = q - H / 2), F($("div", {
3968
+ className: K("touch-thumb", Br, a, { dragging: E }),
3959
3969
  ref: S,
3960
3970
  style: {
3961
3971
  left: Z,
3962
3972
  top: G,
3963
- width: N,
3964
- height: F,
3973
+ width: H,
3974
+ height: O,
3965
3975
  zIndex: 20,
3966
3976
  borderWidth: `${i}px`,
3967
3977
  boxShadow: E ? `${o} 0px 0px 0px 1.5px` : void 0,
@@ -3980,22 +3990,22 @@ var Mr = {
3980
3990
  ...g
3981
3991
  }), v.portalTarget, m);
3982
3992
  }));
3983
- oi.displayName = "TouchThumbHandle";
3984
- var ri = 24, ii = w(v((e, t) => {
3985
- const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = Tr.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: h, scrollButtonIncrement: u = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = ri, maxThumbSize: m, renderScrollButtonStart: g = Br, renderScrollButtonEnd: _ = Ir, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...M } = e, E = "touch" === Fe().primaryInput, T = h ?? !E;
3986
- en(c ?? (() => {}), [c]);
3987
- const [L, A] = P({
3993
+ li.displayName = "TouchThumbHandle";
3994
+ var ai = 24, ci = x(y((e, t) => {
3995
+ const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = Pr.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: h, scrollButtonIncrement: u = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = ai, maxThumbSize: m, renderScrollButtonStart: g = Or, renderScrollButtonEnd: _ = Fr, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: x, ...C } = e, E = "touch" === We().primaryInput, T = h ?? !E;
3996
+ tn(c ?? (() => {}), [c]);
3997
+ const [k, D] = A({
3988
3998
  offset: 0,
3989
3999
  length: 0,
3990
4000
  disabled: !1
3991
- }), B = D(-1), N = l === Tr.Vertical, [O, { width: F, height: K }] = I(), V = N ? K : F, j = D(null), Y = k(() => H([O, j]), [O]), U = en((e, t, n) => {
4001
+ }), z = P(-1), I = l === Pr.Vertical, [O, { width: F, height: W }] = H(), V = I ? W : F, j = P(null), Y = L(() => N([O, j]), [O]), U = tn((e, t, n) => {
3992
4002
  if (0 === t || 0 === n) {
3993
4003
  const e = {
3994
4004
  offset: 0,
3995
4005
  length: p,
3996
4006
  disabled: !0
3997
4007
  };
3998
- return A(e), e;
4008
+ return D(e), e;
3999
4009
  }
4000
4010
  if (t >= n) return {
4001
4011
  offset: 0,
@@ -4012,47 +4022,47 @@ var ri = 24, ii = w(v((e, t) => {
4012
4022
  V,
4013
4023
  p,
4014
4024
  m
4015
- ]), X = en((e) => {
4025
+ ]), X = tn((e) => {
4016
4026
  const t = o / V, n = Math.round(e * t);
4017
- A(U(n, r, o)), a?.(n, r, o), B.current = e;
4027
+ D(U(n, r, o)), a?.(n, r, o), z.current = e;
4018
4028
  }, [
4019
4029
  a,
4020
4030
  r,
4021
4031
  o,
4022
4032
  V,
4023
- L
4024
- ]), q = en((e) => {
4025
- A(U(e, r, o)), a?.(e, r, o), B.current = e;
4033
+ k
4034
+ ]), q = tn((e) => {
4035
+ D(U(e, r, o)), a?.(e, r, o), z.current = e;
4026
4036
  }, [
4027
4037
  a,
4028
4038
  r,
4029
4039
  o
4030
4040
  ]);
4031
- C(() => {
4032
- B.current !== n && 0 !== V && (B.current = -1, A(U(n, r, o)));
4033
- }, [n]), C(() => {
4034
- 0 !== V && A(U(n, r, o));
4041
+ M(() => {
4042
+ z.current !== n && 0 !== V && (z.current = -1, D(U(n, r, o)));
4043
+ }, [n]), M(() => {
4044
+ 0 !== V && D(U(n, r, o));
4035
4045
  }, [
4036
4046
  r,
4037
4047
  o,
4038
- N,
4048
+ I,
4039
4049
  V
4040
4050
  ]);
4041
- const Z = Math.max(0, o - r), G = no(t, () => ({ isScrollbar: () => !0 }), []), J = en((e) => {
4051
+ const Z = Math.max(0, o - r), G = oo(t, () => ({ isScrollbar: () => !0 }), []), J = tn((e) => {
4042
4052
  const t = Math.max(1, Math.floor(.9 * r)), o = e > 0 ? Math.min(Z, n + t) : Math.max(0, n - t);
4043
4053
  q(o);
4044
4054
  }, [
4045
4055
  r,
4046
4056
  n,
4047
4057
  Z
4048
- ]), Q = Kr({
4049
- vertical: N,
4058
+ ]), Q = Ur({
4059
+ vertical: I,
4050
4060
  getTrackRect: () => j.current?.getBoundingClientRect() ?? null,
4051
- getThumb: () => L.disabled ? null : {
4052
- offset: L.offset,
4053
- length: L.length
4061
+ getThumb: () => k.disabled ? null : {
4062
+ offset: k.offset,
4063
+ length: k.length
4054
4064
  },
4055
- onStart: en((e) => L.disabled ? null : "thumb" === e ? (w?.({
4065
+ onStart: tn((e) => k.disabled ? null : "thumb" === e ? (w?.({
4056
4066
  dragging: !0,
4057
4067
  element: ne.current,
4058
4068
  source: "thumb"
@@ -4069,29 +4079,29 @@ var ri = 24, ii = w(v((e, t) => {
4069
4079
  page: J,
4070
4080
  dragMode: "page"
4071
4081
  }, [
4072
- L,
4082
+ k,
4073
4083
  b,
4074
4084
  w
4075
4085
  ])
4076
- }), ee = "thumb" === Q.dragMode, te = en((e) => {
4086
+ }), ee = "thumb" === Q.dragMode, te = tn((e) => {
4077
4087
  const t = Math.max(1, Math.floor(.9 * r));
4078
- N ? ("ArrowDown" === e.key && X(Math.min(Z, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z)) : ("ArrowRight" === e.key && X(Math.min(Z, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z));
4088
+ I ? ("ArrowDown" === e.key && X(Math.min(Z, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z)) : ("ArrowRight" === e.key && X(Math.min(Z, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z));
4079
4089
  }, [
4080
- N,
4090
+ I,
4081
4091
  r,
4082
4092
  o,
4083
4093
  n,
4084
4094
  Z
4085
- ]), ne = D(null), oe = k(() => {
4086
- const e = L.disabled;
4095
+ ]), ne = P(null), oe = L(() => {
4096
+ const e = k.disabled;
4087
4097
  if (e) return null;
4088
- const t = R("div", {
4098
+ const t = $("div", {
4089
4099
  ...y,
4090
- className: W(Dr, { disabled: e }),
4100
+ className: K(Rr, { disabled: e }),
4091
4101
  ref: ne,
4092
4102
  role: "slider",
4093
- "aria-label": N ? "Rows" : "Columns",
4094
- "aria-orientation": N ? "vertical" : "horizontal",
4103
+ "aria-label": I ? "Rows" : "Columns",
4104
+ "aria-orientation": I ? "vertical" : "horizontal",
4095
4105
  "aria-valuemin": 0,
4096
4106
  "aria-valuemax": Z,
4097
4107
  "aria-valuenow": n,
@@ -4099,37 +4109,37 @@ var ri = 24, ii = w(v((e, t) => {
4099
4109
  style: {
4100
4110
  ...y?.style,
4101
4111
  position: "relative",
4102
- [N ? "height" : "width"]: `${L.length}px`,
4103
- [N ? "width" : "height"]: "100%",
4104
- transform: N ? `translateY(${L.offset}px)` : `translateX(${L.offset}px)`,
4105
- [N ? "minHeight" : "minWidth"]: `${p}px`
4112
+ [I ? "height" : "width"]: `${k.length}px`,
4113
+ [I ? "width" : "height"]: "100%",
4114
+ transform: I ? `translateY(${k.offset}px)` : `translateX(${k.offset}px)`,
4115
+ [I ? "minHeight" : "minWidth"]: `${p}px`
4106
4116
  },
4107
- onMouseDown: S
4117
+ onMouseDown: x
4108
4118
  });
4109
4119
  if (!E || e) return t;
4110
- const o = Math.max(0, V - L.length);
4111
- return $(z, { children: [t, R(oi, {
4120
+ const o = Math.max(0, V - k.length);
4121
+ return B(R, { children: [t, $(li, {
4112
4122
  ...v,
4113
- orientation: N ? Tr.Vertical : Tr.Horizontal,
4114
- fraction: o > 0 ? L.offset / o : 0,
4123
+ orientation: I ? Pr.Vertical : Pr.Horizontal,
4124
+ fraction: o > 0 ? k.offset / o : 0,
4115
4125
  onScrollToFraction: (e) => X(e * o),
4116
4126
  onEdgeHold: b,
4117
4127
  onDraggingChange: w
4118
4128
  })] });
4119
4129
  }, [
4120
- L,
4130
+ k,
4121
4131
  p,
4122
4132
  Z,
4123
4133
  n,
4124
- N,
4134
+ I,
4125
4135
  E,
4126
- S,
4136
+ x,
4127
4137
  v,
4128
4138
  y,
4129
4139
  V,
4130
4140
  b,
4131
4141
  w
4132
- ]), [re, ie] = P(null), se = en(() => {
4142
+ ]), [re, ie] = A(null), se = tn(() => {
4133
4143
  let e;
4134
4144
  e = "function" == typeof u ? u(n, r, o) : n - u;
4135
4145
  const t = Math.max(0, e);
@@ -4139,7 +4149,7 @@ var ri = 24, ii = w(v((e, t) => {
4139
4149
  n,
4140
4150
  r,
4141
4151
  o
4142
- ]), le = en(() => {
4152
+ ]), le = tn(() => {
4143
4153
  let e;
4144
4154
  e = "function" == typeof u ? u(n, r, o) : n + u;
4145
4155
  const t = Math.min(Z, e);
@@ -4150,9 +4160,9 @@ var ri = 24, ii = w(v((e, t) => {
4150
4160
  Z,
4151
4161
  r,
4152
4162
  o
4153
- ]), ae = D(null), ce = D(null), he = x(() => {
4163
+ ]), ae = P(null), ce = P(null), he = S(() => {
4154
4164
  ae.current && (clearTimeout(ae.current), ae.current = null, ce.current = null);
4155
- }, []), ue = x((e, t, n, o = d) => {
4165
+ }, []), ue = S((e, t, n, o = d) => {
4156
4166
  ce.current = e, ae.current = setTimeout(() => {
4157
4167
  const e = n ? se() : le();
4158
4168
  e !== ce.current ? ue(e, !1, n, f) : he();
@@ -4162,8 +4172,8 @@ var ri = 24, ii = w(v((e, t) => {
4162
4172
  le,
4163
4173
  he
4164
4174
  ]);
4165
- C(() => () => he(), [he]);
4166
- const de = k(() => T ? g?.({
4175
+ M(() => () => he(), [he]);
4176
+ const de = L(() => T ? g?.({
4167
4177
  orientation: l,
4168
4178
  disabled: n <= 0,
4169
4179
  onMouseUp: he,
@@ -4174,7 +4184,7 @@ var ri = 24, ii = w(v((e, t) => {
4174
4184
  l,
4175
4185
  n,
4176
4186
  re
4177
- ]), fe = k(() => T ? _?.({
4187
+ ]), fe = L(() => T ? _?.({
4178
4188
  orientation: l,
4179
4189
  disabled: n >= Z,
4180
4190
  onMouseUp: he,
@@ -4186,18 +4196,18 @@ var ri = 24, ii = w(v((e, t) => {
4186
4196
  n,
4187
4197
  Z,
4188
4198
  re
4189
- ]), pe = N ? "vertical" : "horizontal";
4190
- return $("div", {
4191
- ref: H([G, t]),
4192
- className: W(s, kr, pe, {
4199
+ ]), pe = I ? "vertical" : "horizontal";
4200
+ return B("div", {
4201
+ ref: N([G, t]),
4202
+ className: K(s, Ar, pe, {
4193
4203
  dragging: ee,
4194
4204
  "has-touch-thumb": E
4195
4205
  }),
4196
4206
  style: i,
4197
- ...M,
4207
+ ...C,
4198
4208
  children: [
4199
4209
  de,
4200
- R("div", {
4210
+ $("div", {
4201
4211
  ref: Y,
4202
4212
  role: "scrollbar",
4203
4213
  "aria-orientation": pe,
@@ -4205,8 +4215,8 @@ var ri = 24, ii = w(v((e, t) => {
4205
4215
  "aria-valuemax": Z,
4206
4216
  "aria-valuenow": n,
4207
4217
  tabIndex: 0,
4208
- className: W(Lr, "track", pe),
4209
- onMouseDown: S,
4218
+ className: K(zr, "track", pe),
4219
+ onMouseDown: x,
4210
4220
  onPointerDown: Q.onPointerDown,
4211
4221
  onPointerMove: Q.onPointerMove,
4212
4222
  onPointerUp: Q.onPointerUp,
@@ -4216,24 +4226,24 @@ var ri = 24, ii = w(v((e, t) => {
4216
4226
  fe
4217
4227
  ]
4218
4228
  });
4219
- })), si = Date.now, li = 1e3, ai = {}, ci = 1, hi = (e) => {
4220
- let t = null !== ai[e];
4221
- return t && (ai[e] = null), t;
4222
- }, ui = (e, t, n, o = 0, r) => {
4223
- let i = si(), s = i, l = 0, a = 0, c = 0, h = ci++;
4229
+ })), hi = Date.now, ui = 1e3, di = {}, fi = 1, pi = (e) => {
4230
+ let t = null !== di[e];
4231
+ return t && (di[e] = null), t;
4232
+ }, mi = (e, t, n, o = 0, r) => {
4233
+ let i = hi(), s = i, l = 0, a = 0, c = 0, h = fi++;
4224
4234
  if (h % 20 == 0) {
4225
4235
  const e = {};
4226
- for (let t in ai) e[t] = !0;
4227
- ai = e;
4236
+ for (let t in di) e[t] = !0;
4237
+ di = e;
4228
4238
  }
4229
4239
  const u = function(d) {
4230
- let f = !0 !== d, p = si(), m = !0;
4240
+ let f = !0 !== d, p = hi(), m = !0;
4231
4241
  try {
4232
4242
  m = (!t || t(h)) ?? !0;
4233
4243
  } catch (e) {
4234
4244
  m = !1;
4235
4245
  }
4236
- if (!ai[h] || !m) return ai[h] = null, void n?.(60 - a / ((p - i) / li), h, !1);
4246
+ if (!di[h] || !m) return di[h] = null, void n?.(60 - a / ((p - i) / ui), h, !1);
4237
4247
  if (f) {
4238
4248
  c = Math.round((p - s) / 16.666666666666668) - 1;
4239
4249
  for (let e = 0; e < Math.min(c, 4); e++) u(!0), a++;
@@ -4245,14 +4255,14 @@ var ri = 24, ii = w(v((e, t) => {
4245
4255
  } catch (e) {
4246
4256
  _ = !1;
4247
4257
  }
4248
- !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (ai[h] = null, n?.(60 - a / ((p - i) / li), h, 1 === l || null == o));
4258
+ !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (di[h] = null, n?.(60 - a / ((p - i) / ui), h, 1 === l || null == o));
4249
4259
  };
4250
- return ai[h] = !0, requestAnimationFrame(u), h;
4251
- }, di = function(e) {
4260
+ return di[h] = !0, requestAnimationFrame(u), h;
4261
+ }, gi = function(e) {
4252
4262
  return Math.pow(e - 1, 3) + 1;
4253
- }, fi = function(e) {
4263
+ }, _i = function(e) {
4254
4264
  return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
4255
- }, pi = class {
4265
+ }, vi = class {
4256
4266
  constructor(e, t) {
4257
4267
  this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
4258
4268
  scrollingX: !0,
@@ -4306,7 +4316,7 @@ var ri = 24, ii = w(v((e, t) => {
4306
4316
  }
4307
4317
  zoomTo(e, t = !1, n, o, r) {
4308
4318
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4309
- r && (this.__zoomComplete = r), this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0);
4319
+ r && (this.__zoomComplete = r), this.__isDecelerating && (pi(this.__isDecelerating), this.__isDecelerating = 0);
4310
4320
  const i = this.__zoomLevel;
4311
4321
  void 0 === n && (n = this.__clientWidth / 2), void 0 === o && (o = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
4312
4322
  const s = e / i;
@@ -4317,7 +4327,7 @@ var ri = 24, ii = w(v((e, t) => {
4317
4327
  this.zoomTo(this.__zoomLevel * e, t, n, o, r);
4318
4328
  }
4319
4329
  scrollTo(e, t, n = !1, o = 1) {
4320
- if (this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4330
+ if (this.__isDecelerating && (pi(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4321
4331
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4322
4332
  e *= o, t *= o, this.__computeScrollMax(o);
4323
4333
  } else o = this.__zoomLevel;
@@ -4335,7 +4345,7 @@ var ri = 24, ii = w(v((e, t) => {
4335
4345
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
4336
4346
  if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
4337
4347
  let n, o;
4338
- this.__interruptedAnimation = !0, this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (hi(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4348
+ this.__interruptedAnimation = !0, this.__isDecelerating && (pi(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (pi(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4339
4349
  let r = 1 === e.length;
4340
4350
  r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
4341
4351
  }
@@ -4390,14 +4400,14 @@ var ri = 24, ii = w(v((e, t) => {
4390
4400
  }
4391
4401
  __publish(e, t, n, o = !1) {
4392
4402
  const r = this.__isAnimating;
4393
- if (r && (hi(r), this.__isAnimating = 0), o && this.options.animating) {
4403
+ if (r && (pi(r), this.__isAnimating = 0), o && this.options.animating) {
4394
4404
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
4395
4405
  const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, h = (e, t, n = !1) => {
4396
4406
  n && (this.__scrollLeft = o + l * e, this.__scrollTop = i + a * e, this.__zoomLevel = s + c * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
4397
4407
  }, u = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
4398
4408
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4399
4409
  };
4400
- this.__isAnimating = ui(h, u, d, this.options.animationDuration, r ? di : fi);
4410
+ this.__isAnimating = mi(h, u, d, this.options.animationDuration, r ? gi : _i);
4401
4411
  } else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4402
4412
  }
4403
4413
  __computeScrollMax(e = this.__zoomLevel) {
@@ -4409,7 +4419,7 @@ var ri = 24, ii = w(v((e, t) => {
4409
4419
  this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / o) * o, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / o) * o;
4410
4420
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
4411
4421
  const t = this.options.snapping ? 4 : .1;
4412
- this.__isDecelerating = ui((e, t, n = !1) => {
4422
+ this.__isDecelerating = mi((e, t, n = !1) => {
4413
4423
  this.__stepThroughDeceleration(n);
4414
4424
  }, () => {
4415
4425
  const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -4435,10 +4445,10 @@ var ri = 24, ii = w(v((e, t) => {
4435
4445
  t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? o = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (o = this.__maxDecelerationScrollTop - n), 0 !== e && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * r : this.__decelerationVelocityX = e * i), 0 !== o && (o * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += o * r : this.__decelerationVelocityY = o * i);
4436
4446
  }
4437
4447
  }
4438
- }, mi = G({
4439
- defaultRenderScrollbar: () => _i,
4440
- getScrollTo: () => gi
4441
- }), gi = (e, t, n, o, r = 0) => {
4448
+ }, yi = J({
4449
+ defaultRenderScrollbar: () => wi,
4450
+ getScrollTo: () => bi
4451
+ }), bi = (e, t, n, o, r = 0) => {
4442
4452
  for (let r = 0; r < n.length; r++) {
4443
4453
  const i = n[r].getBoundingClientRect();
4444
4454
  let s = i.left - t, l = s + i.width;
@@ -4447,14 +4457,14 @@ var ri = 24, ii = w(v((e, t) => {
4447
4457
  } else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
4448
4458
  }
4449
4459
  return r;
4450
- }, _i = (e) => R(ii, { ...e }), vi = "_scrollpane_zdrii_2", yi = "_scrollpane-content_zdrii_20", bi = "_scrollpane-content-cell_zdrii_33", wi = "_vertical-container_zdrii_42", xi = "_horizontal-container_zdrii_50", Si = "_corner-container_zdrii_59", Ci = "_touch-thumb-overlay_zdrii_68", Mi = w(v((e, t) => {
4451
- const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a = Ei, renderScrollbarHorizontal: c = _i, renderScrollbarVertical: h = _i, style: u, className: d, disableTouch: f, ...p } = e, m = s && c, g = l && h, _ = sn(o, (e) => e.getMetrics()), v = x((e, t) => {
4460
+ }, wi = (e) => $(ci, { ...e }), xi = "_scrollpane_zdrii_2", Si = "_scrollpane-content_zdrii_20", Ci = "_scrollpane-content-cell_zdrii_33", Mi = "_vertical-container_zdrii_42", Ei = "_horizontal-container_zdrii_50", Ti = "_corner-container_zdrii_59", ki = "_touch-thumb-overlay_zdrii_68", Li = x(y((e, t) => {
4461
+ const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a = Di, renderScrollbarHorizontal: c = wi, renderScrollbarVertical: h = wi, style: u, className: d, disableTouch: f, ...p } = e, m = s && c, g = l && h, _ = ln(o, (e) => e.getMetrics()), v = S((e, t) => {
4452
4462
  if (!o) return;
4453
4463
  const n = o.getTarget();
4454
4464
  o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
4455
- }, [o]), y = no(t, () => ({ isScrollPane: () => !0 }), []);
4456
- C(() => {}, []), ((e, t) => {
4457
- const { enabled: n = !0, onScrollBy: o, onWheelScroll: r } = t, i = en(o, [o]), s = en(r ?? (() => {}), [r]), l = D(null), a = en((e) => {
4465
+ }, [o]), y = oo(t, () => ({ isScrollPane: () => !0 }), []);
4466
+ M(() => {}, []), ((e, t) => {
4467
+ const { enabled: n = !0, onScrollBy: o, onWheelScroll: r } = t, i = tn(o, [o]), s = tn(r ?? (() => {}), [r]), l = P(null), a = tn((e) => {
4458
4468
  const t = e.shiftKey;
4459
4469
  e.preventDefault();
4460
4470
  const { deltaX: n, deltaY: o, deltaMode: r } = e;
@@ -4466,7 +4476,7 @@ var ri = 24, ii = w(v((e, t) => {
4466
4476
  l.current = null, i(h ? { left: a } : { top: c });
4467
4477
  });
4468
4478
  }, []);
4469
- C(() => {
4479
+ M(() => {
4470
4480
  if (!n) return;
4471
4481
  const t = e.current;
4472
4482
  return t ? (t.addEventListener("wheel", a, { passive: !1 }), () => {
@@ -4489,8 +4499,8 @@ var ri = 24, ii = w(v((e, t) => {
4489
4499
  },
4490
4500
  onWheelScroll: i
4491
4501
  });
4492
- const b = D(null), w = D(!1);
4493
- C(() => {
4502
+ const b = P(null), w = P(!1);
4503
+ M(() => {
4494
4504
  if (b.current && _ && (b.current.__scrollTop !== _?.top || b.current.__scrollLeft !== _?.left)) if (b.current.__isDecelerating || b.current.__isTracking) b.current.__isTracking, b.current.__isDecelerating;
4495
4505
  else {
4496
4506
  b.current.__scrollLeft, b.current.__scrollTop, _.left, _.top, w.current = !0;
@@ -4501,36 +4511,36 @@ var ri = 24, ii = w(v((e, t) => {
4501
4511
  }
4502
4512
  }
4503
4513
  }, [_?.left, _?.top]);
4504
- const S = x((e, t) => {
4514
+ const x = S((e, t) => {
4505
4515
  if (w.current) return;
4506
4516
  const n = b.current;
4507
4517
  (!n || n.__isTracking || n.__isDecelerating) && v?.({
4508
4518
  left: e,
4509
4519
  top: t
4510
4520
  });
4511
- }, []), M = x((e) => {
4521
+ }, []), C = S((e) => {
4512
4522
  e.touches.length, b.current?.doTouchStart(e.touches, e.timeStamp);
4513
- }, []), E = x((e) => {
4523
+ }, []), E = S((e) => {
4514
4524
  e.preventDefault(), e.touches.length, b.current, b.current, b.current, b.current?.doTouchMove(e.touches, e.timeStamp);
4515
- }, []), T = x((e) => {
4525
+ }, []), T = S((e) => {
4516
4526
  b.current?.doTouchEnd(e.timeStamp);
4517
- }, []), L = x(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4527
+ }, []), k = S(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4518
4528
  b.current && b.current.setDimensions(e, t, n, o);
4519
4529
  }, []);
4520
- C(() => {
4530
+ M(() => {
4521
4531
  const e = y.current;
4522
- return !f && Fe().supportsTouchEvents && e && _ && (b.current || (b.current = new pi(S, {
4532
+ return !f && We().supportsTouchEvents && e && _ && (b.current || (b.current = new vi(x, {
4523
4533
  scrollingX: !0,
4524
4534
  scrollingY: !0,
4525
4535
  decelerationRate: .95,
4526
4536
  penetrationAcceleration: .08
4527
- })), Fe().supportsTouchEvents && (e.addEventListener("touchstart", M, { passive: !1 }), e.addEventListener("touchend", T), e.addEventListener("touchmove", E, { passive: !1 })), L({
4537
+ })), We().supportsTouchEvents && (e.addEventListener("touchstart", C, { passive: !1 }), e.addEventListener("touchend", T), e.addEventListener("touchmove", E, { passive: !1 })), k({
4528
4538
  containerWidth: _?.width,
4529
4539
  containerHeight: _?.height,
4530
4540
  totalWidth: _?.totalWidth,
4531
4541
  totalHeight: _?.totalHeight
4532
4542
  })), () => {
4533
- e?.removeEventListener("touchstart", M), e?.removeEventListener("touchend", T), e?.removeEventListener("touchmove", E);
4543
+ e?.removeEventListener("touchstart", C), e?.removeEventListener("touchend", T), e?.removeEventListener("touchmove", E);
4534
4544
  };
4535
4545
  }, [
4536
4546
  _?.width,
@@ -4539,11 +4549,11 @@ var ri = 24, ii = w(v((e, t) => {
4539
4549
  _?.totalHeight,
4540
4550
  f
4541
4551
  ]);
4542
- const A = Fe().supportsTouchEvents, [z, B] = P(null), [H, { width: N, height: O }] = I(), F = x((e) => {
4543
- B(e), H(e);
4544
- }, [H]), K = k(() => {
4552
+ const D = We().supportsTouchEvents, [z, R] = A(null), [I, { width: N, height: O }] = H(), F = S((e) => {
4553
+ R(e), I(e);
4554
+ }, [I]), W = L(() => {
4545
4555
  if (!z) return null;
4546
- const e = Gr(), t = Math.min(N, _?.width ?? N), n = Math.min(O, _?.height ?? O);
4556
+ const e = ti(), t = Math.min(N, _?.width ?? N), n = Math.min(O, _?.height ?? O);
4547
4557
  return {
4548
4558
  portalTarget: z,
4549
4559
  width: N,
@@ -4552,7 +4562,7 @@ var ri = 24, ii = w(v((e, t) => {
4552
4562
  viewportHeight: n,
4553
4563
  reserveVertical: m ? e : 0,
4554
4564
  reserveHorizontal: g ? e : 0,
4555
- crossInset: Zr()
4565
+ crossInset: ei()
4556
4566
  };
4557
4567
  }, [
4558
4568
  z,
@@ -4562,10 +4572,10 @@ var ri = 24, ii = w(v((e, t) => {
4562
4572
  _?.height,
4563
4573
  m,
4564
4574
  g
4565
- ]), V = k(() => {
4575
+ ]), V = L(() => {
4566
4576
  if (!g) return null;
4567
4577
  const e = h({
4568
- orientation: Tr.Vertical,
4578
+ orientation: Pr.Vertical,
4569
4579
  offset: _?.top ?? 0,
4570
4580
  viewportSize: _?.height ?? 0,
4571
4581
  totalSize: _?.totalHeight ?? 0,
@@ -4573,8 +4583,8 @@ var ri = 24, ii = w(v((e, t) => {
4573
4583
  v?.({ top: e });
4574
4584
  }
4575
4585
  });
4576
- return R("div", {
4577
- className: W("vertical-container", wi),
4586
+ return $("div", {
4587
+ className: K("vertical-container", Mi),
4578
4588
  children: e
4579
4589
  });
4580
4590
  }, [
@@ -4582,10 +4592,10 @@ var ri = 24, ii = w(v((e, t) => {
4582
4592
  _?.top,
4583
4593
  _?.height,
4584
4594
  _?.totalHeight
4585
- ]), j = k(() => {
4595
+ ]), j = L(() => {
4586
4596
  if (!m) return null;
4587
4597
  const e = c({
4588
- orientation: Tr.Horizontal,
4598
+ orientation: Pr.Horizontal,
4589
4599
  offset: _?.left ?? 0,
4590
4600
  viewportSize: _?.width ?? 0,
4591
4601
  totalSize: _?.totalWidth ?? 0,
@@ -4593,8 +4603,8 @@ var ri = 24, ii = w(v((e, t) => {
4593
4603
  v?.({ left: e });
4594
4604
  }
4595
4605
  });
4596
- return R("div", {
4597
- className: W("horizontal-container", xi),
4606
+ return $("div", {
4607
+ className: K("horizontal-container", Ei),
4598
4608
  children: e
4599
4609
  });
4600
4610
  }, [
@@ -4602,44 +4612,44 @@ var ri = 24, ii = w(v((e, t) => {
4602
4612
  _?.left,
4603
4613
  _?.width,
4604
4614
  _?.totalWidth
4605
- ]), Y = k(() => g && m ? R("div", {
4606
- className: W("corner-container", Si),
4615
+ ]), Y = L(() => g && m ? $("div", {
4616
+ className: K("corner-container", Ti),
4607
4617
  children: a({})
4608
4618
  }) : null, [
4609
4619
  g,
4610
4620
  m,
4611
4621
  a
4612
4622
  ]);
4613
- return R("div", {
4614
- className: W(d, "scrollpane", vi),
4623
+ return $("div", {
4624
+ className: K(d, "scrollpane", xi),
4615
4625
  style: u,
4616
4626
  ...p,
4617
4627
  ref: y,
4618
- children: R(Qr, {
4619
- value: K,
4620
- children: $("div", {
4621
- className: W("scrollpane-content", yi),
4628
+ children: $(oi, {
4629
+ value: W,
4630
+ children: B("div", {
4631
+ className: K("scrollpane-content", Si),
4622
4632
  children: [
4623
- R("div", {
4624
- className: W("scrollpane-content-cell", bi),
4633
+ $("div", {
4634
+ className: K("scrollpane-content-cell", Ci),
4625
4635
  children: n
4626
4636
  }),
4627
4637
  g ? V : null,
4628
4638
  m ? j : null,
4629
4639
  Y,
4630
- A ? R("div", {
4640
+ D ? $("div", {
4631
4641
  ref: F,
4632
- className: W("touch-thumb-overlay", Ci)
4642
+ className: K("touch-thumb-overlay", ki)
4633
4643
  }) : null
4634
4644
  ]
4635
4645
  })
4636
4646
  })
4637
4647
  });
4638
4648
  }));
4639
- Mi.displayName = "ScrollPane";
4640
- var Ei = (e) => {
4649
+ Li.displayName = "ScrollPane";
4650
+ var Di = (e) => {
4641
4651
  const { size: t, style: n, ...o } = e;
4642
- return R("div", {
4652
+ return $("div", {
4643
4653
  className: "corner",
4644
4654
  style: {
4645
4655
  width: "100%",
@@ -4648,7 +4658,7 @@ var Ei = (e) => {
4648
4658
  },
4649
4659
  ...o
4650
4660
  });
4651
- }, Ti = class {
4661
+ }, Pi = class {
4652
4662
  constructor(e) {
4653
4663
  this._bounds = {
4654
4664
  minLeft: 0,
@@ -4758,7 +4768,7 @@ var Ei = (e) => {
4758
4768
  }
4759
4769
  _applyBounds(e) {
4760
4770
  this._bounds = e;
4761
- const t = $i(this._target.left, e.minLeft, e.maxLeft), n = $i(this._target.top, e.minTop, e.maxTop);
4771
+ const t = Ni(this._target.left, e.minLeft, e.maxLeft), n = Ni(this._target.top, e.minTop, e.maxTop);
4762
4772
  t === this._target.left && n === this._target.top || (this._target = {
4763
4773
  left: t,
4764
4774
  top: n
@@ -4780,12 +4790,12 @@ var Ei = (e) => {
4780
4790
  return this._observe(e, "both");
4781
4791
  }
4782
4792
  _observe(e, t) {
4783
- if (!e) return Ri;
4793
+ if (!e) return Hi;
4784
4794
  const n = (e, n) => {
4785
4795
  const o = this._measuredClient;
4786
4796
  this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
4787
4797
  };
4788
- if (!zi()) return n(0, 0), Ri;
4798
+ if (!Ii()) return n(0, 0), Hi;
4789
4799
  const o = new ResizeObserver((e) => {
4790
4800
  const t = e[0]?.contentRect;
4791
4801
  t && n(t.width, t.height);
@@ -4832,17 +4842,17 @@ var Ei = (e) => {
4832
4842
  }
4833
4843
  setTarget(e, t, n) {
4834
4844
  const o = this._bounds;
4835
- return e = $i(e, o.minLeft, o.maxLeft), t = $i(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
4845
+ return e = Ni(e, o.minLeft, o.maxLeft), t = Ni(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
4836
4846
  left: e,
4837
4847
  top: t
4838
4848
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
4839
4849
  }
4840
4850
  _startAnimation() {
4841
- const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Di : Infinity, r = n.height > 0 ? n.height * Di : Infinity, i = $i(e.left, t.left - o, t.left + o), s = $i(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * Li);
4842
- this._anim = a <= Pi ? null : {
4851
+ const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Ri : Infinity, r = n.height > 0 ? n.height * Ri : Infinity, i = Ni(e.left, t.left - o, t.left + o), s = Ni(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * zi);
4852
+ this._anim = a <= $i ? null : {
4843
4853
  fromLeft: i,
4844
4854
  fromTop: s,
4845
- start: Ai(),
4855
+ start: Bi(),
4846
4856
  duration: a
4847
4857
  };
4848
4858
  }
@@ -4874,7 +4884,7 @@ var Ei = (e) => {
4874
4884
  const e = this._current, t = this._target, n = this._anim;
4875
4885
  let o, r, i = !1;
4876
4886
  if (n) {
4877
- const e = (Ai() - n.start) / n.duration;
4887
+ const e = (Bi() - n.start) / n.duration;
4878
4888
  if (e >= 1) o = t.left, r = t.top, this._anim = null;
4879
4889
  else {
4880
4890
  const s = 1 - Math.pow(1 - e, 3);
@@ -4886,7 +4896,7 @@ var Ei = (e) => {
4886
4896
  top: r
4887
4897
  }, this._viewport = null, this._emit()), i;
4888
4898
  }
4889
- }, ki = 200, Li = 2.5, Di = 1.5, Pi = 17, Ai = () => "undefined" != typeof performance ? performance.now() : Date.now(), zi = () => "undefined" != typeof ResizeObserver, Ri = () => {}, $i = (e, t, n) => Math.min(n, Math.max(t, e)), Bi = class {
4899
+ }, Ai = 200, zi = 2.5, Ri = 1.5, $i = 17, Bi = () => "undefined" != typeof performance ? performance.now() : Date.now(), Ii = () => "undefined" != typeof ResizeObserver, Hi = () => {}, Ni = (e, t, n) => Math.min(n, Math.max(t, e)), Oi = class {
4890
4900
  constructor(e, t, n, o, r) {
4891
4901
  this._h = e, this._v = t, this._followH = n, this._followV = o, this._zoomCtrl = r, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
4892
4902
  }
@@ -4993,10 +5003,10 @@ var Ei = (e) => {
4993
5003
  setContent(e, t, n = 0, o = 0) {
4994
5004
  this._same ? this._h.setContent(e, t, n, o) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, o));
4995
5005
  }
4996
- }, Ii = 300, Hi = 100, Ni = 1e6, Oi = 100, Fi = 50, Wi = w(v((e, t) => {
4997
- const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Ii, endScrollIncrement: l = Hi, style: a = Ie, onMouseDown: c, onThumbDrag: h, onScrollOffset: u, onScroll: d, scaleLimit: f = Ni, scaleFactor: p = Oi, precisionFactor: m = Fi, renderScrollbar: g = _i, ..._ } = e;
5006
+ }, Fi = 300, Wi = 100, Ki = 1e6, Vi = 100, ji = 50, Yi = x(y((e, t) => {
5007
+ const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Fi, endScrollIncrement: l = Wi, style: a = He, onMouseDown: c, onThumbDrag: h, onScrollOffset: u, onScroll: d, scaleLimit: f = Ki, scaleFactor: p = Vi, precisionFactor: m = ji, renderScrollbar: g = wi, ..._ } = e;
4998
5008
  d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
4999
- const v = en(c ?? (() => {}), [c]), [y, b] = P(!1), w = D(0), S = k(() => {
5009
+ const v = tn(c ?? (() => {}), [c]), [y, b] = A(!1), w = P(0), x = L(() => {
5000
5010
  let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
5001
5011
  y && (e = Math.max(e, w.current)), w.current = e;
5002
5012
  const t = 0 !== f && e > f ? p : 1, l = t / m, a = Math.ceil(e / t);
@@ -5018,38 +5028,38 @@ var Ei = (e) => {
5018
5028
  i,
5019
5029
  s,
5020
5030
  l
5021
- ]), C = en((e, t, n) => {
5022
- const o = S.offset;
5023
- Math.abs(e - o) < S.precision && (e = o), u?.(e * S.factor, o, S.viewportSize);
5024
- }, [u, S]), M = en((e, t) => {
5025
- const n = 1 + Math.min(3, t.heldMs / 1e3), o = Math.max(0, S.scaledTotalSize - S.scaledViewportSize), r = Math.min(o, Math.max(0, S.scaledOffset + e * l * n));
5026
- return r !== S.scaledOffset && (u?.(r, S.scaledViewportSize, S.scaledTotalSize), !0);
5031
+ ]), C = tn((e, t, n) => {
5032
+ const o = x.offset;
5033
+ Math.abs(e - o) < x.precision && (e = o), u?.(e * x.factor, o, x.viewportSize);
5034
+ }, [u, x]), M = tn((e, t) => {
5035
+ const n = 1 + Math.min(3, t.heldMs / 1e3), o = Math.max(0, x.scaledTotalSize - x.scaledViewportSize), r = Math.min(o, Math.max(0, x.scaledOffset + e * l * n));
5036
+ return r !== x.scaledOffset && (u?.(r, x.scaledViewportSize, x.scaledTotalSize), !0);
5027
5037
  }, [
5028
- S,
5038
+ x,
5029
5039
  l,
5030
5040
  u
5031
- ]), E = en((e) => {
5041
+ ]), E = tn((e) => {
5032
5042
  b(e.dragging), h?.(e);
5033
- }, [h]), T = x((e) => {}, []), L = x((e) => {
5034
- document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", L), b(!1);
5035
- }, []), A = x((e) => {
5036
- b(!0), v?.(e), document.addEventListener("mousemove", T, { passive: !0 }), document.addEventListener("mouseup", L, { passive: !0 });
5037
- }, [T, L]);
5043
+ }, [h]), T = S((e) => {}, []), k = S((e) => {
5044
+ document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", k), b(!1);
5045
+ }, []), D = S((e) => {
5046
+ b(!0), v?.(e), document.addEventListener("mousemove", T, { passive: !0 }), document.addEventListener("mouseup", k, { passive: !0 });
5047
+ }, [T, k]);
5038
5048
  return g({
5039
5049
  style: a,
5040
5050
  ..._,
5041
- offset: S.offset,
5042
- totalSize: S.totalSize,
5043
- viewportSize: S.viewportSize,
5044
- onMouseDown: A,
5051
+ offset: x.offset,
5052
+ totalSize: x.totalSize,
5053
+ viewportSize: x.viewportSize,
5054
+ onMouseDown: D,
5045
5055
  onScrollOffset: C,
5046
5056
  onThumbEdgeHold: M,
5047
5057
  onThumbDrag: E,
5048
5058
  ref: t
5049
5059
  });
5050
5060
  }));
5051
- Wi.displayName = "VirtualScrollbar";
5052
- var Ki = "_scrollbar-themed_nj3vu_7", Vi = (e) => ({
5061
+ Yi.displayName = "VirtualScrollbar";
5062
+ var Ui = "_scrollbar-themed_nj3vu_7", Xi = (e) => ({
5053
5063
  "--scrollbar-track-color": e.track,
5054
5064
  "--scrollbar-thumb-color": e.thumb,
5055
5065
  "--scrollbar-button-color": e.button || e.thumb,
@@ -5062,44 +5072,44 @@ var Ki = "_scrollbar-themed_nj3vu_7", Vi = (e) => ({
5062
5072
  "--scrollbar-border-width": "2px",
5063
5073
  "--scrollbar-min-thumb-size": "24px"
5064
5074
  });
5065
- var ji = {
5066
- axis: q.oneOf([
5075
+ var qi = {
5076
+ axis: Z.oneOf([
5067
5077
  "both",
5068
5078
  "x",
5069
5079
  "y",
5070
5080
  "none"
5071
5081
  ]),
5072
- className: q.string,
5073
- children: q.element.isRequired,
5074
- draggableOpts: q.shape({
5075
- allowAnyClick: q.bool,
5076
- cancel: q.string,
5077
- children: q.node,
5078
- disabled: q.bool,
5079
- enableUserSelectHack: q.bool,
5080
- offsetParent: "undefined" != typeof Element ? q.instanceOf(Element) : q.any,
5081
- grid: q.arrayOf(q.number),
5082
- handle: q.string,
5083
- nodeRef: q.object,
5084
- onStart: q.func,
5085
- onDrag: q.func,
5086
- onStop: q.func,
5087
- onMouseDown: q.func,
5088
- scale: q.number
5082
+ className: Z.string,
5083
+ children: Z.element.isRequired,
5084
+ draggableOpts: Z.shape({
5085
+ allowAnyClick: Z.bool,
5086
+ cancel: Z.string,
5087
+ children: Z.node,
5088
+ disabled: Z.bool,
5089
+ enableUserSelectHack: Z.bool,
5090
+ offsetParent: "undefined" != typeof Element ? Z.instanceOf(Element) : Z.any,
5091
+ grid: Z.arrayOf(Z.number),
5092
+ handle: Z.string,
5093
+ nodeRef: Z.object,
5094
+ onStart: Z.func,
5095
+ onDrag: Z.func,
5096
+ onStop: Z.func,
5097
+ onMouseDown: Z.func,
5098
+ scale: Z.number
5089
5099
  }),
5090
5100
  height: (...e) => {
5091
5101
  const [t] = e;
5092
- return "both" === t.axis || "y" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5102
+ return "both" === t.axis || "y" === t.axis ? Z.number.isRequired(...e) : Z.number(...e);
5093
5103
  },
5094
- handle: q.oneOfType([q.node, q.func]),
5095
- handleSize: q.arrayOf(q.number),
5096
- lockAspectRatio: q.bool,
5097
- maxConstraints: q.arrayOf(q.number),
5098
- minConstraints: q.arrayOf(q.number),
5099
- onResizeStop: q.func,
5100
- onResizeStart: q.func,
5101
- onResize: q.func,
5102
- resizeHandles: q.arrayOf(q.oneOf([
5104
+ handle: Z.oneOfType([Z.node, Z.func]),
5105
+ handleSize: Z.arrayOf(Z.number),
5106
+ lockAspectRatio: Z.bool,
5107
+ maxConstraints: Z.arrayOf(Z.number),
5108
+ minConstraints: Z.arrayOf(Z.number),
5109
+ onResizeStop: Z.func,
5110
+ onResizeStart: Z.func,
5111
+ onResize: Z.func,
5112
+ resizeHandles: Z.arrayOf(Z.oneOf([
5103
5113
  "s",
5104
5114
  "w",
5105
5115
  "e",
@@ -5109,17 +5119,17 @@ var ji = {
5109
5119
  "se",
5110
5120
  "ne"
5111
5121
  ])),
5112
- transformScale: q.number,
5122
+ transformScale: Z.number,
5113
5123
  width: (...e) => {
5114
5124
  const [t] = e;
5115
- return "both" === t.axis || "x" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5125
+ return "both" === t.axis || "x" === t.axis ? Z.number.isRequired(...e) : Z.number(...e);
5116
5126
  }
5117
- }, Yi = class extends d.Component {
5127
+ }, Zi = class extends f.Component {
5118
5128
  constructor(...e) {
5119
5129
  super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
5120
5130
  }
5121
5131
  static {
5122
- this.propTypes = ji;
5132
+ this.propTypes = qi;
5123
5133
  }
5124
5134
  static {
5125
5135
  this.defaultProps = {
@@ -5180,7 +5190,7 @@ var ji = {
5180
5190
  }
5181
5191
  renderResizeHandle(e, t) {
5182
5192
  const { handle: n } = this.props;
5183
- if (!n) return R("span", {
5193
+ if (!n) return $("span", {
5184
5194
  className: `react-resizable-handle react-resizable-handle-${e}`,
5185
5195
  ref: t
5186
5196
  });
@@ -5189,16 +5199,16 @@ var ji = {
5189
5199
  ref: t,
5190
5200
  ..."string" == typeof n.type ? {} : { handleAxis: e }
5191
5201
  };
5192
- return d.cloneElement(n, o);
5202
+ return f.cloneElement(n, o);
5193
5203
  }
5194
5204
  render() {
5195
- const { children: e, className: t, draggableOpts: n, width: o, height: r, handle: i, handleSize: s, lockAspectRatio: l, axis: a, minConstraints: c, maxConstraints: h, onResize: u, onResizeStop: p, onResizeStart: m, resizeHandles: g, transformScale: v, ...y } = this.props;
5205
+ const { children: e, className: t, draggableOpts: n, width: o, height: r, handle: i, handleSize: s, lockAspectRatio: l, axis: a, minConstraints: c, maxConstraints: h, onResize: u, onResizeStop: d, onResizeStart: m, resizeHandles: g, transformScale: _, ...y } = this.props;
5196
5206
  return b = e, (w = {
5197
5207
  ...y,
5198
5208
  className: (t ? `${t} ` : "") + "react-resizable",
5199
- children: [...d.Children.toArray(e.props.children), ...g.map((e) => {
5200
- const t = this.handleRefs[e] ?? (this.handleRefs[e] = d.createRef());
5201
- return _(X, {
5209
+ children: [...f.Children.toArray(e.props.children), ...g.map((e) => {
5210
+ const t = this.handleRefs[e] ?? (this.handleRefs[e] = f.createRef());
5211
+ return v(q, {
5202
5212
  ...n,
5203
5213
  nodeRef: t,
5204
5214
  key: `resizableHandle-${e}`,
@@ -5210,10 +5220,10 @@ var ji = {
5210
5220
  }).style && b.props.style && (w.style = {
5211
5221
  ...b.props.style,
5212
5222
  ...w.style
5213
- }), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), f.cloneElement(b, w);
5223
+ }), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), p.cloneElement(b, w);
5214
5224
  var b, w;
5215
5225
  }
5216
- }, Ui = class extends d.Component {
5226
+ }, Gi = class extends f.Component {
5217
5227
  constructor(...e) {
5218
5228
  super(...e), this.state = {
5219
5229
  width: this.props.width,
@@ -5227,8 +5237,8 @@ var ji = {
5227
5237
  }
5228
5238
  static {
5229
5239
  this.propTypes = {
5230
- ...ji,
5231
- children: q.element
5240
+ ...qi,
5241
+ children: Z.element
5232
5242
  };
5233
5243
  }
5234
5244
  static getDerivedStateFromProps(e, t) {
@@ -5241,7 +5251,7 @@ var ji = {
5241
5251
  }
5242
5252
  render() {
5243
5253
  const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: h, height: u, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
5244
- return R(Yi, {
5254
+ return $(Zi, {
5245
5255
  axis: c,
5246
5256
  draggableOpts: i,
5247
5257
  handle: e,
@@ -5256,7 +5266,7 @@ var ji = {
5256
5266
  resizeHandles: d,
5257
5267
  transformScale: p,
5258
5268
  width: this.state.width,
5259
- children: R("div", {
5269
+ children: $("div", {
5260
5270
  ...m,
5261
5271
  style: {
5262
5272
  ...f,
@@ -5267,4 +5277,4 @@ var ji = {
5267
5277
  });
5268
5278
  }
5269
5279
  };
5270
- export { ne as ACCUMULATE, Rt as AnimationModeProvider, Bi as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, ue as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Te as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, Le as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, Ae as ConstantActivation, ae as DefaultCommandButtonRegistry, Ee as DefaultCommandCatalogService, ie as DefaultCommandRegistry, dr as DefaultIconService, Zt as DefaultReactNotifier, mr as DynamicIcon, Nr as EDGE_HOLD_INTERVAL_MS, Uo as FloatPanel, Yo as FloatPanelSurface, Wo as FloatPopper, Go as FloatProvider, Et as FloatStackProvider, qo as FloatTooltip, ze as FocusActivation, Ft as FocusKeyNavigation, mo as INPUT_SELECTION_TINT, po as INPUT_SELECTION_VAR, _r as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, Nn as LanguageStateKey, Re as LayerActivation, Er as LocalStorageStore, Pe as ManualActivation, ee as MouseButtonCodes, Ut as NotifierType, Or as PAGE_INITIAL_DELAY_MS, Fr as PAGE_REPEAT_DELAY_MS, Cr as PersistenceStateProvider, pe as QUICK_ACTION_TAG, ro as ReactErrorBoundary, Jt as ReactNotifierProvider, $e as ReactUtils, Yi as Resizable, Ui as ResizableBox, Kt as RoundedTab, ki as SCROLL_ANIMATION_MS, lo as SERIES_COUNT, _o as SXL_THEME_LAYERS, vo as SXL_THEME_LAYER_ORDER, Mi as ScrollPane, mi as ScrollUtils, ii as Scrollbar, Tr as ScrollbarOrientation, ir as SplitPane, er as SplitPaneResizer, wo as THEME_MODE_ATTR, xo as THEME_SURFACE_ATTR, jr as TOUCH_THUMB_ASPECT, Yr as TOUCH_THUMB_MARGIN, Xr as TOUCH_THUMB_MARGIN_CROSS, qr as TOUCH_THUMB_MARGIN_END, Ur as TOUCH_THUMB_MARGIN_START, Vr as TOUCH_THUMB_SIZE, ko as TokenThemeContext, Do as TokenThemeProvider, Ot as ToolTipPlacement, Qr as TouchThumbFrameProvider, oi as TouchThumbHandle, so as UncaughtErrorBoundary, Ti as Viewport, Wi as VirtualScrollbar, gr as WalkingIcon, we as asCommandCatalog, ut as attachWhenReady, bo as buildThemeCSS, Se as chromeToPartial, Kn as composeCaretRect, Xt as createBusyHandle, Me as createCommandCatalogService, ur as createDynamicIconService, qt as createNoopBusyHandle, ge as createResolvedCommand, Co as createThemeScopeClass, Wr as createTrackDrag, Vo as defaultCreateFloatPopupPanel, Hr as defaultCreateScrollEdgeButton, Ir as defaultCreateScrollEndButton, Br as defaultCreateScrollStartButton, Zo as defaultRenderFloatPanel, Ei as defaultRenderScrollCorner, ao as defaultTheme, xe as fetchCatalog, Io as floatThemeScopeProps, an as getDevicePixelRatio, Vi as getScrollbarCssVariables, jn as getTextareaCaretRect, Je as isCaretKey, tt as keyEventCanonicals, et as keyStrokeToCanonical, Yt as lazyComponent, Ce as mergeChrome, ye as parseShortcutString, oe as reduceDefinitions, De as resolveAnchorSource, Po as resolveToken, Ao as resolveTokens, Ki as scrollbarThemedClassName, be as serializeShortcut, In as setEditMode, So as themeSurfaceProps, uo as themeVars, ho as toVars, Gr as touchThumbCornerReserve, Zr as touchThumbCrossInset, Nt as useAnimatedMeasure, zt as useAnimationMode, on as useBoundSyncExternalStore, en as useCallbackRef, de as useCommandButtonEntry, he as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Ct as useCommandFocusRestore, at as useCommandOrder, ke as useCommandRegistry, mt as useCommandResolver, ht as useCommandScope, kt as useCommands, Lt as useContributeCommands, ln as useDevicePixelRatio, Hn as useEditMode, Tt as useFloat, Jo as useFloatStack, Bo as useFloatSurface, hn as useFullscreen, mn as useFullscreenPortal, Un as useGlobalClipboard, eo as useId, no as useImperativeElement, On as useLanguage, jt as useLazyRetry, wn as useMouseDownAndHoldListener, Qt as useNotifier, cn as useOnClickOrFocusAway, sn as useOptionalBoundSyncExternalStore, nn as useOptionalSyncExternalStore, xr as usePersistenceState, Mo as useResolvedThemeMode, bn as useSynchronizedPointerHandler, yn as useTextSelectionDrag, Yn as useTextareaCaretRect, Lo as useTokenThemeContext, ei as useTouchThumbFrame, Xn as useTraceUpdate, Kr as useTrackDrag, Fn as useTranslator };
5280
+ export { oe as ACCUMULATE, $t as AnimationModeProvider, Oi as AxisViewport, Pt as Command, _t as CommandAnchorProvider, pe as CommandButtonEntryLabel, he as CommandButtonRegistryContext, de as CommandButtonRegistryProvider, ne as CommandButtonType, st as CommandChainContext, yt as CommandFallbackContext, xt as CommandFallbackProvider, Ct as CommandFocusProvider, at as CommandOrderContext, ie as CommandRegistry, ke as CommandRegistryContext, it as CommandResolver, mt as CommandResolverContext, De as CommandScope, ht as CommandScopeContext, ft as CommandScopeProvider, ze as ConstantActivation, ce as DefaultCommandButtonRegistry, Te as DefaultCommandCatalogService, se as DefaultCommandRegistry, gr as DefaultIconService, Gt as DefaultReactNotifier, yr as DynamicIcon, Kr as EDGE_HOLD_INTERVAL_MS, Go as FloatPanel, Zo as FloatPanelSurface, Yo as FloatPopper, tr as FloatProvider, Tt as FloatStackProvider, Qo as FloatTooltip, Re as FocusActivation, Wt as FocusKeyNavigation, yo as INPUT_SELECTION_TINT, vo as INPUT_SELECTION_VAR, wr as InMemoryStore, et as KeyBindingDispatcher, ee as KeyCodes, Q as KeyModifiers, On as LanguageStateKey, $e as LayerActivation, Dr as LocalStorageStore, Ae as ManualActivation, te as MouseButtonCodes, Xt as NotifierType, Vr as PAGE_INITIAL_DELAY_MS, jr as PAGE_REPEAT_DELAY_MS, kr as PersistenceStateProvider, me as QUICK_ACTION_TAG, io as ReactErrorBoundary, Qt as ReactNotifierProvider, Be as ReactUtils, Zi as Resizable, Gi as ResizableBox, Vt as RoundedTab, Ai as SCROLL_ANIMATION_MS, uo as SERIES_COUNT, wo as SXL_THEME_LAYERS, xo as SXL_THEME_LAYER_ORDER, Li as ScrollPane, yi as ScrollUtils, ci as Scrollbar, Pr as ScrollbarOrientation, cr as SplitPane, rr as SplitPaneResizer, Mo as THEME_MODE_ATTR, Eo as THEME_SURFACE_ATTR, qr as TOUCH_THUMB_ASPECT, Zr as TOUCH_THUMB_MARGIN, Jr as TOUCH_THUMB_MARGIN_CROSS, Qr as TOUCH_THUMB_MARGIN_END, Gr as TOUCH_THUMB_MARGIN_START, Xr as TOUCH_THUMB_SIZE, Ao as TokenThemeContext, Ro as TokenThemeProvider, Ft as ToolTipPlacement, oi as TouchThumbFrameProvider, li as TouchThumbHandle, ho as UncaughtErrorBoundary, Pi as Viewport, Yi as VirtualScrollbar, br as WalkingIcon, xe as asCommandCatalog, dt as attachWhenReady, Co as buildThemeCSS, Ce as chromeToPartial, Vn as composeCaretRect, qt as createBusyHandle, Ee as createCommandCatalogService, mr as createDynamicIconService, Zt as createNoopBusyHandle, _e as createResolvedCommand, ko as createThemeScopeClass, Yr as createTrackDrag, Xo as defaultCreateFloatPopupPanel, Wr as defaultCreateScrollEdgeButton, Fr as defaultCreateScrollEndButton, Or as defaultCreateScrollStartButton, er as defaultRenderFloatPanel, Di as defaultRenderScrollCorner, fo as defaultTheme, Se as fetchCatalog, Fo as floatThemeScopeProps, cn as getDevicePixelRatio, Xi as getScrollbarCssVariables, Yn as getTextareaCaretRect, Qe as isCaretKey, nt as keyEventCanonicals, tt as keyStrokeToCanonical, Ut as lazyComponent, Me as mergeChrome, be as parseShortcutString, re as reduceDefinitions, Pe as resolveAnchorSource, $o as resolveToken, Bo as resolveTokens, Ui as scrollbarThemedClassName, we as serializeShortcut, Hn as setEditMode, To as themeSurfaceProps, go as themeVars, mo as toVars, ti as touchThumbCornerReserve, ei as touchThumbCrossInset, Ot as useAnimatedMeasure, Rt as useAnimationMode, rn as useBoundSyncExternalStore, tn as useCallbackRef, fe as useCommandButtonEntry, ue as useCommandButtonRegistry, lt as useCommandChain, pt as useCommandElement, vt as useCommandExecute, bt as useCommandFallback, Mt as useCommandFocusRestore, ct as useCommandOrder, Le as useCommandRegistry, gt as useCommandResolver, ut as useCommandScope, Lt as useCommands, Dt as useContributeCommands, an as useDevicePixelRatio, Nn as useEditMode, kt as useFloat, nr as useFloatStack, Oo as useFloatSurface, un as useFullscreen, gn as useFullscreenPortal, Xn as useGlobalClipboard, to as useId, oo as useImperativeElement, Fn as useLanguage, Yt as useLazyRetry, xn as useMouseDownAndHoldListener, en as useNotifier, hn as useOnClickOrFocusAway, ln as useOptionalBoundSyncExternalStore, on as useOptionalSyncExternalStore, Er as usePersistenceState, Lo as useResolvedThemeMode, wn as useSynchronizedPointerHandler, bn as useTextSelectionDrag, Un as useTextareaCaretRect, zo as useTokenThemeContext, ri as useTouchThumbFrame, qn as useTraceUpdate, Ur as useTrackDrag, Wn as useTranslator };