@graphty/compact-mantine 0.8.8 → 0.8.10

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.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { DEFAULT_THEME as lo, CloseButton as co, ActionIcon as Pe, Button as Ko, RangeSlider as Xo, Radio as qo, Slider as ln, Switch as uo, Checkbox as gn, SegmentedControl as mn, Kbd as Zo, Indicator as Jo, ThemeIcon as Qo, Avatar as ei, Pill as ti, Badge as po, Text as De, RingProgress as ni, Progress as cn, Loader as oi, InputClearButton as ii, JsonInput as ri, FileInput as ai, PillsInput as si, TagsInput as li, MultiSelect as ci, Autocomplete as di, PasswordInput as ui, Textarea as pi, Select as xn, NumberInput as $t, TextInput as Bt, Tabs as fi, Stepper as hi, Pagination as gi, NavLink as mi, Burger as xi, Anchor as bi, HoverCard as vi, Popover as yi, Tooltip as wi, Menu as Si, mergeMantineTheme as Ei, createTheme as Ii, Box as h, useDirection as Ti, Group as qe, VisuallyHidden as Te, Paper as zi, ColorSwatch as Ci, ColorPicker as Pi, Divider as bn, Stack as Et, UnstyledButton as Je, Collapse as Ri, Accordion as Lt, Table as rt, useComputedColorScheme as Ai, rem as wt } from "@mantine/core";
1
+ import { DEFAULT_THEME as lo, CloseButton as co, ActionIcon as Pe, Button as Ko, RangeSlider as Xo, Radio as qo, Slider as ln, Switch as uo, Checkbox as gn, SegmentedControl as mn, Kbd as Zo, Indicator as Jo, ThemeIcon as Qo, Avatar as ei, Pill as ti, Badge as po, Text as De, RingProgress as ni, Progress as cn, Loader as oi, InputClearButton as ii, JsonInput as ri, FileInput as ai, PillsInput as si, TagsInput as li, MultiSelect as ci, Autocomplete as di, PasswordInput as ui, Textarea as pi, Select as xn, NumberInput as Bt, TextInput as $t, Tabs as fi, Stepper as hi, Pagination as gi, NavLink as mi, Burger as xi, Anchor as bi, HoverCard as vi, Popover as yi, Tooltip as wi, Drawer as Si, Modal as Ei, Menu as Ii, mergeMantineTheme as Ti, createTheme as Ci, Box as h, useDirection as zi, Group as qe, VisuallyHidden as Te, Paper as Pi, ColorSwatch as Ri, ColorPicker as Ai, Divider as bn, Stack as Et, UnstyledButton as Je, Collapse as Li, Accordion as Lt, Table as rt, useComputedColorScheme as Oi, rem as wt } from "@mantine/core";
2
2
  import { jsx as n, jsxs as S, Fragment as q } from "react/jsx-runtime";
3
- import { useUncontrolled as ae, useIsomorphicEffect as Li, useHover as fo, useMediaQuery as ho } from "@mantine/hooks";
4
- import Ie, { useContext as _e, useMemo as Z, createContext as lt, useCallback as F, useId as ue, useRef as X, isValidElement as go, cloneElement as mo, useEffect as Ee, useState as Oe, forwardRef as Ut, useLayoutEffect as Oi, useImperativeHandle as _i } from "react";
5
- import { createPortal as Hi } from "react-dom";
6
- import { useTable as Ni, functionalUpdate as Ot, tableFeatures as Di, rowSortingFeature as ki, rowSelectionFeature as Gi, globalFilteringFeature as Mi, columnVisibilityFeature as Fi, columnOrderingFeature as Vi, columnFilteringFeature as $i, createSortedRowModel as Bi, createFilteredRowModel as Ui } from "@tanstack/react-table";
7
- import { useVirtualizer as Wi } from "@tanstack/react-virtual";
3
+ import { useUncontrolled as ae, useIsomorphicEffect as _i, useHover as fo, useMediaQuery as ho } from "@mantine/hooks";
4
+ import Ie, { useContext as _e, useMemo as Z, createContext as lt, useCallback as F, useId as ue, useRef as X, isValidElement as go, cloneElement as mo, useEffect as Ee, useState as Oe, forwardRef as Ut, useLayoutEffect as Hi, useImperativeHandle as Ni } from "react";
5
+ import { createPortal as Di } from "react-dom";
6
+ import { useTable as ki, functionalUpdate as Ot, tableFeatures as Gi, rowSortingFeature as Mi, rowSelectionFeature as Fi, globalFilteringFeature as Vi, columnVisibilityFeature as Bi, columnOrderingFeature as $i, columnFilteringFeature as Ui, createSortedRowModel as Wi, createFilteredRowModel as Yi } from "@tanstack/react-table";
7
+ import { useVirtualizer as ji } from "@tanstack/react-virtual";
8
8
  const c = {
9
9
  /** the width of the panel column every row is laid out in */
10
10
  WIDTH: 280,
@@ -214,7 +214,7 @@ const c = {
214
214
  SUCCESS: "var(--mantine-color-green-6)",
215
215
  /** danger (#fa5252) */
216
216
  DANGER: "var(--mantine-color-red-6)"
217
- }, Yi = [
217
+ }, Ki = [
218
218
  "#d5d7da",
219
219
  // 0 - lightest (light mode text)
220
220
  "#a3a8b1",
@@ -235,10 +235,10 @@ const c = {
235
235
  // 8
236
236
  "#0d1117"
237
237
  // 9 - darkest (main background)
238
- ], ji = {
238
+ ], Xi = {
239
239
  ...lo.colors,
240
- dark: Yi
241
- }, Ki = {
240
+ dark: Ki
241
+ }, qi = {
242
242
  compactSize: "sm",
243
243
  sizes: {
244
244
  xs: { "--button-height": "20px", "--button-fz": "10px", "--button-padding-x": "6px" },
@@ -247,7 +247,7 @@ const c = {
247
247
  lg: { "--button-height": "36px", "--button-fz": "15px", "--button-padding-x": "16px" },
248
248
  xl: { "--button-height": "44px", "--button-fz": "17px", "--button-padding-x": "20px" }
249
249
  }
250
- }, Xi = {
250
+ }, Zi = {
251
251
  compactSize: "sm",
252
252
  sizes: {
253
253
  xs: { "--ai-size": "18px" },
@@ -257,7 +257,7 @@ const c = {
257
257
  xl: { "--ai-size": "44px" }
258
258
  }
259
259
  };
260
- function qi(e) {
260
+ function Ji(e) {
261
261
  return e === "light" ? { "--ai-bd": "1px solid var(--ai-color)" } : {};
262
262
  }
263
263
  const xo = {
@@ -270,17 +270,17 @@ const xo = {
270
270
  xl: { "--cb-size": "36px", "--cb-icon-size": "24px" }
271
271
  }
272
272
  };
273
- function B(e, t) {
273
+ function $(e, t) {
274
274
  const i = t == null ? e.compactSize : String(t);
275
275
  return e.sizes[i] ?? e.sizes[e.compactSize];
276
276
  }
277
- const Zi = {
277
+ const Qi = {
278
278
  Button: Ko.extend({
279
279
  defaultProps: {
280
280
  size: "sm"
281
281
  },
282
282
  vars: (e, t) => ({
283
- root: B(Ki, t == null ? void 0 : t.size)
283
+ root: $(qi, t == null ? void 0 : t.size)
284
284
  })
285
285
  }),
286
286
  ActionIcon: Pe.extend({
@@ -290,8 +290,8 @@ const Zi = {
290
290
  },
291
291
  vars: (e, t) => ({
292
292
  root: {
293
- ...B(Xi, t == null ? void 0 : t.size),
294
- ...qi(t == null ? void 0 : t.variant)
293
+ ...$(Zi, t == null ? void 0 : t.size),
294
+ ...Ji(t == null ? void 0 : t.variant)
295
295
  }
296
296
  })
297
297
  }),
@@ -300,10 +300,10 @@ const Zi = {
300
300
  size: "xs"
301
301
  },
302
302
  vars: (e, t) => ({
303
- root: B(xo, t == null ? void 0 : t.size)
303
+ root: $(xo, t == null ? void 0 : t.size)
304
304
  })
305
305
  })
306
- }, Ji = {
306
+ }, er = {
307
307
  compactSize: "sm",
308
308
  sizes: {
309
309
  xs: {
@@ -342,7 +342,7 @@ const Zi = {
342
342
  "--switch-label-font-size": "11px"
343
343
  }
344
344
  }
345
- }, Qi = {
345
+ }, tr = {
346
346
  compactSize: "sm",
347
347
  sizes: {
348
348
  xs: { "--checkbox-size": "12px" },
@@ -351,7 +351,7 @@ const Zi = {
351
351
  lg: { "--checkbox-size": "24px" },
352
352
  xl: { "--checkbox-size": "28px" }
353
353
  }
354
- }, er = {
354
+ }, nr = {
355
355
  compactSize: "sm",
356
356
  sizes: {
357
357
  xs: { "--radio-size": "12px", "--radio-icon-size": "5px" },
@@ -360,7 +360,7 @@ const Zi = {
360
360
  lg: { "--radio-size": "24px", "--radio-icon-size": "10px" },
361
361
  xl: { "--radio-size": "28px", "--radio-icon-size": "12px" }
362
362
  }
363
- }, zn = {
363
+ }, Cn = {
364
364
  compactSize: "sm",
365
365
  sizes: {
366
366
  xs: { "--slider-size": "2px", "--slider-thumb-size": "8px" },
@@ -369,7 +369,7 @@ const Zi = {
369
369
  lg: { "--slider-size": "8px", "--slider-thumb-size": "20px" },
370
370
  xl: { "--slider-size": "10px", "--slider-thumb-size": "24px" }
371
371
  }
372
- }, tr = {
372
+ }, or = {
373
373
  compactSize: "sm",
374
374
  sizes: {
375
375
  xs: { "--sc-font-size": "9px", "--sc-padding": "2px 6px" },
@@ -378,27 +378,27 @@ const Zi = {
378
378
  lg: { "--sc-font-size": "14px", "--sc-padding": "8px 12px" },
379
379
  xl: { "--sc-font-size": "16px", "--sc-padding": "10px 16px" }
380
380
  }
381
- }, nr = {
381
+ }, ir = {
382
382
  backgroundColor: "transparent"
383
- }, or = {
383
+ }, rr = {
384
384
  backgroundColor: "light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-6))"
385
385
  }, Kt = {
386
386
  fontSize: 11
387
- }, Cn = {
387
+ }, zn = {
388
388
  fontSize: 10,
389
389
  marginTop: 2
390
- }, ir = {
390
+ }, ar = {
391
391
  SegmentedControl: mn.extend({
392
392
  defaultProps: {
393
393
  size: "sm",
394
394
  withItemsBorders: !1
395
395
  },
396
396
  vars: (e, t) => ({
397
- root: B(tr, t == null ? void 0 : t.size)
397
+ root: $(or, t == null ? void 0 : t.size)
398
398
  }),
399
399
  styles: {
400
- root: nr,
401
- indicator: or
400
+ root: ir,
401
+ indicator: rr
402
402
  }
403
403
  }),
404
404
  Checkbox: gn.extend({
@@ -406,7 +406,7 @@ const Zi = {
406
406
  size: "sm"
407
407
  },
408
408
  vars: (e, t) => ({
409
- root: B(Qi, t == null ? void 0 : t.size)
409
+ root: $(tr, t == null ? void 0 : t.size)
410
410
  }),
411
411
  styles: {
412
412
  label: Kt
@@ -417,7 +417,7 @@ const Zi = {
417
417
  size: "sm"
418
418
  },
419
419
  vars: (e, t) => ({
420
- root: B(Ji, t == null ? void 0 : t.size)
420
+ root: $(er, t == null ? void 0 : t.size)
421
421
  }),
422
422
  styles: {
423
423
  label: Kt
@@ -428,10 +428,10 @@ const Zi = {
428
428
  size: "sm"
429
429
  },
430
430
  vars: (e, t) => ({
431
- root: B(zn, t == null ? void 0 : t.size)
431
+ root: $(Cn, t == null ? void 0 : t.size)
432
432
  }),
433
433
  styles: {
434
- markLabel: Cn
434
+ markLabel: zn
435
435
  }
436
436
  }),
437
437
  Radio: qo.extend({
@@ -439,7 +439,7 @@ const Zi = {
439
439
  size: "sm"
440
440
  },
441
441
  vars: (e, t) => ({
442
- root: B(er, t == null ? void 0 : t.size)
442
+ root: $(nr, t == null ? void 0 : t.size)
443
443
  }),
444
444
  styles: {
445
445
  label: Kt
@@ -450,13 +450,13 @@ const Zi = {
450
450
  size: "sm"
451
451
  },
452
452
  vars: (e, t) => ({
453
- root: B(zn, t == null ? void 0 : t.size)
453
+ root: $(Cn, t == null ? void 0 : t.size)
454
454
  }),
455
455
  styles: {
456
- markLabel: Cn
456
+ markLabel: zn
457
457
  }
458
458
  })
459
- }, rr = {
459
+ }, sr = {
460
460
  compactSize: "sm",
461
461
  sizes: {
462
462
  xs: { "--badge-height": "12px", "--badge-fz": "8px", "--badge-padding-x": "3px" },
@@ -465,7 +465,7 @@ const Zi = {
465
465
  lg: { "--badge-height": "22px", "--badge-fz": "13px", "--badge-padding-x": "8px" },
466
466
  xl: { "--badge-height": "26px", "--badge-fz": "15px", "--badge-padding-x": "10px" }
467
467
  }
468
- }, ar = {
468
+ }, lr = {
469
469
  compactSize: "sm",
470
470
  sizes: {
471
471
  xs: { "--avatar-size": "18px" },
@@ -474,7 +474,7 @@ const Zi = {
474
474
  lg: { "--avatar-size": "36px" },
475
475
  xl: { "--avatar-size": "44px" }
476
476
  }
477
- }, sr = {
477
+ }, cr = {
478
478
  compactSize: "sm",
479
479
  sizes: {
480
480
  xs: { "--ti-size": "18px" },
@@ -483,7 +483,7 @@ const Zi = {
483
483
  lg: { "--ti-size": "36px" },
484
484
  xl: { "--ti-size": "44px" }
485
485
  }
486
- }, lr = {
486
+ }, dr = {
487
487
  compactSize: "sm",
488
488
  sizes: {
489
489
  xs: { "--indicator-size": "6px" },
@@ -492,7 +492,7 @@ const Zi = {
492
492
  lg: { "--indicator-size": "12px" },
493
493
  xl: { "--indicator-size": "14px" }
494
494
  }
495
- }, cr = {
495
+ }, ur = {
496
496
  compactSize: "sm",
497
497
  sizes: {
498
498
  xs: { "--kbd-fz": "9px", "--kbd-padding": "1px 3px" },
@@ -501,7 +501,7 @@ const Zi = {
501
501
  lg: { "--kbd-fz": "14px", "--kbd-padding": "4px 8px" },
502
502
  xl: { "--kbd-fz": "16px", "--kbd-padding": "5px 10px" }
503
503
  }
504
- }, dr = {
504
+ }, pr = {
505
505
  compactSize: "sm",
506
506
  sizes: {
507
507
  xs: { "--pill-height": "14px", "--pill-fz": "9px" },
@@ -510,7 +510,7 @@ const Zi = {
510
510
  lg: { "--pill-height": "24px", "--pill-fz": "14px" },
511
511
  xl: { "--pill-height": "28px", "--pill-fz": "16px" }
512
512
  }
513
- }, ur = {
513
+ }, fr = {
514
514
  Text: De.extend({
515
515
  // Text does NOT set a default size or vars - it uses the global fontSizes
516
516
  // from the theme (compactFontSizes) which are already set correctly.
@@ -521,7 +521,7 @@ const Zi = {
521
521
  size: "sm"
522
522
  },
523
523
  vars: (e, t) => ({
524
- root: B(rr, t == null ? void 0 : t.size)
524
+ root: $(sr, t == null ? void 0 : t.size)
525
525
  })
526
526
  }),
527
527
  Pill: ti.extend({
@@ -529,7 +529,7 @@ const Zi = {
529
529
  size: "sm"
530
530
  },
531
531
  vars: (e, t) => ({
532
- root: B(dr, t == null ? void 0 : t.size)
532
+ root: $(pr, t == null ? void 0 : t.size)
533
533
  })
534
534
  }),
535
535
  Avatar: ei.extend({
@@ -537,7 +537,7 @@ const Zi = {
537
537
  size: "sm"
538
538
  },
539
539
  vars: (e, t) => ({
540
- root: B(ar, t == null ? void 0 : t.size)
540
+ root: $(lr, t == null ? void 0 : t.size)
541
541
  })
542
542
  }),
543
543
  ThemeIcon: Qo.extend({
@@ -545,7 +545,7 @@ const Zi = {
545
545
  size: "sm"
546
546
  },
547
547
  vars: (e, t) => ({
548
- root: B(sr, t == null ? void 0 : t.size)
548
+ root: $(cr, t == null ? void 0 : t.size)
549
549
  })
550
550
  }),
551
551
  Indicator: Jo.extend({
@@ -553,7 +553,7 @@ const Zi = {
553
553
  size: "sm"
554
554
  },
555
555
  vars: (e, t) => ({
556
- root: B(lr, t == null ? void 0 : t.size)
556
+ root: $(dr, t == null ? void 0 : t.size)
557
557
  })
558
558
  }),
559
559
  Kbd: Zo.extend({
@@ -561,10 +561,10 @@ const Zi = {
561
561
  size: "sm"
562
562
  },
563
563
  vars: (e, t) => ({
564
- root: B(cr, t == null ? void 0 : t.size)
564
+ root: $(ur, t == null ? void 0 : t.size)
565
565
  })
566
566
  })
567
- }, pr = {
567
+ }, hr = {
568
568
  compactSize: "sm",
569
569
  sizes: {
570
570
  xs: { "--loader-size": "14px" },
@@ -573,7 +573,7 @@ const Zi = {
573
573
  lg: { "--loader-size": "30px" },
574
574
  xl: { "--loader-size": "38px" }
575
575
  }
576
- }, fr = {
576
+ }, gr = {
577
577
  compactSize: "sm",
578
578
  sizes: {
579
579
  xs: { "--progress-size": "2px" },
@@ -582,17 +582,17 @@ const Zi = {
582
582
  lg: { "--progress-size": "8px" },
583
583
  xl: { "--progress-size": "10px" }
584
584
  }
585
- }, hr = {
585
+ }, mr = {
586
586
  label: {
587
587
  fontSize: 9
588
588
  }
589
- }, gr = {
589
+ }, xr = {
590
590
  Loader: oi.extend({
591
591
  defaultProps: {
592
592
  size: "sm"
593
593
  },
594
594
  vars: (e, t) => ({
595
- root: B(pr, t == null ? void 0 : t.size)
595
+ root: $(hr, t == null ? void 0 : t.size)
596
596
  })
597
597
  }),
598
598
  Progress: cn.extend({
@@ -600,9 +600,9 @@ const Zi = {
600
600
  size: "sm"
601
601
  },
602
602
  vars: (e, t) => ({
603
- root: B(fr, t == null ? void 0 : t.size)
603
+ root: $(gr, t == null ? void 0 : t.size)
604
604
  }),
605
- styles: hr
605
+ styles: mr
606
606
  }),
607
607
  // Note: RingProgress uses numeric size directly in SVG calculations,
608
608
  // so we can't use CSS variables or string size prop.
@@ -611,7 +611,7 @@ const Zi = {
611
611
  // No defaultProps - RingProgress requires numeric size
612
612
  // Use size={48} in your components for compact sizing
613
613
  })
614
- }, Pn = 1e3, Xe = 1100, mr = 8, xr = 4, bo = "light-dark(var(--mantine-primary-color-filled), var(--mantine-primary-color-5))", Wt = {
614
+ }, Pn = 1e3, Xe = 1100, br = 8, vr = 4, bo = "light-dark(var(--mantine-primary-color-filled), var(--mantine-primary-color-5))", Wt = {
615
615
  "--input-height": "24px",
616
616
  "--input-size": "24px",
617
617
  // For components that use this variable
@@ -698,7 +698,7 @@ const Zi = {
698
698
  margin: 0
699
699
  }
700
700
  };
701
- function Ce(e, t) {
701
+ function ze(e, t) {
702
702
  return {
703
703
  ...Wt,
704
704
  "--input-height": e,
@@ -715,12 +715,12 @@ function Ht(e) {
715
715
  const St = {
716
716
  compactSize: "sm",
717
717
  sizes: {
718
- xs: Ce("20px", "10px"),
718
+ xs: ze("20px", "10px"),
719
719
  // The shipped compact object itself, not a copy of its numbers.
720
720
  sm: Wt,
721
- md: Ce("30px", "13px"),
722
- lg: Ce("36px", "15px"),
723
- xl: Ce("44px", "17px")
721
+ md: ze("30px", "13px"),
722
+ lg: ze("36px", "15px"),
723
+ xl: ze("44px", "17px")
724
724
  }
725
725
  }, Nt = {
726
726
  compactSize: "sm",
@@ -731,16 +731,16 @@ const St = {
731
731
  lg: Ht("15px"),
732
732
  xl: Ht("17px")
733
733
  }
734
- }, br = {
734
+ }, yr = {
735
735
  compactSize: "sm",
736
736
  sizes: {
737
- xs: { ...Ce("20px", "10px"), "--input-right-section-width": "20px" },
737
+ xs: { ...ze("20px", "10px"), "--input-right-section-width": "20px" },
738
738
  sm: { ...Wt, "--input-right-section-width": "24px" },
739
- md: { ...Ce("30px", "13px"), "--input-right-section-width": "30px" },
740
- lg: { ...Ce("36px", "15px"), "--input-right-section-width": "36px" },
741
- xl: { ...Ce("44px", "17px"), "--input-right-section-width": "44px" }
739
+ md: { ...ze("30px", "13px"), "--input-right-section-width": "30px" },
740
+ lg: { ...ze("36px", "15px"), "--input-right-section-width": "36px" },
741
+ xl: { ...ze("44px", "17px"), "--input-right-section-width": "44px" }
742
742
  }
743
- }, vr = {
743
+ }, wr = {
744
744
  compactSize: "sm",
745
745
  sizes: {
746
746
  xs: { "--ni-chevron-size": "8px" },
@@ -749,36 +749,36 @@ const St = {
749
749
  lg: { "--ni-chevron-size": "14px" },
750
750
  xl: { "--ni-chevron-size": "16px" }
751
751
  }
752
- }, yr = {
752
+ }, Sr = {
753
753
  compactSize: "sm",
754
754
  sizes: {
755
- xs: { ...Ce("20px", "10px"), "--combobox-chevron-size": "10px" },
755
+ xs: { ...ze("20px", "10px"), "--combobox-chevron-size": "10px" },
756
756
  sm: { ...Wt, "--combobox-chevron-size": "12px" },
757
- md: { ...Ce("30px", "13px"), "--combobox-chevron-size": "14px" },
758
- lg: { ...Ce("36px", "15px"), "--combobox-chevron-size": "16px" },
759
- xl: { ...Ce("44px", "17px"), "--combobox-chevron-size": "18px" }
757
+ md: { ...ze("30px", "13px"), "--combobox-chevron-size": "14px" },
758
+ lg: { ...ze("36px", "15px"), "--combobox-chevron-size": "16px" },
759
+ xl: { ...ze("44px", "17px"), "--combobox-chevron-size": "18px" }
760
760
  }
761
- }, wr = {
762
- TextInput: Bt.extend({
761
+ }, Er = {
762
+ TextInput: $t.extend({
763
763
  defaultProps: {
764
764
  size: "sm",
765
765
  variant: "filled"
766
766
  },
767
767
  vars: (e, t) => ({
768
768
  root: {},
769
- wrapper: B(St, t == null ? void 0 : t.size)
769
+ wrapper: $(St, t == null ? void 0 : t.size)
770
770
  }),
771
771
  styles: ht
772
772
  }),
773
- NumberInput: $t.extend({
773
+ NumberInput: Bt.extend({
774
774
  defaultProps: {
775
775
  size: "sm",
776
776
  variant: "filled"
777
777
  },
778
778
  vars: (e, t) => ({
779
779
  root: {},
780
- wrapper: B(br, t == null ? void 0 : t.size),
781
- controls: B(vr, t == null ? void 0 : t.size)
780
+ wrapper: $(yr, t == null ? void 0 : t.size),
781
+ controls: $(wr, t == null ? void 0 : t.size)
782
782
  }),
783
783
  styles: {
784
784
  label: gt,
@@ -796,7 +796,7 @@ const St = {
796
796
  },
797
797
  vars: (e, t) => ({
798
798
  root: {},
799
- wrapper: B(St, t == null ? void 0 : t.size)
799
+ wrapper: $(St, t == null ? void 0 : t.size)
800
800
  }),
801
801
  styles: {
802
802
  ...ht,
@@ -810,7 +810,7 @@ const St = {
810
810
  },
811
811
  vars: (e, t) => ({
812
812
  root: {},
813
- wrapper: B(Nt, t == null ? void 0 : t.size)
813
+ wrapper: $(Nt, t == null ? void 0 : t.size)
814
814
  }),
815
815
  styles: Rn
816
816
  }),
@@ -821,7 +821,7 @@ const St = {
821
821
  },
822
822
  vars: (e, t) => ({
823
823
  root: {},
824
- wrapper: B(St, t == null ? void 0 : t.size)
824
+ wrapper: $(St, t == null ? void 0 : t.size)
825
825
  }),
826
826
  styles: {
827
827
  ...ht,
@@ -841,7 +841,7 @@ const St = {
841
841
  },
842
842
  vars: (e, t) => ({
843
843
  root: {},
844
- wrapper: B(St, t == null ? void 0 : t.size)
844
+ wrapper: $(St, t == null ? void 0 : t.size)
845
845
  }),
846
846
  styles: {
847
847
  ...ht,
@@ -856,7 +856,7 @@ const St = {
856
856
  },
857
857
  vars: (e, t) => ({
858
858
  root: {},
859
- wrapper: B(yr, t == null ? void 0 : t.size)
859
+ wrapper: $(Sr, t == null ? void 0 : t.size)
860
860
  }),
861
861
  styles: {
862
862
  label: gt,
@@ -876,7 +876,7 @@ const St = {
876
876
  },
877
877
  vars: (e, t) => ({
878
878
  root: {},
879
- wrapper: B(Nt, t == null ? void 0 : t.size)
879
+ wrapper: $(Nt, t == null ? void 0 : t.size)
880
880
  }),
881
881
  styles: {
882
882
  label: gt,
@@ -895,7 +895,7 @@ const St = {
895
895
  },
896
896
  vars: (e, t) => ({
897
897
  root: {},
898
- wrapper: B(Nt, t == null ? void 0 : t.size)
898
+ wrapper: $(Nt, t == null ? void 0 : t.size)
899
899
  }),
900
900
  styles: {
901
901
  label: gt,
@@ -909,7 +909,7 @@ const St = {
909
909
  },
910
910
  vars: (e, t) => ({
911
911
  root: {},
912
- wrapper: B(St, t == null ? void 0 : t.size)
912
+ wrapper: $(St, t == null ? void 0 : t.size)
913
913
  }),
914
914
  styles: ht
915
915
  }),
@@ -920,7 +920,7 @@ const St = {
920
920
  },
921
921
  vars: (e, t) => ({
922
922
  root: {},
923
- wrapper: B(Nt, t == null ? void 0 : t.size)
923
+ wrapper: $(Nt, t == null ? void 0 : t.size)
924
924
  }),
925
925
  styles: Rn
926
926
  }),
@@ -933,10 +933,10 @@ const St = {
933
933
  size: "xs"
934
934
  },
935
935
  vars: (e, t) => ({
936
- root: B(xo, t == null ? void 0 : t.size)
936
+ root: $(xo, t == null ? void 0 : t.size)
937
937
  })
938
938
  })
939
- }, Sr = {
939
+ }, Ir = {
940
940
  compactSize: "sm",
941
941
  sizes: {
942
942
  xs: { "--pagination-control-size": "20px", "--pagination-control-fz": "10px" },
@@ -945,7 +945,7 @@ const St = {
945
945
  lg: { "--pagination-control-size": "36px", "--pagination-control-fz": "15px" },
946
946
  xl: { "--pagination-control-size": "44px", "--pagination-control-fz": "17px" }
947
947
  }
948
- }, Er = {
948
+ }, Tr = {
949
949
  compactSize: "sm",
950
950
  sizes: {
951
951
  xs: { "--stepper-icon-size": "20px", "--stepper-fz": "10px", "--stepper-spacing": "6px" },
@@ -954,7 +954,7 @@ const St = {
954
954
  lg: { "--stepper-icon-size": "36px", "--stepper-fz": "15px", "--stepper-spacing": "16px" },
955
955
  xl: { "--stepper-icon-size": "44px", "--stepper-fz": "17px", "--stepper-spacing": "20px" }
956
956
  }
957
- }, Ir = {
957
+ }, Cr = {
958
958
  compactSize: "sm",
959
959
  sizes: {
960
960
  xs: { "--burger-size": "14px", "--burger-line-size": "2px" },
@@ -963,11 +963,11 @@ const St = {
963
963
  lg: { "--burger-size": "30px", "--burger-line-size": "3px" },
964
964
  xl: { "--burger-size": "38px", "--burger-line-size": "4px" }
965
965
  }
966
- }, Tr = {
966
+ }, zr = {
967
967
  root: {
968
968
  fontSize: 11
969
969
  }
970
- }, zr = {
970
+ }, Pr = {
971
971
  root: {
972
972
  fontSize: 11,
973
973
  minHeight: 28
@@ -975,36 +975,36 @@ const St = {
975
975
  label: {
976
976
  fontSize: 11
977
977
  }
978
- }, Cr = {
978
+ }, Rr = {
979
979
  tab: {
980
980
  fontSize: 11,
981
981
  padding: "6px 10px"
982
982
  }
983
- }, Pr = {
983
+ }, Ar = {
984
984
  Anchor: bi.extend({
985
985
  defaultProps: {
986
986
  size: "sm"
987
987
  },
988
- styles: Tr
988
+ styles: zr
989
989
  }),
990
990
  Burger: xi.extend({
991
991
  defaultProps: {
992
992
  size: "sm"
993
993
  },
994
994
  vars: (e, t) => ({
995
- root: B(Ir, t == null ? void 0 : t.size)
995
+ root: $(Cr, t == null ? void 0 : t.size)
996
996
  })
997
997
  }),
998
998
  NavLink: mi.extend({
999
999
  // NavLink does not have a size prop, only styles for compact appearance
1000
- styles: zr
1000
+ styles: Pr
1001
1001
  }),
1002
1002
  Pagination: gi.extend({
1003
1003
  defaultProps: {
1004
1004
  size: "sm"
1005
1005
  },
1006
1006
  vars: (e, t) => ({
1007
- root: B(Sr, t == null ? void 0 : t.size)
1007
+ root: $(Ir, t == null ? void 0 : t.size)
1008
1008
  })
1009
1009
  }),
1010
1010
  Stepper: hi.extend({
@@ -1012,79 +1012,95 @@ const St = {
1012
1012
  size: "sm"
1013
1013
  },
1014
1014
  vars: (e, t) => ({
1015
- root: B(Er, t == null ? void 0 : t.size)
1015
+ root: $(Tr, t == null ? void 0 : t.size)
1016
1016
  })
1017
1017
  }),
1018
1018
  Tabs: fi.extend({
1019
1019
  // Tabs does not have a size prop, only styles for compact appearance
1020
- styles: Cr
1020
+ styles: Rr
1021
1021
  })
1022
- }, Rr = {
1022
+ }, Lr = {
1023
1023
  "--menu-item-fz": "11px"
1024
- }, Ar = {
1024
+ }, Or = {
1025
1025
  tooltip: {
1026
1026
  fontSize: 11,
1027
1027
  padding: "4px 8px"
1028
1028
  }
1029
- }, Lr = {
1029
+ }, _r = {
1030
1030
  dropdown: {
1031
1031
  padding: 8
1032
1032
  }
1033
- }, Or = {
1033
+ }, Hr = {
1034
1034
  dropdown: {
1035
1035
  padding: 8
1036
1036
  }
1037
- }, _r = {
1038
- Menu: Si.extend({
1037
+ }, Nr = {
1038
+ Menu: Ii.extend({
1039
1039
  defaultProps: {
1040
- zIndex: Xe
1040
+ zIndex: Xe,
1041
+ // Mantine's placeholder is a role-less focusable div inside role="menu", which
1042
+ // a menu may not own (axe: aria-required-children). Without it, focus lands on
1043
+ // the first item on open, as the WAI-ARIA menu pattern asks.
1044
+ withInitialFocusPlaceholder: !1
1041
1045
  },
1042
1046
  vars: () => ({
1043
- dropdown: Rr
1047
+ dropdown: Lr
1044
1048
  })
1045
1049
  }),
1050
+ // Mantine's close button is an icon with no text and no label, so it has no
1051
+ // accessible name (axe: button-name). A caller's own closeButtonProps still win.
1052
+ Modal: Ei.extend({
1053
+ defaultProps: {
1054
+ closeButtonProps: { "aria-label": "Close" }
1055
+ }
1056
+ }),
1057
+ Drawer: Si.extend({
1058
+ defaultProps: {
1059
+ closeButtonProps: { "aria-label": "Close" }
1060
+ }
1061
+ }),
1046
1062
  Tooltip: wi.extend({
1047
1063
  defaultProps: {
1048
1064
  zIndex: Xe
1049
1065
  },
1050
- styles: Ar
1066
+ styles: Or
1051
1067
  }),
1052
1068
  Popover: yi.extend({
1053
1069
  defaultProps: {
1054
1070
  zIndex: Xe
1055
1071
  },
1056
- styles: Lr
1072
+ styles: _r
1057
1073
  }),
1058
1074
  HoverCard: vi.extend({
1059
1075
  defaultProps: {
1060
1076
  zIndex: Xe
1061
1077
  },
1062
- styles: Or
1078
+ styles: Hr
1063
1079
  })
1064
- }, Hr = {
1080
+ }, Dr = {
1065
1081
  xs: "10px",
1066
1082
  sm: "11px",
1067
1083
  // Our compact default
1068
1084
  md: "13px",
1069
1085
  lg: "14px",
1070
1086
  xl: "16px"
1071
- }, Nr = {
1087
+ }, kr = {
1072
1088
  xs: "4px",
1073
1089
  sm: "6px",
1074
1090
  md: "8px",
1075
1091
  lg: "12px",
1076
1092
  xl: "16px"
1077
- }, Dr = {
1093
+ }, Gr = {
1078
1094
  xs: "2px",
1079
1095
  sm: "4px",
1080
1096
  md: "6px",
1081
1097
  lg: "8px",
1082
1098
  xl: "12px"
1083
- }, kr = Ii({
1084
- colors: ji,
1085
- fontSizes: Hr,
1086
- spacing: Nr,
1087
- radius: Dr,
1099
+ }, Mr = Ci({
1100
+ colors: Xi,
1101
+ fontSizes: Dr,
1102
+ spacing: kr,
1103
+ radius: Gr,
1088
1104
  // Keyboard focus is always visible; pointer focus is not. `auto` resolves to
1089
1105
  // Mantine's `:focus-visible` rule, so a mouse click on a control leaves the
1090
1106
  // dense surface unmarked while Tab paints a 2px ring -- WCAG 2.4.7 without
@@ -1100,15 +1116,15 @@ const St = {
1100
1116
  // Spread all component extensions into the theme
1101
1117
  // Each extension object provides compact size support for a category of components
1102
1118
  components: {
1103
- ...wr,
1104
- ...Zi,
1105
- ...ir,
1106
- ...ur,
1107
- ...gr,
1108
- ...Pr,
1109
- ..._r
1119
+ ...Er,
1120
+ ...Qi,
1121
+ ...ar,
1122
+ ...fr,
1123
+ ...xr,
1124
+ ...Ar,
1125
+ ...Nr
1110
1126
  }
1111
- }), Ol = Ei(lo, kr), Gr = [
1127
+ }), Hl = Ti(lo, Mr), Fr = [
1112
1128
  "#5B8FF9FF",
1113
1129
  "#FF6B6BFF",
1114
1130
  "#61D095FF",
@@ -1119,7 +1135,7 @@ const St = {
1119
1135
  "#61D09580",
1120
1136
  "#F7B73180",
1121
1137
  "#9B59B680"
1122
- ], qt = "#888888", Mr = {
1138
+ ], qt = "#888888", Vr = {
1123
1139
  mixed: "Mixed",
1124
1140
  fieldBound: "Bound to a data attribute",
1125
1141
  fieldPending: "Set but not yet applied",
@@ -1175,11 +1191,11 @@ const St = {
1175
1191
  return `${e}th`;
1176
1192
  }
1177
1193
  }
1178
- }, Fr = "en", dn = lt(Mr), un = lt(void 0);
1179
- function Vr(e) {
1180
- return e !== void 0 && e !== "" ? e : typeof document < "u" && document.documentElement.lang !== "" ? document.documentElement.lang : typeof navigator < "u" && navigator.language !== "" ? navigator.language : Fr;
1194
+ }, Br = "en", dn = lt(Vr), un = lt(void 0);
1195
+ function $r(e) {
1196
+ return e !== void 0 && e !== "" ? e : typeof document < "u" && document.documentElement.lang !== "" ? document.documentElement.lang : typeof navigator < "u" && navigator.language !== "" ? navigator.language : Br;
1181
1197
  }
1182
- function _l({ labels: e, locale: t, children: i }) {
1198
+ function Nl({ labels: e, locale: t, children: i }) {
1183
1199
  const o = _e(dn), r = _e(un), a = Z(() => ({ ...o, ...e }), [o, e]), s = t ?? r;
1184
1200
  return /* @__PURE__ */ n(un.Provider, { value: s, children: /* @__PURE__ */ n(dn.Provider, { value: a, children: i }) });
1185
1201
  }
@@ -1188,26 +1204,26 @@ function fe() {
1188
1204
  }
1189
1205
  function ct() {
1190
1206
  const e = _e(un);
1191
- return Vr(e);
1207
+ return $r(e);
1192
1208
  }
1193
- const $r = 1234.5, Br = "9876543210", Ur = 9876543210, Wr = /* @__PURE__ */ new Set([" ", " ", " ", " ", "'", "’"]), Yr = "−", jr = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iu, An = /* @__PURE__ */ new Map();
1194
- function Kr(e) {
1209
+ const Ur = 1234.5, Wr = "9876543210", Yr = 9876543210, jr = /* @__PURE__ */ new Set([" ", " ", " ", " ", "'", "’"]), Kr = "−", Xr = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iu, An = /* @__PURE__ */ new Map();
1210
+ function qr(e) {
1195
1211
  var u, d;
1196
1212
  const t = An.get(e);
1197
1213
  if (t !== void 0)
1198
1214
  return t;
1199
- const i = new Intl.NumberFormat(e).formatToParts($r), o = ((u = i.find((f) => f.type === "decimal")) == null ? void 0 : u.value) ?? ".", r = ((d = i.find((f) => f.type === "group")) == null ? void 0 : d.value) ?? "", a = /* @__PURE__ */ new Map();
1215
+ const i = new Intl.NumberFormat(e).formatToParts(Ur), o = ((u = i.find((f) => f.type === "decimal")) == null ? void 0 : u.value) ?? ".", r = ((d = i.find((f) => f.type === "group")) == null ? void 0 : d.value) ?? "", a = /* @__PURE__ */ new Map();
1200
1216
  for (const f of "0123456789")
1201
1217
  a.set(f, f);
1202
- const s = new Intl.NumberFormat(e, { useGrouping: !1 }).format(Ur);
1218
+ const s = new Intl.NumberFormat(e, { useGrouping: !1 }).format(Yr);
1203
1219
  Array.from(s).forEach((f, g) => {
1204
- a.set(f, Br[g]);
1220
+ a.set(f, Wr[g]);
1205
1221
  });
1206
1222
  const p = { decimal: o, digits: a, group: r };
1207
1223
  return An.set(e, p), p;
1208
1224
  }
1209
- function Xr(e, t) {
1210
- const i = Kr(t);
1225
+ function Zr(e, t) {
1226
+ const i = qr(t);
1211
1227
  let o = "";
1212
1228
  for (const a of e.trim()) {
1213
1229
  const s = i.digits.get(a);
@@ -1219,8 +1235,8 @@ function Xr(e, t) {
1219
1235
  o += ".";
1220
1236
  continue;
1221
1237
  }
1222
- if (!(a === i.group || Wr.has(a))) {
1223
- if (a === "-" || a === Yr) {
1238
+ if (!(a === i.group || jr.has(a))) {
1239
+ if (a === "-" || a === Kr) {
1224
1240
  o += "-";
1225
1241
  continue;
1226
1242
  }
@@ -1235,29 +1251,29 @@ function Xr(e, t) {
1235
1251
  break;
1236
1252
  }
1237
1253
  }
1238
- const r = jr.exec(o);
1254
+ const r = Xr.exec(o);
1239
1255
  return r === null ? Number.NaN : Number(r[0]);
1240
1256
  }
1241
1257
  function bt(e) {
1242
1258
  const t = ct(), i = JSON.stringify(e ?? {});
1243
1259
  return Z(() => new Intl.NumberFormat(t, e), [t, i]);
1244
1260
  }
1245
- function qr() {
1261
+ function Jr() {
1246
1262
  const e = ct(), t = fe(), i = bt(), o = Z(() => new Intl.PluralRules(e, { type: "ordinal" }), [e]);
1247
1263
  return F(
1248
1264
  (r) => t.ordinal(i.format(r), o.select(r)),
1249
1265
  [t, i, o]
1250
1266
  );
1251
1267
  }
1252
- function Zr(e) {
1268
+ function Qr(e) {
1253
1269
  const t = ct(), i = JSON.stringify(e ?? {});
1254
1270
  return Z(() => new Intl.Collator(t, e), [t, i]);
1255
1271
  }
1256
1272
  function yo() {
1257
1273
  const e = ct();
1258
- return F((t) => Xr(t, e), [e]);
1274
+ return F((t) => Zr(t, e), [e]);
1259
1275
  }
1260
- const Jr = [
1276
+ const ea = [
1261
1277
  "sizeSmallest",
1262
1278
  "sizeLargest",
1263
1279
  "width",
@@ -1266,7 +1282,7 @@ const Jr = [
1266
1282
  "scaleSqrt",
1267
1283
  "scaleLinear",
1268
1284
  "scaleLog"
1269
- ], Qr = ["N", "E", "W", "D", "K"], Hl = [
1285
+ ], ta = ["N", "E", "W", "D", "K"], Dl = [
1270
1286
  "chevronDown",
1271
1287
  "chevronRight",
1272
1288
  "chevronLeft",
@@ -1290,29 +1306,29 @@ const Jr = [
1290
1306
  strokeWidth: 1.5,
1291
1307
  strokeLinecap: "round",
1292
1308
  strokeLinejoin: "round"
1293
- }, $e = {
1309
+ }, Be = {
1294
1310
  fill: "currentColor",
1295
1311
  stroke: "none"
1296
- }, ea = {
1312
+ }, na = {
1297
1313
  sizeSmallest: (e) => /* @__PURE__ */ S(q, { children: [
1298
- /* @__PURE__ */ n("circle", { cx: "5", cy: "11", r: "2.5", ...e ? $e : {} }),
1299
- /* @__PURE__ */ n("circle", { cx: "10.5", cy: "6.5", r: "4", ...e ? $e : {} })
1314
+ /* @__PURE__ */ n("circle", { cx: "5", cy: "11", r: "2.5", ...e ? Be : {} }),
1315
+ /* @__PURE__ */ n("circle", { cx: "10.5", cy: "6.5", r: "4", ...e ? Be : {} })
1300
1316
  ] }),
1301
1317
  sizeLargest: (e) => /* @__PURE__ */ S(q, { children: [
1302
- /* @__PURE__ */ n("circle", { cx: "4.5", cy: "11.5", r: "1.75", ...e ? $e : {} }),
1303
- /* @__PURE__ */ n("circle", { cx: "10", cy: "6", r: "5", ...e ? $e : {} })
1318
+ /* @__PURE__ */ n("circle", { cx: "4.5", cy: "11.5", r: "1.75", ...e ? Be : {} }),
1319
+ /* @__PURE__ */ n("circle", { cx: "10", cy: "6", r: "5", ...e ? Be : {} })
1304
1320
  ] }),
1305
1321
  width: (e) => /* @__PURE__ */ S(q, { children: [
1306
1322
  /* @__PURE__ */ n("line", { x1: "2.5", y1: "8", x2: "13.5", y2: "8" }),
1307
- /* @__PURE__ */ n("polyline", { points: "5,5.5 2.5,8 5,10.5", ...e ? $e : {} }),
1308
- /* @__PURE__ */ n("polyline", { points: "11,5.5 13.5,8 11,10.5", ...e ? $e : {} })
1323
+ /* @__PURE__ */ n("polyline", { points: "5,5.5 2.5,8 5,10.5", ...e ? Be : {} }),
1324
+ /* @__PURE__ */ n("polyline", { points: "11,5.5 13.5,8 11,10.5", ...e ? Be : {} })
1309
1325
  ] }),
1310
- opacity: (e) => e ? /* @__PURE__ */ n("circle", { cx: "8", cy: "8", r: "5.5", ...$e }) : /* @__PURE__ */ S(q, { children: [
1326
+ opacity: (e) => e ? /* @__PURE__ */ n("circle", { cx: "8", cy: "8", r: "5.5", ...Be }) : /* @__PURE__ */ S(q, { children: [
1311
1327
  /* @__PURE__ */ n("circle", { cx: "8", cy: "8", r: "5.5" }),
1312
- /* @__PURE__ */ n("path", { d: "M8 2.5a5.5 5.5 0 0 1 0 11z", ...$e })
1328
+ /* @__PURE__ */ n("path", { d: "M8 2.5a5.5 5.5 0 0 1 0 11z", ...Be })
1313
1329
  ] }),
1314
1330
  attribute: (e) => e ? /* @__PURE__ */ S(q, { children: [
1315
- /* @__PURE__ */ n("path", { d: "M2.5 7.2V3.5a1 1 0 0 1 1-1h3.7l6.3 6.3-4.7 4.7z", ...$e }),
1331
+ /* @__PURE__ */ n("path", { d: "M2.5 7.2V3.5a1 1 0 0 1 1-1h3.7l6.3 6.3-4.7 4.7z", ...Be }),
1316
1332
  /* @__PURE__ */ n("circle", { cx: "5.5", cy: "5.5", r: "0.75", style: { fill: x.SURFACE }, stroke: "none" })
1317
1333
  ] }) : /* @__PURE__ */ S(q, { children: [
1318
1334
  /* @__PURE__ */ n("path", { d: "M2.5 7.2V3.5a1 1 0 0 1 1-1h3.7l6.3 6.3-4.7 4.7z" }),
@@ -1321,7 +1337,7 @@ const Jr = [
1321
1337
  scaleSqrt: () => /* @__PURE__ */ n("path", { d: "M2.5 13.5C4.5 5 8 2.5 13.5 2.5" }),
1322
1338
  scaleLinear: () => /* @__PURE__ */ n("line", { x1: "2.5", y1: "13.5", x2: "13.5", y2: "2.5" }),
1323
1339
  scaleLog: () => /* @__PURE__ */ n("path", { d: "M2.5 13.5C8 13.5 11.5 11 13.5 2.5" })
1324
- }, ta = {
1340
+ }, oa = {
1325
1341
  chevronDown: /* @__PURE__ */ n("polyline", { points: "4,6 8,10 12,6" }),
1326
1342
  chevronRight: /* @__PURE__ */ n("polyline", { points: "6,4 10,8 6,12" }),
1327
1343
  chevronLeft: /* @__PURE__ */ n("polyline", { points: "10,4 6,8 10,12" }),
@@ -1393,7 +1409,7 @@ function xt({ name: e, filled: t = !1, size: i = c.GLYPH }) {
1393
1409
  "data-glyph": e,
1394
1410
  "data-filled": t ? "true" : "false",
1395
1411
  style: { flex: "0 0 auto", display: "block" },
1396
- children: ea[e](t)
1412
+ children: na[e](t)
1397
1413
  }
1398
1414
  );
1399
1415
  }
@@ -1408,34 +1424,34 @@ function pe({ name: e, size: t = c.GLYPH }) {
1408
1424
  focusable: "false",
1409
1425
  "data-glyph": e,
1410
1426
  style: { flex: "0 0 auto", display: "block" },
1411
- children: ta[e]
1427
+ children: oa[e]
1412
1428
  }
1413
1429
  );
1414
1430
  }
1415
1431
  function So(e) {
1416
- return typeof e == "string" && Jr.includes(e);
1432
+ return typeof e == "string" && ea.includes(e);
1417
1433
  }
1418
1434
  function Eo(e) {
1419
- return typeof e == "string" && Qr.includes(e);
1435
+ return typeof e == "string" && ta.includes(e);
1420
1436
  }
1421
1437
  const Io = 255, To = 100;
1422
- function zo(e) {
1438
+ function Co(e) {
1423
1439
  return Math.round(parseInt(e, 16) / Io * To);
1424
1440
  }
1425
- function Co(e) {
1441
+ function zo(e) {
1426
1442
  return Math.round(e / To * Io).toString(16).padStart(2, "0");
1427
1443
  }
1428
- function Nl(e) {
1444
+ function kl(e) {
1429
1445
  let t = e.replace("#", "");
1430
1446
  t.length === 3 ? t = `${t.split("").map((a) => a + a).join("")}ff` : t.length === 4 ? t = t.split("").map((a) => a + a).join("") : t.length === 6 && (t = `${t}ff`);
1431
- const i = `#${t.slice(0, 6)}`, o = t.slice(6, 8), r = zo(o);
1447
+ const i = `#${t.slice(0, 6)}`, o = t.slice(6, 8), r = Co(o);
1432
1448
  return { hex: i, opacity: r };
1433
1449
  }
1434
- function Dl(e, t) {
1435
- const i = e.replace("#", ""), o = Co(t);
1450
+ function Gl(e, t) {
1451
+ const i = e.replace("#", ""), o = zo(t);
1436
1452
  return `#${i}${o}`;
1437
1453
  }
1438
- function kl(e) {
1454
+ function Ml(e) {
1439
1455
  return /^#?([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.test(e);
1440
1456
  }
1441
1457
  const Ft = {
@@ -1449,7 +1465,7 @@ const Ft = {
1449
1465
  whiteSpace: "nowrap",
1450
1466
  border: 0
1451
1467
  };
1452
- function na(e, t) {
1468
+ function ia(e, t) {
1453
1469
  const i = e === void 0 ? "" : e.trim();
1454
1470
  return i === "" ? t : `${/[.!?]$/u.test(i) ? i : `${i}.`} ${t}`;
1455
1471
  }
@@ -1466,16 +1482,16 @@ function vt({
1466
1482
  s !== void 0 && p.push(s);
1467
1483
  const u = p.length > 0 ? p.join(". ") : void 0;
1468
1484
  return {
1469
- title: s === void 0 ? t : na(t ?? e, s),
1485
+ title: s === void 0 ? t : ia(t ?? e, s),
1470
1486
  description: u,
1471
1487
  describedBy: u === void 0 ? void 0 : a
1472
1488
  };
1473
1489
  }
1474
1490
  const Po = lt(null);
1475
- function oa() {
1491
+ function ra() {
1476
1492
  return _e(Po);
1477
1493
  }
1478
- function ia({ children: e }) {
1494
+ function aa({ children: e }) {
1479
1495
  const t = X(null);
1480
1496
  if (!go(e))
1481
1497
  throw new Error("PopoutAnchor requires a single valid React element as its child");
@@ -1484,10 +1500,10 @@ function ia({ children: e }) {
1484
1500
  });
1485
1501
  return /* @__PURE__ */ n(Po.Provider, { value: { anchorRef: t }, children: o });
1486
1502
  }
1487
- function ra({ children: e }) {
1503
+ function sa({ children: e }) {
1488
1504
  return /* @__PURE__ */ n(h, { p: "sm", children: e });
1489
1505
  }
1490
- const aa = [
1506
+ const la = [
1491
1507
  // Mantine portal containers
1492
1508
  "[data-portal]",
1493
1509
  // Combobox/Select dropdowns
@@ -1505,20 +1521,20 @@ const aa = [
1505
1521
  // Modal (just in case)
1506
1522
  "[data-modal]"
1507
1523
  ].join(", ");
1508
- function sa(e, t = !0) {
1524
+ function ca(e, t = !0) {
1509
1525
  Ee(() => {
1510
1526
  if (!t)
1511
1527
  return;
1512
1528
  const i = (o) => {
1513
1529
  const r = o.target;
1514
- r.closest('[role="dialog"]') || r.closest("[data-popout-trigger]") || r.closest("[data-popout-portal-container]") || r.closest(aa) || e();
1530
+ r.closest('[role="dialog"]') || r.closest("[data-popout-trigger]") || r.closest("[data-popout-portal-container]") || r.closest(la) || e();
1515
1531
  };
1516
1532
  return document.addEventListener("mousedown", i), () => {
1517
1533
  document.removeEventListener("mousedown", i);
1518
1534
  };
1519
1535
  }, [e, t]);
1520
1536
  }
1521
- function la(e, t = !0) {
1537
+ function da(e, t = !0) {
1522
1538
  Ee(() => {
1523
1539
  if (!t)
1524
1540
  return;
@@ -1531,10 +1547,10 @@ function la(e, t = !0) {
1531
1547
  }, [e, t]);
1532
1548
  }
1533
1549
  const Ro = lt(null);
1534
- function Gl({ id: e, children: t }) {
1550
+ function Fl({ id: e, children: t }) {
1535
1551
  return /* @__PURE__ */ n(Ro.Provider, { value: e, children: t });
1536
1552
  }
1537
- function ca() {
1553
+ function ua() {
1538
1554
  return _e(Ro);
1539
1555
  }
1540
1556
  const yn = lt(null), wn = lt(null);
@@ -1544,7 +1560,7 @@ function Yt() {
1544
1560
  throw new Error("usePopoutContext must be used within a Popout component");
1545
1561
  return e;
1546
1562
  }
1547
- function da() {
1563
+ function pa() {
1548
1564
  return _e(yn);
1549
1565
  }
1550
1566
  function Ao() {
@@ -1553,21 +1569,21 @@ function Ao() {
1553
1569
  throw new Error("usePopoutManagerContext must be used within a PopoutManager");
1554
1570
  return e;
1555
1571
  }
1556
- function ua() {
1572
+ function fa() {
1557
1573
  return _e(wn);
1558
1574
  }
1559
- function Ml() {
1575
+ function Vl() {
1560
1576
  const { closeAll: e, hasOpenPopouts: t } = Ao();
1561
1577
  return Z(() => ({ closeAll: e, hasOpenPopouts: t }), [e, t]);
1562
1578
  }
1563
- function pa({
1579
+ function ha({
1564
1580
  children: e,
1565
1581
  parentId: t = null,
1566
1582
  opened: i,
1567
1583
  defaultOpened: o,
1568
1584
  onOpenChange: r
1569
1585
  }) {
1570
- const a = ue(), s = X(null), p = ca(), [u, d] = ae({
1586
+ const a = ue(), s = X(null), p = ua(), [u, d] = ae({
1571
1587
  value: i,
1572
1588
  defaultValue: o,
1573
1589
  finalValue: !1,
@@ -1595,27 +1611,27 @@ function pa({
1595
1611
  g(!1, T);
1596
1612
  },
1597
1613
  [g]
1598
- ), z = F(
1614
+ ), C = F(
1599
1615
  (T) => {
1600
1616
  g(!u, T);
1601
1617
  },
1602
1618
  [u, g]
1603
- ), C = Z(
1619
+ ), z = Z(
1604
1620
  () => ({
1605
1621
  id: a,
1606
1622
  isOpen: u,
1607
1623
  open: m,
1608
1624
  close: v,
1609
- toggle: z,
1625
+ toggle: C,
1610
1626
  triggerRef: s,
1611
1627
  parentId: t,
1612
1628
  region: p
1613
1629
  }),
1614
- [a, u, m, v, z, t, p]
1630
+ [a, u, m, v, C, t, p]
1615
1631
  );
1616
- return /* @__PURE__ */ n(yn.Provider, { value: C, children: e });
1632
+ return /* @__PURE__ */ n(yn.Provider, { value: z, children: e });
1617
1633
  }
1618
- function fa({ children: e }) {
1634
+ function ga({ children: e }) {
1619
1635
  const [t, i] = Oe(null), o = X([]), r = X(/* @__PURE__ */ new Map()), a = X(/* @__PURE__ */ new Map()), s = X(/* @__PURE__ */ new Map()), [p, u] = Oe(0), d = F(
1620
1636
  (b, w, N) => (a.current.get(b) ?? null) !== w ? !1 : w !== null ? !0 : (s.current.get(b) ?? null) === N,
1621
1637
  []
@@ -1647,7 +1663,7 @@ function fa({ children: e }) {
1647
1663
  const w = [...b].sort((G, J) => m(J) - m(G));
1648
1664
  for (const G of w)
1649
1665
  (N = r.current.get(G)) == null || N();
1650
- }, [m]), z = F((b, w, N, G) => {
1666
+ }, [m]), C = F((b, w, N, G) => {
1651
1667
  if (o.current.includes(b)) {
1652
1668
  r.current.set(b, w);
1653
1669
  return;
@@ -1658,7 +1674,7 @@ function fa({ children: e }) {
1658
1674
  v(ne);
1659
1675
  const de = new Set(ne);
1660
1676
  o.current = o.current.filter((re) => !de.has(re)), o.current.push(b), r.current.set(b, w), a.current.set(b, J), s.current.set(b, Q), u((re) => re + 1);
1661
- }, [f, g, v]), C = F((b) => {
1677
+ }, [f, g, v]), z = F((b) => {
1662
1678
  if (!o.current.includes(b)) {
1663
1679
  r.current.delete(b), a.current.delete(b), s.current.delete(b);
1664
1680
  return;
@@ -1716,11 +1732,11 @@ function fa({ children: e }) {
1716
1732
  }, []), D = F(() => o.current.length > 0, []), [Y, A] = Oe(!1);
1717
1733
  Ee(() => {
1718
1734
  A(o.current.length > 0);
1719
- }, [p]), la(W, Y), sa(V, Y);
1735
+ }, [p]), da(W, Y), ca(V, Y);
1720
1736
  const H = Z(
1721
1737
  () => ({
1722
- register: z,
1723
- unregister: C,
1738
+ register: C,
1739
+ unregister: z,
1724
1740
  getZIndex: T,
1725
1741
  bringToFront: P,
1726
1742
  portalContainer: t,
@@ -1734,7 +1750,7 @@ function fa({ children: e }) {
1734
1750
  getParentId: E,
1735
1751
  isAncestor: y
1736
1752
  }),
1737
- [z, C, T, P, t, p, W, V, D, O, L, k, E, y]
1753
+ [C, z, T, P, t, p, W, V, D, O, L, k, E, y]
1738
1754
  );
1739
1755
  return /* @__PURE__ */ S(wn.Provider, { value: H, children: [
1740
1756
  e,
@@ -1742,22 +1758,22 @@ function fa({ children: e }) {
1742
1758
  ] });
1743
1759
  }
1744
1760
  function Qe() {
1745
- return Ti().dir;
1761
+ return zi().dir;
1746
1762
  }
1747
- function ze(e) {
1763
+ function Ce(e) {
1748
1764
  return e === "rtl";
1749
1765
  }
1750
- function ha(e, t) {
1751
- return ze(t) ? 1 - e : e;
1766
+ function ma(e, t) {
1767
+ return Ce(t) ? 1 - e : e;
1752
1768
  }
1753
- function ga(e, t, i) {
1754
- return ha(e, i) * t;
1769
+ function xa(e, t, i) {
1770
+ return ma(e, i) * t;
1755
1771
  }
1756
- function ma(e) {
1757
- return ze(e) ? { transform: "scaleX(-1)" } : {};
1772
+ function ba(e) {
1773
+ return Ce(e) ? { transform: "scaleX(-1)" } : {};
1758
1774
  }
1759
1775
  const Ln = 3;
1760
- function xa(e) {
1776
+ function va(e) {
1761
1777
  const {
1762
1778
  isOpen: t,
1763
1779
  onPress: i,
@@ -1774,7 +1790,7 @@ function xa(e) {
1774
1790
  }, []), v = F(() => {
1775
1791
  const E = f.current;
1776
1792
  return f.current = !1, E;
1777
- }, []), z = F(
1793
+ }, []), C = F(
1778
1794
  (E) => {
1779
1795
  const y = E.target;
1780
1796
  if (!(y.tagName === "INPUT" || y.tagName === "TEXTAREA" || y.tagName === "BUTTON" || y.tagName === "SELECT" || y.closest("button") || y.closest("input") || y.closest("textarea") || y.closest("select"))) {
@@ -1791,7 +1807,7 @@ function xa(e) {
1791
1807
  }
1792
1808
  },
1793
1809
  [s.left, s.top, i]
1794
- ), C = F(
1810
+ ), z = F(
1795
1811
  (E) => {
1796
1812
  if (!u.current)
1797
1813
  return;
@@ -1821,8 +1837,8 @@ function xa(e) {
1821
1837
  return t ? {
1822
1838
  dragTriggerProps: {
1823
1839
  "data-drag-trigger": !0,
1824
- onPointerDown: z,
1825
- onPointerMove: C,
1840
+ onPointerDown: C,
1841
+ onPointerMove: z,
1826
1842
  onPointerUp: T,
1827
1843
  onPointerCancel: T,
1828
1844
  style: {
@@ -1843,7 +1859,7 @@ function xa(e) {
1843
1859
  consumeDragClick: v
1844
1860
  };
1845
1861
  }
1846
- function ba({
1862
+ function ya({
1847
1863
  config: e,
1848
1864
  onClose: t,
1849
1865
  dragTriggerProps: i = {},
@@ -1853,9 +1869,9 @@ function ba({
1853
1869
  titleId: s
1854
1870
  }) {
1855
1871
  var v;
1856
- const p = fe(), { style: u, ...d } = i, g = e.variant === "tabs" ? e : null, m = (g == null ? void 0 : g.tabs.map((z) => ({
1857
- value: z.id,
1858
- label: z.label
1872
+ const p = fe(), { style: u, ...d } = i, g = e.variant === "tabs" ? e : null, m = (g == null ? void 0 : g.tabs.map((C) => ({
1873
+ value: C.id,
1874
+ label: C.label
1859
1875
  }))) ?? [];
1860
1876
  return /* @__PURE__ */ S(
1861
1877
  qe,
@@ -1877,21 +1893,21 @@ function ba({
1877
1893
  "data-testid": "popout-header-tabs",
1878
1894
  data: m,
1879
1895
  value: r,
1880
- onChange: (z) => a == null ? void 0 : a(z),
1896
+ onChange: (C) => a == null ? void 0 : a(C),
1881
1897
  size: "xs"
1882
1898
  }
1883
1899
  )
1884
1900
  ] }),
1885
1901
  /* @__PURE__ */ S(qe, { gap: 4, children: [
1886
- o.map((z) => /* @__PURE__ */ n(
1902
+ o.map((C) => /* @__PURE__ */ n(
1887
1903
  Pe,
1888
1904
  {
1889
1905
  variant: "subtle",
1890
- onClick: z.onClick,
1891
- "aria-label": z.label,
1892
- children: z.icon
1906
+ onClick: C.onClick,
1907
+ "aria-label": C.label,
1908
+ children: C.icon
1893
1909
  },
1894
- z.id
1910
+ C.id
1895
1911
  )),
1896
1912
  /* @__PURE__ */ n(
1897
1913
  co,
@@ -1906,7 +1922,7 @@ function ba({
1906
1922
  }
1907
1923
  );
1908
1924
  }
1909
- function va(e, t = document) {
1925
+ function wa(e, t = document) {
1910
1926
  return e === null ? null : t.querySelector(`[data-popout-id="${e}"]`);
1911
1927
  }
1912
1928
  function On(e, t, i) {
@@ -1929,10 +1945,10 @@ function On(e, t, i) {
1929
1945
  }
1930
1946
  return t === "x" ? r ?? a ?? o : o ?? r ?? a;
1931
1947
  }
1932
- function ya(e, t) {
1933
- return e === "start" ? ze(t) ? "right" : "left" : e === "end" ? ze(t) ? "left" : "right" : e;
1948
+ function Sa(e, t) {
1949
+ return e === "start" ? Ce(t) ? "right" : "left" : e === "end" ? Ce(t) ? "left" : "right" : e;
1934
1950
  }
1935
- function wa(e, t, i = mr, o = {}) {
1951
+ function Ea(e, t, i = br, o = {}) {
1936
1952
  const {
1937
1953
  placement: r = "left",
1938
1954
  alignment: a = "start",
@@ -1978,18 +1994,18 @@ function _n(e, t, i) {
1978
1994
  function Hn(e, t, i, o) {
1979
1995
  switch (t) {
1980
1996
  case "start":
1981
- return ze(o) ? e.right - i : e.left;
1997
+ return Ce(o) ? e.right - i : e.left;
1982
1998
  case "center":
1983
1999
  return e.left + e.width / 2 - i / 2;
1984
2000
  case "end":
1985
- return ze(o) ? e.left : e.right - i;
2001
+ return Ce(o) ? e.left : e.right - i;
1986
2002
  default: {
1987
2003
  const r = t;
1988
2004
  throw new Error(`Unknown alignment: ${String(r)}`);
1989
2005
  }
1990
2006
  }
1991
2007
  }
1992
- function Sa(e) {
2008
+ function Ia(e) {
1993
2009
  var it, Ae;
1994
2010
  const {
1995
2011
  width: t,
@@ -2005,8 +2021,8 @@ function Sa(e) {
2005
2021
  actions: g,
2006
2022
  manageFocus: m = !0,
2007
2023
  onDragStart: v,
2008
- onDrag: z,
2009
- onDragEnd: C
2024
+ onDrag: C,
2025
+ onDragEnd: z
2010
2026
  } = e, {
2011
2027
  isOpen: T,
2012
2028
  close: P,
@@ -2022,7 +2038,7 @@ function Sa(e) {
2022
2038
  bringToFront: D,
2023
2039
  zIndexVersion: Y,
2024
2040
  closeDescendants: A
2025
- } = Ao(), H = oa(), b = Qe(), w = ue(), N = `popout-panel-${y}`, G = `popout-title-${w}`, [J, Q] = Oe(null), ve = X(!1), ne = X(null), de = F(() => {
2041
+ } = Ao(), H = ra(), b = Qe(), w = ue(), N = `popout-panel-${y}`, G = `popout-title-${w}`, [J, Q] = Oe(null), ve = X(!1), ne = X(null), de = F(() => {
2026
2042
  D(y);
2027
2043
  }, [D, y]), {
2028
2044
  dragTriggerProps: re,
@@ -2030,26 +2046,26 @@ function Sa(e) {
2030
2046
  resetDragOffset: se,
2031
2047
  hasDragged: K,
2032
2048
  consumeDragClick: ye
2033
- } = xa({
2049
+ } = va({
2034
2050
  isOpen: T,
2035
2051
  onPress: de,
2036
2052
  onDragStart: v,
2037
- onDrag: z,
2038
- onDragEnd: C
2039
- }), we = (o == null ? void 0 : o.variant) === "tabs", ee = (o == null ? void 0 : o.variant) === "tabs" ? o : null, be = (ee == null ? void 0 : ee.defaultTab) ?? ((it = ee == null ? void 0 : ee.tabs[0]) == null ? void 0 : it.id), [et, Ue] = Oe(be), dt = f ?? (R === null ? 0 : xr), tt = F(
2040
- ($, oe) => {
2053
+ onDrag: C,
2054
+ onDragEnd: z
2055
+ }), we = (o == null ? void 0 : o.variant) === "tabs", ee = (o == null ? void 0 : o.variant) === "tabs" ? o : null, be = (ee == null ? void 0 : ee.defaultTab) ?? ((it = ee == null ? void 0 : ee.tabs[0]) == null ? void 0 : it.id), [et, Ue] = Oe(be), dt = f ?? (R === null ? 0 : vr), tt = F(
2056
+ (B, oe) => {
2041
2057
  var ie;
2042
- Ue($), (ie = ee == null ? void 0 : ee.onTabChange) == null || ie.call(ee, $, oe);
2058
+ Ue(B), (ie = ee == null ? void 0 : ee.onTabChange) == null || ie.call(ee, B, oe);
2043
2059
  },
2044
2060
  [ee]
2045
2061
  ), ge = F(
2046
- ($) => {
2047
- $.stopPropagation(), D(y), !ye() && A(y);
2062
+ (B) => {
2063
+ B.stopPropagation(), D(y), !ye() && A(y);
2048
2064
  },
2049
2065
  [A, D, ye, y]
2050
2066
  ), Re = F(
2051
- ($) => {
2052
- A(y), P($);
2067
+ (B) => {
2068
+ A(y), P(B);
2053
2069
  },
2054
2070
  [A, P, y]
2055
2071
  ), He = X(P);
@@ -2063,22 +2079,22 @@ function Sa(e) {
2063
2079
  V(y);
2064
2080
  }), [T, y, W, V, Ge, R, L]);
2065
2081
  const We = F(() => {
2066
- const $ = {
2082
+ const B = {
2067
2083
  trigger: E.current,
2068
- parent: va(R),
2084
+ parent: wa(R),
2069
2085
  panel: (H == null ? void 0 : H.anchorRef.current) ?? null
2070
2086
  };
2071
2087
  return {
2072
- inline: On(s, "x", $),
2073
- block: On(p, "y", $)
2088
+ inline: On(s, "x", B),
2089
+ block: On(p, "y", B)
2074
2090
  };
2075
2091
  }, [E, R, H, s, p]), Ye = F(() => {
2076
2092
  var ft;
2077
- const { inline: $, block: oe } = We(), ie = $ ?? oe, le = oe ?? $;
2093
+ const { inline: B, block: oe } = We(), ie = B ?? oe, le = oe ?? B;
2078
2094
  if (!ie || !le)
2079
2095
  return;
2080
- const me = (ft = ne.current) == null ? void 0 : ft.getBoundingClientRect(), Le = Math.max(t, (me == null ? void 0 : me.width) ?? 0), M = Math.max(i ?? 0, (me == null ? void 0 : me.height) ?? 0), ce = ya(u, b), Ne = ce === "top" || ce === "bottom", zt = Ne ? le : ie, je = Ne ? ie : le, he = wa(
2081
- zt.getBoundingClientRect(),
2096
+ const me = (ft = ne.current) == null ? void 0 : ft.getBoundingClientRect(), Le = Math.max(t, (me == null ? void 0 : me.width) ?? 0), M = Math.max(i ?? 0, (me == null ? void 0 : me.height) ?? 0), ce = Sa(u, b), Ne = ce === "top" || ce === "bottom", Ct = Ne ? le : ie, je = Ne ? ie : le, he = Ea(
2097
+ Ct.getBoundingClientRect(),
2082
2098
  Le,
2083
2099
  dt,
2084
2100
  {
@@ -2091,7 +2107,7 @@ function Sa(e) {
2091
2107
  );
2092
2108
  Q((Ke) => Ke && Ke.left === he.left && Ke.top === he.top ? Ke : he);
2093
2109
  }, [We, t, i, u, d, dt, b]);
2094
- if (Li(() => {
2110
+ if (_i(() => {
2095
2111
  if (!T) {
2096
2112
  Q(null);
2097
2113
  return;
@@ -2100,10 +2116,10 @@ function Sa(e) {
2100
2116
  }, [T, Ye, se, we, be]), Ee(() => {
2101
2117
  if (!T)
2102
2118
  return;
2103
- let $ = 0;
2119
+ let B = 0;
2104
2120
  const oe = () => {
2105
- $ === 0 && ($ = requestAnimationFrame(() => {
2106
- $ = 0, Ye();
2121
+ B === 0 && (B = requestAnimationFrame(() => {
2122
+ B = 0, Ye();
2107
2123
  }));
2108
2124
  }, ie = new ResizeObserver(oe), le = new MutationObserver(oe), { inline: me, block: Le } = We();
2109
2125
  for (const ce of new Set([me, Le].filter((Ne) => Ne !== null)))
@@ -2113,10 +2129,10 @@ function Sa(e) {
2113
2129
  K || oe();
2114
2130
  };
2115
2131
  return window.addEventListener("resize", M), window.addEventListener("scroll", M, !0), () => {
2116
- $ !== 0 && cancelAnimationFrame($), ie.disconnect(), le.disconnect(), window.removeEventListener("resize", M), window.removeEventListener("scroll", M, !0);
2132
+ B !== 0 && cancelAnimationFrame(B), ie.disconnect(), le.disconnect(), window.removeEventListener("resize", M), window.removeEventListener("scroll", M, !0);
2117
2133
  };
2118
2134
  }, [T, Ye, We, K]), Ee(() => {
2119
- var $;
2135
+ var B;
2120
2136
  if (m) {
2121
2137
  if (T) {
2122
2138
  const oe = setTimeout(() => {
@@ -2127,7 +2143,7 @@ function Sa(e) {
2127
2143
  clearTimeout(oe);
2128
2144
  };
2129
2145
  }
2130
- ve.current && (($ = E.current) == null || $.focus());
2146
+ ve.current && ((B = E.current) == null || B.focus());
2131
2147
  }
2132
2148
  }, [T, m, E]), Ee(() => {
2133
2149
  ve.current = T;
@@ -2137,7 +2153,7 @@ function Sa(e) {
2137
2153
  left: ((J == null ? void 0 : J.left) ?? 0) + j.left,
2138
2154
  top: ((J == null ? void 0 : J.top) ?? 0) + j.top
2139
2155
  }, Me = /* @__PURE__ */ S(
2140
- zi,
2156
+ Pi,
2141
2157
  {
2142
2158
  ref: ne,
2143
2159
  id: N,
@@ -2173,7 +2189,7 @@ function Sa(e) {
2173
2189
  },
2174
2190
  children: [
2175
2191
  o ? /* @__PURE__ */ n(
2176
- ba,
2192
+ ya,
2177
2193
  {
2178
2194
  config: o,
2179
2195
  onClose: Re,
@@ -2184,13 +2200,13 @@ function Sa(e) {
2184
2200
  titleId: G
2185
2201
  }
2186
2202
  ) : null,
2187
- /* @__PURE__ */ n(h, { "data-testid": "popout-panel-content", children: we ? (Ae = ee == null ? void 0 : ee.tabs.find(($) => $.id === et)) == null ? void 0 : Ae.content : a })
2203
+ /* @__PURE__ */ n(h, { "data-testid": "popout-panel-content", children: we ? (Ae = ee == null ? void 0 : ee.tabs.find((B) => B.id === et)) == null ? void 0 : Ae.content : a })
2188
2204
  ]
2189
2205
  }
2190
2206
  );
2191
- return Hi(Me, k);
2207
+ return Di(Me, k);
2192
2208
  }
2193
- function Ea({ children: e, action: t = "toggle" }) {
2209
+ function Ta({ children: e, action: t = "toggle" }) {
2194
2210
  const {
2195
2211
  open: i,
2196
2212
  toggle: o,
@@ -2224,15 +2240,15 @@ function Ea({ children: e, action: t = "toggle" }) {
2224
2240
  "aria-haspopup": "dialog"
2225
2241
  });
2226
2242
  }
2227
- function Ia({
2243
+ function Ca({
2228
2244
  children: e,
2229
2245
  opened: t,
2230
2246
  defaultOpened: i,
2231
2247
  onOpenChange: o
2232
2248
  }) {
2233
- const r = da(), a = (r == null ? void 0 : r.id) ?? null;
2249
+ const r = pa(), a = (r == null ? void 0 : r.id) ?? null;
2234
2250
  return /* @__PURE__ */ n(
2235
- pa,
2251
+ ha,
2236
2252
  {
2237
2253
  parentId: a,
2238
2254
  opened: t,
@@ -2242,12 +2258,12 @@ function Ia({
2242
2258
  }
2243
2259
  );
2244
2260
  }
2245
- const st = Object.assign(Ia, {
2246
- Trigger: Ea,
2247
- Panel: Sa,
2248
- Content: ra,
2249
- Anchor: ia
2250
- }), Fl = Ut(
2261
+ const st = Object.assign(Ca, {
2262
+ Trigger: Ta,
2263
+ Panel: Ia,
2264
+ Content: sa,
2265
+ Anchor: aa
2266
+ }), Bl = Ut(
2251
2267
  function({ icon: t, size: i = "xs", ...o }, r) {
2252
2268
  const { isOpen: a } = Yt();
2253
2269
  return /* @__PURE__ */ n(
@@ -2264,10 +2280,10 @@ const st = Object.assign(Ia, {
2264
2280
  );
2265
2281
  }
2266
2282
  );
2267
- function Ta({ children: e }) {
2268
- return /* @__PURE__ */ n(fa, { children: e });
2283
+ function za({ children: e }) {
2284
+ return /* @__PURE__ */ n(ga, { children: e });
2269
2285
  }
2270
- const Nn = 4, Dn = 4, za = 2, Ca = 72, Pa = 54, Ra = 220, kn = 0, Zt = 100, Gn = 9, Mn = 7, Aa = /^#[0-9A-F]{6}$/iu, La = 1.1;
2286
+ const Nn = 4, Dn = 4, Pa = 2, Ra = 72, Aa = 54, La = 220, kn = 0, Zt = 100, Gn = 9, Mn = 7, Oa = /^#[0-9A-F]{6}$/iu, _a = 1.1;
2271
2287
  function Jt(e) {
2272
2288
  const t = e === "start" ? Dn : 0, i = e === "end" ? Dn : 0;
2273
2289
  return {
@@ -2277,14 +2293,14 @@ function Jt(e) {
2277
2293
  borderEndEndRadius: i
2278
2294
  };
2279
2295
  }
2280
- function Oa() {
2296
+ function Ha() {
2281
2297
  const e = ct();
2282
2298
  return Z(() => {
2283
2299
  var i;
2284
- return ((i = new Intl.NumberFormat(e).formatToParts(La).find((o) => o.type === "decimal")) == null ? void 0 : i.value) ?? ".";
2300
+ return ((i = new Intl.NumberFormat(e).formatToParts(_a).find((o) => o.type === "decimal")) == null ? void 0 : i.value) ?? ".";
2285
2301
  }, [e]);
2286
2302
  }
2287
- function _a({
2303
+ function Na({
2288
2304
  color: e,
2289
2305
  defaultColor: t,
2290
2306
  opacity: i,
@@ -2299,7 +2315,7 @@ function _a({
2299
2315
  onFocus: g,
2300
2316
  onBlur: m
2301
2317
  }) {
2302
- const v = fe(), z = yo(), C = Oa(), T = ue(), P = vt({ name: p, disabled: d, disabledReason: f }), [E, y] = ae({
2318
+ const v = fe(), C = yo(), z = Ha(), T = ue(), P = vt({ name: p, disabled: d, disabledReason: f }), [E, y] = ae({
2303
2319
  value: e,
2304
2320
  defaultValue: void 0,
2305
2321
  finalValue: void 0,
@@ -2316,17 +2332,17 @@ function _a({
2316
2332
  b(D);
2317
2333
  }, [D]);
2318
2334
  const w = (j) => {
2319
- const se = j.length === Gn, K = se ? j.slice(0, Mn).toUpperCase() : j.toUpperCase(), ye = se && u, we = ye ? zo(j.slice(Mn, Gn)) : R;
2335
+ const se = j.length === Gn, K = se ? j.slice(0, Mn).toUpperCase() : j.toUpperCase(), ye = se && u, we = ye ? Co(j.slice(Mn, Gn)) : R;
2320
2336
  y(K), ye && L(we), s == null || s(K, we);
2321
- }, N = () => `${V}${Co(D)}`.toUpperCase(), G = (j) => {
2337
+ }, N = () => `${V}${zo(D)}`.toUpperCase(), G = (j) => {
2322
2338
  A(j.currentTarget.value.toUpperCase());
2323
2339
  }, J = (j) => {
2324
2340
  const se = Y.toUpperCase(), K = se.startsWith("#") ? se : `#${se}`;
2325
- Aa.test(K) && K !== V ? (y(K, j), s == null || s(K, R, j)) : A(V.replace("#", "").toUpperCase()), m == null || m(j);
2341
+ Oa.test(K) && K !== V ? (y(K, j), s == null || s(K, R, j)) : A(V.replace("#", "").toUpperCase()), m == null || m(j);
2326
2342
  }, Q = (j) => {
2327
2343
  b(j);
2328
2344
  }, ve = (j) => {
2329
- const se = typeof H == "string" ? z(H) : H;
2345
+ const se = typeof H == "string" ? C(H) : H;
2330
2346
  if (Number.isNaN(se)) {
2331
2347
  b(D), m == null || m(j);
2332
2348
  return;
@@ -2364,11 +2380,11 @@ function _a({
2364
2380
  "aria-label": v.colorSwatch,
2365
2381
  "aria-describedby": P.describedBy,
2366
2382
  children: /* @__PURE__ */ n(
2367
- Ci,
2383
+ Ri,
2368
2384
  {
2369
2385
  color: V,
2370
2386
  size: c.GLYPH,
2371
- radius: za,
2387
+ radius: Pa,
2372
2388
  style: { border: `1px solid ${x.BORDER}` }
2373
2389
  }
2374
2390
  )
@@ -2377,25 +2393,25 @@ function _a({
2377
2393
  /* @__PURE__ */ n(
2378
2394
  st.Panel,
2379
2395
  {
2380
- width: Ra,
2396
+ width: La,
2381
2397
  header: { variant: "title", title: p ?? v.colorPanelTitle },
2382
2398
  placement: "bottom",
2383
2399
  alignment: "start",
2384
2400
  gap: Nn,
2385
2401
  children: /* @__PURE__ */ n(st.Content, { children: /* @__PURE__ */ n(
2386
- Pi,
2402
+ Ai,
2387
2403
  {
2388
2404
  format: "hexa",
2389
2405
  value: N(),
2390
2406
  onChange: w,
2391
- swatches: [...Gr]
2407
+ swatches: [...Fr]
2392
2408
  }
2393
2409
  ) })
2394
2410
  }
2395
2411
  )
2396
2412
  ] }),
2397
2413
  /* @__PURE__ */ n(
2398
- Bt,
2414
+ $t,
2399
2415
  {
2400
2416
  "data-testid": "compact-color-input-hex",
2401
2417
  disabled: d,
@@ -2406,7 +2422,7 @@ function _a({
2406
2422
  onBlur: J,
2407
2423
  "aria-label": v.colorHexValue,
2408
2424
  "data-is-default": O ? "true" : "false",
2409
- w: Ca,
2425
+ w: Ra,
2410
2426
  styles: {
2411
2427
  input: {
2412
2428
  ...Jt(de),
@@ -2435,7 +2451,7 @@ function _a({
2435
2451
  }
2436
2452
  ),
2437
2453
  /* @__PURE__ */ n(
2438
- $t,
2454
+ Bt,
2439
2455
  {
2440
2456
  "data-testid": "compact-color-input-opacity",
2441
2457
  disabled: d,
@@ -2446,12 +2462,12 @@ function _a({
2446
2462
  onBlur: ve,
2447
2463
  min: kn,
2448
2464
  max: Zt,
2449
- decimalSeparator: C,
2465
+ decimalSeparator: z,
2450
2466
  hideControls: !0,
2451
2467
  suffix: "%",
2452
2468
  "aria-label": v.opacity,
2453
2469
  "data-is-default": k ? "true" : "false",
2454
- w: Pa,
2470
+ w: Aa,
2455
2471
  styles: {
2456
2472
  input: {
2457
2473
  ...Jt("end"),
@@ -2504,8 +2520,8 @@ function _a({
2504
2520
  }
2505
2521
  );
2506
2522
  }
2507
- const Dt = c.GUTTER, Fn = 4, Ha = 1, Na = 1.2, Da = "calc(-1 * var(--mantine-spacing-sm) - 1px)";
2508
- function Vl({ label: e, actions: t, children: i, bleed: o = !1 }) {
2523
+ const Dt = c.GUTTER, Fn = 4, Da = 1, ka = 1.2, Ga = "calc(-1 * var(--mantine-spacing-sm) - 1px)";
2524
+ function $l({ label: e, actions: t, children: i, bleed: o = !1 }) {
2509
2525
  const r = ue(), a = t != null;
2510
2526
  return /* @__PURE__ */ S(h, { "data-testid": "control-group", role: "group", "aria-labelledby": r, children: [
2511
2527
  /* @__PURE__ */ n(
@@ -2513,11 +2529,11 @@ function Vl({ label: e, actions: t, children: i, bleed: o = !1 }) {
2513
2529
  {
2514
2530
  "data-testid": "control-group-divider",
2515
2531
  color: x.DIVIDER,
2516
- size: Ha,
2532
+ size: Da,
2517
2533
  style: {
2518
2534
  marginBlockStart: Dt,
2519
2535
  marginBlockEnd: 0,
2520
- marginInline: o ? Da : void 0
2536
+ marginInline: o ? Ga : void 0
2521
2537
  }
2522
2538
  }
2523
2539
  ),
@@ -2549,7 +2565,7 @@ function Vl({ label: e, actions: t, children: i, bleed: o = !1 }) {
2549
2565
  whiteSpace: "nowrap",
2550
2566
  fontSize: "var(--mantine-font-size-xs)",
2551
2567
  fontWeight: 500,
2552
- lineHeight: Na,
2568
+ lineHeight: ka,
2553
2569
  color: x.VALUE
2554
2570
  },
2555
2571
  children: e
@@ -2574,14 +2590,14 @@ function Vl({ label: e, actions: t, children: i, bleed: o = !1 }) {
2574
2590
  /* @__PURE__ */ n(Et, { "data-testid": "control-group-content", gap: 0, px: Dt, children: i })
2575
2591
  ] });
2576
2592
  }
2577
- function Be(e) {
2593
+ function $e(e) {
2578
2594
  const t = X(void 0);
2579
2595
  Ee(() => {
2580
2596
  process.env.NODE_ENV === "production" || e === void 0 || t.current !== e && (t.current = e, console.warn(e));
2581
2597
  }, [e]);
2582
2598
  }
2583
- const Vn = 250, ka = 4;
2584
- function Ga({ name: e, bubbleId: t }) {
2599
+ const Vn = 250, Ma = 4;
2600
+ function Fa({ name: e, bubbleId: t }) {
2585
2601
  const { isOpen: i, open: o, close: r } = Yt();
2586
2602
  return (
2587
2603
  // Hovering has already opened the bubble by the time a click arrives,
@@ -2614,15 +2630,15 @@ function Ga({ name: e, bubbleId: t }) {
2614
2630
  ) })
2615
2631
  );
2616
2632
  }
2617
- function Ma({
2633
+ function Va({
2618
2634
  children: e,
2619
2635
  label: t,
2620
2636
  opened: i,
2621
2637
  defaultOpened: o,
2622
2638
  onOpenChange: r
2623
2639
  }) {
2624
- const a = fe(), s = ue(), p = ua() !== null, u = a.about(t), d = /* @__PURE__ */ S(st, { opened: i, defaultOpened: o, onOpenChange: r, children: [
2625
- /* @__PURE__ */ n(Ga, { name: u, bubbleId: s }),
2640
+ const a = fe(), s = ue(), p = fa() !== null, u = a.about(t), d = /* @__PURE__ */ S(st, { opened: i, defaultOpened: o, onOpenChange: r, children: [
2641
+ /* @__PURE__ */ n(Fa, { name: u, bubbleId: s }),
2626
2642
  /* @__PURE__ */ n(
2627
2643
  st.Panel,
2628
2644
  {
@@ -2630,7 +2646,7 @@ function Ma({
2630
2646
  label: u,
2631
2647
  placement: "bottom",
2632
2648
  alignment: "start",
2633
- gap: ka,
2649
+ gap: Ma,
2634
2650
  anchorX: "trigger",
2635
2651
  anchorY: "trigger",
2636
2652
  manageFocus: !1,
@@ -2651,7 +2667,7 @@ function Ma({
2651
2667
  }
2652
2668
  )
2653
2669
  ] });
2654
- return p ? d : /* @__PURE__ */ n(Ta, { children: d });
2670
+ return p ? d : /* @__PURE__ */ n(za, { children: d });
2655
2671
  }
2656
2672
  function Tt(e) {
2657
2673
  return e != null && e !== !1;
@@ -2673,7 +2689,7 @@ function ke({ children: e }) {
2673
2689
  }
2674
2690
  );
2675
2691
  }
2676
- const Fa = Ut(
2692
+ const Ba = Ut(
2677
2693
  function(t, i) {
2678
2694
  const {
2679
2695
  label: o,
@@ -2709,8 +2725,8 @@ const Fa = Ut(
2709
2725
  }
2710
2726
  );
2711
2727
  }
2712
- ), Qt = 4, Va = 1, $n = 6, $a = 12, Ba = 1.2;
2713
- function $l(e) {
2728
+ ), Qt = 4, $a = 1, Bn = 6, Ua = 12, Wa = 1.2;
2729
+ function Ul(e) {
2714
2730
  const {
2715
2731
  label: t,
2716
2732
  technicalName: i,
@@ -2723,18 +2739,18 @@ function $l(e) {
2723
2739
  info: d,
2724
2740
  actions: f,
2725
2741
  children: g
2726
- } = e, m = fe(), v = Qe(), z = ue(), C = ue(), T = ue(), [P, E] = ae({
2742
+ } = e, m = fe(), v = Qe(), C = ue(), z = ue(), T = ue(), [P, E] = ae({
2727
2743
  value: o,
2728
2744
  defaultValue: r,
2729
2745
  finalValue: !0,
2730
2746
  onChange: a
2731
2747
  }), y = !p && Ie.Children.toArray(g).length > 0, R = d != null;
2732
- Be(
2748
+ $e(
2733
2749
  p || y ? void 0 : `ControlSection "${t}" was given no children, and it holds the rows of a section. Pass the rows, set "empty" to draw it as a single row with a "+", or do not render it: a section header whose chevron opens onto nothing is a dead end for the reader.`
2734
2750
  );
2735
2751
  const L = (H) => {
2736
2752
  E(!P, H);
2737
- }, O = P ? m.collapseSection(t) : m.expandSection(t), k = m.addToSection(t), W = ze(v) ? "chevronLeft" : "chevronRight", V = {
2753
+ }, O = P ? m.collapseSection(t) : m.expandSection(t), k = m.addToSection(t), W = Ce(v) ? "chevronLeft" : "chevronRight", V = {
2738
2754
  flex: "0 0 auto",
2739
2755
  width: c.GLYPH_SLOT,
2740
2756
  height: c.GLYPH_SLOT,
@@ -2757,14 +2773,14 @@ function $l(e) {
2757
2773
  h,
2758
2774
  {
2759
2775
  component: "span",
2760
- id: z,
2776
+ id: C,
2761
2777
  title: Y,
2762
2778
  "data-testid": "control-section-name",
2763
2779
  style: {
2764
2780
  minWidth: 0,
2765
- fontSize: $a,
2781
+ fontSize: Ua,
2766
2782
  fontWeight: 500,
2767
- lineHeight: Ba,
2783
+ lineHeight: Wa,
2768
2784
  // WCAG 1.4.1 (Use of Colour): the dim name is a second signal,
2769
2785
  // not the only one. An empty section is also the only shape
2770
2786
  // with no chevron in its 16px slot and the only one carrying a
@@ -2794,7 +2810,7 @@ function $l(e) {
2794
2810
  h,
2795
2811
  {
2796
2812
  role: "group",
2797
- "aria-labelledby": z,
2813
+ "aria-labelledby": C,
2798
2814
  "aria-describedby": R ? T : void 0,
2799
2815
  "data-testid": "control-section",
2800
2816
  "data-empty": p ? "true" : void 0,
@@ -2804,7 +2820,7 @@ function $l(e) {
2804
2820
  {
2805
2821
  "data-testid": "control-section-divider",
2806
2822
  color: x.DIVIDER,
2807
- size: Va,
2823
+ size: $a,
2808
2824
  my: 0,
2809
2825
  mx: 0
2810
2826
  }
@@ -2830,7 +2846,7 @@ function $l(e) {
2830
2846
  "data-testid": "control-section-toggle",
2831
2847
  "aria-label": O,
2832
2848
  "aria-expanded": P,
2833
- "aria-controls": C,
2849
+ "aria-controls": z,
2834
2850
  onClick: L,
2835
2851
  style: { ...D, cursor: "pointer" },
2836
2852
  children: [
@@ -2850,14 +2866,14 @@ function $l(e) {
2850
2866
  "data-testid": "control-section-dot",
2851
2867
  style: {
2852
2868
  flex: "0 0 auto",
2853
- width: $n,
2854
- height: $n,
2869
+ width: Bn,
2870
+ height: Bn,
2855
2871
  borderRadius: "50%",
2856
2872
  background: x.ACCENT
2857
2873
  }
2858
2874
  }
2859
2875
  ),
2860
- R && /* @__PURE__ */ n(Ma, { label: t, children: d }),
2876
+ R && /* @__PURE__ */ n(Va, { label: t, children: d }),
2861
2877
  /* @__PURE__ */ n(h, { style: { flex: "1 1 auto" } }),
2862
2878
  f != null && /* @__PURE__ */ n(
2863
2879
  h,
@@ -2891,7 +2907,7 @@ function $l(e) {
2891
2907
  }
2892
2908
  ),
2893
2909
  R && /* @__PURE__ */ n(h, { id: T, "data-testid": "control-section-description", hidden: !0, children: d }),
2894
- y && /* @__PURE__ */ n(Ri, { id: C, in: P, children: /* @__PURE__ */ n(
2910
+ y && /* @__PURE__ */ n(Li, { id: z, in: P, children: /* @__PURE__ */ n(
2895
2911
  h,
2896
2912
  {
2897
2913
  "data-testid": "control-section-content",
@@ -2907,8 +2923,8 @@ function $l(e) {
2907
2923
  }
2908
2924
  );
2909
2925
  }
2910
- const en = "control-sub-group", Bn = 4, Ua = 10, Wa = 1.2;
2911
- function Bl(e) {
2926
+ const en = "control-sub-group", $n = 4, Ya = 10, ja = 1.2;
2927
+ function Wl(e) {
2912
2928
  const { label: t, opened: i, defaultOpened: o, onOpenChange: r, children: a } = e, s = fe(), p = Qe(), u = X(void 0), [d, f] = ae({
2913
2929
  value: i,
2914
2930
  defaultValue: o,
@@ -2923,9 +2939,9 @@ function Bl(e) {
2923
2939
  },
2924
2940
  [f]
2925
2941
  ), v = d ? s.collapseSection(t) : s.expandSection(t);
2926
- let z = "chevronDown";
2927
- d || (z = ze(p) ? "chevronLeft" : "chevronRight");
2928
- const C = {
2942
+ let C = "chevronDown";
2943
+ d || (C = Ce(p) ? "chevronLeft" : "chevronRight");
2944
+ const z = {
2929
2945
  // A section draws the only rule in a panel. A sub-group is quieter than
2930
2946
  // a section, so the item's own bottom border is taken off.
2931
2947
  item: {
@@ -2944,12 +2960,12 @@ function Bl(e) {
2944
2960
  label: {
2945
2961
  paddingBlock: 0,
2946
2962
  fontSize: "var(--mantine-font-size-xs)",
2947
- lineHeight: Wa,
2963
+ lineHeight: ja,
2948
2964
  color: x.CHROME
2949
2965
  },
2950
2966
  chevron: {
2951
2967
  marginInlineStart: 0,
2952
- marginInlineEnd: Bn,
2968
+ marginInlineEnd: $n,
2953
2969
  color: x.CHROME
2954
2970
  },
2955
2971
  content: {
@@ -2967,8 +2983,8 @@ function Bl(e) {
2967
2983
  chevronPosition: "left",
2968
2984
  chevronSize: c.GLYPH_SLOT,
2969
2985
  disableChevronRotation: !0,
2970
- chevron: /* @__PURE__ */ n(pe, { name: z, size: Ua }),
2971
- styles: C,
2986
+ chevron: /* @__PURE__ */ n(pe, { name: C, size: Ya }),
2987
+ styles: z,
2972
2988
  children: /* @__PURE__ */ S(Lt.Item, { value: en, "data-testid": "control-sub-group-item", children: [
2973
2989
  /* @__PURE__ */ n(
2974
2990
  Lt.Control,
@@ -2997,7 +3013,7 @@ function Bl(e) {
2997
3013
  h,
2998
3014
  {
2999
3015
  "data-testid": "control-sub-group-content",
3000
- style: { display: "flex", flexDirection: "column", gap: Bn },
3016
+ style: { display: "flex", flexDirection: "column", gap: $n },
3001
3017
  children: a
3002
3018
  }
3003
3019
  ) })
@@ -3011,7 +3027,7 @@ function It(e) {
3011
3027
  const t = e.nativeEvent;
3012
3028
  return typeof PointerEvent < "u" && t instanceof PointerEvent ? { source: t.pointerType === "" ? "keyboard" : "pointer" } : { source: t.detail === 0 ? "keyboard" : "pointer" };
3013
3029
  }
3014
- function Ya(e) {
3030
+ function Ka(e) {
3015
3031
  const t = fe();
3016
3032
  return Z(() => ({ ...t, ...e }), [t, e]);
3017
3033
  }
@@ -3019,11 +3035,11 @@ const xe = -1;
3019
3035
  function mt(e, t, i) {
3020
3036
  return Math.min(Math.max(e, t), i);
3021
3037
  }
3022
- function ja(e, t, i, o, r) {
3038
+ function Xa(e, t, i, o, r) {
3023
3039
  const { rowCount: a, columnCount: s, pageSize: p } = i, u = a - 1, d = s - 1;
3024
3040
  if (s === 0)
3025
3041
  return;
3026
- const f = ze(o) ? "ArrowLeft" : "ArrowRight", g = ze(o) ? "ArrowRight" : "ArrowLeft";
3042
+ const f = Ce(o) ? "ArrowLeft" : "ArrowRight", g = Ce(o) ? "ArrowRight" : "ArrowLeft";
3027
3043
  if (t === f)
3028
3044
  return { row: e.row, column: Math.min(e.column + 1, d) };
3029
3045
  if (t === g)
@@ -3041,7 +3057,7 @@ function ja(e, t, i, o, r) {
3041
3057
  if (t === "PageUp")
3042
3058
  return { row: mt(Math.max(e.row, 0) - p, 0, Math.max(u, 0)), column: e.column };
3043
3059
  }
3044
- function Ka(e, t) {
3060
+ function qa(e, t) {
3045
3061
  const i = t.rowCount - 1, o = Math.max(t.columnCount - 1, 0);
3046
3062
  return {
3047
3063
  row: mt(e.row, xe, Math.max(i, xe)),
@@ -3051,7 +3067,7 @@ function Ka(e, t) {
3051
3067
  function kt(e, t) {
3052
3068
  return e.row === t.row && e.column === t.column;
3053
3069
  }
3054
- function Xa(e, t, i) {
3070
+ function Za(e, t, i) {
3055
3071
  const o = Math.min(t, i), r = Math.max(t, i);
3056
3072
  return e.slice(o, r + 1);
3057
3073
  }
@@ -3063,7 +3079,7 @@ function pn(e, t) {
3063
3079
  i.has(r) && o.push(r);
3064
3080
  return o;
3065
3081
  }
3066
- function qa(e) {
3082
+ function Ja(e) {
3067
3083
  const { ids: t, index: i, selected: o, anchor: r, modifiers: a, mode: s } = e, p = t[i];
3068
3084
  if (s === "none" || p === void 0)
3069
3085
  return { selected: [...o], anchor: r };
@@ -3071,7 +3087,7 @@ function qa(e) {
3071
3087
  return { selected: [p], anchor: p };
3072
3088
  const u = r === void 0 ? -1 : t.indexOf(r);
3073
3089
  if (a.extend && u !== -1) {
3074
- const d = Xa(t, u, i);
3090
+ const d = Za(t, u, i);
3075
3091
  return { selected: a.toggle ? pn([...o, ...d], t) : d, anchor: r };
3076
3092
  }
3077
3093
  if (a.toggle) {
@@ -3080,7 +3096,7 @@ function qa(e) {
3080
3096
  }
3081
3097
  return { selected: [p], anchor: p };
3082
3098
  }
3083
- function Za(e, t, i) {
3099
+ function Qa(e, t, i) {
3084
3100
  return i !== "multiple" ? { selected: [...t], anchor: void 0 } : { selected: pn([...t, ...e], e), anchor: e[0] };
3085
3101
  }
3086
3102
  function Un(e, t) {
@@ -3089,27 +3105,27 @@ function Un(e, t) {
3089
3105
  function Wn(e) {
3090
3106
  return e == null ? !0 : typeof e == "number" ? !Number.isFinite(e) : e instanceof Date && Number.isNaN(e.getTime());
3091
3107
  }
3092
- function Ja(e, t, i) {
3108
+ function es(e, t, i) {
3093
3109
  const o = Wn(e), r = Wn(t);
3094
3110
  return o || r ? o && r ? 0 : o ? -1 : 1 : typeof e == "number" && typeof t == "number" ? e - t : typeof e == "boolean" && typeof t == "boolean" ? e === t ? 0 : e ? 1 : -1 : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : i.compare(String(e), String(t));
3095
3111
  }
3096
- const Qa = Di({
3097
- columnFilteringFeature: $i,
3098
- columnOrderingFeature: Vi,
3099
- columnVisibilityFeature: Fi,
3100
- filteredRowModel: Ui(),
3101
- globalFilteringFeature: Mi,
3102
- rowSelectionFeature: Gi,
3103
- rowSortingFeature: ki,
3104
- sortedRowModel: Bi()
3105
- }), es = 320, ts = 8, ns = 12, os = 1.2, is = "var(--mantine-primary-color-light)", Yn = "mantine-focus-auto", tn = [], rs = [];
3112
+ const ts = Gi({
3113
+ columnFilteringFeature: Ui,
3114
+ columnOrderingFeature: $i,
3115
+ columnVisibilityFeature: Bi,
3116
+ filteredRowModel: Yi(),
3117
+ globalFilteringFeature: Vi,
3118
+ rowSelectionFeature: Fi,
3119
+ rowSortingFeature: Mi,
3120
+ sortedRowModel: Wi()
3121
+ }), ns = 320, os = 8, is = 12, rs = 1.2, as = "var(--mantine-primary-color-light)", Yn = "mantine-focus-auto", tn = [], ss = [];
3106
3122
  function jn(e) {
3107
3123
  return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
3108
3124
  }
3109
- function as(e, t, i) {
3125
+ function ls(e, t, i) {
3110
3126
  return Math.min(Math.max(e, t), i);
3111
3127
  }
3112
- function ss(e, t) {
3128
+ function cs(e, t) {
3113
3129
  const {
3114
3130
  data: i,
3115
3131
  columns: o,
@@ -3117,14 +3133,14 @@ function ss(e, t) {
3117
3133
  label: a,
3118
3134
  labelledBy: s,
3119
3135
  labels: p,
3120
- height: u = es,
3136
+ height: u = ns,
3121
3137
  rowHeight: d = c.DATA_PITCH,
3122
3138
  headerHeight: f = c.CONTROL_HEIGHT,
3123
- overscan: g = ts,
3139
+ overscan: g = os,
3124
3140
  selectionMode: m = "multiple",
3125
3141
  selectedIds: v,
3126
- defaultSelectedIds: z,
3127
- onSelectionChange: C,
3142
+ defaultSelectedIds: C,
3143
+ onSelectionChange: z,
3128
3144
  sorting: T,
3129
3145
  defaultSorting: P,
3130
3146
  onSortingChange: E,
@@ -3144,20 +3160,20 @@ function ss(e, t) {
3144
3160
  onFocus: N,
3145
3161
  onBlur: G,
3146
3162
  empty: J
3147
- } = e, Q = Ya(p), ve = Qe(), ne = ct(), de = bt(), re = Zr({ numeric: !0, sensitivity: "variant" }), j = Z(() => new Intl.DateTimeFormat(ne), [ne]), se = Z(
3163
+ } = e, Q = Ka(p), ve = Qe(), ne = ct(), de = bt(), re = Qr({ numeric: !0, sensitivity: "variant" }), j = Z(() => new Intl.DateTimeFormat(ne), [ne]), se = Z(
3148
3164
  () => ({ number: de, date: j, yes: Q.yes, no: Q.no }),
3149
3165
  [de, j, Q.yes, Q.no]
3150
3166
  ), [K, ye] = ae({
3151
3167
  value: v,
3152
- defaultValue: z,
3168
+ defaultValue: C,
3153
3169
  finalValue: tn,
3154
3170
  onChange: (l, I) => {
3155
- C == null || C([...l], I);
3171
+ z == null || z([...l], I);
3156
3172
  }
3157
3173
  }), [we, ee] = ae({
3158
3174
  value: T,
3159
3175
  defaultValue: P,
3160
- finalValue: rs,
3176
+ finalValue: ss,
3161
3177
  onChange: (l, I) => {
3162
3178
  E == null || E([...l], I);
3163
3179
  }
@@ -3207,7 +3223,7 @@ function ss(e, t) {
3207
3223
  // accented word after every unaccented one. This one reads the
3208
3224
  // value through the column's own accessor and compares it with
3209
3225
  // the collator for the active locale.
3210
- sortFn: (I, _) => Ja(l.value(I.original), l.value(_.original), re)
3226
+ sortFn: (I, _) => es(l.value(I.original), l.value(_.original), re)
3211
3227
  })),
3212
3228
  [o, re]
3213
3229
  ), ut = JSON.stringify(we), pt = Z(
@@ -3223,8 +3239,8 @@ function ss(e, t) {
3223
3239
  for (const I of K)
3224
3240
  l[I] = !0;
3225
3241
  return l;
3226
- }, [K]), it = Z(() => [...Ue], [Ue]), Ae = X(void 0), $ = Ni({
3227
- features: Qa,
3242
+ }, [K]), it = Z(() => [...Ue], [Ue]), Ae = X(void 0), B = ki({
3243
+ features: ts,
3228
3244
  data: Ye,
3229
3245
  columns: nt,
3230
3246
  getRowId: r,
@@ -3265,16 +3281,16 @@ function ss(e, t) {
3265
3281
  onRowSelectionChange: (l) => {
3266
3282
  ye(Object.keys(Ot(l, Me)));
3267
3283
  }
3268
- }), { rows: oe } = $.getRowModel(), ie = $.getVisibleLeafColumns(), le = oe.length, me = ie.length, Le = Z(() => oe.map((l) => l.id), [oe]), M = X(null), ce = X(null), Ne = Wi({
3284
+ }), { rows: oe } = B.getRowModel(), ie = B.getVisibleLeafColumns(), le = oe.length, me = ie.length, Le = Z(() => oe.map((l) => l.id), [oe]), M = X(null), ce = X(null), Ne = ji({
3269
3285
  count: le,
3270
3286
  getScrollElement: () => M.current,
3271
3287
  estimateSize: () => d,
3272
3288
  getItemKey: (l) => Le[l] ?? l,
3273
3289
  overscan: g
3274
- }), [zt, je] = Oe({ row: xe, column: 0 }), he = Z(() => Ka(zt, { rowCount: le, columnCount: me }), [zt, le, me]), ft = X(!1), Ke = X(void 0), $o = (l) => {
3290
+ }), [Ct, je] = Oe({ row: xe, column: 0 }), he = Z(() => qa(Ct, { rowCount: le, columnCount: me }), [Ct, le, me]), ft = X(!1), Ke = X(void 0), Bo = (l) => {
3275
3291
  l.row >= 0 && Ne.scrollToIndex(l.row), ft.current = !0, je((I) => kt(I, l) ? I : l);
3276
3292
  };
3277
- Oi(() => {
3293
+ Hi(() => {
3278
3294
  var _;
3279
3295
  if (!ft.current)
3280
3296
  return;
@@ -3283,9 +3299,9 @@ function ss(e, t) {
3283
3299
  });
3284
3300
  const Sn = (l, I) => {
3285
3301
  Ke.current = l.anchor, !(l.selected.length === K.length && l.selected.every((U, te) => U === K[te])) && ye(l.selected, I);
3286
- }, Ct = (l, I, _) => {
3302
+ }, zt = (l, I, _) => {
3287
3303
  Sn(
3288
- qa({
3304
+ Ja({
3289
3305
  ids: Le,
3290
3306
  index: l,
3291
3307
  selected: K,
@@ -3298,7 +3314,7 @@ function ss(e, t) {
3298
3314
  }, En = (l, I, _) => {
3299
3315
  const U = oe[l];
3300
3316
  U !== void 0 && (H == null || H(U.original, I, _));
3301
- }, Bo = (l, I) => {
3317
+ }, $o = (l, I) => {
3302
3318
  l.getCanSort() && (Ae.current = I, l.toggleSorting(void 0, I.shiftKey && l.getCanMultiSort()), Ae.current = void 0);
3303
3319
  }, Uo = () => {
3304
3320
  var _;
@@ -3307,23 +3323,23 @@ function ss(e, t) {
3307
3323
  }, Wo = (l) => {
3308
3324
  const I = m === "multiple", _ = l.ctrlKey || l.metaKey;
3309
3325
  if (I && _ && (l.key === "a" || l.key === "A")) {
3310
- l.preventDefault(), Sn(Za(Le, K, m), l);
3326
+ l.preventDefault(), Sn(Qa(Le, K, m), l);
3311
3327
  return;
3312
3328
  }
3313
3329
  if (he.row >= 0 && (l.key === " " || l.key === "Enter")) {
3314
- l.preventDefault(), l.key === " " ? Ct(he.row, { extend: l.shiftKey, toggle: !l.shiftKey }, l) : (Ct(he.row, { extend: !1, toggle: !1 }, l), En(he.row, l, { source: "keyboard" }));
3330
+ l.preventDefault(), l.key === " " ? zt(he.row, { extend: l.shiftKey, toggle: !l.shiftKey }, l) : (zt(he.row, { extend: !1, toggle: !1 }, l), En(he.row, l, { source: "keyboard" }));
3315
3331
  return;
3316
3332
  }
3317
- const U = ja(
3333
+ const U = Xa(
3318
3334
  he,
3319
3335
  l.key,
3320
3336
  { rowCount: le, columnCount: me, pageSize: Uo() },
3321
3337
  ve,
3322
3338
  { jumpToEnd: _ }
3323
3339
  );
3324
- U !== void 0 && (l.preventDefault(), $o(U), I && l.shiftKey && U.row >= 0 && U.row !== he.row && Ct(U.row, { extend: !0, toggle: !1 }, l));
3340
+ U !== void 0 && (l.preventDefault(), Bo(U), I && l.shiftKey && U.row >= 0 && U.row !== he.row && zt(U.row, { extend: !0, toggle: !1 }, l));
3325
3341
  };
3326
- _i(
3342
+ Ni(
3327
3343
  t,
3328
3344
  () => ({
3329
3345
  scrollToRow: (l) => {
@@ -3331,17 +3347,17 @@ function ss(e, t) {
3331
3347
  },
3332
3348
  setColumnHidden: (l, I) => {
3333
3349
  var _;
3334
- (_ = $.getColumn(l)) == null || _.toggleVisibility(!I);
3350
+ (_ = B.getColumn(l)) == null || _.toggleVisibility(!I);
3335
3351
  },
3336
3352
  moveColumn: (l, I) => {
3337
- const _ = $.getAllLeafColumns().map((te) => te.id), U = _.indexOf(l);
3338
- U !== -1 && (_.splice(U, 1), _.splice(as(I, 0, _.length), 0, l), $.setColumnOrder(_));
3353
+ const _ = B.getAllLeafColumns().map((te) => te.id), U = _.indexOf(l);
3354
+ U !== -1 && (_.splice(U, 1), _.splice(ls(I, 0, _.length), 0, l), B.setColumnOrder(_));
3339
3355
  },
3340
3356
  clearSelection: () => {
3341
3357
  Ke.current = void 0, ye([]);
3342
3358
  }
3343
3359
  }),
3344
- [$, Ne, le, ye]
3360
+ [B, Ne, le, ye]
3345
3361
  );
3346
3362
  const Yo = ie.reduce(
3347
3363
  (l, I) => {
@@ -3371,7 +3387,7 @@ function ss(e, t) {
3371
3387
  h,
3372
3388
  {
3373
3389
  "data-testid": "data-table",
3374
- dir: ze(ve) ? "rtl" : void 0,
3390
+ dir: Ce(ve) ? "rtl" : void 0,
3375
3391
  onFocus: N,
3376
3392
  onBlur: G,
3377
3393
  style: {
@@ -3384,7 +3400,7 @@ function ss(e, t) {
3384
3400
  children: [
3385
3401
  A && /* @__PURE__ */ S(h, { style: { display: "flex", alignItems: "center", gap: c.GUTTER }, children: [
3386
3402
  /* @__PURE__ */ n(
3387
- Bt,
3403
+ $t,
3388
3404
  {
3389
3405
  "data-testid": "data-table-search",
3390
3406
  size: "xs",
@@ -3468,8 +3484,8 @@ function ss(e, t) {
3468
3484
  display: "grid",
3469
3485
  width: "100%",
3470
3486
  minWidth: Yo,
3471
- fontSize: ns,
3472
- lineHeight: os
3487
+ fontSize: is,
3488
+ lineHeight: rs
3473
3489
  },
3474
3490
  children: [
3475
3491
  /* @__PURE__ */ n(
@@ -3590,7 +3606,7 @@ function ss(e, t) {
3590
3606
  "data-grid-column": I,
3591
3607
  tabIndex: At,
3592
3608
  onClick: (Fe) => {
3593
- je({ row: xe, column: I }), Bo(l, Fe);
3609
+ je({ row: xe, column: I }), $o(l, Fe);
3594
3610
  },
3595
3611
  onFocus: () => {
3596
3612
  je(
@@ -3660,7 +3676,7 @@ function ss(e, t) {
3660
3676
  width: "100%",
3661
3677
  height: d,
3662
3678
  transform: `translateY(${String(l.start)}px)`,
3663
- background: _ ? is : void 0,
3679
+ background: _ ? as : void 0,
3664
3680
  cursor: Pt ? "pointer" : void 0
3665
3681
  },
3666
3682
  children: ie.map((U, te) => {
@@ -3695,7 +3711,7 @@ function ss(e, t) {
3695
3711
  );
3696
3712
  },
3697
3713
  onClick: (Ve) => {
3698
- je({ row: l.index, column: te }), Ct(
3714
+ je({ row: l.index, column: te }), zt(
3699
3715
  l.index,
3700
3716
  {
3701
3717
  extend: Ve.shiftKey,
@@ -3741,22 +3757,22 @@ function ss(e, t) {
3741
3757
  }
3742
3758
  );
3743
3759
  }
3744
- const Ul = Ie.forwardRef(ss);
3745
- function ls() {
3760
+ const Yl = Ie.forwardRef(cs);
3761
+ function ds() {
3746
3762
  return crypto.randomUUID().slice(0, 8);
3747
3763
  }
3748
3764
  function fn(e, t) {
3749
3765
  return {
3750
- id: ls(),
3766
+ id: ds(),
3751
3767
  offset: e,
3752
3768
  color: t
3753
3769
  };
3754
3770
  }
3755
- function cs() {
3771
+ function us() {
3756
3772
  return [fn(0, "#6366F1"), fn(1, "#06B6D4")];
3757
3773
  }
3758
- const ds = 2, us = 5, ps = 80, fs = 0, nn = 100, on = 0, hs = 360, gs = [0, 90, 180, 270, 360];
3759
- function Wl({
3774
+ const ps = 2, fs = 5, hs = 80, gs = 0, nn = 100, on = 0, ms = 360, xs = [0, 90, 180, 270, 360];
3775
+ function jl({
3760
3776
  stops: e,
3761
3777
  defaultStops: t,
3762
3778
  direction: i,
@@ -3765,13 +3781,13 @@ function Wl({
3765
3781
  onChange: a,
3766
3782
  onChangeStart: s,
3767
3783
  onChangeEnd: p,
3768
- minStops: u = ds,
3769
- maxStops: d = us
3784
+ minStops: u = ps,
3785
+ maxStops: d = fs
3770
3786
  }) {
3771
- const f = fe(), g = bt({ maximumFractionDigits: 0 }), m = ue(), v = ue(), z = Z(() => cs(), []), [C, T] = ae({
3787
+ const f = fe(), g = bt({ maximumFractionDigits: 0 }), m = ue(), v = ue(), C = Z(() => us(), []), [z, T] = ae({
3772
3788
  value: e,
3773
3789
  defaultValue: t,
3774
- finalValue: z,
3790
+ finalValue: C,
3775
3791
  onChange: (A, H) => {
3776
3792
  a == null || a(A, P, H);
3777
3793
  }
@@ -3780,23 +3796,23 @@ function Wl({
3780
3796
  defaultValue: o,
3781
3797
  finalValue: on,
3782
3798
  onChange: (A, H) => {
3783
- a == null || a(C, A, H);
3799
+ a == null || a(z, A, H);
3784
3800
  }
3785
3801
  }), y = X(!1), R = (A) => {
3786
3802
  y.current || (y.current = !0, s == null || s(A));
3787
3803
  }, L = (A, H) => {
3788
3804
  y.current = !1, p == null || p(A, H);
3789
- }, O = (A, H) => C.map((b, w) => w === A ? { ...b, color: H } : b), k = (A, H) => C.map((b, w) => w === A ? { ...b, offset: H / nn } : b), W = (A) => {
3790
- if (C.length >= d)
3805
+ }, O = (A, H) => z.map((b, w) => w === A ? { ...b, color: H } : b), k = (A, H) => z.map((b, w) => w === A ? { ...b, offset: H / nn } : b), W = (A) => {
3806
+ if (z.length >= d)
3791
3807
  return;
3792
- const H = C[C.length - 1], b = H === void 0 ? 0.5 : (H.offset + 1) / 2, w = [...C, fn(b, qt)];
3808
+ const H = z[z.length - 1], b = H === void 0 ? 0.5 : (H.offset + 1) / 2, w = [...z, fn(b, qt)];
3793
3809
  w.sort((N, G) => N.offset - G.offset), T(w, A);
3794
3810
  }, V = (A, H) => {
3795
- C.length <= u || T(
3796
- C.filter((b, w) => w !== A),
3811
+ z.length <= u || T(
3812
+ z.filter((b, w) => w !== A),
3797
3813
  H
3798
3814
  );
3799
- }, D = C.length >= d, Y = C.length <= u;
3815
+ }, D = z.length >= d, Y = z.length <= u;
3800
3816
  return /* @__PURE__ */ S(Et, { "data-testid": "gradient-editor", gap: "xs", children: [
3801
3817
  /* @__PURE__ */ S(qe, { justify: "space-between", align: "center", children: [
3802
3818
  /* @__PURE__ */ n(De, { id: m, "data-testid": "gradient-editor-heading", size: "xs", c: x.CHROME, children: f.colorStops }),
@@ -3814,11 +3830,11 @@ function Wl({
3814
3830
  }
3815
3831
  )
3816
3832
  ] }),
3817
- /* @__PURE__ */ n(Et, { "data-testid": "gradient-editor-stops", gap: "xs", role: "group", "aria-labelledby": m, children: C.map((A, H) => {
3833
+ /* @__PURE__ */ n(Et, { "data-testid": "gradient-editor-stops", gap: "xs", role: "group", "aria-labelledby": m, children: z.map((A, H) => {
3818
3834
  const b = g.format(H + 1);
3819
3835
  return /* @__PURE__ */ S(qe, { "data-testid": "gradient-editor-stop", gap: "xs", align: "flex-end", wrap: "nowrap", children: [
3820
3836
  /* @__PURE__ */ n(
3821
- _a,
3837
+ Na,
3822
3838
  {
3823
3839
  color: A.color,
3824
3840
  defaultColor: qt,
@@ -3828,11 +3844,11 @@ function Wl({
3828
3844
  showOpacity: !1
3829
3845
  }
3830
3846
  ),
3831
- /* @__PURE__ */ n(h, { style: { width: ps }, children: /* @__PURE__ */ n(
3847
+ /* @__PURE__ */ n(h, { style: { width: hs }, children: /* @__PURE__ */ n(
3832
3848
  ln,
3833
3849
  {
3834
3850
  "data-testid": "gradient-editor-stop-position",
3835
- min: fs,
3851
+ min: gs,
3836
3852
  max: nn,
3837
3853
  value: A.offset * nn,
3838
3854
  onPointerDown: R,
@@ -3880,18 +3896,18 @@ function Wl({
3880
3896
  {
3881
3897
  "data-testid": "gradient-editor-direction-slider",
3882
3898
  min: on,
3883
- max: hs,
3899
+ max: ms,
3884
3900
  value: P,
3885
3901
  onPointerDown: R,
3886
3902
  onChange: (A) => {
3887
3903
  R(), E(A);
3888
3904
  },
3889
3905
  onChangeEnd: (A) => {
3890
- L(C, A);
3906
+ L(z, A);
3891
3907
  },
3892
3908
  label: (A) => f.degrees(g.format(A)),
3893
3909
  thumbLabel: f.gradientDirection,
3894
- marks: gs.map((A) => ({
3910
+ marks: xs.map((A) => ({
3895
3911
  value: A,
3896
3912
  label: f.degrees(g.format(A))
3897
3913
  }))
@@ -3900,15 +3916,15 @@ function Wl({
3900
3916
  ] })
3901
3917
  ] });
3902
3918
  }
3903
- const ms = 4, xs = 2, bs = 1.1;
3904
- function vs() {
3919
+ const bs = 4, vs = 2, ys = 1.1;
3920
+ function ws() {
3905
3921
  const e = ct();
3906
3922
  return Z(() => {
3907
3923
  var i;
3908
- return ((i = new Intl.NumberFormat(e).formatToParts(bs).find((o) => o.type === "decimal")) == null ? void 0 : i.value) ?? ".";
3924
+ return ((i = new Intl.NumberFormat(e).formatToParts(ys).find((o) => o.type === "decimal")) == null ? void 0 : i.value) ?? ".";
3909
3925
  }, [e]);
3910
3926
  }
3911
- function Yl({
3927
+ function Kl({
3912
3928
  label: e,
3913
3929
  value: t,
3914
3930
  defaultValue: i,
@@ -3924,7 +3940,7 @@ function Yl({
3924
3940
  onFocus: m,
3925
3941
  onBlur: v
3926
3942
  }) {
3927
- const z = fe(), C = vt({ name: e, disabled: f, disabledReason: g }), T = yo(), P = vs(), [E, y] = ae({
3943
+ const C = fe(), z = vt({ name: e, disabled: f, disabledReason: g }), T = yo(), P = ws(), [E, y] = ae({
3928
3944
  value: t,
3929
3945
  defaultValue: void 0,
3930
3946
  finalValue: void 0,
@@ -3950,18 +3966,18 @@ function Yl({
3950
3966
  qe,
3951
3967
  {
3952
3968
  "data-testid": "style-number-input",
3953
- gap: ms,
3969
+ gap: bs,
3954
3970
  wrap: "nowrap",
3955
3971
  align: "flex-end",
3956
- title: C.title,
3972
+ title: z.title,
3957
3973
  "data-disabled": f ? "true" : void 0,
3958
3974
  children: [
3959
3975
  /* @__PURE__ */ n(
3960
- $t,
3976
+ Bt,
3961
3977
  {
3962
3978
  "data-testid": "style-number-input-field",
3963
3979
  label: e,
3964
- description: C.description,
3980
+ description: z.description,
3965
3981
  value: O,
3966
3982
  onChange: V,
3967
3983
  onFocus: m,
@@ -3997,9 +4013,9 @@ function Yl({
3997
4013
  c: x.CHROME,
3998
4014
  "data-testid": "style-number-input-reset",
3999
4015
  disabled: f,
4000
- "aria-label": z.resetToDefault(e),
4016
+ "aria-label": C.resetToDefault(e),
4001
4017
  onClick: Y,
4002
- style: { marginBlockEnd: xs },
4018
+ style: { marginBlockEnd: vs },
4003
4019
  children: /* @__PURE__ */ n(pe, { name: "reset", size: c.CHEVRON })
4004
4020
  }
4005
4021
  )
@@ -4007,8 +4023,8 @@ function Yl({
4007
4023
  }
4008
4024
  );
4009
4025
  }
4010
- const ys = 4, ws = 2;
4011
- function jl({
4026
+ const Ss = 4, Es = 2;
4027
+ function Xl({
4012
4028
  label: e,
4013
4029
  value: t,
4014
4030
  defaultValue: i,
@@ -4024,7 +4040,7 @@ function jl({
4024
4040
  defaultValue: void 0,
4025
4041
  finalValue: void 0,
4026
4042
  onChange: r
4027
- }), v = g === void 0, z = g ?? i, C = (P) => {
4043
+ }), v = g === void 0, C = g ?? i, z = (P) => {
4028
4044
  P !== null && m(P);
4029
4045
  }, T = (P) => {
4030
4046
  m(void 0, P);
@@ -4033,7 +4049,7 @@ function jl({
4033
4049
  qe,
4034
4050
  {
4035
4051
  "data-testid": "style-select",
4036
- gap: ys,
4052
+ gap: Ss,
4037
4053
  wrap: "nowrap",
4038
4054
  align: "flex-end",
4039
4055
  title: f.title,
@@ -4045,8 +4061,8 @@ function jl({
4045
4061
  "data-testid": "style-select-field",
4046
4062
  label: e,
4047
4063
  description: f.description,
4048
- value: z,
4049
- onChange: C,
4064
+ value: C,
4065
+ onChange: z,
4050
4066
  onFocus: p,
4051
4067
  onBlur: u,
4052
4068
  data: o,
@@ -4079,7 +4095,7 @@ function jl({
4079
4095
  disabled: a,
4080
4096
  "aria-label": d.resetToDefault(e),
4081
4097
  onClick: T,
4082
- style: { marginBlockEnd: ws },
4098
+ style: { marginBlockEnd: Es },
4083
4099
  children: /* @__PURE__ */ n(pe, { name: "reset", size: c.CHEVRON })
4084
4100
  }
4085
4101
  )
@@ -4087,8 +4103,8 @@ function jl({
4087
4103
  }
4088
4104
  );
4089
4105
  }
4090
- const Gt = 4, Ss = `${String(c.TOGGLE_PITCH)}px`;
4091
- function Kl({
4106
+ const Gt = 4, Is = `${String(c.TOGGLE_PITCH)}px`;
4107
+ function ql({
4092
4108
  label: e,
4093
4109
  checked: t,
4094
4110
  defaultChecked: i,
@@ -4101,13 +4117,13 @@ function Kl({
4101
4117
  onBlur: d,
4102
4118
  children: f
4103
4119
  }) {
4104
- const g = ue(), m = fe(), [v, z] = ae({
4120
+ const g = ue(), m = fe(), [v, C] = ae({
4105
4121
  value: t,
4106
4122
  defaultValue: i,
4107
4123
  finalValue: !1,
4108
4124
  onChange: o
4109
- }), C = (R) => {
4110
- z(R.currentTarget.checked, R);
4125
+ }), z = (R) => {
4126
+ C(R.currentTarget.checked, R);
4111
4127
  }, T = {
4112
4128
  root: { minWidth: 0 },
4113
4129
  body: { alignItems: "center", minWidth: 0 },
@@ -4118,7 +4134,7 @@ function Kl({
4118
4134
  // Logical, so the word sits after the box in both directions.
4119
4135
  paddingInlineStart: Gt,
4120
4136
  fontSize: "var(--mantine-font-size-sm)",
4121
- lineHeight: Ss,
4137
+ lineHeight: Is,
4122
4138
  color: r ? x.DISABLED : x.VALUE,
4123
4139
  overflow: "hidden",
4124
4140
  textOverflow: "ellipsis",
@@ -4140,7 +4156,7 @@ function Kl({
4140
4156
  "aria-expanded": v,
4141
4157
  "aria-controls": v ? g : void 0,
4142
4158
  "aria-describedby": E.describedBy,
4143
- onChange: C,
4159
+ onChange: z,
4144
4160
  onFocus: u,
4145
4161
  onBlur: d,
4146
4162
  wrapperProps: { title: E.title },
@@ -4208,14 +4224,14 @@ function Ze(e, t) {
4208
4224
  const i = Lo(e, t);
4209
4225
  return i === "off" ? { "aria-busy": t } : { "aria-live": i, "aria-atomic": !0, "aria-busy": t };
4210
4226
  }
4211
- const rn = 4, Es = "(hover: none)";
4212
- function Is(e) {
4227
+ const rn = 4, Ts = "(hover: none)";
4228
+ function Cs(e) {
4213
4229
  if (typeof e == "string")
4214
4230
  return e;
4215
4231
  if (typeof e == "number")
4216
4232
  return String(e);
4217
4233
  }
4218
- function Xl(e) {
4234
+ function Zl(e) {
4219
4235
  const {
4220
4236
  state: t,
4221
4237
  stateTitle: i,
@@ -4228,11 +4244,11 @@ function Xl(e) {
4228
4244
  onClick: d,
4229
4245
  onFocus: f,
4230
4246
  onBlur: g
4231
- } = e, m = Ze(r, o), { hovered: v, ref: z } = fo(), C = ho(Es) ?? !1, [T, P] = Oe(!1), E = ue(), y = T || (p ?? (v || C)), R = a !== void 0 || s !== void 0, L = Is(t), O = i !== void 0 && i !== L, k = i ?? L, W = R && t !== void 0, V = O ? /* @__PURE__ */ S(q, { children: [
4247
+ } = e, m = Ze(r, o), { hovered: v, ref: C } = fo(), z = ho(Ts) ?? !1, [T, P] = Oe(!1), E = ue(), y = T || (p ?? (v || z)), R = a !== void 0 || s !== void 0, L = Cs(t), O = i !== void 0 && i !== L, k = i ?? L, W = R && t !== void 0, V = O ? /* @__PURE__ */ S(q, { children: [
4232
4248
  /* @__PURE__ */ n("span", { "aria-hidden": "true", children: t }),
4233
4249
  /* @__PURE__ */ n(Te, { "data-testid": "action-row-state-full", children: i })
4234
4250
  ] }) : t;
4235
- Be(
4251
+ $e(
4236
4252
  d !== void 0 && t === void 0 ? "ActionRow was given onClick but no state, and its own activation is carried by the text it reports. That text is also what names the row for a screen reader, so a row with nothing to report has nothing to activate. Give the row a state, or put the action on a control in actions." : void 0
4237
4253
  );
4238
4254
  const D = (w) => {
@@ -4266,7 +4282,7 @@ function Xl(e) {
4266
4282
  return /* @__PURE__ */ S(
4267
4283
  h,
4268
4284
  {
4269
- ref: z,
4285
+ ref: C,
4270
4286
  "data-testid": "action-row",
4271
4287
  role: W ? "group" : void 0,
4272
4288
  "aria-labelledby": W ? E : void 0,
@@ -4363,8 +4379,8 @@ function Xl(e) {
4363
4379
  }
4364
4380
  );
4365
4381
  }
4366
- const Oo = c.GUTTER, Ts = 12, _o = 1.2, zs = 20, Cs = 500, Ps = "var(--mantine-primary-color-light)";
4367
- function ql({
4382
+ const Oo = c.GUTTER, zs = 12, _o = 1.2, Ps = 20, Rs = 500, As = "var(--mantine-primary-color-light)";
4383
+ function Jl({
4368
4384
  name: e,
4369
4385
  value: t,
4370
4386
  icon: i,
@@ -4378,13 +4394,13 @@ function ql({
4378
4394
  onBlur: f,
4379
4395
  trailing: g
4380
4396
  }) {
4381
- const { hovered: m, ref: v } = fo(), z = s !== void 0, C = i != null, T = t != null, P = Tt(g), E = r === "option", y = E ? o : void 0, R = !E && o ? !0 : void 0, L = (V) => {
4397
+ const { hovered: m, ref: v } = fo(), C = s !== void 0, z = i != null, T = t != null, P = Tt(g), E = r === "option", y = E ? o : void 0, R = !E && o ? !0 : void 0, L = (V) => {
4382
4398
  s == null || s(V, It(V));
4383
4399
  };
4384
4400
  let O = "transparent";
4385
- o ? O = Ps : z && m && (O = x.SURFACE);
4401
+ o ? O = As : C && m && (O = x.SURFACE);
4386
4402
  const k = /* @__PURE__ */ S(q, { children: [
4387
- C && /* @__PURE__ */ n(
4403
+ z && /* @__PURE__ */ n(
4388
4404
  h,
4389
4405
  {
4390
4406
  component: "span",
@@ -4441,7 +4457,7 @@ function ql({
4441
4457
  color: "inherit",
4442
4458
  font: "inherit",
4443
4459
  textAlign: "start",
4444
- cursor: z ? "pointer" : "default"
4460
+ cursor: C ? "pointer" : "default"
4445
4461
  };
4446
4462
  return /* @__PURE__ */ S(
4447
4463
  h,
@@ -4462,11 +4478,11 @@ function ql({
4462
4478
  borderRadius: "var(--mantine-radius-sm)",
4463
4479
  background: O,
4464
4480
  color: x.VALUE,
4465
- fontSize: Ts,
4481
+ fontSize: zs,
4466
4482
  lineHeight: _o
4467
4483
  },
4468
4484
  children: [
4469
- z ? /* @__PURE__ */ n(
4485
+ C ? /* @__PURE__ */ n(
4470
4486
  Je,
4471
4487
  {
4472
4488
  type: "button",
@@ -4500,7 +4516,7 @@ function ql({
4500
4516
  }
4501
4517
  );
4502
4518
  }
4503
- function Zl({
4519
+ function Ql({
4504
4520
  label: e,
4505
4521
  unit: t,
4506
4522
  sortDirection: i,
@@ -4513,8 +4529,8 @@ function Zl({
4513
4529
  defaultValue: o,
4514
4530
  finalValue: "none",
4515
4531
  onChange: r
4516
- }), u = bt(), d = r !== void 0, f = s !== "none", g = (z) => {
4517
- p(s === "ascending" ? "descending" : "ascending", z);
4532
+ }), u = bt(), d = r !== void 0, f = s !== "none", g = (C) => {
4533
+ p(s === "ascending" ? "descending" : "ascending", C);
4518
4534
  }, m = /* @__PURE__ */ S(q, { children: [
4519
4535
  /* @__PURE__ */ n(
4520
4536
  h,
@@ -4579,7 +4595,7 @@ function Zl({
4579
4595
  gap: c.GUTTER,
4580
4596
  boxSizing: "border-box",
4581
4597
  width: "100%",
4582
- height: zs,
4598
+ height: Ps,
4583
4599
  paddingInline: Oo,
4584
4600
  fontSize: "var(--mantine-font-size-sm)",
4585
4601
  lineHeight: _o,
@@ -4620,7 +4636,7 @@ function Ho({ children: e }) {
4620
4636
  flex: "0 0 auto",
4621
4637
  background: x.RAISED,
4622
4638
  color: x.VALUE,
4623
- fontWeight: Cs,
4639
+ fontWeight: Rs,
4624
4640
  textTransform: "none",
4625
4641
  letterSpacing: "normal"
4626
4642
  },
@@ -4628,7 +4644,7 @@ function Ho({ children: e }) {
4628
4644
  }
4629
4645
  );
4630
4646
  }
4631
- const Kn = 2, Rs = 1, As = 13, Ls = 2, Os = 1, _s = 1, Hs = 64, No = 4, Xn = No / 2, Do = 4, Ns = 12, at = 100, Ds = 1.5, hn = 100;
4647
+ const Kn = 2, Ls = 1, Os = 13, _s = 2, Hs = 1, Ns = 1, Ds = 64, No = 4, Xn = No / 2, Do = 4, ks = 12, at = 100, Gs = 1.5, hn = 100;
4632
4648
  function Vt({ children: e, end: t, id: i }) {
4633
4649
  return /* @__PURE__ */ n(
4634
4650
  h,
@@ -4655,7 +4671,7 @@ function ko() {
4655
4671
  "data-testid": "chart-baseline",
4656
4672
  style: {
4657
4673
  flex: "0 0 auto",
4658
- height: Rs,
4674
+ height: Ls,
4659
4675
  background: x.BORDER
4660
4676
  }
4661
4677
  }
@@ -4670,7 +4686,7 @@ function Go({ caption: e, rows: t, testId: i }) {
4670
4686
  ] }, o.id)) })
4671
4687
  ] });
4672
4688
  }
4673
- function ks(e, t) {
4689
+ function Ms(e, t) {
4674
4690
  if (e.length === 0)
4675
4691
  return null;
4676
4692
  const i = at / 2;
@@ -4678,7 +4694,7 @@ function ks(e, t) {
4678
4694
  return `0,${i} ${at},${i}`;
4679
4695
  const o = Math.min(...e), a = Math.max(...e) - o, s = e.length - 1;
4680
4696
  return e.map((p, u) => {
4681
- const d = ga(u / s, at, t), f = a === 0 ? i : at - (p - o) / a * at;
4697
+ const d = xa(u / s, at, t), f = a === 0 ? i : at - (p - o) / a * at;
4682
4698
  return `${d},${f}`;
4683
4699
  }).join(" ");
4684
4700
  }
@@ -4686,7 +4702,7 @@ function Mo() {
4686
4702
  const e = ue(), t = `${e}min`, i = `${e}max`;
4687
4703
  return { min: t, max: i, describedBy: `${t} ${i}` };
4688
4704
  }
4689
- function Jl({
4705
+ function ec({
4690
4706
  bins: e,
4691
4707
  label: t,
4692
4708
  minLabel: i,
@@ -4756,24 +4772,24 @@ function Jl({
4756
4772
  minHeight: 0,
4757
4773
  display: "flex",
4758
4774
  alignItems: "flex-end",
4759
- gap: Ls
4775
+ gap: _s
4760
4776
  },
4761
4777
  children: e.map((g, m) => {
4762
- const v = Math.max(0, g.count), z = d === 0 ? 0 : v / d * hn, C = g.highlighted === !0;
4778
+ const v = Math.max(0, g.count), C = d === 0 ? 0 : v / d * hn, z = g.highlighted === !0;
4763
4779
  return /* @__PURE__ */ n(
4764
4780
  h,
4765
4781
  {
4766
4782
  "data-testid": "histogram-bar",
4767
- "data-highlighted": C ? "true" : "false",
4783
+ "data-highlighted": z ? "true" : "false",
4768
4784
  "aria-hidden": "true",
4769
4785
  title: g.label,
4770
4786
  style: {
4771
4787
  flex: "1 1 0",
4772
4788
  minWidth: 0,
4773
- height: `${String(z)}%`,
4774
- minHeight: v > 0 ? _s : 0,
4775
- background: C ? x.ACCENT : x.BORDER,
4776
- borderRadius: Os
4789
+ height: `${String(C)}%`,
4790
+ minHeight: v > 0 ? Ns : 0,
4791
+ background: z ? x.ACCENT : x.BORDER,
4792
+ borderRadius: Hs
4777
4793
  }
4778
4794
  },
4779
4795
  `${g.label}-${String(m)}`
@@ -4791,7 +4807,7 @@ function Jl({
4791
4807
  "data-testid": "chart-axis",
4792
4808
  style: {
4793
4809
  flex: "0 0 auto",
4794
- height: As,
4810
+ height: Os,
4795
4811
  display: "flex",
4796
4812
  alignItems: "center",
4797
4813
  justifyContent: "space-between",
@@ -4812,7 +4828,7 @@ function Jl({
4812
4828
  }
4813
4829
  );
4814
4830
  }
4815
- function Ql({
4831
+ function tc({
4816
4832
  values: e,
4817
4833
  label: t,
4818
4834
  minLabel: i,
@@ -4821,7 +4837,7 @@ function Ql({
4821
4837
  live: a,
4822
4838
  trailing: s
4823
4839
  }) {
4824
- const p = Qe(), u = bt(), d = Mo(), f = ks(e, p), g = e.map((m, v) => ({
4840
+ const p = Qe(), u = bt(), d = Mo(), f = Ms(e, p), g = e.map((m, v) => ({
4825
4841
  id: `point-${String(v)}`,
4826
4842
  // Positions count from one, the way a reader counts them, and are
4827
4843
  // formatted for the locale so a series longer than a thousand points
@@ -4883,7 +4899,7 @@ function Ql({
4883
4899
  preserveAspectRatio: "none",
4884
4900
  fill: "none",
4885
4901
  stroke: "currentColor",
4886
- strokeWidth: Ds,
4902
+ strokeWidth: Gs,
4887
4903
  strokeLinecap: "round",
4888
4904
  strokeLinejoin: "round",
4889
4905
  "aria-hidden": "true",
@@ -4906,7 +4922,7 @@ function Ql({
4906
4922
  }
4907
4923
  );
4908
4924
  }
4909
- function ec({
4925
+ function nc({
4910
4926
  name: e,
4911
4927
  percentile: t,
4912
4928
  value: i,
@@ -4919,17 +4935,17 @@ function ec({
4919
4935
  onFocus: d,
4920
4936
  onBlur: f
4921
4937
  }) {
4922
- const g = fe(), m = qr(), v = ue(), z = s, C = z !== void 0, T = Math.min(hn, Math.max(0, t)), P = g.percentile(m(Math.round(T))), E = (R) => {
4923
- z !== void 0 && z(R, It(R));
4938
+ const g = fe(), m = Jr(), v = ue(), C = s, z = C !== void 0, T = Math.min(hn, Math.max(0, t)), P = g.percentile(m(Math.round(T))), E = (R) => {
4939
+ C !== void 0 && C(R, It(R));
4924
4940
  }, y = (R) => {
4925
- z !== void 0 && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), z(R, It(R)));
4941
+ C !== void 0 && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), C(R, It(R)));
4926
4942
  };
4927
4943
  return /* @__PURE__ */ S(
4928
4944
  h,
4929
4945
  {
4930
4946
  "data-testid": "metric-row",
4931
- role: C ? "button" : void 0,
4932
- tabIndex: C ? 0 : void 0,
4947
+ role: z ? "button" : void 0,
4948
+ tabIndex: z ? 0 : void 0,
4933
4949
  ...Ze(a, r),
4934
4950
  onClick: E,
4935
4951
  onKeyDown: y,
@@ -4942,7 +4958,7 @@ function ec({
4942
4958
  alignItems: "center",
4943
4959
  gap: c.GUTTER,
4944
4960
  height: c.ROW_PITCH,
4945
- cursor: C ? "pointer" : "default"
4961
+ cursor: z ? "pointer" : "default"
4946
4962
  },
4947
4963
  children: [
4948
4964
  /* @__PURE__ */ n(
@@ -4955,7 +4971,7 @@ function ec({
4955
4971
  style: {
4956
4972
  flex: "1 1 auto",
4957
4973
  minWidth: 0,
4958
- fontSize: Ns,
4974
+ fontSize: ks,
4959
4975
  lineHeight: 1.2,
4960
4976
  color: x.VALUE,
4961
4977
  overflow: "hidden",
@@ -4978,7 +4994,7 @@ function ec({
4978
4994
  title: P,
4979
4995
  size: No,
4980
4996
  style: {
4981
- flex: `0 0 ${String(Hs)}px`,
4997
+ flex: `0 0 ${String(Ds)}px`,
4982
4998
  borderRadius: Xn,
4983
4999
  // The track is the field surface rather than the raised one.
4984
5000
  // Measured against this library's own palette, the accent
@@ -5024,14 +5040,14 @@ function ec({
5024
5040
  );
5025
5041
  }
5026
5042
  const Fo = lt(!1);
5027
- function Gs({ showLabels: e = !1, children: t }) {
5043
+ function Fs({ showLabels: e = !1, children: t }) {
5028
5044
  return /* @__PURE__ */ n(Fo.Provider, { value: e, children: t });
5029
5045
  }
5030
5046
  function jt() {
5031
5047
  return _e(Fo);
5032
5048
  }
5033
- const Ms = c.VALUE_INSET - c.GLYPH_SLOT, Fs = 2, Vs = 1, $s = 2, Bs = 3;
5034
- function Us(e) {
5049
+ const Vs = c.VALUE_INSET - c.GLYPH_SLOT, Bs = 2, $s = 1, Us = 2, Ws = 3;
5050
+ function Ys(e) {
5035
5051
  if (e.fullValue !== void 0)
5036
5052
  return e.fullValue;
5037
5053
  if (typeof e.value == "string")
@@ -5039,7 +5055,7 @@ function Us(e) {
5039
5055
  if (typeof e.value == "number")
5040
5056
  return String(e.value);
5041
5057
  }
5042
- function Ws({ segment: e, grow: t, index: i }) {
5058
+ function js({ segment: e, grow: t, index: i }) {
5043
5059
  const { glyph: o, value: r, unit: a, mono: s = !1 } = e;
5044
5060
  let p = null;
5045
5061
  So(o) ? p = /* @__PURE__ */ n(xt, { name: o }) : Eo(o) ? p = /* @__PURE__ */ n(
@@ -5054,7 +5070,7 @@ function Ws({ segment: e, grow: t, index: i }) {
5054
5070
  children: o
5055
5071
  }
5056
5072
  ) : o != null && (p = o);
5057
- const u = Us(e), d = e.fullValue !== void 0;
5073
+ const u = Ys(e), d = e.fullValue !== void 0;
5058
5074
  return /* @__PURE__ */ S(
5059
5075
  h,
5060
5076
  {
@@ -5069,7 +5085,7 @@ function Ws({ segment: e, grow: t, index: i }) {
5069
5085
  minWidth: 0,
5070
5086
  height: c.CONTROL_HEIGHT,
5071
5087
  paddingBlock: 0,
5072
- paddingInline: Ms
5088
+ paddingInline: Vs
5073
5089
  },
5074
5090
  children: [
5075
5091
  p !== null && /* @__PURE__ */ n(
@@ -5123,7 +5139,7 @@ function Ws({ segment: e, grow: t, index: i }) {
5123
5139
  "data-testid": "compound-segment-unit",
5124
5140
  style: {
5125
5141
  flex: "0 0 auto",
5126
- marginInlineStart: Fs,
5142
+ marginInlineStart: Bs,
5127
5143
  fontSize: "var(--mantine-font-size-sm)",
5128
5144
  lineHeight: 1,
5129
5145
  color: x.CHROME
@@ -5135,15 +5151,15 @@ function Ws({ segment: e, grow: t, index: i }) {
5135
5151
  }
5136
5152
  );
5137
5153
  }
5138
- function Ys(e, t) {
5139
- if (!(t >= $s && t <= Bs))
5154
+ function Ks(e, t) {
5155
+ if (!(t >= Us && t <= Ws))
5140
5156
  return `CompoundRow "${e}" was given ${String(t)} ${t === 1 ? "segment" : "segments"}, and it holds two or three. A compound row shows one value together with the parts that belong to it: use PanelField for a single value, and a table or a list of rows for more than three.`;
5141
5157
  }
5142
- function js(e, t) {
5158
+ function Xs(e, t) {
5143
5159
  if (t !== 1)
5144
5160
  return `CompoundRow "${e}" was given ${String(t)} segments that set grow, and exactly one should. The segment that sets grow takes the box's leftover width and should be the main value, with the rest sized to their content. Using the first segment that sets it, or the leading segment when none does.`;
5145
5161
  }
5146
- function tc({
5162
+ function oc({
5147
5163
  label: e,
5148
5164
  segments: t,
5149
5165
  width: i = c.BODY,
@@ -5155,8 +5171,8 @@ function tc({
5155
5171
  onBlur: u
5156
5172
  }) {
5157
5173
  const d = jt(), f = Ie.useId(), g = t.filter((O) => O.grow === !0).length;
5158
- Be(Ys(e, t.length)), Be(js(e, g));
5159
- const m = t.findIndex((O) => O.grow === !0), v = m === -1 ? 0 : m, z = s !== void 0, C = Lo(a, r) !== "off", T = z || C, P = z ? void 0 : f, E = T ? void 0 : f, y = T || d, R = {
5174
+ $e(Ks(e, t.length)), $e(Xs(e, g));
5175
+ const m = t.findIndex((O) => O.grow === !0), v = m === -1 ? 0 : m, C = s !== void 0, z = Lo(a, r) !== "off", T = C || z, P = C ? void 0 : f, E = T ? void 0 : f, y = T || d, R = {
5160
5176
  display: "flex",
5161
5177
  alignItems: "center",
5162
5178
  boxSizing: "border-box",
@@ -5170,7 +5186,7 @@ function tc({
5170
5186
  overflow: "hidden",
5171
5187
  // A button carries Mantine's own `text-align: left`, which is physical.
5172
5188
  textAlign: "start",
5173
- cursor: z ? "pointer" : void 0
5189
+ cursor: C ? "pointer" : void 0
5174
5190
  }, L = /* @__PURE__ */ S(q, { children: [
5175
5191
  T && /* @__PURE__ */ n(Te, { id: P, children: e }),
5176
5192
  t.map((O, k) => /* @__PURE__ */ S(Ie.Fragment, { children: [
@@ -5180,13 +5196,13 @@ function tc({
5180
5196
  "data-testid": "compound-row-hairline",
5181
5197
  style: {
5182
5198
  flex: "0 0 auto",
5183
- width: Vs,
5199
+ width: $s,
5184
5200
  height: c.CONTROL_HEIGHT,
5185
5201
  background: x.PANEL
5186
5202
  }
5187
5203
  }
5188
5204
  ),
5189
- /* @__PURE__ */ n(Ws, { segment: O, grow: k === v, index: k })
5205
+ /* @__PURE__ */ n(js, { segment: O, grow: k === v, index: k })
5190
5206
  ] }, k))
5191
5207
  ] });
5192
5208
  return /* @__PURE__ */ S(
@@ -5225,7 +5241,7 @@ function tc({
5225
5241
  children: e
5226
5242
  }
5227
5243
  ),
5228
- z ? /* @__PURE__ */ n(
5244
+ C ? /* @__PURE__ */ n(
5229
5245
  Je,
5230
5246
  {
5231
5247
  type: "button",
@@ -5260,7 +5276,7 @@ function tc({
5260
5276
  }
5261
5277
  );
5262
5278
  }
5263
- const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.LABEL_COLUMN, Zn = {
5279
+ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, qs = c.VALUE_INSET + c.LABEL_COLUMN, Zn = {
5264
5280
  position: "absolute",
5265
5281
  width: 1,
5266
5282
  height: 1,
@@ -5270,7 +5286,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5270
5286
  clipPath: "inset(50%)",
5271
5287
  whiteSpace: "nowrap",
5272
5288
  border: 0
5273
- }, Xs = Ut(function(t, i) {
5289
+ }, Zs = Ut(function(t, i) {
5274
5290
  const {
5275
5291
  label: o,
5276
5292
  glyph: r,
@@ -5283,8 +5299,8 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5283
5299
  width: g = c.FIELD,
5284
5300
  bound: m = !1,
5285
5301
  mixed: v = !1,
5286
- placeholder: z,
5287
- pending: C = !1,
5302
+ placeholder: C,
5303
+ pending: z = !1,
5288
5304
  min: T,
5289
5305
  max: P,
5290
5306
  step: E,
@@ -5306,13 +5322,13 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5306
5322
  defaultValue: p,
5307
5323
  finalValue: "",
5308
5324
  onChange: u
5309
- }), de = a ?? (d !== void 0 ? "select" : "text"), re = de === "select", j = de === "select" && d !== void 0, se = W ?? (u === void 0 && p === void 0), K = String(ve), ye = z === !0, we = v || ye;
5325
+ }), de = a ?? (d !== void 0 ? "select" : "text"), re = de === "select", j = de === "select" && d !== void 0, se = W ?? (u === void 0 && p === void 0), K = String(ve), ye = C === !0, we = v || ye;
5310
5326
  let ee;
5311
- v ? ee = G.mixed : ye ? ee = K : typeof z == "string" && (ee = z);
5327
+ v ? ee = G.mixed : ye ? ee = K : typeof C == "string" && (ee = C);
5312
5328
  const be = [];
5313
5329
  v && be.push(G.mixed);
5314
5330
  const et = V ?? G.fieldBound, Ue = D ?? G.fieldPending;
5315
- m && et !== "" && be.push(et), C && Ue !== "" && be.push(Ue);
5331
+ m && et !== "" && be.push(et), z && Ue !== "" && be.push(Ue);
5316
5332
  const dt = be.length > 0 ? be.join(". ") : void 0, ge = (y !== void 0 || R !== void 0 || L !== void 0) && !k && !Q, Re = X(!1), He = X(!1), Ge = X(0), We = (M) => {
5317
5333
  if (!ge || M.button !== 0)
5318
5334
  return;
@@ -5323,7 +5339,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5323
5339
  if (!Re.current)
5324
5340
  return;
5325
5341
  const ce = M.clientX - Ge.current;
5326
- ce !== 0 && (Ge.current = M.clientX, He.current || (He.current = !0, y == null || y(M)), R == null || R(ze(J) ? -ce : ce, M));
5342
+ ce !== 0 && (Ge.current = M.clientX, He.current || (He.current = !0, y == null || y(M)), R == null || R(Ce(J) ? -ce : ce, M));
5327
5343
  }, nt = (M) => {
5328
5344
  Re.current && (Re.current = !1, He.current && (He.current = !1, L == null || L(M)));
5329
5345
  }, ut = (M) => {
@@ -5371,7 +5387,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5371
5387
  },
5372
5388
  children: [
5373
5389
  Me,
5374
- C && /* @__PURE__ */ n(
5390
+ z && /* @__PURE__ */ n(
5375
5391
  h,
5376
5392
  {
5377
5393
  "data-testid": "panel-field-pending",
@@ -5411,7 +5427,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5411
5427
  children: o
5412
5428
  }
5413
5429
  )
5414
- ] }), Ae = f !== void 0, $ = Ae || re ? /* @__PURE__ */ S(q, { children: [
5430
+ ] }), Ae = f !== void 0, B = Ae || re ? /* @__PURE__ */ S(q, { children: [
5415
5431
  Ae && /* @__PURE__ */ n(
5416
5432
  h,
5417
5433
  {
@@ -5438,7 +5454,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5438
5454
  ] }) : void 0;
5439
5455
  let oe = an + Mt;
5440
5456
  re && (oe += c.GLYPH), re && Ae && (oe += Mt);
5441
- const ie = $ === void 0 ? void 0 : `calc(${String((f == null ? void 0 : f.length) ?? 0)}ch + ${String(oe)}px)`, le = ge ? "auto" : "none", Le = {
5457
+ const ie = B === void 0 ? void 0 : `calc(${String((f == null ? void 0 : f.length) ?? 0)}ch + ${String(oe)}px)`, le = ge ? "auto" : "none", Le = {
5442
5458
  // Before the spread, so that a caller who supplies their own test id on
5443
5459
  // the input wins.
5444
5460
  "data-testid": "panel-field-value",
@@ -5453,7 +5469,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5453
5469
  onClick: ut,
5454
5470
  onKeyDown: pt,
5455
5471
  leftSection: it,
5456
- leftSectionWidth: N ? Ks : c.VALUE_INSET,
5472
+ leftSectionWidth: N ? qs : c.VALUE_INSET,
5457
5473
  leftSectionPointerEvents: le,
5458
5474
  leftSectionProps: {
5459
5475
  style: {
@@ -5465,7 +5481,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5465
5481
  paddingInlineStart: an
5466
5482
  }
5467
5483
  },
5468
- rightSection: $,
5484
+ rightSection: B,
5469
5485
  rightSectionWidth: ie,
5470
5486
  rightSectionPointerEvents: "none",
5471
5487
  rightSectionProps: {
@@ -5521,7 +5537,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5521
5537
  "data-kind": de,
5522
5538
  "data-bound": m ? "true" : void 0,
5523
5539
  "data-mixed": v ? "true" : void 0,
5524
- "data-pending": C ? "true" : void 0,
5540
+ "data-pending": z ? "true" : void 0,
5525
5541
  "data-disabled": k ? "true" : void 0
5526
5542
  },
5527
5543
  style: {
@@ -5532,7 +5548,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5532
5548
  }
5533
5549
  };
5534
5550
  return de === "number" ? /* @__PURE__ */ n(
5535
- $t,
5551
+ Bt,
5536
5552
  {
5537
5553
  ...Le,
5538
5554
  value: we ? "" : ve,
@@ -5553,7 +5569,7 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5553
5569
  }
5554
5570
  }
5555
5571
  ) : /* @__PURE__ */ n(
5556
- Bt,
5572
+ $t,
5557
5573
  {
5558
5574
  ...Le,
5559
5575
  value: we ? "" : K,
@@ -5562,21 +5578,21 @@ const an = c.VALUE_INSET - c.GLYPH_SLOT, Mt = 4, qn = 4, Ks = c.VALUE_INSET + c.
5562
5578
  }
5563
5579
  }
5564
5580
  );
5565
- }), qs = 2, Zs = c.BODY + c.TRAIL_GAP;
5566
- function Js(e) {
5581
+ }), Js = 2, Qs = c.BODY + c.TRAIL_GAP;
5582
+ function el(e) {
5567
5583
  return Ie.Children.toArray(e).flatMap((t) => Ie.isValidElement(t) && t.type === Ie.Fragment ? Ie.Children.toArray(t.props.children) : [t]);
5568
5584
  }
5569
5585
  function Jn(e, t) {
5570
5586
  return Ie.isValidElement(e) && e.key !== null ? e.key : `field-row-${String(t)}`;
5571
5587
  }
5572
- function Qs(e) {
5588
+ function tl(e) {
5573
5589
  if (Ie.isValidElement(e) && typeof e.props.label == "string")
5574
5590
  return e.props.label;
5575
5591
  }
5576
5592
  function Qn(e) {
5577
- return Ie.isValidElement(e) && e.type === Xs ? Ie.cloneElement(e, { width: "fill" }) : e;
5593
+ return Ie.isValidElement(e) && e.type === Zs ? Ie.cloneElement(e, { width: "fill" }) : e;
5578
5594
  }
5579
- const nc = Ut(function({
5595
+ const ic = Ut(function({
5580
5596
  children: t,
5581
5597
  trailing: i,
5582
5598
  groupLabel: o,
@@ -5586,11 +5602,11 @@ const nc = Ut(function({
5586
5602
  "aria-labelledby": p,
5587
5603
  ...u
5588
5604
  }, d) {
5589
- const f = jt(), g = Js(t), m = g.length;
5590
- Be(
5591
- m === 0 || m > qs ? `FieldRow was given ${String(m)} ${m === 1 ? "field" : "fields"}, and it holds one field, or two side by side. A row with none is an empty 32px gap, and a third field has nowhere to go in the 280px panel the row is measured for. Put the extra fields on rows of their own.` : void 0
5605
+ const f = jt(), g = el(t), m = g.length;
5606
+ $e(
5607
+ m === 0 || m > Js ? `FieldRow was given ${String(m)} ${m === 1 ? "field" : "fields"}, and it holds one field, or two side by side. A row with none is an empty 32px gap, and a third field has nowhere to go in the 280px panel the row is measured for. Put the extra fields on rows of their own.` : void 0
5592
5608
  );
5593
- const v = o ?? s, C = r ?? (v !== void 0 || p !== void 0 ? "group" : void 0), T = Tt(i);
5609
+ const v = o ?? s, z = r ?? (v !== void 0 || p !== void 0 ? "group" : void 0), T = Tt(i);
5594
5610
  if (f && m > 1)
5595
5611
  return /* @__PURE__ */ n(
5596
5612
  h,
@@ -5598,7 +5614,7 @@ const nc = Ut(function({
5598
5614
  ref: d,
5599
5615
  "data-testid": "field-row-labelled",
5600
5616
  "data-fields": m,
5601
- role: C,
5617
+ role: z,
5602
5618
  "aria-label": v,
5603
5619
  "aria-labelledby": p,
5604
5620
  ...u,
@@ -5608,7 +5624,7 @@ const nc = Ut(function({
5608
5624
  ...a
5609
5625
  },
5610
5626
  children: g.map((L, O) => {
5611
- const k = Qs(L);
5627
+ const k = tl(L);
5612
5628
  return /* @__PURE__ */ S(
5613
5629
  h,
5614
5630
  {
@@ -5657,7 +5673,7 @@ const nc = Ut(function({
5657
5673
  marginInlineStart: c.GUTTER,
5658
5674
  marginInlineEnd: c.TRAIL_GAP
5659
5675
  },
5660
- children: /* @__PURE__ */ n(Gs, { showLabels: !1, children: Qn(L) })
5676
+ children: /* @__PURE__ */ n(Fs, { showLabels: !1, children: Qn(L) })
5661
5677
  }
5662
5678
  ),
5663
5679
  /* @__PURE__ */ n(ke, { children: O === 0 ? i : null })
@@ -5670,7 +5686,7 @@ const nc = Ut(function({
5670
5686
  );
5671
5687
  const P = m <= 1, E = P && !T;
5672
5688
  let y = c.FIELD;
5673
- P && (y = E ? Zs : c.BODY);
5689
+ P && (y = E ? Qs : c.BODY);
5674
5690
  const R = E ? void 0 : c.TRAIL_GAP;
5675
5691
  return /* @__PURE__ */ S(
5676
5692
  h,
@@ -5678,7 +5694,7 @@ const nc = Ut(function({
5678
5694
  ref: d,
5679
5695
  "data-testid": "field-row",
5680
5696
  "data-fields": m,
5681
- role: C,
5697
+ role: z,
5682
5698
  "aria-label": v,
5683
5699
  "aria-labelledby": p,
5684
5700
  ...u,
@@ -5714,11 +5730,11 @@ const nc = Ut(function({
5714
5730
  ]
5715
5731
  }
5716
5732
  );
5717
- }), el = 2, tl = 6, Vo = 1, nl = c.CONTROL_HEIGHT - Vo * 2, ol = 2, eo = 3, il = 4, rl = 6, al = c.GLYPH, sl = 3;
5718
- function ll(e, t) {
5733
+ }), nl = 2, ol = 6, Vo = 1, il = c.CONTROL_HEIGHT - Vo * 2, rl = 2, eo = 3, al = 4, sl = 6, ll = c.GLYPH, cl = 3;
5734
+ function dl(e, t) {
5719
5735
  return t ? x.DISABLED : e ? x.ON_SELECTED : x.CHROME;
5720
5736
  }
5721
- function oc(e) {
5737
+ function rc(e) {
5722
5738
  const {
5723
5739
  options: t,
5724
5740
  value: i,
@@ -5733,17 +5749,17 @@ function oc(e) {
5733
5749
  width: g,
5734
5750
  trailing: m,
5735
5751
  onFocus: v,
5736
- onBlur: z
5737
- } = e, C = jt(), T = t.length, P = vt({ name: a, disabled: u, disabledReason: d }), [E] = t, [y, R] = ae({
5752
+ onBlur: C
5753
+ } = e, z = jt(), T = t.length, P = vt({ name: a, disabled: u, disabledReason: d }), [E] = t, [y, R] = ae({
5738
5754
  value: i,
5739
5755
  defaultValue: o,
5740
5756
  finalValue: E === void 0 ? "" : E.value,
5741
5757
  onChange: r
5742
5758
  }), L = X(void 0);
5743
- Be(
5744
- T < el || T > tl ? `IconGroupRow was given ${String(T)} ${T === 1 ? "option" : "options"}, and it holds two to six drawable ones. One option is a statement rather than a choice and belongs in a field, and more than six stop reading as a set of drawings -- use a select instead. Rendering them anyway.` : void 0
5759
+ $e(
5760
+ T < nl || T > ol ? `IconGroupRow was given ${String(T)} ${T === 1 ? "option" : "options"}, and it holds two to six drawable ones. One option is a statement rather than a choice and belongs in a field, and more than six stop reading as a set of drawings -- use a select instead. Rendering them anyway.` : void 0
5745
5761
  );
5746
- const O = g ?? (T <= sl ? c.FIELD : c.BODY), k = O === "fill", W = (D) => {
5762
+ const O = g ?? (T <= cl ? c.FIELD : c.BODY), k = O === "fill", W = (D) => {
5747
5763
  var b;
5748
5764
  if (u || D.key !== "Home" && D.key !== "End")
5749
5765
  return;
@@ -5752,7 +5768,7 @@ function oc(e) {
5752
5768
  return;
5753
5769
  D.preventDefault(), R(A.value, D), (b = Array.from(D.currentTarget.querySelectorAll('input[type="radio"]')).find((w) => w.value === A.value)) == null || b.focus();
5754
5770
  }, V = t.map((D) => {
5755
- const Y = D.value === y, A = u || D.disabled === !0, H = C || f && Y;
5771
+ const Y = D.value === y, A = u || D.disabled === !0, H = z || f && Y;
5756
5772
  return {
5757
5773
  value: D.value,
5758
5774
  disabled: D.disabled,
@@ -5769,8 +5785,8 @@ function oc(e) {
5769
5785
  alignItems: "center",
5770
5786
  justifyContent: "center",
5771
5787
  boxSizing: "border-box",
5772
- gap: H ? il : 0,
5773
- paddingInline: H ? rl : 0,
5788
+ gap: H ? al : 0,
5789
+ paddingInline: H ? sl : 0,
5774
5790
  width: "100%",
5775
5791
  minWidth: 0,
5776
5792
  // The selected segment is a solid patch of the selected
@@ -5778,7 +5794,7 @@ function oc(e) {
5778
5794
  // else is secondary text on the track. Written here,
5779
5795
  // per option, rather than in the styles below, which
5780
5796
  // would paint every segment the same.
5781
- color: ll(Y, A)
5797
+ color: dl(Y, A)
5782
5798
  },
5783
5799
  children: [
5784
5800
  /* @__PURE__ */ n(
@@ -5848,7 +5864,7 @@ function oc(e) {
5848
5864
  },
5849
5865
  onKeyDown: W,
5850
5866
  onFocus: v,
5851
- onBlur: z,
5867
+ onBlur: C,
5852
5868
  name: p,
5853
5869
  disabled: u,
5854
5870
  radius: "sm",
@@ -5869,7 +5885,7 @@ function oc(e) {
5869
5885
  minWidth: 0,
5870
5886
  height: c.CONTROL_HEIGHT,
5871
5887
  padding: Vo,
5872
- gap: ol,
5888
+ gap: rl,
5873
5889
  backgroundColor: x.SURFACE,
5874
5890
  // Mantine hides the track's overflow, which would crop
5875
5891
  // the focus ring of a segment against the edge of the
@@ -5881,13 +5897,13 @@ function oc(e) {
5881
5897
  // minimum keeps that from cropping the drawings beside it.
5882
5898
  control: {
5883
5899
  flex: "1 1 auto",
5884
- minWidth: al
5900
+ minWidth: ll
5885
5901
  },
5886
5902
  label: {
5887
5903
  display: "flex",
5888
5904
  alignItems: "center",
5889
5905
  justifyContent: "center",
5890
- height: nl,
5906
+ height: il,
5891
5907
  // The padding moves onto the content, where it can
5892
5908
  // depend on whether that segment draws a word.
5893
5909
  padding: 0,
@@ -5918,8 +5934,8 @@ function oc(e) {
5918
5934
  }
5919
5935
  );
5920
5936
  }
5921
- const cl = 12, dl = 1.5, to = 1.4, no = 4, ul = 20, oo = 220, io = 2, ro = new RegExp("\\p{Sentence_Terminal}", "u"), pl = /[.!?]/u, ao = /\s/u;
5922
- function fl(e) {
5937
+ const ul = 12, pl = 1.5, to = 1.4, no = 4, fl = 20, oo = 220, io = 2, ro = new RegExp("\\p{Sentence_Terminal}", "u"), hl = /[.!?]/u, ao = /\s/u;
5938
+ function gl(e) {
5923
5939
  const t = Array.from(e);
5924
5940
  let i = 0, o = 0, r = 0;
5925
5941
  for (; o < t.length; ) {
@@ -5930,31 +5946,31 @@ function fl(e) {
5930
5946
  let s = o;
5931
5947
  for (; s + 1 < t.length && ro.test(t[s + 1]); )
5932
5948
  s += 1;
5933
- const p = t[s + 1], u = pl.test(t[s]);
5949
+ const p = t[s + 1], u = hl.test(t[s]);
5934
5950
  o = s + 1, (!u || p === void 0 || ao.test(p)) && (i += 1, r = o);
5935
5951
  }
5936
5952
  return t.slice(r).some((s) => !ao.test(s)) ? i + 1 : i;
5937
5953
  }
5938
- function hl(e) {
5954
+ function ml(e) {
5939
5955
  return Array.from(e).length;
5940
5956
  }
5941
- function gl(e, t) {
5957
+ function xl(e, t) {
5942
5958
  if (e !== "reading" || typeof t != "string")
5943
5959
  return;
5944
- const i = hl(t);
5960
+ const i = ml(t);
5945
5961
  if (i > oo)
5946
5962
  return `ProseBlock was given a reading of ${String(i)} characters, and a reading is at most ${String(oo)} characters. Shorten it, or it has stopped being a reading and become an explanation.`;
5947
- const o = fl(t);
5963
+ const o = gl(t);
5948
5964
  if (o > io)
5949
5965
  return `ProseBlock was given a reading of ${String(o)} sentences, and a reading is at most ${String(io)} sentences. Delete any sentence that repeats what is already on screen, and move the rest into an InfoCircle.`;
5950
5966
  }
5951
- function ml(e, t) {
5967
+ function bl(e, t) {
5952
5968
  if (!(t === void 0 || e === "runRecord"))
5953
5969
  return `ProseBlock was given onDetails on the "${e}" shape, and it belongs to "runRecord". A reading and a departure line carry no chevron, so the handler is ignored.`;
5954
5970
  }
5955
- function ic({ variant: e, children: t, onDetails: i, busy: o, live: r }) {
5971
+ function ac({ variant: e, children: t, onDetails: i, busy: o, live: r }) {
5956
5972
  const a = fe(), s = Qe(), p = ue();
5957
- Be(gl(e, t)), Be(ml(e, i));
5973
+ $e(xl(e, t)), $e(bl(e, i));
5958
5974
  const u = Ze(r, o);
5959
5975
  return e === "reading" ? /* @__PURE__ */ n(
5960
5976
  De,
@@ -5963,8 +5979,8 @@ function ic({ variant: e, children: t, onDetails: i, busy: o, live: r }) {
5963
5979
  "data-testid": "prose-block",
5964
5980
  "data-variant": e,
5965
5981
  style: {
5966
- fontSize: cl,
5967
- lineHeight: dl,
5982
+ fontSize: ul,
5983
+ lineHeight: pl,
5968
5984
  color: x.PROSE
5969
5985
  },
5970
5986
  children: t
@@ -6025,7 +6041,7 @@ function ic({ variant: e, children: t, onDetails: i, busy: o, live: r }) {
6025
6041
  display: "flex",
6026
6042
  alignItems: "center",
6027
6043
  gap: no,
6028
- blockSize: ul
6044
+ blockSize: fl
6029
6045
  },
6030
6046
  children: [
6031
6047
  /* @__PURE__ */ n(
@@ -6070,7 +6086,7 @@ function ic({ variant: e, children: t, onDetails: i, busy: o, live: r }) {
6070
6086
  children: /* @__PURE__ */ n(
6071
6087
  pe,
6072
6088
  {
6073
- name: ze(s) ? "chevronLeft" : "chevronRight",
6089
+ name: Ce(s) ? "chevronLeft" : "chevronRight",
6074
6090
  size: c.CHEVRON
6075
6091
  }
6076
6092
  )
@@ -6080,7 +6096,7 @@ function ic({ variant: e, children: t, onDetails: i, busy: o, live: r }) {
6080
6096
  }
6081
6097
  );
6082
6098
  }
6083
- const sn = 4, xl = 4, bl = `polygon(0 calc(100% - ${xl}px), 100% 0, 100% 100%, 0 100%)`, vl = 120, yl = `linear-gradient(to right, ${x.SURFACE}, ${x.ACCENT})`, wl = {
6099
+ const sn = 4, vl = 4, yl = `polygon(0 calc(100% - ${vl}px), 100% 0, 100% 100%, 0 100%)`, wl = 120, Sl = `linear-gradient(to right, ${x.SURFACE}, ${x.ACCENT})`, El = {
6084
6100
  sqrt: "scaleSqrt",
6085
6101
  linear: "scaleLinear",
6086
6102
  log: "scaleLog"
@@ -6090,7 +6106,7 @@ const sn = 4, xl = 4, bl = `polygon(0 calc(100% - ${xl}px), 100% 0, 100% 100%, 0
6090
6106
  color: x.CHROME,
6091
6107
  whiteSpace: "nowrap"
6092
6108
  };
6093
- function rc({
6109
+ function sc({
6094
6110
  min: e,
6095
6111
  max: t,
6096
6112
  label: i,
@@ -6102,19 +6118,19 @@ function rc({
6102
6118
  onScaleClick: u,
6103
6119
  trailing: d
6104
6120
  }) {
6105
- const f = fe(), g = Qe(), m = ue(), v = o === "color", z = a === void 0 ? void 0 : wl[a], C = z === void 0 ? void 0 : f[z], T = `${m}-label`, P = `${m}-min`, E = `${m}-max`, y = `${m}-scale`, R = [
6121
+ const f = fe(), g = Qe(), m = ue(), v = o === "color", C = a === void 0 ? void 0 : El[a], z = C === void 0 ? void 0 : f[C], T = `${m}-label`, P = `${m}-min`, E = `${m}-max`, y = `${m}-scale`, R = [
6106
6122
  i === void 0 ? void 0 : T,
6107
6123
  P,
6108
6124
  E,
6109
- C === void 0 ? void 0 : y
6125
+ z === void 0 ? void 0 : y
6110
6126
  ].filter((k) => k !== void 0);
6111
6127
  let L = null;
6112
- z !== void 0 && C !== void 0 && (u === void 0 ? L = /* @__PURE__ */ n(
6128
+ C !== void 0 && z !== void 0 && (u === void 0 ? L = /* @__PURE__ */ n(
6113
6129
  h,
6114
6130
  {
6115
6131
  "data-testid": "ramp-row-scale",
6116
6132
  "aria-hidden": "true",
6117
- title: C,
6133
+ title: z,
6118
6134
  style: {
6119
6135
  flex: "0 0 auto",
6120
6136
  width: c.TRAIL,
@@ -6124,9 +6140,9 @@ function rc({
6124
6140
  justifyContent: "center",
6125
6141
  color: x.CHROME
6126
6142
  },
6127
- children: /* @__PURE__ */ n(xt, { name: z })
6143
+ children: /* @__PURE__ */ n(xt, { name: C })
6128
6144
  }
6129
- ) : L = /* @__PURE__ */ n(Fa, { label: C, icon: /* @__PURE__ */ n(xt, { name: z }), onClick: u }));
6145
+ ) : L = /* @__PURE__ */ n(Ba, { label: z, icon: /* @__PURE__ */ n(xt, { name: C }), onClick: u }));
6130
6146
  const O = Tt(d) ? d : L;
6131
6147
  return /* @__PURE__ */ S(
6132
6148
  h,
@@ -6166,19 +6182,19 @@ function rc({
6166
6182
  "aria-hidden": "true",
6167
6183
  style: {
6168
6184
  flex: "1 1 auto",
6169
- minWidth: vl,
6185
+ minWidth: wl,
6170
6186
  height: c.GLYPH,
6171
6187
  boxSizing: "border-box",
6172
- background: v ? r ?? yl : x.CHROME,
6188
+ background: v ? r ?? Sl : x.CHROME,
6173
6189
  borderRadius: v ? "var(--mantine-radius-xs)" : void 0,
6174
6190
  border: v ? `1px solid ${x.BORDER}` : void 0,
6175
- clipPath: v ? void 0 : bl,
6176
- ...ma(g)
6191
+ clipPath: v ? void 0 : yl,
6192
+ ...ba(g)
6177
6193
  }
6178
6194
  }
6179
6195
  ),
6180
6196
  /* @__PURE__ */ n(De, { span: !0, size: "sm", id: E, "data-testid": "ramp-row-max", style: so, children: t }),
6181
- C !== void 0 && /* @__PURE__ */ n(Te, { "data-testid": "ramp-row-a11y-scale", id: y, children: C })
6197
+ z !== void 0 && /* @__PURE__ */ n(Te, { "data-testid": "ramp-row-a11y-scale", id: y, children: z })
6182
6198
  ]
6183
6199
  }
6184
6200
  ),
@@ -6197,8 +6213,8 @@ function rc({
6197
6213
  }
6198
6214
  );
6199
6215
  }
6200
- const Sl = 4, El = `${String(c.TOGGLE_PITCH)}px`, Il = 2;
6201
- function ac({
6216
+ const Il = 4, Tl = `${String(c.TOGGLE_PITCH)}px`, Cl = 2;
6217
+ function lc({
6202
6218
  label: e,
6203
6219
  checked: t,
6204
6220
  defaultChecked: i,
@@ -6212,13 +6228,13 @@ function ac({
6212
6228
  onFocus: f,
6213
6229
  onBlur: g
6214
6230
  }) {
6215
- const m = fe(), [v, z] = ae({
6231
+ const m = fe(), [v, C] = ae({
6216
6232
  value: t,
6217
6233
  defaultValue: i,
6218
6234
  finalValue: !1,
6219
6235
  onChange: o
6220
- }), C = (L) => {
6221
- z(L.currentTarget.checked, L);
6236
+ }), z = (L) => {
6237
+ C(L.currentTarget.checked, L);
6222
6238
  }, T = {
6223
6239
  root: { flex: "1 1 auto", minWidth: 0 },
6224
6240
  body: { alignItems: "center", minWidth: 0 },
@@ -6227,9 +6243,9 @@ function ac({
6227
6243
  display: "block",
6228
6244
  height: c.TOGGLE_PITCH,
6229
6245
  // Logical, so the word sits after the control in both directions.
6230
- paddingInlineStart: Sl,
6246
+ paddingInlineStart: Il,
6231
6247
  fontSize: "var(--mantine-font-size-sm)",
6232
- lineHeight: El,
6248
+ lineHeight: Tl,
6233
6249
  color: s ? x.DISABLED : x.VALUE,
6234
6250
  overflow: "hidden",
6235
6251
  textOverflow: "ellipsis",
@@ -6279,7 +6295,7 @@ function ac({
6279
6295
  checked: v,
6280
6296
  disabled: s,
6281
6297
  "aria-describedby": E.describedBy,
6282
- onChange: C,
6298
+ onChange: z,
6283
6299
  onFocus: f,
6284
6300
  onBlur: g,
6285
6301
  wrapperProps: y,
@@ -6293,7 +6309,7 @@ function ac({
6293
6309
  checked: v,
6294
6310
  disabled: s,
6295
6311
  "aria-describedby": E.describedBy,
6296
- onChange: C,
6312
+ onChange: z,
6297
6313
  onFocus: f,
6298
6314
  onBlur: g,
6299
6315
  wrapperProps: y,
@@ -6307,10 +6323,10 @@ function ac({
6307
6323
  }
6308
6324
  );
6309
6325
  }
6310
- function sc({ children: e, label: t, labelledBy: i }) {
6326
+ function cc({ children: e, label: t, labelledBy: i }) {
6311
6327
  const o = Ie.Children.toArray(e).length;
6312
- return Be(
6313
- o < Il ? `ToggleRowGroup was given ${String(o)} ${o === 1 ? "row" : "rows"}, and it holds two or more. A single checkbox on a row of its own interrupts a column of rows to say one bit: put it in the trailing slot of the row it modifies, or make it one tile of a group of icon buttons. Rendering it anyway.` : void 0
6328
+ return $e(
6329
+ o < Cl ? `ToggleRowGroup was given ${String(o)} ${o === 1 ? "row" : "rows"}, and it holds two or more. A single checkbox on a row of its own interrupts a column of rows to say one bit: put it in the trailing slot of the row it modifies, or make it one tile of a group of icon buttons. Rendering it anyway.` : void 0
6314
6330
  ), /* @__PURE__ */ n(
6315
6331
  h,
6316
6332
  {
@@ -6327,16 +6343,16 @@ function sc({ children: e, label: t, labelledBy: i }) {
6327
6343
  }
6328
6344
  );
6329
6345
  }
6330
- function lc(e = "dark") {
6331
- return Ai(e);
6346
+ function dc(e = "dark") {
6347
+ return Oi(e);
6332
6348
  }
6333
- const cc = {
6349
+ const uc = {
6334
6350
  xs: wt(4),
6335
6351
  sm: wt(8),
6336
6352
  md: wt(16),
6337
6353
  lg: wt(24),
6338
6354
  xl: wt(32)
6339
- }, dc = {
6355
+ }, pc = {
6340
6356
  /** Standard compact component height (inputs, buttons, icons) in pixels */
6341
6357
  HEIGHT: 24,
6342
6358
  /** Standard compact font size in pixels */
@@ -6347,81 +6363,81 @@ const cc = {
6347
6363
  SECTION_GAP: 4
6348
6364
  };
6349
6365
  export {
6350
- Xl as ActionRow,
6351
- Fa as AdvancedButton,
6352
- dc as COMPACT_SIZING,
6353
- _a as CompactColorInput,
6354
- tc as CompoundRow,
6355
- Vl as ControlGroup,
6356
- $l as ControlSection,
6357
- Bl as ControlSubGroup,
6366
+ Zl as ActionRow,
6367
+ Ba as AdvancedButton,
6368
+ pc as COMPACT_SIZING,
6369
+ Na as CompactColorInput,
6370
+ oc as CompoundRow,
6371
+ $l as ControlGroup,
6372
+ Ul as ControlSection,
6373
+ Wl as ControlSubGroup,
6358
6374
  qt as DEFAULT_GRADIENT_STOP_COLOR,
6359
- ql as DataRow,
6360
- Zl as DataRowHeader,
6361
- Ul as DataTable,
6362
- Jr as FIELD_GLYPH_NAMES,
6363
- Qr as FIELD_LETTERS,
6375
+ Jl as DataRow,
6376
+ Ql as DataRowHeader,
6377
+ Yl as DataTable,
6378
+ ea as FIELD_GLYPH_NAMES,
6379
+ ta as FIELD_LETTERS,
6364
6380
  xt as FieldGlyph,
6365
- nc as FieldRow,
6366
- Wl as GradientEditor,
6367
- Jl as HistogramRow,
6368
- oc as IconGroupRow,
6369
- Ma as InfoCircle,
6370
- _l as LabelsProvider,
6371
- cc as MANTINE_SPACING,
6381
+ ic as FieldRow,
6382
+ jl as GradientEditor,
6383
+ ec as HistogramRow,
6384
+ rc as IconGroupRow,
6385
+ Va as InfoCircle,
6386
+ Nl as LabelsProvider,
6387
+ uc as MANTINE_SPACING,
6372
6388
  Io as MAX_ALPHA_HEX,
6373
6389
  To as MAX_OPACITY_PERCENT,
6374
- ec as MetricRow,
6390
+ nc as MetricRow,
6375
6391
  c as PANEL_GRID,
6376
6392
  x as PANEL_INK,
6377
- mr as POPOUT_GAP,
6378
- xr as POPOUT_NESTED_GAP,
6393
+ br as POPOUT_GAP,
6394
+ vr as POPOUT_NESTED_GAP,
6379
6395
  Pn as POPOUT_Z_INDEX_BASE,
6380
- Xs as PanelField,
6381
- Gs as PanelLabelsProvider,
6396
+ Zs as PanelField,
6397
+ Fs as PanelLabelsProvider,
6382
6398
  st as Popout,
6383
- Fl as PopoutButton,
6384
- Ta as PopoutManager,
6385
- Gl as PopoutRegion,
6386
- ic as ProseBlock,
6387
- rc as RampRow,
6399
+ Bl as PopoutButton,
6400
+ za as PopoutManager,
6401
+ Fl as PopoutRegion,
6402
+ ac as ProseBlock,
6403
+ sc as RampRow,
6388
6404
  Ho as RankChip,
6389
- Gr as SWATCH_COLORS_HEXA,
6390
- Ql as SparklineRow,
6391
- Yl as StyleNumberInput,
6392
- jl as StyleSelect,
6393
- ac as ToggleRow,
6394
- sc as ToggleRowGroup,
6395
- Kl as ToggleWithContent,
6405
+ Fr as SWATCH_COLORS_HEXA,
6406
+ tc as SparklineRow,
6407
+ Kl as StyleNumberInput,
6408
+ Xl as StyleSelect,
6409
+ lc as ToggleRow,
6410
+ cc as ToggleRowGroup,
6411
+ ql as ToggleWithContent,
6396
6412
  ke as TrailingSlot,
6397
- Hl as UI_GLYPH_NAMES,
6413
+ Dl as UI_GLYPH_NAMES,
6398
6414
  pe as UiGlyph,
6399
- ji as compactColors,
6400
- Yi as compactDarkColors,
6401
- Ol as compactTheme,
6402
- kr as compactThemeOverride,
6415
+ Xi as compactColors,
6416
+ Ki as compactDarkColors,
6417
+ Hl as compactTheme,
6418
+ Mr as compactThemeOverride,
6403
6419
  fn as createColorStop,
6404
- cs as createDefaultGradientStops,
6405
- Mr as defaultLabels,
6420
+ us as createDefaultGradientStops,
6421
+ Vr as defaultLabels,
6406
6422
  It as getActivationMeta,
6407
6423
  So as isFieldGlyphName,
6408
6424
  Eo as isFieldLetter,
6409
- ze as isRtl,
6410
- kl as isValidHex,
6411
- Co as opacityToAlphaHex,
6412
- zo as parseAlphaFromHexa,
6413
- Nl as parseHexaColor,
6414
- Xr as parseLocaleNumber,
6415
- Dl as toHexaColor,
6416
- lc as useActualColorScheme,
6417
- Zr as useCollator,
6425
+ Ce as isRtl,
6426
+ Ml as isValidHex,
6427
+ zo as opacityToAlphaHex,
6428
+ Co as parseAlphaFromHexa,
6429
+ kl as parseHexaColor,
6430
+ Zr as parseLocaleNumber,
6431
+ Gl as toHexaColor,
6432
+ dc as useActualColorScheme,
6433
+ Qr as useCollator,
6418
6434
  Qe as useDirection,
6419
6435
  fe as useLabels,
6420
6436
  ct as useLocale,
6421
6437
  bt as useNumberFormatter,
6422
6438
  yo as useNumberParser,
6423
- qr as useOrdinalFormatter,
6439
+ Jr as useOrdinalFormatter,
6424
6440
  jt as usePanelLabels,
6425
- Ml as usePopoutManager,
6426
- ca as usePopoutRegion
6441
+ Vl as usePopoutManager,
6442
+ ua as usePopoutRegion
6427
6443
  };