@overmap-ai/forms 1.0.40-file-component-improvements.0 → 1.0.40-file-component-improvements.2

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/forms.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var zs = Object.defineProperty;
2
2
  var Us = (r, e, t) => e in r ? zs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var R = (r, e, t) => Us(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { jsxs as _, Fragment as Le, jsx as p } from "react/jsx-runtime";
5
- import { Card as pt, LuIcon as T, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as Ft, Input as ge, Badge as ye, Checkbox as Hr, CheckboxGroup as En, Popover as xe, Button as B, DayPicker as za, Menu as D, OneTimePasswordField as Sn, stopPropagation as mt, RadioGroup as Wt, TextArea as or, Rating as Fi, Heading as Gs, toast as qe, ToggleGroup as bn, useAlertDialog as qs } from "@overmap-ai/blocks";
6
- import { cx as Ct, cva as ri } from "class-variance-authority";
4
+ import { jsxs as _, Fragment as Ie, jsx as p } from "react/jsx-runtime";
5
+ import { Card as pt, LuIcon as N, Text as pe, Spinner as ti, Overlay as xt, preventDefault as Hs, ButtonGroup as ue, Tooltip as Xt, IconButton as ne, Separator as Vt, Input as ge, Badge as ye, Checkbox as Hr, CheckboxGroup as En, Popover as xe, Button as B, DayPicker as za, Menu as D, OneTimePasswordField as Sn, stopPropagation as mt, RadioGroup as Wt, TextArea as or, Rating as Fi, Heading as Gs, toast as qe, ToggleGroup as bn, useAlertDialog as qs } from "@overmap-ai/blocks";
6
+ import { cx as kt, cva as ri } from "class-variance-authority";
7
7
  import { forwardRef as ni, createElement as kn, memo as L, createContext as jr, useState as Xe, useEffect as dt, useContext as Xs, useCallback as b, Fragment as ii, use as ce, useMemo as se, useRef as Yr, useLayoutEffect as Ws } from "react";
8
8
  import "@xyflow/react/dist/style.css";
9
9
  import { getBezierPath as $s, Position as yt, BaseEdge as js, EdgeLabelRenderer as Ys, NodeToolbar as Zs, Handle as Pi, MarkerType as Ks, useNodesState as Qs, useEdgesState as Js, ReactFlow as el, Panel as In } from "@xyflow/react";
@@ -651,15 +651,15 @@ const Mc = [
651
651
  const Fc = [
652
652
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
653
653
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
654
- ], It = q("x", Fc), so = L((r) => {
655
- const { ref: e, file: t, className: n, error: i, rightSlot: a, size: o, ...s } = r, l = () => i ? /* @__PURE__ */ _(Le, { children: [
656
- /* @__PURE__ */ p(T, { icon: bl, color: "var(--base-a11)" }),
654
+ ], bt = q("x", Fc), so = L((r) => {
655
+ const { ref: e, file: t, className: n, error: i, rightSlot: a, size: o, ...s } = r, l = () => i ? /* @__PURE__ */ _(Ie, { children: [
656
+ /* @__PURE__ */ p(N, { icon: bl, color: "var(--base-a11)" }),
657
657
  /* @__PURE__ */ p(pe, { accentColor: "base", className: "truncate", size: o, children: i })
658
- ] }) : t ? /* @__PURE__ */ _(Le, { children: [
659
- /* @__PURE__ */ p(T, { icon: Yl, color: "var(--base-a11)" }),
658
+ ] }) : t ? /* @__PURE__ */ _(Ie, { children: [
659
+ /* @__PURE__ */ p(N, { icon: Yl, color: "var(--base-a11)" }),
660
660
  /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: t.name })
661
- ] }) : /* @__PURE__ */ p(Le, { children: /* @__PURE__ */ p("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ p(ti, { size: o }) }) });
662
- return /* @__PURE__ */ _(pt, { className: Ct(n, "flex w-full items-center gap-2"), ref: e, size: "xs", ...s, children: [
661
+ ] }) : /* @__PURE__ */ p(Ie, { children: /* @__PURE__ */ p("div", { className: "flex w-full justify-center", children: /* @__PURE__ */ p(ti, { size: o }) }) });
662
+ return /* @__PURE__ */ _(pt, { className: kt(n, "flex w-full items-center gap-2"), ref: e, size: "xs", ...s, children: [
663
663
  l(),
664
664
  a
665
665
  ] });
@@ -796,11 +796,11 @@ const uo = jr(() => {
796
796
  variant: "ghost",
797
797
  children: [
798
798
  /* @__PURE__ */ _(Xt.Root, { children: [
799
- /* @__PURE__ */ p(Xt.Trigger, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: n, "aria-label": "download", children: /* @__PURE__ */ p(T, { icon: Ja }) }) }),
799
+ /* @__PURE__ */ p(Xt.Trigger, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: n, "aria-label": "download", children: /* @__PURE__ */ p(N, { icon: Ja }) }) }),
800
800
  /* @__PURE__ */ p(Xt.Content, { size: "sm", children: "Download" })
801
801
  ] }),
802
- /* @__PURE__ */ p(Ft, { orientation: "vertical", size: "sm" }),
803
- /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(T, { icon: It }) }) })
802
+ /* @__PURE__ */ p(Vt, { orientation: "vertical", size: "sm" }),
803
+ /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { onClick: t, "aria-label": "close", children: /* @__PURE__ */ p(N, { icon: bt }) }) })
804
804
  ]
805
805
  }
806
806
  ),
@@ -825,7 +825,7 @@ const Pc = L((r) => {
825
825
  ] });
826
826
  });
827
827
  Pc.displayName = "FileViewerProvider";
828
- const Re = L((r) => {
828
+ const Me = L((r) => {
829
829
  const { label: e, error: t, description: n, required: i, children: a, inputId: o, image: s, size: l } = r, [c, u] = Xe(void 0), d = si();
830
830
  dt(() => {
831
831
  s instanceof Promise ? s.then(u).catch(console.error) : u(s);
@@ -852,7 +852,7 @@ const Re = L((r) => {
852
852
  !!t && /* @__PURE__ */ p(pe, { accentColor: "danger", size: l, children: t })
853
853
  ] });
854
854
  });
855
- Re.displayName = "InputWithLabel";
855
+ Me.displayName = "InputWithLabel";
856
856
  const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e.identifier)), Ln = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e.identifier)), ze = (r) => {
857
857
  const { field: e } = r, {
858
858
  field: { value: t, name: n, onChange: i, onBlur: a, disabled: o },
@@ -902,15 +902,15 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
902
902
  ), C = b(
903
903
  (w) => {
904
904
  if (!w.destination) return;
905
- const S = w.source.index, O = w.destination.index, N = Array.from(n), [F] = N.splice(S, 1);
906
- N.splice(O, 0, F), h(N);
905
+ const S = w.source.index, O = w.destination.index, T = Array.from(n), [F] = T.splice(S, 1);
906
+ T.splice(O, 0, F), h(T);
907
907
  },
908
908
  [h, n]
909
909
  ), A = b(() => {
910
910
  a();
911
911
  }, [a]);
912
912
  return /* @__PURE__ */ p(rl, { onDragEnd: C, children: /* @__PURE__ */ _(
913
- Re,
913
+ Me,
914
914
  {
915
915
  size: t,
916
916
  inputId: e.identifier,
@@ -944,7 +944,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
944
944
  "aria-label": "Add option",
945
945
  disabled: !!d || l,
946
946
  onClick: g,
947
- children: /* @__PURE__ */ p(T, { icon: ft })
947
+ children: /* @__PURE__ */ p(N, { icon: ft })
948
948
  }
949
949
  )
950
950
  ] }),
@@ -961,11 +961,11 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
961
961
  draggableId: `${S}-draggable`,
962
962
  index: O,
963
963
  isDragDisabled: l,
964
- children: ({ draggableProps: N, dragHandleProps: F, innerRef: z }) => /* @__PURE__ */ _(
964
+ children: ({ draggableProps: T, dragHandleProps: F, innerRef: z }) => /* @__PURE__ */ _(
965
965
  ye,
966
966
  {
967
967
  ...F,
968
- ...N,
968
+ ...T,
969
969
  ref: z,
970
970
  className: "flex items-center justify-between gap-2",
971
971
  accentColor: "base",
@@ -991,7 +991,7 @@ const Bc = (r) => r.map((e) => /* @__PURE__ */ p(ii, { children: e.render() }, e
991
991
  onClick: () => {
992
992
  m(O);
993
993
  },
994
- children: /* @__PURE__ */ p(T, { icon: It })
994
+ children: /* @__PURE__ */ p(N, { icon: bt })
995
995
  }
996
996
  )
997
997
  ]
@@ -1137,7 +1137,7 @@ const po = L((r) => {
1137
1137
  a();
1138
1138
  }, [a]);
1139
1139
  return /* @__PURE__ */ p(
1140
- Re,
1140
+ Me,
1141
1141
  {
1142
1142
  size: t,
1143
1143
  inputId: e.identifier,
@@ -1158,7 +1158,7 @@ const po = L((r) => {
1158
1158
  accentColor: "base",
1159
1159
  variant: "surface",
1160
1160
  disabled: l,
1161
- children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(T, { icon: et }) })
1161
+ children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(N, { icon: et }) })
1162
1162
  }
1163
1163
  )
1164
1164
  }
@@ -1229,7 +1229,7 @@ const vo = L((r) => {
1229
1229
  f.key === "Enter" && f.preventDefault();
1230
1230
  }, []);
1231
1231
  return /* @__PURE__ */ p(
1232
- Re,
1232
+ Me,
1233
1233
  {
1234
1234
  size: t,
1235
1235
  inputId: e.identifier,
@@ -1488,7 +1488,7 @@ const xo = L((r) => {
1488
1488
  a();
1489
1489
  }, [a]);
1490
1490
  return /* @__PURE__ */ p(
1491
- Re,
1491
+ Me,
1492
1492
  {
1493
1493
  size: t,
1494
1494
  inputId: e.identifier,
@@ -1514,7 +1514,7 @@ const xo = L((r) => {
1514
1514
  {
1515
1515
  className: "flex min-w-0 items-center gap-2",
1516
1516
  children: [
1517
- /* @__PURE__ */ p(En.Item, { value: d.value, onBlur: u, children: /* @__PURE__ */ p(En.ItemIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }) }),
1517
+ /* @__PURE__ */ p(En.Item, { value: d.value, onBlur: u, children: /* @__PURE__ */ p(En.ItemIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }) }),
1518
1518
  /* @__PURE__ */ p(pe, { size: t, accentColor: "base", className: "truncate", children: d.label })
1519
1519
  ]
1520
1520
  },
@@ -1591,7 +1591,7 @@ const yo = L((r) => {
1591
1591
  [a]
1592
1592
  );
1593
1593
  return /* @__PURE__ */ p(
1594
- Re,
1594
+ Me,
1595
1595
  {
1596
1596
  size: t,
1597
1597
  inputId: e.identifier,
@@ -1618,7 +1618,7 @@ const yo = L((r) => {
1618
1618
  month: "2-digit",
1619
1619
  day: "2-digit"
1620
1620
  }) : "yyyy-mm-dd" }),
1621
- /* @__PURE__ */ p(T, { icon: Zr })
1621
+ /* @__PURE__ */ p(N, { icon: Zr })
1622
1622
  ]
1623
1623
  }
1624
1624
  ) }),
@@ -1703,7 +1703,7 @@ const mo = L((r) => {
1703
1703
  [a]
1704
1704
  );
1705
1705
  return /* @__PURE__ */ p(
1706
- Re,
1706
+ Me,
1707
1707
  {
1708
1708
  size: t,
1709
1709
  inputId: e.identifier,
@@ -1726,13 +1726,13 @@ const mo = L((r) => {
1726
1726
  disabled: l,
1727
1727
  children: [
1728
1728
  /* @__PURE__ */ p(pe, { className: "truncate", highContrast: n && n.length > 0, children: n && n.length > 0 ? n.join(", ") : e.placeholder ?? "Select one or more..." }),
1729
- /* @__PURE__ */ p(T, { icon: Zr })
1729
+ /* @__PURE__ */ p(N, { icon: Zr })
1730
1730
  ]
1731
1731
  }
1732
1732
  ) }),
1733
1733
  /* @__PURE__ */ p(D.Content, { size: t, children: /* @__PURE__ */ p(D.Scroll, { children: /* @__PURE__ */ _(D.MultiSelectGroup, { values: n, onValuesChange: c, children: [
1734
1734
  /* @__PURE__ */ _(D.SelectAllItem, { children: [
1735
- /* @__PURE__ */ p(D.CheckboxItemIndicator, { children: (d) => d ? /* @__PURE__ */ p(T, { icon: Gr }) : /* @__PURE__ */ p(T, { icon: et }) }),
1735
+ /* @__PURE__ */ p(D.CheckboxItemIndicator, { children: (d) => d ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) }),
1736
1736
  "Select all"
1737
1737
  ] }),
1738
1738
  e.options.map((d, f) => /* @__PURE__ */ _(
@@ -1740,7 +1740,7 @@ const mo = L((r) => {
1740
1740
  {
1741
1741
  value: d.value,
1742
1742
  children: [
1743
- /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }),
1743
+ /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }),
1744
1744
  d.label
1745
1745
  ]
1746
1746
  },
@@ -1752,7 +1752,7 @@ const mo = L((r) => {
1752
1752
  );
1753
1753
  });
1754
1754
  mo.displayName = "MultiSelectFieldInput";
1755
- class bt extends Qr {
1755
+ class St extends Qr {
1756
1756
  constructor(t) {
1757
1757
  const { placeholder: n, ...i } = t;
1758
1758
  super(i);
@@ -1770,7 +1770,7 @@ class bt extends Qr {
1770
1770
  };
1771
1771
  }
1772
1772
  duplicate(t) {
1773
- return new bt({
1773
+ return new St({
1774
1774
  ...this.getOptions(),
1775
1775
  identifier: t
1776
1776
  });
@@ -1780,7 +1780,7 @@ class bt extends Qr {
1780
1780
  this.placeholder = n, super.setOptions(t);
1781
1781
  }
1782
1782
  static deserialize(t) {
1783
- return new bt(t);
1783
+ return new St(t);
1784
1784
  }
1785
1785
  serializeValue(t) {
1786
1786
  return t;
@@ -1827,7 +1827,7 @@ const Co = L((r) => {
1827
1827
  [a]
1828
1828
  ), d = se(() => e.options.find((f) => f.value === n), [e.options, n]);
1829
1829
  return /* @__PURE__ */ p(
1830
- Re,
1830
+ Me,
1831
1831
  {
1832
1832
  size: t,
1833
1833
  inputId: e.identifier,
@@ -1850,7 +1850,7 @@ const Co = L((r) => {
1850
1850
  disabled: l,
1851
1851
  children: [
1852
1852
  /* @__PURE__ */ p(pe, { className: "truncate", highContrast: !!d, children: d ? d.label : e.placeholder ?? "Select one..." }),
1853
- /* @__PURE__ */ p(T, { icon: Zr })
1853
+ /* @__PURE__ */ p(N, { icon: Zr })
1854
1854
  ]
1855
1855
  }
1856
1856
  ) }),
@@ -1859,7 +1859,7 @@ const Co = L((r) => {
1859
1859
  {
1860
1860
  value: f.value,
1861
1861
  children: [
1862
- /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }),
1862
+ /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }),
1863
1863
  f.label
1864
1864
  ]
1865
1865
  },
@@ -1870,7 +1870,7 @@ const Co = L((r) => {
1870
1870
  );
1871
1871
  });
1872
1872
  Co.displayName = "SelectFieldInput";
1873
- class Pt extends Qr {
1873
+ class Ft extends Qr {
1874
1874
  constructor(t) {
1875
1875
  const { placeholder: n, ...i } = t;
1876
1876
  super(i);
@@ -1888,7 +1888,7 @@ class Pt extends Qr {
1888
1888
  };
1889
1889
  }
1890
1890
  duplicate(t) {
1891
- return new Pt({
1891
+ return new Ft({
1892
1892
  ...this.getOptions(),
1893
1893
  identifier: t
1894
1894
  });
@@ -1898,7 +1898,7 @@ class Pt extends Qr {
1898
1898
  this.placeholder = n, super.setOptions(t);
1899
1899
  }
1900
1900
  static deserialize(t) {
1901
- return new Pt(t);
1901
+ return new Ft(t);
1902
1902
  }
1903
1903
  serializeValue(t) {
1904
1904
  return t;
@@ -1938,7 +1938,7 @@ const wo = L((r) => {
1938
1938
  a();
1939
1939
  }, [a]), d = se(() => Array.from({ length: e.length }, () => G()), [e.length]);
1940
1940
  return /* @__PURE__ */ p(
1941
- Re,
1941
+ Me,
1942
1942
  {
1943
1943
  size: t,
1944
1944
  inputId: e.identifier,
@@ -2002,7 +2002,7 @@ class Kt extends tt {
2002
2002
  showDirectly: !1
2003
2003
  },
2004
2004
  {
2005
- field: new Pt({
2005
+ field: new Ft({
2006
2006
  label: "Type",
2007
2007
  required: !1,
2008
2008
  identifier: `${n}validationType`,
@@ -2105,14 +2105,14 @@ const $t = {
2105
2105
  icon: Rl
2106
2106
  }
2107
2107
  }, wr = Object.keys($t);
2108
- class Bt extends File {
2108
+ class Pt extends File {
2109
2109
  constructor(t, ...n) {
2110
2110
  super(...n);
2111
2111
  R(this, "uuid");
2112
2112
  this.uuid = t;
2113
2113
  }
2114
2114
  static from(t, n) {
2115
- return new Bt(t, [n], n.name, {
2115
+ return new Pt(t, [n], n.name, {
2116
2116
  lastModified: n.lastModified,
2117
2117
  type: n.type
2118
2118
  });
@@ -2150,7 +2150,7 @@ class br extends Promise {
2150
2150
  }
2151
2151
  }
2152
2152
  function kc(r) {
2153
- return Array.isArray(r) ? r.every((e) => e instanceof br || e instanceof Bt) : !1;
2153
+ return Array.isArray(r) ? r.every((e) => e instanceof br || e instanceof Pt) : !1;
2154
2154
  }
2155
2155
  function li(r, e) {
2156
2156
  const t = new Set(r.map(({ uuid: i }) => i)), n = new Set(e.map(({ uuid: i }) => i));
@@ -2161,27 +2161,21 @@ const _o = L((r) => {
2161
2161
  return /* @__PURE__ */ _(
2162
2162
  pt,
2163
2163
  {
2164
- className: Ct(a, "p-0! relative flex h-48 w-full flex-col items-center"),
2164
+ className: kt(a, "p-0! relative flex h-48 w-full flex-col overflow-hidden"),
2165
2165
  ref: e,
2166
2166
  size: "xs",
2167
2167
  ...s,
2168
2168
  children: [
2169
2169
  !t && !n && /* @__PURE__ */ p("div", { className: "absolute inset-0 flex grow items-center justify-center", children: /* @__PURE__ */ p(ti, {}) }),
2170
- !!t && !n && /* @__PURE__ */ p("div", { className: "flex w-full grow items-center justify-center overflow-hidden bg-clip-padding p-3", children: /* @__PURE__ */ p(Sr, { className: "size-full max-w-full object-cover", file: t }) }),
2171
- /* @__PURE__ */ p(Ft, { size: "full" }),
2172
- (!!t || !!n) && /* @__PURE__ */ _(
2173
- "div",
2174
- {
2175
- className: Ct("flex w-full items-center gap-2 self-end p-3", {
2176
- "bg-transparent": !t
2177
- }),
2178
- children: [
2179
- n ? /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: ro }),
2180
- /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: n ?? (t == null ? void 0 : t.name) }),
2181
- i
2182
- ]
2183
- }
2184
- )
2170
+ !!t && !n && /* @__PURE__ */ p("div", { className: "flex grow items-center justify-center overflow-hidden p-3", children: /* @__PURE__ */ p(Sr, { className: "size-full max-w-full object-cover", file: t }) }),
2171
+ (!!t || !!n) && /* @__PURE__ */ _(Ie, { children: [
2172
+ /* @__PURE__ */ p(Vt, { size: "full" }),
2173
+ /* @__PURE__ */ _("div", { className: "flex w-full shrink-0 items-center gap-2 self-end p-3", children: [
2174
+ n ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: ro }),
2175
+ /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: n ?? (t == null ? void 0 : t.name) }),
2176
+ i
2177
+ ] })
2178
+ ] })
2185
2179
  ]
2186
2180
  }
2187
2181
  );
@@ -2197,27 +2191,21 @@ const Eo = L((r) => {
2197
2191
  return /* @__PURE__ */ _(
2198
2192
  pt,
2199
2193
  {
2200
- className: Ct(n, "p-0! relative flex h-48 w-full flex-col items-center"),
2194
+ className: kt(n, "p-0! relative flex h-48 w-full flex-col overflow-hidden"),
2201
2195
  ref: e,
2202
2196
  size: "xs",
2203
2197
  ...s,
2204
2198
  children: [
2205
2199
  !t && !i && /* @__PURE__ */ p("div", { className: "absolute inset-0 flex grow items-center justify-center", children: /* @__PURE__ */ p(ti, {}) }),
2206
- !!t && !i && /* @__PURE__ */ p("div", { className: "flex w-full grow items-center justify-center overflow-hidden bg-clip-padding p-3", children: /* @__PURE__ */ p(Ao, { className: "size-full max-w-full object-cover", file: t, controls: !0 }) }),
2207
- /* @__PURE__ */ p(Ft, { size: "full" }),
2208
- (!!t || !!i) && /* @__PURE__ */ _(
2209
- "div",
2210
- {
2211
- className: Ct("flex w-full items-center gap-2 self-end p-3", {
2212
- "bg-transparent": !t
2213
- }),
2214
- children: [
2215
- i ? /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(T, { color: "var(--base-11)", icon: Vc }),
2216
- /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: i ?? (t == null ? void 0 : t.name) }),
2217
- a
2218
- ]
2219
- }
2220
- )
2200
+ !!t && !i && /* @__PURE__ */ p("div", { className: "flex grow items-center justify-center overflow-hidden p-3", children: /* @__PURE__ */ p(Ao, { className: "size-full max-w-full object-cover", file: t, controls: !0 }) }),
2201
+ (!!t || !!i) && /* @__PURE__ */ _(Ie, { children: [
2202
+ /* @__PURE__ */ p(Vt, { size: "full" }),
2203
+ /* @__PURE__ */ _("div", { className: "flex w-full shrink-0 items-center gap-2 self-end p-3", children: [
2204
+ i ? /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: to }) : t && /* @__PURE__ */ p(N, { color: "var(--base-11)", icon: Vc }),
2205
+ /* @__PURE__ */ p(pe, { className: "truncate", size: o, children: i ?? (t == null ? void 0 : t.name) }),
2206
+ a
2207
+ ] })
2208
+ ] })
2221
2209
  ]
2222
2210
  }
2223
2211
  );
@@ -2270,18 +2258,18 @@ const ci = L((r) => {
2270
2258
  variant: "ghost",
2271
2259
  accentColor: "base",
2272
2260
  size: i,
2273
- children: /* @__PURE__ */ p(T, { icon: eo })
2261
+ children: /* @__PURE__ */ p(N, { icon: eo })
2274
2262
  }
2275
2263
  ) }),
2276
2264
  /* @__PURE__ */ _(D.Content, { size: i, children: [
2277
2265
  /* @__PURE__ */ _(D.Item, { onSelect: u, disabled: !a, children: [
2278
- /* @__PURE__ */ p(T, { icon: Ja }),
2266
+ /* @__PURE__ */ p(N, { icon: Ja }),
2279
2267
  " Download"
2280
2268
  ] }),
2281
- n ? null : /* @__PURE__ */ _(Le, { children: [
2269
+ n ? null : /* @__PURE__ */ _(Ie, { children: [
2282
2270
  /* @__PURE__ */ p(D.Separator, {}),
2283
2271
  /* @__PURE__ */ _(D.Item, { onSelect: d, children: [
2284
- /* @__PURE__ */ p(T, { icon: Lt }),
2272
+ /* @__PURE__ */ p(N, { icon: Lt }),
2285
2273
  " Delete"
2286
2274
  ] })
2287
2275
  ] })
@@ -2357,7 +2345,7 @@ const So = L((r) => {
2357
2345
  (w = c.current) == null || w.click();
2358
2346
  }, []), g = b(
2359
2347
  (w) => {
2360
- const S = Array.from(w.target.files ?? []).map((N) => Bt.from(G(), N)), O = {
2348
+ const S = Array.from(w.target.files ?? []).map((T) => Pt.from(G(), T)), O = {
2361
2349
  ...n,
2362
2350
  files: [...n.files, ...S]
2363
2351
  };
@@ -2382,7 +2370,7 @@ const So = L((r) => {
2382
2370
  }, [a, n]);
2383
2371
  const y = n.status && e.showNotesAndFilesOn.includes(n.status), m = `${e.identifier}-status`, C = `${e.identifier}-notes`, A = `${e.identifier}-files`;
2384
2372
  return /* @__PURE__ */ p(
2385
- Re,
2373
+ Me,
2386
2374
  {
2387
2375
  size: t,
2388
2376
  inputId: e.identifier,
@@ -2407,13 +2395,13 @@ const So = L((r) => {
2407
2395
  children: wr.map((w) => {
2408
2396
  const { label: S } = $t[w];
2409
2397
  return /* @__PURE__ */ _("label", { className: "flex min-w-0 items-center gap-2", children: [
2410
- /* @__PURE__ */ p(Wt.Item, { value: w, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(T, { icon: Za, className: "fill-current" }) }) }),
2398
+ /* @__PURE__ */ p(Wt.Item, { value: w, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(N, { icon: Za, className: "fill-current" }) }) }),
2411
2399
  /* @__PURE__ */ p(pe, { size: t, accentColor: "base", className: "truncate", children: S })
2412
2400
  ] }, `${e.identifier}-${w}`);
2413
2401
  })
2414
2402
  }
2415
2403
  ),
2416
- y && /* @__PURE__ */ _(Le, { children: [
2404
+ y && /* @__PURE__ */ _(Ie, { children: [
2417
2405
  /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(
2418
2406
  or,
2419
2407
  {
@@ -2443,7 +2431,7 @@ const So = L((r) => {
2443
2431
  type: "button",
2444
2432
  disabled: l,
2445
2433
  children: [
2446
- /* @__PURE__ */ p(T, { icon: oi }),
2434
+ /* @__PURE__ */ p(N, { icon: oi }),
2447
2435
  "Select files"
2448
2436
  ]
2449
2437
  }
@@ -2499,7 +2487,7 @@ class Qt extends tt {
2499
2487
  const n = t && `${t}.`;
2500
2488
  return [
2501
2489
  {
2502
- field: new bt({
2490
+ field: new St({
2503
2491
  identifier: `${n}showNotesAndFilesOn`,
2504
2492
  label: "Show notes and files on",
2505
2493
  description: "Show the notes and files on desired statuses.",
@@ -2612,7 +2600,7 @@ const Io = L((r) => {
2612
2600
  o(null), a();
2613
2601
  }, [a, o]);
2614
2602
  return /* @__PURE__ */ p(
2615
- Re,
2603
+ Me,
2616
2604
  {
2617
2605
  size: t,
2618
2606
  inputId: e.identifier,
@@ -2639,7 +2627,7 @@ const Io = L((r) => {
2639
2627
  {
2640
2628
  className: "flex min-w-0 items-center gap-2",
2641
2629
  children: [
2642
- /* @__PURE__ */ p(Wt.Item, { value: f.value, onBlur: u, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(T, { icon: Za, className: "fill-current" }) }) }),
2630
+ /* @__PURE__ */ p(Wt.Item, { value: f.value, onBlur: u, children: /* @__PURE__ */ p(Wt.Indicator, { children: /* @__PURE__ */ p(N, { icon: Za, className: "fill-current" }) }) }),
2643
2631
  /* @__PURE__ */ p(pe, { size: t, accentColor: "base", className: "truncate", children: f.label })
2644
2632
  ]
2645
2633
  },
@@ -2655,7 +2643,7 @@ const Io = L((r) => {
2655
2643
  accentColor: "base",
2656
2644
  size: t,
2657
2645
  children: [
2658
- /* @__PURE__ */ p(T, { icon: It }),
2646
+ /* @__PURE__ */ p(N, { icon: bt }),
2659
2647
  "Clear"
2660
2648
  ]
2661
2649
  }
@@ -2743,7 +2731,7 @@ const Xc = ri(
2743
2731
  o(null), a();
2744
2732
  }, [a, o]), d = Array.from({ length: e.maxRating }, (f, h) => h + 1);
2745
2733
  return /* @__PURE__ */ p(
2746
- Re,
2734
+ Me,
2747
2735
  {
2748
2736
  size: t,
2749
2737
  inputId: e.identifier,
@@ -2767,13 +2755,13 @@ const Xc = ri(
2767
2755
  {
2768
2756
  value: f,
2769
2757
  className: Xc({ size: t }),
2770
- children: /* @__PURE__ */ p(T, { icon: oo, className: "size-full group-data-[active=true]:fill-current" })
2758
+ children: /* @__PURE__ */ p(N, { icon: oo, className: "size-full group-data-[active=true]:fill-current" })
2771
2759
  },
2772
2760
  `${e.identifier}-${f}`
2773
2761
  ))
2774
2762
  }
2775
2763
  ),
2776
- !l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(T, { icon: It }) })
2764
+ !l && n !== null && /* @__PURE__ */ p(ne, { onClick: u, type: "button", variant: "ghost", accentColor: "base", size: t, children: /* @__PURE__ */ p(N, { icon: bt }) })
2777
2765
  ] })
2778
2766
  }
2779
2767
  );
@@ -3034,7 +3022,7 @@ var jc = /* @__PURE__ */ function() {
3034
3022
  }
3035
3023
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
3036
3024
  };
3037
- }(), Te = (
3025
+ }(), De = (
3038
3026
  /** @class */
3039
3027
  function(r) {
3040
3028
  eu(e, r);
@@ -3248,7 +3236,7 @@ var jc = /* @__PURE__ */ function() {
3248
3236
  return t === void 0 && (t = void 0), parseInt(e, t);
3249
3237
  }, r.MIN_VALUE_32_BITS = -2147483648, r.MAX_VALUE = Number.MAX_SAFE_INTEGER, r;
3250
3238
  }()
3251
- ), De = (
3239
+ ), Re = (
3252
3240
  /** @class */
3253
3241
  function() {
3254
3242
  function r(e, t) {
@@ -3701,7 +3689,7 @@ var Ee = (
3701
3689
  }, r.prototype.xor = function(e) {
3702
3690
  if (this.width !== e.getWidth() || this.height !== e.getHeight() || this.rowSize !== e.getRowSize())
3703
3691
  throw new H("input matrix dimensions do not match");
3704
- for (var t = new De(Math.floor(this.width / 32) + 1), n = this.rowSize, i = this.bits, a = 0, o = this.height; a < o; a++)
3692
+ for (var t = new Re(Math.floor(this.width / 32) + 1), n = this.rowSize, i = this.bits, a = 0, o = this.height; a < o; a++)
3705
3693
  for (var s = a * n, l = e.getRow(a, t).getBitArray(), c = 0; c < n; c++)
3706
3694
  i[s + c] ^= l[c];
3707
3695
  }, r.prototype.clear = function() {
@@ -3719,14 +3707,14 @@ var Ee = (
3719
3707
  for (var u = c * s, d = e; d < a; d++)
3720
3708
  l[u + Math.floor(d / 32)] |= 1 << (d & 31) & 4294967295;
3721
3709
  }, r.prototype.getRow = function(e, t) {
3722
- t == null || t.getSize() < this.width ? t = new De(this.width) : t.clear();
3710
+ t == null || t.getSize() < this.width ? t = new Re(this.width) : t.clear();
3723
3711
  for (var n = this.rowSize, i = this.bits, a = e * n, o = 0; o < n; o++)
3724
3712
  t.setBulk(o * 32, i[a + o]);
3725
3713
  return t;
3726
3714
  }, r.prototype.setRow = function(e, t) {
3727
3715
  de.arraycopy(t.getBitArray(), 0, this.bits, e * this.rowSize, this.rowSize);
3728
3716
  }, r.prototype.rotate180 = function() {
3729
- for (var e = this.getWidth(), t = this.getHeight(), n = new De(e), i = new De(e), a = 0, o = Math.floor((t + 1) / 2); a < o; a++)
3717
+ for (var e = this.getWidth(), t = this.getHeight(), n = new Re(e), i = new Re(e), a = 0, o = Math.floor((t + 1) / 2); a < o; a++)
3730
3718
  n = this.getRow(a, n), i = this.getRow(t - 1 - a, i), n.reverse(), i.reverse(), this.setRow(a, i), this.setRow(t - 1 - a, n);
3731
3719
  }, r.prototype.getEnclosingRectangle = function() {
3732
3720
  for (var e = this.width, t = this.height, n = this.rowSize, i = this.bits, a = e, o = t, s = -1, l = -1, c = 0; c < t; c++)
@@ -3841,7 +3829,7 @@ var Ee = (
3841
3829
  }
3842
3830
  return e.prototype.getBlackRow = function(t, n) {
3843
3831
  var i = this.getLuminanceSource(), a = i.getWidth();
3844
- n == null || n.getSize() < a ? n = new De(a) : n.clear(), this.initArrays(a);
3832
+ n == null || n.getSize() < a ? n = new Re(a) : n.clear(), this.initArrays(a);
3845
3833
  for (var o = i.getRow(t, this.luminances), s = this.buckets, l = 0; l < a; l++)
3846
3834
  s[(o[l] & 255) >> e.LUMINANCE_SHIFT]++;
3847
3835
  var c = e.estimateBlackPoint(s);
@@ -4644,7 +4632,7 @@ var Ee = (
4644
4632
  var l = i.decode(e);
4645
4633
  o(l);
4646
4634
  } catch (f) {
4647
- var c = t && f instanceof I, u = f instanceof Te || f instanceof M, d = u && n;
4635
+ var c = t && f instanceof I, u = f instanceof De || f instanceof M, d = u && n;
4648
4636
  if (c || d)
4649
4637
  return setTimeout(a, i._timeBetweenDecodingAttempts, o, s);
4650
4638
  s(f);
@@ -4666,7 +4654,7 @@ var Ee = (
4666
4654
  t(a, null), setTimeout(i, n.timeBetweenScansMillis);
4667
4655
  } catch (l) {
4668
4656
  t(null, l);
4669
- var o = l instanceof Te || l instanceof M, s = l instanceof I;
4657
+ var o = l instanceof De || l instanceof M, s = l instanceof I;
4670
4658
  (o || s) && setTimeout(i, n._timeBetweenDecodingAttempts);
4671
4659
  }
4672
4660
  };
@@ -4796,7 +4784,7 @@ var Hn;
4796
4784
  (function(r) {
4797
4785
  r[r.OTHER = 0] = "OTHER", r[r.ORIENTATION = 1] = "ORIENTATION", r[r.BYTE_SEGMENTS = 2] = "BYTE_SEGMENTS", r[r.ERROR_CORRECTION_LEVEL = 3] = "ERROR_CORRECTION_LEVEL", r[r.ISSUE_NUMBER = 4] = "ISSUE_NUMBER", r[r.SUGGESTED_PRICE = 5] = "SUGGESTED_PRICE", r[r.POSSIBLE_COUNTRY = 6] = "POSSIBLE_COUNTRY", r[r.UPC_EAN_EXTENSION = 7] = "UPC_EAN_EXTENSION", r[r.PDF417_EXTRA_METADATA = 8] = "PDF417_EXTRA_METADATA", r[r.STRUCTURED_APPEND_SEQUENCE = 9] = "STRUCTURED_APPEND_SEQUENCE", r[r.STRUCTURED_APPEND_PARITY = 10] = "STRUCTURED_APPEND_PARITY";
4798
4786
  })(Hn || (Hn = {}));
4799
- const ke = Hn;
4787
+ const Le = Hn;
4800
4788
  var en = (
4801
4789
  /** @class */
4802
4790
  function() {
@@ -4850,7 +4838,7 @@ var en = (
4850
4838
  return e ^ t;
4851
4839
  }, r;
4852
4840
  }()
4853
- ), Et = (
4841
+ ), At = (
4854
4842
  /** @class */
4855
4843
  function() {
4856
4844
  function r(e, t) {
@@ -5006,7 +4994,7 @@ var en = (
5006
4994
  a.expTable = o;
5007
4995
  for (var c = new Int32Array(n), l = 0; l < n - 1; l++)
5008
4996
  c[o[l]] = l;
5009
- return a.logTable = c, a.zero = new Et(a, Int32Array.from([0])), a.one = new Et(a, Int32Array.from([1])), a;
4997
+ return a.logTable = c, a.zero = new At(a, Int32Array.from([0])), a.one = new At(a, Int32Array.from([1])), a;
5010
4998
  }
5011
4999
  return e.prototype.getZero = function() {
5012
5000
  return this.zero;
@@ -5018,7 +5006,7 @@ var en = (
5018
5006
  if (n === 0)
5019
5007
  return this.zero;
5020
5008
  var i = new Int32Array(t + 1);
5021
- return i[0] = n, new Et(this, i);
5009
+ return i[0] = n, new At(this, i);
5022
5010
  }, e.prototype.inverse = function(t) {
5023
5011
  if (t === 0)
5024
5012
  throw new To();
@@ -5090,12 +5078,12 @@ var en = (
5090
5078
  this.field = e;
5091
5079
  }
5092
5080
  return r.prototype.decode = function(e, t) {
5093
- for (var n = this.field, i = new Et(n, e), a = new Int32Array(t), o = !0, s = 0; s < t; s++) {
5081
+ for (var n = this.field, i = new At(n, e), a = new Int32Array(t), o = !0, s = 0; s < t; s++) {
5094
5082
  var l = i.evaluateAt(n.exp(s + n.getGeneratorBase()));
5095
5083
  a[a.length - 1 - s] = l, l !== 0 && (o = !1);
5096
5084
  }
5097
5085
  if (!o)
5098
- for (var c = new Et(n, a), u = this.runEuclideanAlgorithm(n.buildMonomial(t, 1), c, t), d = u[0], f = u[1], h = this.findErrorLocations(d), v = this.findErrorMagnitudes(f, h), s = 0; s < h.length; s++) {
5086
+ for (var c = new At(n, a), u = this.runEuclideanAlgorithm(n.buildMonomial(t, 1), c, t), d = u[0], f = u[1], h = this.findErrorLocations(d), v = this.findErrorMagnitudes(f, h), s = 0; s < h.length; s++) {
5099
5087
  var g = e.length - 1 - n.log(h[s]);
5100
5088
  if (g < 0)
5101
5089
  throw new Dr("Bad error location");
@@ -5144,10 +5132,10 @@ var en = (
5144
5132
  return i;
5145
5133
  }, r;
5146
5134
  }()
5147
- ), Pe;
5135
+ ), Be;
5148
5136
  (function(r) {
5149
5137
  r[r.UPPER = 0] = "UPPER", r[r.LOWER = 1] = "LOWER", r[r.MIXED = 2] = "MIXED", r[r.DIGIT = 3] = "DIGIT", r[r.PUNCT = 4] = "PUNCT", r[r.BINARY = 5] = "BINARY";
5150
- })(Pe || (Pe = {}));
5138
+ })(Be || (Be = {}));
5151
5139
  var zi = (
5152
5140
  /** @class */
5153
5141
  function() {
@@ -5160,8 +5148,8 @@ var zi = (
5160
5148
  }, r.highLevelDecode = function(e) {
5161
5149
  return this.getEncodedData(e);
5162
5150
  }, r.getEncodedData = function(e) {
5163
- for (var t = e.length, n = Pe.UPPER, i = Pe.UPPER, a = "", o = 0; o < t; )
5164
- if (i === Pe.BINARY) {
5151
+ for (var t = e.length, n = Be.UPPER, i = Be.UPPER, a = "", o = 0; o < t; )
5152
+ if (i === Be.BINARY) {
5165
5153
  if (t - o < 5)
5166
5154
  break;
5167
5155
  var s = r.readCode(e, o, 5);
@@ -5181,7 +5169,7 @@ var zi = (
5181
5169
  }
5182
5170
  i = n;
5183
5171
  } else {
5184
- var u = i === Pe.DIGIT ? 4 : 5;
5172
+ var u = i === Be.DIGIT ? 4 : 5;
5185
5173
  if (t - o < u)
5186
5174
  break;
5187
5175
  var c = r.readCode(e, o, u);
@@ -5193,30 +5181,30 @@ var zi = (
5193
5181
  }, r.getTable = function(e) {
5194
5182
  switch (e) {
5195
5183
  case "L":
5196
- return Pe.LOWER;
5184
+ return Be.LOWER;
5197
5185
  case "P":
5198
- return Pe.PUNCT;
5186
+ return Be.PUNCT;
5199
5187
  case "M":
5200
- return Pe.MIXED;
5188
+ return Be.MIXED;
5201
5189
  case "D":
5202
- return Pe.DIGIT;
5190
+ return Be.DIGIT;
5203
5191
  case "B":
5204
- return Pe.BINARY;
5192
+ return Be.BINARY;
5205
5193
  case "U":
5206
5194
  default:
5207
- return Pe.UPPER;
5195
+ return Be.UPPER;
5208
5196
  }
5209
5197
  }, r.getCharacter = function(e, t) {
5210
5198
  switch (e) {
5211
- case Pe.UPPER:
5199
+ case Be.UPPER:
5212
5200
  return r.UPPER_TABLE[t];
5213
- case Pe.LOWER:
5201
+ case Be.LOWER:
5214
5202
  return r.LOWER_TABLE[t];
5215
- case Pe.MIXED:
5203
+ case Be.MIXED:
5216
5204
  return r.MIXED_TABLE[t];
5217
- case Pe.PUNCT:
5205
+ case Be.PUNCT:
5218
5206
  return r.PUNCT_TABLE[t];
5219
- case Pe.DIGIT:
5207
+ case Be.DIGIT:
5220
5208
  return r.DIGIT_TABLE[t];
5221
5209
  default:
5222
5210
  throw new Ir("Bad table");
@@ -5596,11 +5584,11 @@ var zi = (
5596
5584
  O = this.getBlackPointOnSegment(t, n + w, t - w, n);
5597
5585
  if (O == null)
5598
5586
  throw new I();
5599
- for (var N = null, w = 1; N === null && w < C; w++)
5600
- N = this.getBlackPointOnSegment(t, i - w, t - w, i);
5601
- if (N == null)
5587
+ for (var T = null, w = 1; T === null && w < C; w++)
5588
+ T = this.getBlackPointOnSegment(t, i - w, t - w, i);
5589
+ if (T == null)
5602
5590
  throw new I();
5603
- return this.centerEdges(N, A, O, S);
5591
+ return this.centerEdges(T, A, O, S);
5604
5592
  } else
5605
5593
  throw new I();
5606
5594
  }, r.prototype.getBlackPointOnSegment = function(e, t, n, i) {
@@ -5947,9 +5935,9 @@ var zi = (
5947
5935
  throw n ?? d;
5948
5936
  }
5949
5937
  var l = new We(o.getText(), o.getRawBytes(), o.getNumBits(), a, P.AZTEC, de.currentTimeMillis()), c = o.getByteSegments();
5950
- c != null && l.putMetadata(ke.BYTE_SEGMENTS, c);
5938
+ c != null && l.putMetadata(Le.BYTE_SEGMENTS, c);
5951
5939
  var u = o.getECLevel();
5952
- return u != null && l.putMetadata(ke.ERROR_CORRECTION_LEVEL, u), l;
5940
+ return u != null && l.putMetadata(Le.ERROR_CORRECTION_LEVEL, u), l;
5953
5941
  }, r.prototype.reportFoundResultPoints = function(e, t) {
5954
5942
  if (e != null) {
5955
5943
  var n = e.get(ve.NEED_RESULT_POINT_CALLBACK);
@@ -5995,7 +5983,7 @@ var be = (
5995
5983
  var n = t && t.get(ve.TRY_HARDER) === !0;
5996
5984
  if (n && e.isRotateSupported()) {
5997
5985
  var i = e.rotateCounterClockwise(), a = this.doDecode(i, t), o = a.getResultMetadata(), s = 270;
5998
- o !== null && o.get(ke.ORIENTATION) === !0 && (s = s + o.get(ke.ORIENTATION) % 360), a.putMetadata(ke.ORIENTATION, s);
5986
+ o !== null && o.get(Le.ORIENTATION) === !0 && (s = s + o.get(Le.ORIENTATION) % 360), a.putMetadata(Le.ORIENTATION, s);
5999
5987
  var l = a.getResultPoints();
6000
5988
  if (l !== null)
6001
5989
  for (var c = i.getHeight(), u = 0; u < l.length; u++)
@@ -6006,7 +5994,7 @@ var be = (
6006
5994
  }
6007
5995
  }, r.prototype.reset = function() {
6008
5996
  }, r.prototype.doDecode = function(e, t) {
6009
- var n = e.getWidth(), i = e.getHeight(), a = new De(n), o = t && t.get(ve.TRY_HARDER) === !0, s = Math.max(1, i >> (o ? 8 : 5)), l;
5997
+ var n = e.getWidth(), i = e.getHeight(), a = new Re(n), o = t && t.get(ve.TRY_HARDER) === !0, s = Math.max(1, i >> (o ? 8 : 5)), l;
6010
5998
  o ? l = i : l = 15;
6011
5999
  for (var c = Math.trunc(i / 2), u = 0; u < l; u++) {
6012
6000
  var d = Math.trunc((u + 1) / 2), f = (u & 1) === 0, h = c + s * (f ? d : -d);
@@ -6020,14 +6008,14 @@ var be = (
6020
6008
  for (var v = function(C) {
6021
6009
  if (C === 1 && (a.reverse(), t && t.get(ve.NEED_RESULT_POINT_CALLBACK) === !0)) {
6022
6010
  var A = /* @__PURE__ */ new Map();
6023
- t.forEach(function(O, N) {
6024
- return A.set(N, O);
6011
+ t.forEach(function(O, T) {
6012
+ return A.set(T, O);
6025
6013
  }), A.delete(ve.NEED_RESULT_POINT_CALLBACK), t = A;
6026
6014
  }
6027
6015
  try {
6028
6016
  var w = g.decodeRow(h, a, t);
6029
6017
  if (C === 1) {
6030
- w.putMetadata(ke.ORIENTATION, 180);
6018
+ w.putMetadata(Le.ORIENTATION, 180);
6031
6019
  var S = w.getResultPoints();
6032
6020
  S !== null && (S[0] = new k(n - S[0].getX() - 1, S[0].getY()), S[1] = new k(n - S[1].getX() - 1, S[1].getY()));
6033
6021
  }
@@ -6147,7 +6135,7 @@ var be = (
6147
6135
  default:
6148
6136
  throw new M();
6149
6137
  }
6150
- for (var d = !1, f = !1, h = "", v = o[0], g = o[1], y = Int32Array.from([0, 0, 0, 0, 0, 0]), m = 0, C = 0, A = s, w = 0, S = !0, O = !1, N = !1; !d; ) {
6138
+ for (var d = !1, f = !1, h = "", v = o[0], g = o[1], y = Int32Array.from([0, 0, 0, 0, 0, 0]), m = 0, C = 0, A = s, w = 0, S = !0, O = !1, T = !1; !d; ) {
6151
6139
  var F = f;
6152
6140
  switch (f = !1, m = C, C = e.decodeCode(n, y, g), c[l++] = C, C !== e.CODE_STOP && (S = !0), C !== e.CODE_STOP && (w++, A += w * C), v = g, g += y.reduce(function(_n, An) {
6153
6141
  return _n + An;
@@ -6160,9 +6148,9 @@ var be = (
6160
6148
  switch (u) {
6161
6149
  case e.CODE_CODE_A:
6162
6150
  if (C < 64)
6163
- N === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), N = !1;
6151
+ T === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), T = !1;
6164
6152
  else if (C < 96)
6165
- N === O ? h += String.fromCharCode(C - 64) : h += String.fromCharCode(C + 64), N = !1;
6153
+ T === O ? h += String.fromCharCode(C - 64) : h += String.fromCharCode(C + 64), T = !1;
6166
6154
  else
6167
6155
  switch (C !== e.CODE_STOP && (S = !1), C) {
6168
6156
  case e.CODE_FNC_1:
@@ -6172,7 +6160,7 @@ var be = (
6172
6160
  case e.CODE_FNC_3:
6173
6161
  break;
6174
6162
  case e.CODE_FNC_4_A:
6175
- !O && N ? (O = !0, N = !1) : O && N ? (O = !1, N = !1) : N = !0;
6163
+ !O && T ? (O = !0, T = !1) : O && T ? (O = !1, T = !1) : T = !0;
6176
6164
  break;
6177
6165
  case e.CODE_SHIFT:
6178
6166
  f = !0, u = e.CODE_CODE_B;
@@ -6190,7 +6178,7 @@ var be = (
6190
6178
  break;
6191
6179
  case e.CODE_CODE_B:
6192
6180
  if (C < 96)
6193
- N === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), N = !1;
6181
+ T === O ? h += String.fromCharCode(32 + C) : h += String.fromCharCode(32 + C + 128), T = !1;
6194
6182
  else
6195
6183
  switch (C !== e.CODE_STOP && (S = !1), C) {
6196
6184
  case e.CODE_FNC_1:
@@ -6200,7 +6188,7 @@ var be = (
6200
6188
  case e.CODE_FNC_3:
6201
6189
  break;
6202
6190
  case e.CODE_FNC_4_B:
6203
- !O && N ? (O = !0, N = !1) : O && N ? (O = !1, N = !1) : N = !0;
6191
+ !O && T ? (O = !0, T = !1) : O && T ? (O = !1, T = !1) : T = !0;
6204
6192
  break;
6205
6193
  case e.CODE_SHIFT:
6206
6194
  f = !0, u = e.CODE_CODE_A;
@@ -6242,15 +6230,15 @@ var be = (
6242
6230
  if (g = n.getNextUnset(g), !n.isRange(g, Math.min(n.getSize(), g + (g - v) / 2), !1))
6243
6231
  throw new I();
6244
6232
  if (A -= w * m, A % 103 !== m)
6245
- throw new Te();
6233
+ throw new De();
6246
6234
  var U = h.length;
6247
6235
  if (U === 0)
6248
6236
  throw new I();
6249
6237
  U > 0 && S && (u === e.CODE_CODE_C ? h = h.substring(0, U - 2) : h = h.substring(0, U - 1));
6250
- for (var Q = (o[1] + o[0]) / 2, X = v + z / 2, Z = c.length, Fe = new Uint8Array(Z), Ze = 0; Ze < Z; Ze++)
6251
- Fe[Ze] = c[Ze];
6252
- var ur = [new k(Q, t), new k(X, t)];
6253
- return new We(h, Fe, 0, ur, P.CODE_128, (/* @__PURE__ */ new Date()).getTime());
6238
+ for (var Z = (o[1] + o[0]) / 2, X = v + z / 2, K = c.length, Pe = new Uint8Array(K), Ze = 0; Ze < K; Ze++)
6239
+ Pe[Ze] = c[Ze];
6240
+ var ur = [new k(Z, t), new k(X, t)];
6241
+ return new We(h, Pe, 0, ur, P.CODE_128, (/* @__PURE__ */ new Date()).getTime());
6254
6242
  }, e.CODE_PATTERNS = [
6255
6243
  Int32Array.from([2, 1, 2, 2, 2, 2]),
6256
6244
  Int32Array.from([2, 2, 2, 1, 2, 2]),
@@ -6409,8 +6397,8 @@ var be = (
6409
6397
  var C = m.value;
6410
6398
  d += C;
6411
6399
  }
6412
- } catch (Z) {
6413
- a = { error: Z };
6400
+ } catch (K) {
6401
+ a = { error: K };
6414
6402
  } finally {
6415
6403
  try {
6416
6404
  m && !m.done && (o = y.return) && o.call(y);
@@ -6427,8 +6415,8 @@ var be = (
6427
6415
  var C = S.value;
6428
6416
  A += C;
6429
6417
  }
6430
- } catch (Z) {
6431
- s = { error: Z };
6418
+ } catch (K) {
6419
+ s = { error: K };
6432
6420
  } finally {
6433
6421
  try {
6434
6422
  S && !S.done && (l = w.return) && l.call(w);
@@ -6440,18 +6428,18 @@ var be = (
6440
6428
  if (d !== f && O * 2 < A)
6441
6429
  throw new I();
6442
6430
  if (this.usingCheckDigit) {
6443
- for (var N = this.decodeRowResult.length - 1, F = 0, z = 0; z < N; z++)
6431
+ for (var T = this.decodeRowResult.length - 1, F = 0, z = 0; z < T; z++)
6444
6432
  F += e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(z));
6445
- if (this.decodeRowResult.charAt(N) !== e.ALPHABET_STRING.charAt(F % 43))
6446
- throw new Te();
6447
- this.decodeRowResult = this.decodeRowResult.substring(0, N);
6433
+ if (this.decodeRowResult.charAt(T) !== e.ALPHABET_STRING.charAt(F % 43))
6434
+ throw new De();
6435
+ this.decodeRowResult = this.decodeRowResult.substring(0, T);
6448
6436
  }
6449
6437
  if (this.decodeRowResult.length === 0)
6450
6438
  throw new I();
6451
6439
  var U;
6452
6440
  this.extendedMode ? U = e.decodeExtended(this.decodeRowResult) : U = this.decodeRowResult;
6453
- var Q = (u[1] + u[0]) / 2, X = v + A / 2;
6454
- return new We(U, null, 0, [new k(Q, t), new k(X, t)], P.CODE_39, (/* @__PURE__ */ new Date()).getTime());
6441
+ var Z = (u[1] + u[0]) / 2, X = v + A / 2;
6442
+ return new We(U, null, 0, [new k(Z, t), new k(X, t)], P.CODE_39, (/* @__PURE__ */ new Date()).getTime());
6455
6443
  }, e.findAsteriskPattern = function(t, n) {
6456
6444
  for (var i = t.getSize(), a = t.getNextSet(0), o = 0, s = a, l = !1, c = n.length, u = a; u < i; u++)
6457
6445
  if (t.get(u) !== l)
@@ -6684,8 +6672,8 @@ var be = (
6684
6672
  if (this.decodeRowResult.length < 2)
6685
6673
  throw new I();
6686
6674
  this.checkChecksums(this.decodeRowResult), this.decodeRowResult = this.decodeRowResult.substring(0, this.decodeRowResult.length - 2);
6687
- var O = this.decodeExtended(this.decodeRowResult), N = (c[1] + c[0]) / 2, F = v + A / 2;
6688
- return new We(O, null, 0, [new k(N, t), new k(F, t)], P.CODE_93, (/* @__PURE__ */ new Date()).getTime());
6675
+ var O = this.decodeExtended(this.decodeRowResult), T = (c[1] + c[0]) / 2, F = v + A / 2;
6676
+ return new We(O, null, 0, [new k(T, t), new k(F, t)], P.CODE_93, (/* @__PURE__ */ new Date()).getTime());
6689
6677
  }, e.prototype.findAsteriskPattern = function(t) {
6690
6678
  var n = t.getSize(), i = t.getNextSet(0);
6691
6679
  this.counters.fill(0);
@@ -6795,7 +6783,7 @@ var be = (
6795
6783
  for (var a = 1, o = 0, s = n - 1; s >= 0; s--)
6796
6784
  o += a * e.ALPHABET_STRING.indexOf(t.charAt(s)), ++a > i && (a = 1);
6797
6785
  if (t.charAt(n) !== e.ALPHABET_STRING[o % 47])
6798
- throw new Te();
6786
+ throw new De();
6799
6787
  }, e.ALPHABET_STRING = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*", e.CHARACTER_ENCODINGS = [
6800
6788
  276,
6801
6789
  328,
@@ -7175,7 +7163,7 @@ var be = (
7175
7163
  if (e.length !== 5)
7176
7164
  return null;
7177
7165
  var t = r.parseExtension5String(e);
7178
- return t == null ? null : /* @__PURE__ */ new Map([[ke.SUGGESTED_PRICE, t]]);
7166
+ return t == null ? null : /* @__PURE__ */ new Map([[Le.SUGGESTED_PRICE, t]]);
7179
7167
  }, r.parseExtension5String = function(e) {
7180
7168
  var t;
7181
7169
  switch (e.charAt(0)) {
@@ -7253,7 +7241,7 @@ var be = (
7253
7241
  throw new I();
7254
7242
  return l;
7255
7243
  }, r.parseExtensionString = function(e) {
7256
- return e.length !== 2 ? null : /* @__PURE__ */ new Map([[ke.ISSUE_NUMBER, parseInt(e)]]);
7244
+ return e.length !== 2 ? null : /* @__PURE__ */ new Map([[Le.ISSUE_NUMBER, parseInt(e)]]);
7257
7245
  }, r;
7258
7246
  }()
7259
7247
  ), ku = (
@@ -7326,11 +7314,11 @@ var be = (
7326
7314
  if (y.length < 8)
7327
7315
  throw new M();
7328
7316
  if (!e.checkChecksum(y))
7329
- throw new Te();
7317
+ throw new De();
7330
7318
  var m = (a[1] + a[0]) / 2, C = (f[1] + f[0]) / 2, A = this.getBarcodeFormat(), w = [new k(m, t), new k(C, t)], S = new We(y, null, 0, w, A, (/* @__PURE__ */ new Date()).getTime()), O = 0;
7331
7319
  try {
7332
- var N = ku.decodeRow(t, n, f[1]);
7333
- S.putMetadata(ke.UPC_EAN_EXTENSION, N.getText()), S.putAllMetadata(N.getResultMetadata()), S.addResultPoints(N.getResultPoints()), O = N.getText().length;
7320
+ var T = ku.decodeRow(t, n, f[1]);
7321
+ S.putMetadata(Le.UPC_EAN_EXTENSION, T.getText()), S.putAllMetadata(T.getResultMetadata()), S.addResultPoints(T.getResultPoints()), O = T.getText().length;
7334
7322
  } catch {
7335
7323
  }
7336
7324
  var F = i == null ? null : i.get(ve.ALLOWED_EAN_EXTENSIONS);
@@ -7437,8 +7425,8 @@ var be = (
7437
7425
  var m = w.value;
7438
7426
  d += m;
7439
7427
  }
7440
- } catch (N) {
7441
- s = { error: N };
7428
+ } catch (T) {
7429
+ s = { error: T };
7442
7430
  } finally {
7443
7431
  try {
7444
7432
  w && !w.done && (l = A.return) && l.call(A);
@@ -7865,7 +7853,7 @@ var be = (
7865
7853
  }
7866
7854
  };
7867
7855
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
7868
- }, Tt = (
7856
+ }, Nt = (
7869
7857
  /** @class */
7870
7858
  function(r) {
7871
7859
  ju(e, r);
@@ -8027,7 +8015,7 @@ var be = (
8027
8015
  return r.buildBitArray = function(e) {
8028
8016
  var t = e.length * 2 - 1;
8029
8017
  e[e.length - 1].getRightChar() == null && (t -= 1);
8030
- for (var n = 12 * t, i = new De(n), a = 0, o = e[0], s = o.getRightChar().getValue(), l = 11; l >= 0; --l)
8018
+ for (var n = 12 * t, i = new Re(n), a = 0, o = e[0], s = o.getRightChar().getValue(), l = 11; l >= 0; --l)
8031
8019
  (s & 1 << l) !== 0 && i.set(a), a++;
8032
8020
  for (var l = 1; l < e.length; ++l) {
8033
8021
  for (var c = e[l], u = c.getLeftChar().getValue(), d = 11; d >= 0; --d)
@@ -8039,7 +8027,7 @@ var be = (
8039
8027
  return i;
8040
8028
  }, r;
8041
8029
  }()
8042
- ), Ot = (
8030
+ ), It = (
8043
8031
  /** @class */
8044
8032
  function() {
8045
8033
  function r(e, t) {
@@ -8105,7 +8093,7 @@ var be = (
8105
8093
  }
8106
8094
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
8107
8095
  };
8108
- }(), Nt = (
8096
+ }(), Ot = (
8109
8097
  /** @class */
8110
8098
  function(r) {
8111
8099
  Ju(e, r);
@@ -8431,7 +8419,7 @@ var be = (
8431
8419
  }, r.prototype.decodeGeneralPurposeField = function(e, t) {
8432
8420
  this.buffer.setLengthToZero(), t != null && this.buffer.append(t), this.current.setPosition(e);
8433
8421
  var n = this.parseBlocks();
8434
- return n != null && n.isRemaining() ? new Nt(this.current.getPosition(), this.buffer.toString(), n.getRemainingValue()) : new Nt(this.current.getPosition(), this.buffer.toString());
8422
+ return n != null && n.isRemaining() ? new Ot(this.current.getPosition(), this.buffer.toString(), n.getRemainingValue()) : new Ot(this.current.getPosition(), this.buffer.toString());
8435
8423
  }, r.prototype.parseBlocks = function() {
8436
8424
  var e, t;
8437
8425
  do {
@@ -8447,35 +8435,35 @@ var be = (
8447
8435
  var e = this.decodeNumeric(this.current.getPosition());
8448
8436
  if (this.current.setPosition(e.getNewPosition()), e.isFirstDigitFNC1()) {
8449
8437
  var t = void 0;
8450
- return e.isSecondDigitFNC1() ? t = new Nt(this.current.getPosition(), this.buffer.toString()) : t = new Nt(this.current.getPosition(), this.buffer.toString(), e.getSecondDigit()), new Ot(!0, t);
8438
+ return e.isSecondDigitFNC1() ? t = new Ot(this.current.getPosition(), this.buffer.toString()) : t = new Ot(this.current.getPosition(), this.buffer.toString(), e.getSecondDigit()), new It(!0, t);
8451
8439
  }
8452
8440
  if (this.buffer.append(e.getFirstDigit()), e.isSecondDigitFNC1()) {
8453
- var t = new Nt(this.current.getPosition(), this.buffer.toString());
8454
- return new Ot(!0, t);
8441
+ var t = new Ot(this.current.getPosition(), this.buffer.toString());
8442
+ return new It(!0, t);
8455
8443
  }
8456
8444
  this.buffer.append(e.getSecondDigit());
8457
8445
  }
8458
- return this.isNumericToAlphaNumericLatch(this.current.getPosition()) && (this.current.setAlpha(), this.current.incrementPosition(4)), new Ot(!1);
8446
+ return this.isNumericToAlphaNumericLatch(this.current.getPosition()) && (this.current.setAlpha(), this.current.incrementPosition(4)), new It(!1);
8459
8447
  }, r.prototype.parseIsoIec646Block = function() {
8460
8448
  for (; this.isStillIsoIec646(this.current.getPosition()); ) {
8461
8449
  var e = this.decodeIsoIec646(this.current.getPosition());
8462
8450
  if (this.current.setPosition(e.getNewPosition()), e.isFNC1()) {
8463
- var t = new Nt(this.current.getPosition(), this.buffer.toString());
8464
- return new Ot(!0, t);
8451
+ var t = new Ot(this.current.getPosition(), this.buffer.toString());
8452
+ return new It(!0, t);
8465
8453
  }
8466
8454
  this.buffer.append(e.getValue());
8467
8455
  }
8468
- return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setAlpha()), new Ot(!1);
8456
+ return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setAlpha()), new It(!1);
8469
8457
  }, r.prototype.parseAlphaBlock = function() {
8470
8458
  for (; this.isStillAlpha(this.current.getPosition()); ) {
8471
8459
  var e = this.decodeAlphanumeric(this.current.getPosition());
8472
8460
  if (this.current.setPosition(e.getNewPosition()), e.isFNC1()) {
8473
- var t = new Nt(this.current.getPosition(), this.buffer.toString());
8474
- return new Ot(!0, t);
8461
+ var t = new Ot(this.current.getPosition(), this.buffer.toString());
8462
+ return new It(!0, t);
8475
8463
  }
8476
8464
  this.buffer.append(e.getValue());
8477
8465
  }
8478
- return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setIsoIec646()), new Ot(!1);
8466
+ return this.isAlphaOr646ToNumericLatch(this.current.getPosition()) ? (this.current.incrementPosition(3), this.current.setNumeric()) : this.isAlphaTo646ToAlphaLatch(this.current.getPosition()) && (this.current.getPosition() + 5 < this.information.getSize() ? this.current.incrementPosition(5) : this.current.setPosition(this.information.getSize()), this.current.setIsoIec646()), new It(!1);
8479
8467
  }, r.prototype.isStillIsoIec646 = function(e) {
8480
8468
  if (e + 5 > this.information.getSize())
8481
8469
  return !1;
@@ -8943,7 +8931,7 @@ var be = (
8943
8931
  }
8944
8932
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
8945
8933
  };
8946
- }(), wt = (
8934
+ }(), Ct = (
8947
8935
  /** @class */
8948
8936
  function(r) {
8949
8937
  xd(e, r);
@@ -8997,21 +8985,21 @@ function yd(r) {
8997
8985
  var n = kr.extractNumericValueFromBitArray(r, 1, 7);
8998
8986
  switch (n) {
8999
8987
  case 56:
9000
- return new wt(r, "310", "11");
8988
+ return new Ct(r, "310", "11");
9001
8989
  case 57:
9002
- return new wt(r, "320", "11");
8990
+ return new Ct(r, "320", "11");
9003
8991
  case 58:
9004
- return new wt(r, "310", "13");
8992
+ return new Ct(r, "310", "13");
9005
8993
  case 59:
9006
- return new wt(r, "320", "13");
8994
+ return new Ct(r, "320", "13");
9007
8995
  case 60:
9008
- return new wt(r, "310", "15");
8996
+ return new Ct(r, "310", "15");
9009
8997
  case 61:
9010
- return new wt(r, "320", "15");
8998
+ return new Ct(r, "320", "15");
9011
8999
  case 62:
9012
- return new wt(r, "310", "17");
9000
+ return new Ct(r, "310", "17");
9013
9001
  case 63:
9014
- return new wt(r, "320", "17");
9002
+ return new Ct(r, "320", "17");
9015
9003
  }
9016
9004
  } catch (i) {
9017
9005
  throw console.log(i), new Ir("unknown decoder: " + r);
@@ -9088,7 +9076,7 @@ var Qi = (
9088
9076
  }
9089
9077
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
9090
9078
  };
9091
- }(), _t = function(r) {
9079
+ }(), wt = function(r) {
9092
9080
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
9093
9081
  if (t) return t.call(r);
9094
9082
  if (r && typeof r.length == "number") return {
@@ -9150,7 +9138,7 @@ var Qi = (
9150
9138
  var s = this.rows[o];
9151
9139
  this.pairs.length = 0;
9152
9140
  try {
9153
- for (var l = (i = void 0, _t(t)), c = l.next(); !c.done; c = l.next()) {
9141
+ for (var l = (i = void 0, wt(t)), c = l.next(); !c.done; c = l.next()) {
9154
9142
  var u = c.value;
9155
9143
  this.pairs.push(u.getPairs());
9156
9144
  }
@@ -9179,7 +9167,7 @@ var Qi = (
9179
9167
  }, e.isValidSequence = function(t) {
9180
9168
  var n, i;
9181
9169
  try {
9182
- for (var a = _t(e.FINDER_PATTERN_SEQUENCES), o = a.next(); !o.done; o = a.next()) {
9170
+ for (var a = wt(e.FINDER_PATTERN_SEQUENCES), o = a.next(); !o.done; o = a.next()) {
9183
9171
  var s = o.value;
9184
9172
  if (!(t.length > s.length)) {
9185
9173
  for (var l = !0, c = 0; c < t.length; c++)
@@ -9214,15 +9202,15 @@ var Qi = (
9214
9202
  }, e.prototype.removePartialRows = function(t, n) {
9215
9203
  var i, a, o, s, l, c;
9216
9204
  try {
9217
- for (var u = _t(n), d = u.next(); !d.done; d = u.next()) {
9205
+ for (var u = wt(n), d = u.next(); !d.done; d = u.next()) {
9218
9206
  var f = d.value;
9219
9207
  if (f.getPairs().length !== t.length) {
9220
9208
  var h = !0;
9221
9209
  try {
9222
- for (var v = (o = void 0, _t(f.getPairs())), g = v.next(); !g.done; g = v.next()) {
9210
+ for (var v = (o = void 0, wt(f.getPairs())), g = v.next(); !g.done; g = v.next()) {
9223
9211
  var y = g.value, m = !1;
9224
9212
  try {
9225
- for (var C = (l = void 0, _t(t)), A = C.next(); !A.done; A = C.next()) {
9213
+ for (var C = (l = void 0, wt(t)), A = C.next(); !A.done; A = C.next()) {
9226
9214
  var w = A.value;
9227
9215
  if (Qi.equals(y, w)) {
9228
9216
  m = !0;
@@ -9263,13 +9251,13 @@ var Qi = (
9263
9251
  }, e.isPartialRow = function(t, n) {
9264
9252
  var i, a, o, s, l, c;
9265
9253
  try {
9266
- for (var u = _t(n), d = u.next(); !d.done; d = u.next()) {
9254
+ for (var u = wt(n), d = u.next(); !d.done; d = u.next()) {
9267
9255
  var f = d.value, h = !0;
9268
9256
  try {
9269
- for (var v = (o = void 0, _t(t)), g = v.next(); !g.done; g = v.next()) {
9257
+ for (var v = (o = void 0, wt(t)), g = v.next(); !g.done; g = v.next()) {
9270
9258
  var y = g.value, m = !1;
9271
9259
  try {
9272
- for (var C = (l = void 0, _t(f.getPairs())), A = C.next(); !A.done; A = C.next()) {
9260
+ for (var C = (l = void 0, wt(f.getPairs())), A = C.next(); !A.done; A = C.next()) {
9273
9261
  var w = A.value;
9274
9262
  if (y.equals(w)) {
9275
9263
  m = !0;
@@ -9435,10 +9423,10 @@ var Qi = (
9435
9423
  (l & 1) === 0 ? (v[w] = A, y[w] = C - A) : (g[w] = A, m[w] = C - A);
9436
9424
  }
9437
9425
  this.adjustOddEvenCounts(d);
9438
- for (var S = 4 * n.getValue() + (i ? 0 : 2) + (a ? 0 : 1) - 1, O = 0, N = 0, l = v.length - 1; l >= 0; l--) {
9426
+ for (var S = 4 * n.getValue() + (i ? 0 : 2) + (a ? 0 : 1) - 1, O = 0, T = 0, l = v.length - 1; l >= 0; l--) {
9439
9427
  if (e.isNotA1left(n, i, a)) {
9440
9428
  var F = e.WEIGHTS[S][2 * l];
9441
- N += v[l] * F;
9429
+ T += v[l] * F;
9442
9430
  }
9443
9431
  O += v[l];
9444
9432
  }
@@ -9447,10 +9435,10 @@ var Qi = (
9447
9435
  var F = e.WEIGHTS[S][2 * l + 1];
9448
9436
  z += g[l] * F;
9449
9437
  }
9450
- var U = N + z;
9438
+ var U = T + z;
9451
9439
  if ((O & 1) !== 0 || O > 13 || O < 4)
9452
9440
  throw new I();
9453
- var Q = (13 - O) / 2, X = e.SYMBOL_WIDEST[Q], Z = 9 - X, Fe = Gt.getRSSvalue(v, X, !0), Ze = Gt.getRSSvalue(g, Z, !1), ur = e.EVEN_TOTAL_SUBSET[Q], _n = e.GSUM[Q], An = Fe * ur + Ze + _n;
9441
+ var Z = (13 - O) / 2, X = e.SYMBOL_WIDEST[Z], K = 9 - X, Pe = Gt.getRSSvalue(v, X, !0), Ze = Gt.getRSSvalue(g, K, !1), ur = e.EVEN_TOTAL_SUBSET[Z], _n = e.GSUM[Z], An = Pe * ur + Ze + _n;
9454
9442
  return new Wr(An, U);
9455
9443
  }, e.isNotA1left = function(t, n, i) {
9456
9444
  return !(t.getValue() === 0 && n && i);
@@ -9615,7 +9603,7 @@ var Qi = (
9615
9603
  e.FINDER_PAT_F
9616
9604
  ]
9617
9605
  ], e.MAX_PAIRS = 11, e;
9618
- }(Tt)
9606
+ }(Nt)
9619
9607
  ), _d = /* @__PURE__ */ function() {
9620
9608
  var r = function(e, t) {
9621
9609
  return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -9788,17 +9776,17 @@ var Qi = (
9788
9776
  w *= 9, w += f[s], A += f[s];
9789
9777
  for (var S = 0, O = 0, s = h.length - 1; s >= 0; s--)
9790
9778
  S *= 9, S += h[s], O += h[s];
9791
- var N = w + 3 * S;
9779
+ var T = w + 3 * S;
9792
9780
  if (i) {
9793
9781
  if ((A & 1) !== 0 || A > 12 || A < 4)
9794
9782
  throw new I();
9795
- var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Q = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), Z = e.OUTSIDE_EVEN_TOTAL_SUBSET[F], Fe = e.OUTSIDE_GSUM[F];
9796
- return new Wr(Q * Z + X + Fe, N);
9783
+ var F = (12 - A) / 2, z = e.OUTSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !1), X = Gt.getRSSvalue(h, U, !0), K = e.OUTSIDE_EVEN_TOTAL_SUBSET[F], Pe = e.OUTSIDE_GSUM[F];
9784
+ return new Wr(Z * K + X + Pe, T);
9797
9785
  } else {
9798
9786
  if ((O & 1) !== 0 || O > 10 || O < 4)
9799
9787
  throw new I();
9800
- var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Q = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F], Fe = e.INSIDE_GSUM[F];
9801
- return new Wr(X * Ze + Q + Fe, N);
9788
+ var F = (10 - O) / 2, z = e.INSIDE_ODD_WIDEST[F], U = 9 - z, Z = Gt.getRSSvalue(f, z, !0), X = Gt.getRSSvalue(h, U, !1), Ze = e.INSIDE_ODD_TOTAL_SUBSET[F], Pe = e.INSIDE_GSUM[F];
9789
+ return new Wr(X * Ze + Z + Pe, T);
9802
9790
  }
9803
9791
  }, e.prototype.findFinderPattern = function(t, n) {
9804
9792
  var i = this.getDecodeFinderCounters();
@@ -9810,7 +9798,7 @@ var Qi = (
9810
9798
  i[l]++;
9811
9799
  else {
9812
9800
  if (l === 3) {
9813
- if (Tt.isFinderPattern(i))
9801
+ if (Nt.isFinderPattern(i))
9814
9802
  return [c, u];
9815
9803
  c += i[0] + i[1], i[0] = i[2], i[1] = i[3], i[2] = 0, i[3] = 0, l--;
9816
9804
  } else
@@ -9862,14 +9850,14 @@ var Qi = (
9862
9850
  if (o) {
9863
9851
  if (s)
9864
9852
  throw new I();
9865
- Tt.increment(this.getOddCounts(), this.getOddRoundingErrors());
9853
+ Nt.increment(this.getOddCounts(), this.getOddRoundingErrors());
9866
9854
  }
9867
- if (s && Tt.decrement(this.getOddCounts(), this.getOddRoundingErrors()), l) {
9855
+ if (s && Nt.decrement(this.getOddCounts(), this.getOddRoundingErrors()), l) {
9868
9856
  if (c)
9869
9857
  throw new I();
9870
- Tt.increment(this.getEvenCounts(), this.getOddRoundingErrors());
9858
+ Nt.increment(this.getEvenCounts(), this.getOddRoundingErrors());
9871
9859
  }
9872
- c && Tt.decrement(this.getEvenCounts(), this.getEvenRoundingErrors());
9860
+ c && Nt.decrement(this.getEvenCounts(), this.getEvenRoundingErrors());
9873
9861
  }, e.OUTSIDE_EVEN_TOTAL_SUBSET = [1, 10, 34, 70, 126], e.INSIDE_ODD_TOTAL_SUBSET = [4, 20, 48, 81], e.OUTSIDE_GSUM = [0, 161, 961, 2015, 2715], e.INSIDE_GSUM = [0, 336, 1036, 1516], e.OUTSIDE_ODD_WIDEST = [8, 6, 4, 3, 1], e.INSIDE_ODD_WIDEST = [2, 4, 6, 8], e.FINDER_PATTERNS = [
9874
9862
  Int32Array.from([3, 8, 2, 1]),
9875
9863
  Int32Array.from([3, 5, 5, 1]),
@@ -9881,7 +9869,7 @@ var Qi = (
9881
9869
  Int32Array.from([1, 5, 7, 1]),
9882
9870
  Int32Array.from([1, 3, 9, 1])
9883
9871
  ], e;
9884
- }(Tt)
9872
+ }(Nt)
9885
9873
  ), Sd = /* @__PURE__ */ function() {
9886
9874
  var r = function(e, t) {
9887
9875
  return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
@@ -10165,8 +10153,8 @@ var ea = function(r) {
10165
10153
  var f = d.value;
10166
10154
  l += f.getCount();
10167
10155
  }
10168
- } catch (Fe) {
10169
- n = { error: Fe };
10156
+ } catch (Pe) {
10157
+ n = { error: Pe };
10170
10158
  } finally {
10171
10159
  try {
10172
10160
  d && !d.done && (i = u.return) && i.call(u);
@@ -10181,8 +10169,8 @@ var ea = function(r) {
10181
10169
  var C = f.getDataCodewords(), A = s.getECCodewords() + C;
10182
10170
  h[v++] = new r(C, new Uint8Array(A));
10183
10171
  }
10184
- } catch (Fe) {
10185
- a = { error: Fe };
10172
+ } catch (Pe) {
10173
+ a = { error: Pe };
10186
10174
  } finally {
10187
10175
  try {
10188
10176
  y && !y.done && (o = g.return) && o.call(g);
@@ -10190,17 +10178,17 @@ var ea = function(r) {
10190
10178
  if (a) throw a.error;
10191
10179
  }
10192
10180
  }
10193
- for (var w = h[0].codewords.length, S = w - s.getECCodewords(), O = S - 1, N = 0, m = 0; m < O; m++)
10181
+ for (var w = h[0].codewords.length, S = w - s.getECCodewords(), O = S - 1, T = 0, m = 0; m < O; m++)
10194
10182
  for (var F = 0; F < v; F++)
10195
- h[F].codewords[m] = e[N++];
10183
+ h[F].codewords[m] = e[T++];
10196
10184
  for (var z = t.getVersionNumber() === 24, U = z ? 8 : v, F = 0; F < U; F++)
10197
- h[F].codewords[S - 1] = e[N++];
10198
- for (var Q = h[0].codewords.length, m = S; m < Q; m++)
10185
+ h[F].codewords[S - 1] = e[T++];
10186
+ for (var Z = h[0].codewords.length, m = S; m < Z; m++)
10199
10187
  for (var F = 0; F < v; F++) {
10200
- var X = z ? (F + 8) % v : F, Z = z && X > 7 ? m - 1 : m;
10201
- h[X].codewords[Z] = e[N++];
10188
+ var X = z ? (F + 8) % v : F, K = z && X > 7 ? m - 1 : m;
10189
+ h[X].codewords[K] = e[T++];
10202
10190
  }
10203
- if (N !== e.length)
10191
+ if (T !== e.length)
10204
10192
  throw new H();
10205
10193
  return h;
10206
10194
  }, r.prototype.getNumDataCodewords = function() {
@@ -10688,7 +10676,7 @@ var Td = (
10688
10676
  try {
10689
10677
  this.rsDecoder.decode(n, e.length - t);
10690
10678
  } catch {
10691
- throw new Te();
10679
+ throw new De();
10692
10680
  }
10693
10681
  for (var i = 0; i < t; i++)
10694
10682
  e[i] = n[i];
@@ -10777,9 +10765,9 @@ var Td = (
10777
10765
  n = this.decoder.decode(o.getBits()), i = o.getPoints();
10778
10766
  }
10779
10767
  var s = n.getRawBytes(), l = new We(n.getText(), s, 8 * s.length, i, P.DATA_MATRIX, de.currentTimeMillis()), c = n.getByteSegments();
10780
- c != null && l.putMetadata(ke.BYTE_SEGMENTS, c);
10768
+ c != null && l.putMetadata(Le.BYTE_SEGMENTS, c);
10781
10769
  var u = n.getECLevel();
10782
- return u != null && l.putMetadata(ke.ERROR_CORRECTION_LEVEL, u), l;
10770
+ return u != null && l.putMetadata(Le.ERROR_CORRECTION_LEVEL, u), l;
10783
10771
  }, r.prototype.reset = function() {
10784
10772
  }, r.extractPureBits = function(e) {
10785
10773
  var t = e.getTopLeftOnBit(), n = e.getBottomRightOnBit();
@@ -11018,7 +11006,7 @@ var Fd = (
11018
11006
  }
11019
11007
  };
11020
11008
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
11021
- }, Rt = (
11009
+ }, Dt = (
11022
11010
  /** @class */
11023
11011
  function() {
11024
11012
  function r(e, t) {
@@ -11160,10 +11148,10 @@ var Fd = (
11160
11148
  new r(40, Int32Array.from([6, 30, 58, 86, 114, 142, 170]), new E(30, new x(19, 118), new x(6, 119)), new E(28, new x(18, 47), new x(31, 48)), new E(30, new x(34, 24), new x(34, 25)), new E(30, new x(20, 15), new x(61, 16)))
11161
11149
  ], r;
11162
11150
  }()
11163
- ), Ie;
11151
+ ), Oe;
11164
11152
  (function(r) {
11165
11153
  r[r.DATA_MASK_000 = 0] = "DATA_MASK_000", r[r.DATA_MASK_001 = 1] = "DATA_MASK_001", r[r.DATA_MASK_010 = 2] = "DATA_MASK_010", r[r.DATA_MASK_011 = 3] = "DATA_MASK_011", r[r.DATA_MASK_100 = 4] = "DATA_MASK_100", r[r.DATA_MASK_101 = 5] = "DATA_MASK_101", r[r.DATA_MASK_110 = 6] = "DATA_MASK_110", r[r.DATA_MASK_111 = 7] = "DATA_MASK_111";
11166
- })(Ie || (Ie = {}));
11154
+ })(Oe || (Oe = {}));
11167
11155
  var ra = (
11168
11156
  /** @class */
11169
11157
  function() {
@@ -11178,52 +11166,52 @@ var ra = (
11178
11166
  /**
11179
11167
  * 000: mask bits for which (x + y) mod 2 == 0
11180
11168
  */
11181
- [Ie.DATA_MASK_000, new r(Ie.DATA_MASK_000, function(e, t) {
11169
+ [Oe.DATA_MASK_000, new r(Oe.DATA_MASK_000, function(e, t) {
11182
11170
  return (e + t & 1) === 0;
11183
11171
  })],
11184
11172
  /**
11185
11173
  * 001: mask bits for which x mod 2 == 0
11186
11174
  */
11187
- [Ie.DATA_MASK_001, new r(Ie.DATA_MASK_001, function(e, t) {
11175
+ [Oe.DATA_MASK_001, new r(Oe.DATA_MASK_001, function(e, t) {
11188
11176
  return (e & 1) === 0;
11189
11177
  })],
11190
11178
  /**
11191
11179
  * 010: mask bits for which y mod 3 == 0
11192
11180
  */
11193
- [Ie.DATA_MASK_010, new r(Ie.DATA_MASK_010, function(e, t) {
11181
+ [Oe.DATA_MASK_010, new r(Oe.DATA_MASK_010, function(e, t) {
11194
11182
  return t % 3 === 0;
11195
11183
  })],
11196
11184
  /**
11197
11185
  * 011: mask bits for which (x + y) mod 3 == 0
11198
11186
  */
11199
- [Ie.DATA_MASK_011, new r(Ie.DATA_MASK_011, function(e, t) {
11187
+ [Oe.DATA_MASK_011, new r(Oe.DATA_MASK_011, function(e, t) {
11200
11188
  return (e + t) % 3 === 0;
11201
11189
  })],
11202
11190
  /**
11203
11191
  * 100: mask bits for which (x/2 + y/3) mod 2 == 0
11204
11192
  */
11205
- [Ie.DATA_MASK_100, new r(Ie.DATA_MASK_100, function(e, t) {
11193
+ [Oe.DATA_MASK_100, new r(Oe.DATA_MASK_100, function(e, t) {
11206
11194
  return (Math.floor(e / 2) + Math.floor(t / 3) & 1) === 0;
11207
11195
  })],
11208
11196
  /**
11209
11197
  * 101: mask bits for which xy mod 2 + xy mod 3 == 0
11210
11198
  * equivalently, such that xy mod 6 == 0
11211
11199
  */
11212
- [Ie.DATA_MASK_101, new r(Ie.DATA_MASK_101, function(e, t) {
11200
+ [Oe.DATA_MASK_101, new r(Oe.DATA_MASK_101, function(e, t) {
11213
11201
  return e * t % 6 === 0;
11214
11202
  })],
11215
11203
  /**
11216
11204
  * 110: mask bits for which (xy mod 2 + xy mod 3) mod 2 == 0
11217
11205
  * equivalently, such that xy mod 6 < 3
11218
11206
  */
11219
- [Ie.DATA_MASK_110, new r(Ie.DATA_MASK_110, function(e, t) {
11207
+ [Oe.DATA_MASK_110, new r(Oe.DATA_MASK_110, function(e, t) {
11220
11208
  return e * t % 6 < 3;
11221
11209
  })],
11222
11210
  /**
11223
11211
  * 111: mask bits for which ((x+y)mod 2 + xy mod 3) mod 2 == 0
11224
11212
  * equivalently, such that (x + y + xy mod 3) mod 2 == 0
11225
11213
  */
11226
- [Ie.DATA_MASK_111, new r(Ie.DATA_MASK_111, function(e, t) {
11214
+ [Oe.DATA_MASK_111, new r(Oe.DATA_MASK_111, function(e, t) {
11227
11215
  return (e + t + e * t % 3 & 1) === 0;
11228
11216
  })]
11229
11217
  ]), r;
@@ -11257,18 +11245,18 @@ var ra = (
11257
11245
  return this.parsedVersion;
11258
11246
  var e = this.bitMatrix.getHeight(), t = Math.floor((e - 17) / 4);
11259
11247
  if (t <= 6)
11260
- return Rt.getVersionForNumber(t);
11248
+ return Dt.getVersionForNumber(t);
11261
11249
  for (var n = 0, i = e - 11, a = 5; a >= 0; a--)
11262
11250
  for (var o = e - 9; o >= i; o--)
11263
11251
  n = this.copyBit(o, a, n);
11264
- var s = Rt.decodeVersionInformation(n);
11252
+ var s = Dt.decodeVersionInformation(n);
11265
11253
  if (s !== null && s.getDimensionForVersion() === e)
11266
11254
  return this.parsedVersion = s, s;
11267
11255
  n = 0;
11268
11256
  for (var o = 5; o >= 0; o--)
11269
11257
  for (var a = e - 9; a >= i; a--)
11270
11258
  n = this.copyBit(o, a, n);
11271
- if (s = Rt.decodeVersionInformation(n), s !== null && s.getDimensionForVersion() === e)
11259
+ if (s = Dt.decodeVersionInformation(n), s !== null && s.getDimensionForVersion() === e)
11272
11260
  return this.parsedVersion = s, s;
11273
11261
  throw new M();
11274
11262
  }, r.prototype.copyBit = function(e, t, n) {
@@ -11326,8 +11314,8 @@ var ra = (
11326
11314
  var h = f.value;
11327
11315
  c += h.getCount();
11328
11316
  }
11329
- } catch (Z) {
11330
- i = { error: Z };
11317
+ } catch (K) {
11318
+ i = { error: K };
11331
11319
  } finally {
11332
11320
  try {
11333
11321
  f && !f.done && (a = d.return) && a.call(d);
@@ -11342,8 +11330,8 @@ var ra = (
11342
11330
  var A = h.getDataCodewords(), w = l.getECCodewordsPerBlock() + A;
11343
11331
  v[g++] = new r(A, new Uint8Array(w));
11344
11332
  }
11345
- } catch (Z) {
11346
- o = { error: Z };
11333
+ } catch (K) {
11334
+ o = { error: K };
11347
11335
  } finally {
11348
11336
  try {
11349
11337
  m && !m.done && (s = y.return) && s.call(y);
@@ -11352,8 +11340,8 @@ var ra = (
11352
11340
  }
11353
11341
  }
11354
11342
  for (var S = v[0].codewords.length, O = v.length - 1; O >= 0; ) {
11355
- var N = v[O].codewords.length;
11356
- if (N === S)
11343
+ var T = v[O].codewords.length;
11344
+ if (T === S)
11357
11345
  break;
11358
11346
  O--;
11359
11347
  }
@@ -11363,7 +11351,7 @@ var ra = (
11363
11351
  v[U].codewords[C] = e[z++];
11364
11352
  for (var U = O; U < g; U++)
11365
11353
  v[U].codewords[F] = e[z++];
11366
- for (var Q = v[0].codewords.length, C = F; C < Q; C++)
11354
+ for (var Z = v[0].codewords.length, C = F; C < Z; C++)
11367
11355
  for (var U = 0; U < g; U++) {
11368
11356
  var X = U < O ? C : C + 1;
11369
11357
  v[U].codewords[X] = e[z++];
@@ -11653,7 +11641,7 @@ var he = (
11653
11641
  try {
11654
11642
  this.rsDecoder.decode(n, e.length - t);
11655
11643
  } catch {
11656
- throw new Te();
11644
+ throw new De();
11657
11645
  }
11658
11646
  for (var i = 0; i < t; i++)
11659
11647
  e[i] = /*(byte) */
@@ -12131,8 +12119,8 @@ var he = (
12131
12119
  */
12132
12120
  // FurthestFromAverageComparator implements Comparator<FinderPattern>
12133
12121
  function(S, O) {
12134
- var N = Math.abs(O.getEstimatedModuleSize() - s), F = Math.abs(S.getEstimatedModuleSize() - s);
12135
- return N < F ? -1 : N > F ? 1 : 0;
12122
+ var T = Math.abs(O.getEstimatedModuleSize() - s), F = Math.abs(S.getEstimatedModuleSize() - s);
12123
+ return T < F ? -1 : T > F ? 1 : 0;
12136
12124
  }
12137
12125
  );
12138
12126
  for (var g = Math.max(0.2 * s, v), y = 0; y < o.length && o.length > 3; y++) {
@@ -12161,12 +12149,12 @@ var he = (
12161
12149
  * <p>Orders by {@link FinderPattern#getCount()}, descending.</p>
12162
12150
  */
12163
12151
  // CenterComparator implements Comparator<FinderPattern>
12164
- function(O, N) {
12165
- if (N.getCount() === O.getCount()) {
12166
- var F = Math.abs(N.getEstimatedModuleSize() - s), z = Math.abs(O.getEstimatedModuleSize() - s);
12152
+ function(O, T) {
12153
+ if (T.getCount() === O.getCount()) {
12154
+ var F = Math.abs(T.getEstimatedModuleSize() - s), z = Math.abs(O.getEstimatedModuleSize() - s);
12167
12155
  return F < z ? 1 : F > z ? -1 : 0;
12168
12156
  } else
12169
- return N.getCount() - O.getCount();
12157
+ return T.getCount() - O.getCount();
12170
12158
  }
12171
12159
  ), o.splice(3);
12172
12160
  }
@@ -12198,7 +12186,7 @@ var he = (
12198
12186
  var t = e.getTopLeft(), n = e.getTopRight(), i = e.getBottomLeft(), a = this.calculateModuleSize(t, n, i);
12199
12187
  if (a < 1)
12200
12188
  throw new I("No pattern found in proccess finder.");
12201
- var o = r.computeDimension(t, n, i, a), s = Rt.getProvisionalVersionForDimension(o), l = s.getDimensionForVersion() - 7, c = null;
12189
+ var o = r.computeDimension(t, n, i, a), s = Dt.getProvisionalVersionForDimension(o), l = s.getDimensionForVersion() - 7, c = null;
12202
12190
  if (s.getAlignmentPatternCenters().length > 0)
12203
12191
  for (var u = n.getX() - t.getX() + i.getX(), d = n.getY() - t.getY() + i.getY(), f = 1 - 3 / l, h = (
12204
12192
  /*(int) */
@@ -12326,9 +12314,9 @@ var he = (
12326
12314
  }
12327
12315
  n.getOther() instanceof Bo && n.getOther().applyMirroredCorrection(i);
12328
12316
  var s = new We(n.getText(), n.getRawBytes(), void 0, i, P.QR_CODE, void 0), l = n.getByteSegments();
12329
- l !== null && s.putMetadata(ke.BYTE_SEGMENTS, l);
12317
+ l !== null && s.putMetadata(Le.BYTE_SEGMENTS, l);
12330
12318
  var c = n.getECLevel();
12331
- return c !== null && s.putMetadata(ke.ERROR_CORRECTION_LEVEL, c), n.hasStructuredAppend() && (s.putMetadata(ke.STRUCTURED_APPEND_SEQUENCE, n.getStructuredAppendSequenceNumber()), s.putMetadata(ke.STRUCTURED_APPEND_PARITY, n.getStructuredAppendParity())), s;
12319
+ return c !== null && s.putMetadata(Le.ERROR_CORRECTION_LEVEL, c), n.hasStructuredAppend() && (s.putMetadata(Le.STRUCTURED_APPEND_SEQUENCE, n.getStructuredAppendSequenceNumber()), s.putMetadata(Le.STRUCTURED_APPEND_PARITY, n.getStructuredAppendParity())), s;
12332
12320
  }, r.prototype.reset = function() {
12333
12321
  }, r.extractPureBits = function(e) {
12334
12322
  var t = e.getTopLeftOnBit(), n = e.getBottomRightOnBit();
@@ -12392,7 +12380,7 @@ var he = (
12392
12380
  }
12393
12381
  };
12394
12382
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
12395
- }, K = (
12383
+ }, Q = (
12396
12384
  /** @class */
12397
12385
  function() {
12398
12386
  function r() {
@@ -18147,7 +18135,7 @@ var he = (
18147
18135
  }
18148
18136
  };
18149
18137
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
18150
- }, Dt = (
18138
+ }, Tt = (
18151
18139
  /** @class */
18152
18140
  function() {
18153
18141
  function r(e, t) {
@@ -18352,7 +18340,7 @@ var he = (
18352
18340
  i.expTable[o] = a, a = a * n % t;
18353
18341
  for (var o = 0; o < t - 1; o++)
18354
18342
  i.logTable[i.expTable[o]] = o;
18355
- return i.zero = new Dt(i, new Int32Array([0])), i.one = new Dt(i, new Int32Array([1])), i;
18343
+ return i.zero = new Tt(i, new Int32Array([0])), i.one = new Tt(i, new Int32Array([1])), i;
18356
18344
  }
18357
18345
  return e.prototype.getZero = function() {
18358
18346
  return this.zero;
@@ -18364,8 +18352,8 @@ var he = (
18364
18352
  if (n === 0)
18365
18353
  return this.zero;
18366
18354
  var i = new Int32Array(t + 1);
18367
- return i[0] = n, new Dt(this, i);
18368
- }, e.PDF417_GF = new e(K.NUMBER_OF_CODEWORDS, 3), e;
18355
+ return i[0] = n, new Tt(this, i);
18356
+ }, e.PDF417_GF = new e(Q.NUMBER_OF_CODEWORDS, 3), e;
18369
18357
  }(nf)
18370
18358
  ), sf = function(r) {
18371
18359
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
@@ -18383,7 +18371,7 @@ var he = (
18383
18371
  this.field = of.PDF417_GF;
18384
18372
  }
18385
18373
  return r.prototype.decode = function(e, t, n) {
18386
- for (var i, a, o = new Dt(this.field, e), s = new Int32Array(t), l = !1, c = t; c > 0; c--) {
18374
+ for (var i, a, o = new Tt(this.field, e), s = new Int32Array(t), l = !1, c = t; c > 0; c--) {
18387
18375
  var u = o.evaluateAt(this.field.exp(c));
18388
18376
  s[t - c] = u, u !== 0 && (l = !0);
18389
18377
  }
@@ -18393,7 +18381,7 @@ var he = (
18393
18381
  if (n != null)
18394
18382
  try {
18395
18383
  for (var f = sf(n), h = f.next(); !h.done; h = f.next()) {
18396
- var v = h.value, g = this.field.exp(e.length - 1 - v), y = new Dt(this.field, new Int32Array([this.field.subtract(0, g), 1]));
18384
+ var v = h.value, g = this.field.exp(e.length - 1 - v), y = new Tt(this.field, new Int32Array([this.field.subtract(0, g), 1]));
18397
18385
  d = d.multiply(y);
18398
18386
  }
18399
18387
  } catch (F) {
@@ -18405,11 +18393,11 @@ var he = (
18405
18393
  if (i) throw i.error;
18406
18394
  }
18407
18395
  }
18408
- for (var m = new Dt(this.field, s), C = this.runEuclideanAlgorithm(this.field.buildMonomial(t, 1), m, t), A = C[0], w = C[1], S = this.findErrorLocations(A), O = this.findErrorMagnitudes(w, A, S), c = 0; c < S.length; c++) {
18409
- var N = e.length - 1 - this.field.log(S[c]);
18410
- if (N < 0)
18411
- throw Te.getChecksumInstance();
18412
- e[N] = this.field.subtract(e[N], O[c]);
18396
+ for (var m = new Tt(this.field, s), C = this.runEuclideanAlgorithm(this.field.buildMonomial(t, 1), m, t), A = C[0], w = C[1], S = this.findErrorLocations(A), O = this.findErrorMagnitudes(w, A, S), c = 0; c < S.length; c++) {
18397
+ var T = e.length - 1 - this.field.log(S[c]);
18398
+ if (T < 0)
18399
+ throw De.getChecksumInstance();
18400
+ e[T] = this.field.subtract(e[T], O[c]);
18413
18401
  }
18414
18402
  return S.length;
18415
18403
  }, r.prototype.runEuclideanAlgorithm = function(e, t, n) {
@@ -18420,7 +18408,7 @@ var he = (
18420
18408
  for (var a = e, o = t, s = this.field.getZero(), l = this.field.getOne(); o.getDegree() >= Math.round(n / 2); ) {
18421
18409
  var c = a, u = s;
18422
18410
  if (a = o, s = l, a.isZero())
18423
- throw Te.getChecksumInstance();
18411
+ throw De.getChecksumInstance();
18424
18412
  o = c;
18425
18413
  for (var d = this.field.getZero(), f = a.getCoefficient(a.getDegree()), h = this.field.inverse(f); o.getDegree() >= a.getDegree() && !o.isZero(); ) {
18426
18414
  var v = o.getDegree() - a.getDegree(), g = this.field.multiply(o.getCoefficient(o.getDegree()), h);
@@ -18430,19 +18418,19 @@ var he = (
18430
18418
  }
18431
18419
  var y = l.getCoefficient(0);
18432
18420
  if (y === 0)
18433
- throw Te.getChecksumInstance();
18421
+ throw De.getChecksumInstance();
18434
18422
  var m = this.field.inverse(y), C = l.multiply(m), A = o.multiply(m);
18435
18423
  return [C, A];
18436
18424
  }, r.prototype.findErrorLocations = function(e) {
18437
18425
  for (var t = e.getDegree(), n = new Int32Array(t), i = 0, a = 1; a < this.field.getSize() && i < t; a++)
18438
18426
  e.evaluateAt(a) === 0 && (n[i] = this.field.inverse(a), i++);
18439
18427
  if (i !== t)
18440
- throw Te.getChecksumInstance();
18428
+ throw De.getChecksumInstance();
18441
18429
  return n;
18442
18430
  }, r.prototype.findErrorMagnitudes = function(e, t, n) {
18443
18431
  for (var i = t.getDegree(), a = new Int32Array(i), o = 1; o <= i; o++)
18444
18432
  a[i - o] = this.field.multiply(o, t.getCoefficient(o));
18445
- for (var s = new Dt(this.field, a), l = n.length, c = new Int32Array(l), o = 0; o < l; o++) {
18433
+ for (var s = new Tt(this.field, a), l = n.length, c = new Int32Array(l), o = 0; o < l; o++) {
18446
18434
  var u = this.field.inverse(n[o]), d = this.field.subtract(0, e.evaluateAt(u)), f = this.field.inverse(s.evaluateAt(u));
18447
18435
  c[o] = this.field.multiply(d, f);
18448
18436
  }
@@ -18687,7 +18675,7 @@ var he = (
18687
18675
  if (e) throw e.error;
18688
18676
  }
18689
18677
  }
18690
- return K.toIntArray(i);
18678
+ return Q.toIntArray(i);
18691
18679
  }, r.prototype.getConfidence = function(e) {
18692
18680
  return this.values.get(e);
18693
18681
  }, r;
@@ -18824,7 +18812,7 @@ var he = (
18824
18812
  if (t) throw t.error;
18825
18813
  }
18826
18814
  }
18827
- if (a.getValue().length === 0 || o.getValue().length === 0 || s.getValue().length === 0 || l.getValue().length === 0 || a.getValue()[0] < 1 || o.getValue()[0] + s.getValue()[0] < K.MIN_ROWS_IN_BARCODE || o.getValue()[0] + s.getValue()[0] > K.MAX_ROWS_IN_BARCODE)
18815
+ if (a.getValue().length === 0 || o.getValue().length === 0 || s.getValue().length === 0 || l.getValue().length === 0 || a.getValue()[0] < 1 || o.getValue()[0] + s.getValue()[0] < Q.MIN_ROWS_IN_BARCODE || o.getValue()[0] + s.getValue()[0] > Q.MAX_ROWS_IN_BARCODE)
18828
18816
  return null;
18829
18817
  var v = new cf(a.getValue()[0], o.getValue()[0], s.getValue()[0], l.getValue()[0]);
18830
18818
  return this.removeIncorrectCodewords(i, v), v;
@@ -18874,7 +18862,7 @@ var he = (
18874
18862
  }
18875
18863
  return r.prototype.getDetectionResultColumns = function() {
18876
18864
  this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]), this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount + 1]);
18877
- var e = K.MAX_CODEWORDS_IN_BARCODE, t;
18865
+ var e = Q.MAX_CODEWORDS_IN_BARCODE, t;
18878
18866
  do
18879
18867
  t = e, e = this.adjustRowNumbersAndGetCount();
18880
18868
  while (e > 0 && e < t);
@@ -19021,25 +19009,25 @@ var he = (
19021
19009
  function r() {
19022
19010
  }
19023
19011
  return r.initialize = function() {
19024
- for (var e = 0; e < K.SYMBOL_TABLE.length; e++)
19025
- for (var t = K.SYMBOL_TABLE[e], n = t & 1, i = 0; i < K.BARS_IN_MODULE; i++) {
19012
+ for (var e = 0; e < Q.SYMBOL_TABLE.length; e++)
19013
+ for (var t = Q.SYMBOL_TABLE[e], n = t & 1, i = 0; i < Q.BARS_IN_MODULE; i++) {
19026
19014
  for (var a = 0; (t & 1) === n; )
19027
19015
  a += 1, t >>= 1;
19028
- n = t & 1, r.RATIOS_TABLE[e] || (r.RATIOS_TABLE[e] = new Array(K.BARS_IN_MODULE)), r.RATIOS_TABLE[e][K.BARS_IN_MODULE - i - 1] = Math.fround(a / K.MODULES_IN_CODEWORD);
19016
+ n = t & 1, r.RATIOS_TABLE[e] || (r.RATIOS_TABLE[e] = new Array(Q.BARS_IN_MODULE)), r.RATIOS_TABLE[e][Q.BARS_IN_MODULE - i - 1] = Math.fround(a / Q.MODULES_IN_CODEWORD);
19029
19017
  }
19030
19018
  this.bSymbolTableReady = !0;
19031
19019
  }, r.getDecodedValue = function(e) {
19032
19020
  var t = r.getDecodedCodewordValue(r.sampleBitCounts(e));
19033
19021
  return t !== -1 ? t : r.getClosestDecodedValue(e);
19034
19022
  }, r.sampleBitCounts = function(e) {
19035
- for (var t = ee.sum(e), n = new Int32Array(K.BARS_IN_MODULE), i = 0, a = 0, o = 0; o < K.MODULES_IN_CODEWORD; o++) {
19036
- var s = t / (2 * K.MODULES_IN_CODEWORD) + o * t / K.MODULES_IN_CODEWORD;
19023
+ for (var t = ee.sum(e), n = new Int32Array(Q.BARS_IN_MODULE), i = 0, a = 0, o = 0; o < Q.MODULES_IN_CODEWORD; o++) {
19024
+ var s = t / (2 * Q.MODULES_IN_CODEWORD) + o * t / Q.MODULES_IN_CODEWORD;
19037
19025
  a + e[i] <= s && (a += e[i], i++), n[i]++;
19038
19026
  }
19039
19027
  return n;
19040
19028
  }, r.getDecodedCodewordValue = function(e) {
19041
19029
  var t = r.getBitValue(e);
19042
- return K.getCodeword(t) === -1 ? -1 : t;
19030
+ return Q.getCodeword(t) === -1 ? -1 : t;
19043
19031
  }, r.getBitValue = function(e) {
19044
19032
  for (var t = (
19045
19033
  /*long*/
@@ -19049,23 +19037,23 @@ var he = (
19049
19037
  t = t << 1 | (n % 2 === 0 ? 1 : 0);
19050
19038
  return Math.trunc(t);
19051
19039
  }, r.getClosestDecodedValue = function(e) {
19052
- var t = ee.sum(e), n = new Array(K.BARS_IN_MODULE);
19040
+ var t = ee.sum(e), n = new Array(Q.BARS_IN_MODULE);
19053
19041
  if (t > 1)
19054
19042
  for (var i = 0; i < n.length; i++)
19055
19043
  n[i] = Math.fround(e[i] / t);
19056
19044
  var a = Gn.MAX_VALUE, o = -1;
19057
19045
  this.bSymbolTableReady || r.initialize();
19058
19046
  for (var s = 0; s < r.RATIOS_TABLE.length; s++) {
19059
- for (var l = 0, c = r.RATIOS_TABLE[s], u = 0; u < K.BARS_IN_MODULE; u++) {
19047
+ for (var l = 0, c = r.RATIOS_TABLE[s], u = 0; u < Q.BARS_IN_MODULE; u++) {
19060
19048
  var d = Math.fround(c[u] - n[u]);
19061
19049
  if (l += Math.fround(d * d), l >= a)
19062
19050
  break;
19063
19051
  }
19064
- l < a && (a = l, o = K.SYMBOL_TABLE[s]);
19052
+ l < a && (a = l, o = Q.SYMBOL_TABLE[s]);
19065
19053
  }
19066
19054
  return o;
19067
- }, r.bSymbolTableReady = !1, r.RATIOS_TABLE = new Array(K.SYMBOL_TABLE.length).map(function(e) {
19068
- return new Array(K.BARS_IN_MODULE);
19055
+ }, r.bSymbolTableReady = !1, r.RATIOS_TABLE = new Array(Q.SYMBOL_TABLE.length).map(function(e) {
19056
+ return new Array(Q.BARS_IN_MODULE);
19069
19057
  }), r;
19070
19058
  }()
19071
19059
  ), yf = (
@@ -19282,15 +19270,15 @@ function Lo() {
19282
19270
  throw new Error("Can't search globals for BigInt!");
19283
19271
  }
19284
19272
  var Mr;
19285
- function At(r) {
19273
+ function _t(r) {
19286
19274
  if (typeof Mr > "u" && (Mr = Lo()), Mr === null)
19287
19275
  throw new Error("BigInt is not supported!");
19288
19276
  return Mr(r);
19289
19277
  }
19290
19278
  function bf() {
19291
19279
  var r = [];
19292
- r[0] = At(1);
19293
- var e = At(900);
19280
+ r[0] = _t(1);
19281
+ var e = _t(900);
19294
19282
  r[1] = e;
19295
19283
  for (var t = 2; t < 16; t++)
19296
19284
  r[t] = r[t - 1] * e;
@@ -19604,7 +19592,7 @@ var If = (
19604
19592
  for (var f = 0; f < 6; ++f)
19605
19593
  o.write(
19606
19594
  /*(byte)*/
19607
- Number(At(l) >> At(8 * (5 - f)))
19595
+ Number(_t(l) >> _t(8 * (5 - f)))
19608
19596
  );
19609
19597
  l = 0, s = 0;
19610
19598
  }
@@ -19638,7 +19626,7 @@ var If = (
19638
19626
  for (var f = 0; f < 6; ++f)
19639
19627
  o.write(
19640
19628
  /*(byte)*/
19641
- Number(At(l) >> At(8 * (5 - f)))
19629
+ Number(_t(l) >> _t(8 * (5 - f)))
19642
19630
  );
19643
19631
  l = 0, s = 0;
19644
19632
  }
@@ -19666,8 +19654,8 @@ var If = (
19666
19654
  }
19667
19655
  return t;
19668
19656
  }, r.decodeBase900toBase10 = function(e, t) {
19669
- for (var n = At(0), i = 0; i < t; i++)
19670
- n += r.EXP900[t - i - 1] * At(e[i]);
19657
+ for (var n = _t(0), i = 0; i < t; i++)
19658
+ n += r.EXP900[t - i - 1] * _t(e[i]);
19671
19659
  var a = n.toString();
19672
19660
  if (a.charAt(0) !== "1")
19673
19661
  throw new M();
@@ -19791,7 +19779,7 @@ var If = (
19791
19779
  }, r.adjustCodewordCount = function(e, t) {
19792
19780
  var n = t[0][1], i = n.getValue(), a = e.getBarcodeColumnCount() * e.getBarcodeRowCount() - r.getNumberOfECCodeWords(e.getBarcodeECLevel());
19793
19781
  if (i.length === 0) {
19794
- if (a < 1 || a > K.MAX_CODEWORDS_IN_BARCODE)
19782
+ if (a < 1 || a > Q.MAX_CODEWORDS_IN_BARCODE)
19795
19783
  throw I.getNotFoundInstance();
19796
19784
  n.setValue(a);
19797
19785
  } else i[0] !== a && n.setValue(a);
@@ -19811,7 +19799,7 @@ var If = (
19811
19799
  }
19812
19800
  for (var d = new Array(a.length), f = 0; f < d.length; f++)
19813
19801
  d[f] = a[f];
19814
- return r.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(), i, K.toIntArray(n), K.toIntArray(o), d);
19802
+ return r.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(), i, Q.toIntArray(n), Q.toIntArray(o), d);
19815
19803
  }, r.createDecoderResultFromAmbiguousValues = function(e, t, n, i, a) {
19816
19804
  for (var o = new Int32Array(i.length), s = 100; s-- > 0; ) {
19817
19805
  for (var l = 0; l < o.length; l++)
@@ -19819,20 +19807,20 @@ var If = (
19819
19807
  try {
19820
19808
  return r.decodeCodewords(t, e, n);
19821
19809
  } catch (u) {
19822
- var c = u instanceof Te;
19810
+ var c = u instanceof De;
19823
19811
  if (!c)
19824
19812
  throw u;
19825
19813
  }
19826
19814
  if (o.length === 0)
19827
- throw Te.getChecksumInstance();
19815
+ throw De.getChecksumInstance();
19828
19816
  for (var l = 0; l < o.length; l++)
19829
19817
  if (o[l] < a[l].length - 1) {
19830
19818
  o[l]++;
19831
19819
  break;
19832
19820
  } else if (o[l] = 0, l === o.length - 1)
19833
- throw Te.getChecksumInstance();
19821
+ throw De.getChecksumInstance();
19834
19822
  }
19835
- throw Te.getChecksumInstance();
19823
+ throw De.getChecksumInstance();
19836
19824
  }, r.createBarcodeMatrix = function(e) {
19837
19825
  for (var t, n, i, a, o = Array.from({ length: e.getBarcodeRowCount() }, function() {
19838
19826
  return new Array(e.getBarcodeColumnCount() + 2);
@@ -19924,7 +19912,7 @@ var If = (
19924
19912
  }
19925
19913
  if (!r.checkCodewordSkew(d, s, l))
19926
19914
  return null;
19927
- var v = xf.getDecodedValue(c), g = K.getCodeword(v);
19915
+ var v = xf.getDecodedValue(c), g = Q.getCodeword(v);
19928
19916
  return g === -1 ? null : new gf(a, u, r.getCodewordBucketNumber(v), g);
19929
19917
  }, r.getModuleBitCount = function(e, t, n, i, a, o) {
19930
19918
  for (var s = a, l = new Int32Array(8), c = 0, u = i ? 1 : -1, d = i; (i ? s < n : s >= t) && c < l.length; )
@@ -19953,7 +19941,7 @@ var If = (
19953
19941
  return o.setErrorsCorrected(a), o.setErasures(n.length), o;
19954
19942
  }, r.correctErrors = function(e, t, n) {
19955
19943
  if (t != null && t.length > n / 2 + r.MAX_ERRORS || n < 0 || n > r.MAX_EC_CODEWORDS)
19956
- throw Te.getChecksumInstance();
19944
+ throw De.getChecksumInstance();
19957
19945
  return r.errorCorrection.decode(e, n, t);
19958
19946
  }, r.verifyCodewordCount = function(e, t) {
19959
19947
  if (e.length < 4)
@@ -20013,16 +20001,16 @@ var If = (
20013
20001
  try {
20014
20002
  return r.decode(e, t, !0);
20015
20003
  } catch (n) {
20016
- throw n instanceof M || n instanceof Te ? I.getNotFoundInstance() : n;
20004
+ throw n instanceof M || n instanceof De ? I.getNotFoundInstance() : n;
20017
20005
  }
20018
20006
  }, r.decode = function(e, t, n) {
20019
20007
  var i, a, o = new Array(), s = tf.detectMultiple(e, t, n);
20020
20008
  try {
20021
20009
  for (var l = Nf(s.getPoints()), c = l.next(); !c.done; c = l.next()) {
20022
20010
  var u = c.value, d = Of.decode(s.getBits(), u[4], u[5], u[6], u[7], r.getMinCodewordWidth(u), r.getMaxCodewordWidth(u)), f = new We(d.getText(), d.getRawBytes(), void 0, u, P.PDF_417);
20023
- f.putMetadata(ke.ERROR_CORRECTION_LEVEL, d.getECLevel());
20011
+ f.putMetadata(Le.ERROR_CORRECTION_LEVEL, d.getECLevel());
20024
20012
  var h = d.getOther();
20025
- h != null && f.putMetadata(ke.PDF417_EXTRA_METADATA, h), o.push(f);
20013
+ h != null && f.putMetadata(Le.PDF417_EXTRA_METADATA, h), o.push(f);
20026
20014
  }
20027
20015
  } catch (v) {
20028
20016
  i = { error: v };
@@ -20041,9 +20029,9 @@ var If = (
20041
20029
  }, r.getMinWidth = function(e, t) {
20042
20030
  return e == null || t == null ? j.MAX_VALUE : Math.trunc(Math.abs(e.getX() - t.getX()));
20043
20031
  }, r.getMaxCodewordWidth = function(e) {
20044
- return Math.floor(Math.max(Math.max(r.getMaxWidth(e[0], e[4]), r.getMaxWidth(e[6], e[2]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN), Math.max(r.getMaxWidth(e[1], e[5]), r.getMaxWidth(e[7], e[3]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN)));
20032
+ return Math.floor(Math.max(Math.max(r.getMaxWidth(e[0], e[4]), r.getMaxWidth(e[6], e[2]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN), Math.max(r.getMaxWidth(e[1], e[5]), r.getMaxWidth(e[7], e[3]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN)));
20045
20033
  }, r.getMinCodewordWidth = function(e) {
20046
- return Math.floor(Math.min(Math.min(r.getMinWidth(e[0], e[4]), r.getMinWidth(e[6], e[2]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN), Math.min(r.getMinWidth(e[1], e[5]), r.getMinWidth(e[7], e[3]) * K.MODULES_IN_CODEWORD / K.MODULES_IN_STOP_PATTERN)));
20034
+ return Math.floor(Math.min(Math.min(r.getMinWidth(e[0], e[4]), r.getMinWidth(e[6], e[2]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN), Math.min(r.getMinWidth(e[1], e[5]), r.getMinWidth(e[7], e[3]) * Q.MODULES_IN_CODEWORD / Q.MODULES_IN_STOP_PATTERN)));
20047
20035
  }, r.prototype.reset = function() {
20048
20036
  }, r;
20049
20037
  }()
@@ -20224,13 +20212,13 @@ var zo = (
20224
20212
  /** @class */
20225
20213
  function() {
20226
20214
  function r(e) {
20227
- this.field = e, this.cachedGenerators = [], this.cachedGenerators.push(new Et(e, Int32Array.from([1])));
20215
+ this.field = e, this.cachedGenerators = [], this.cachedGenerators.push(new At(e, Int32Array.from([1])));
20228
20216
  }
20229
20217
  return r.prototype.buildGenerator = function(e) {
20230
20218
  var t = this.cachedGenerators;
20231
20219
  if (e >= t.length)
20232
20220
  for (var n = t[t.length - 1], i = this.field, a = t.length; a <= e; a++) {
20233
- var o = n.multiply(new Et(i, Int32Array.from([1, i.exp(a - 1 + i.getGeneratorBase())])));
20221
+ var o = n.multiply(new At(i, Int32Array.from([1, i.exp(a - 1 + i.getGeneratorBase())])));
20234
20222
  t.push(o), n = o;
20235
20223
  }
20236
20224
  return t[e];
@@ -20242,7 +20230,7 @@ var zo = (
20242
20230
  throw new H("No data bytes provided");
20243
20231
  var i = this.buildGenerator(t), a = new Int32Array(n);
20244
20232
  de.arraycopy(e, 0, a, 0, n);
20245
- var o = new Et(this.field, a);
20233
+ var o = new At(this.field, a);
20246
20234
  o = o.multiplyByMonomial(t, 1);
20247
20235
  for (var s = o.divide(i)[1], l = s.getCoefficients(), c = t - l.length, u = 0; u < c; u++)
20248
20236
  e[n + u] = 0;
@@ -20490,7 +20478,7 @@ var zo = (
20490
20478
  }, r.embedBasicPatterns = function(e, t) {
20491
20479
  r.embedPositionDetectionPatternsAndSeparators(t), r.embedDarkDotAtLeftBottomCorner(t), r.maybeEmbedPositionAdjustmentPatterns(e, t), r.embedTimingPatterns(t);
20492
20480
  }, r.embedTypeInfo = function(e, t, n) {
20493
- var i = new De();
20481
+ var i = new Re();
20494
20482
  r.makeTypeInfoBits(e, t, i);
20495
20483
  for (var a = 0, o = i.getSize(); a < o; ++a) {
20496
20484
  var s = i.get(i.getSize() - 1 - a), l = r.TYPE_INFO_COORDINATES[a], c = l[0], u = l[1];
@@ -20504,7 +20492,7 @@ var zo = (
20504
20492
  }
20505
20493
  }, r.maybeEmbedVersionInfo = function(e, t) {
20506
20494
  if (!(e.getVersionNumber() < 7)) {
20507
- var n = new De();
20495
+ var n = new Re();
20508
20496
  r.makeVersionInfoBits(e, n);
20509
20497
  for (var i = 17, a = 0; a < 6; ++a)
20510
20498
  for (var o = 0; o < 3; ++o) {
@@ -20544,7 +20532,7 @@ var zo = (
20544
20532
  n.appendBits(i, 5);
20545
20533
  var a = r.calculateBCHCode(i, r.TYPE_INFO_POLY);
20546
20534
  n.appendBits(a, 10);
20547
- var o = new De();
20535
+ var o = new Re();
20548
20536
  if (o.appendBits(r.TYPE_INFO_MASK_PATTERN, 15), n.xor(o), n.getSize() !== 15)
20549
20537
  throw new fe("should not happen but we got: " + n.getSize());
20550
20538
  }, r.makeVersionInfoBits = function(e, t) {
@@ -20704,24 +20692,24 @@ var zo = (
20704
20692
  n === void 0 && (n = null);
20705
20693
  var i = r.DEFAULT_BYTE_MODE_ENCODING, a = n !== null && n.get(Vr.CHARACTER_SET) !== void 0;
20706
20694
  a && (i = n.get(Vr.CHARACTER_SET).toString());
20707
- var o = this.chooseMode(e, i), s = new De();
20695
+ var o = this.chooseMode(e, i), s = new Re();
20708
20696
  if (o === he.BYTE && (a || r.DEFAULT_BYTE_MODE_ENCODING !== i)) {
20709
20697
  var l = Ee.getCharacterSetECIByName(i);
20710
20698
  l !== void 0 && this.appendECI(l, s);
20711
20699
  }
20712
20700
  this.appendModeInfo(o, s);
20713
- var c = new De();
20701
+ var c = new Re();
20714
20702
  this.appendBytes(e, o, c, i);
20715
20703
  var u;
20716
20704
  if (n !== null && n.get(Vr.QR_VERSION) !== void 0) {
20717
20705
  var d = Number.parseInt(n.get(Vr.QR_VERSION).toString(), 10);
20718
- u = Rt.getVersionForNumber(d);
20706
+ u = Dt.getVersionForNumber(d);
20719
20707
  var f = this.calculateBitsNeeded(o, s, c, u);
20720
20708
  if (!this.willFit(f, u, t))
20721
20709
  throw new fe("Data too big for requested version");
20722
20710
  } else
20723
20711
  u = this.recommendVersion(t, o, s, c);
20724
- var h = new De();
20712
+ var h = new Re();
20725
20713
  h.appendBitArray(s);
20726
20714
  var v = o === he.BYTE ? c.getSizeInBytes() : e.length;
20727
20715
  this.appendLengthInfo(v, u, o, h), h.appendBitArray(c);
@@ -20732,7 +20720,7 @@ var zo = (
20732
20720
  var A = u.getDimensionForVersion(), w = new Pf(A, A), S = this.chooseMaskPattern(m, t, u, w);
20733
20721
  return C.setMaskPattern(S), ca.buildMatrix(m, t, u, S, w), C.setMatrix(w), C;
20734
20722
  }, r.recommendVersion = function(e, t, n, i) {
20735
- var a = this.calculateBitsNeeded(t, n, i, Rt.getVersionForNumber(1)), o = this.chooseVersion(a, e), s = this.calculateBitsNeeded(t, n, i, o);
20723
+ var a = this.calculateBitsNeeded(t, n, i, Dt.getVersionForNumber(1)), o = this.chooseVersion(a, e), s = this.calculateBitsNeeded(t, n, i, o);
20736
20724
  return this.chooseVersion(s, e);
20737
20725
  }, r.calculateBitsNeeded = function(e, t, n, i) {
20738
20726
  return t.getSize() + e.getCharacterCountBits(i) + n.getSize();
@@ -20776,7 +20764,7 @@ var zo = (
20776
20764
  return o;
20777
20765
  }, r.chooseVersion = function(e, t) {
20778
20766
  for (var n = 1; n <= 40; n++) {
20779
- var i = Rt.getVersionForNumber(n);
20767
+ var i = Dt.getVersionForNumber(n);
20780
20768
  if (r.willFit(e, i, t))
20781
20769
  return i;
20782
20770
  }
@@ -20823,7 +20811,7 @@ var zo = (
20823
20811
  }
20824
20812
  if (n !== c)
20825
20813
  throw new fe("Data bytes does not match offset");
20826
- for (var A = new De(), h = 0; h < u; ++h)
20814
+ for (var A = new Re(), h = 0; h < u; ++h)
20827
20815
  try {
20828
20816
  for (var w = (a = void 0, ua(f)), S = w.next(); !S.done; S = w.next()) {
20829
20817
  var O = S.value, m = O.getDataBytes();
@@ -20840,7 +20828,7 @@ var zo = (
20840
20828
  }
20841
20829
  for (var h = 0; h < d; ++h)
20842
20830
  try {
20843
- for (var N = (s = void 0, ua(f)), F = N.next(); !F.done; F = N.next()) {
20831
+ for (var T = (s = void 0, ua(f)), F = T.next(); !F.done; F = T.next()) {
20844
20832
  var O = F.value, C = O.getErrorCorrectionBytes();
20845
20833
  h < C.length && A.appendBits(C[h], 8);
20846
20834
  }
@@ -20848,7 +20836,7 @@ var zo = (
20848
20836
  s = { error: U };
20849
20837
  } finally {
20850
20838
  try {
20851
- F && !F.done && (l = N.return) && l.call(N);
20839
+ F && !F.done && (l = T.return) && l.call(T);
20852
20840
  } finally {
20853
20841
  if (s) throw s.error;
20854
20842
  }
@@ -21221,7 +21209,7 @@ var da;
21221
21209
  (function(r) {
21222
21210
  r[r.FORCE_NONE = 0] = "FORCE_NONE", r[r.FORCE_SQUARE = 1] = "FORCE_SQUARE", r[r.FORCE_RECTANGLE = 2] = "FORCE_RECTANGLE";
21223
21211
  })(da || (da = {}));
21224
- var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 239, Qf = 240, Mn = 254, Jf = 254, ha = "[)>05", pa = "[)>06", va = "", oe = 0, Be = 1, Ye = 2, _e = 3, Oe = 4, Ge = 5, e1 = (
21212
+ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 239, Qf = 240, Mn = 254, Jf = 254, ha = "[)>05", pa = "[)>06", va = "", oe = 0, ke = 1, Ye = 2, _e = 3, Ne = 4, Ge = 5, e1 = (
21225
21213
  /** @class */
21226
21214
  function() {
21227
21215
  function r() {
@@ -21239,8 +21227,8 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21239
21227
  case Ge:
21240
21228
  e.writeCodeword(Wf), e.signalEncoderChange(Ge);
21241
21229
  return;
21242
- case Be:
21243
- e.writeCodeword(Uo), e.signalEncoderChange(Be);
21230
+ case ke:
21231
+ e.writeCodeword(Uo), e.signalEncoderChange(ke);
21244
21232
  return;
21245
21233
  case _e:
21246
21234
  e.writeCodeword(Zf), e.signalEncoderChange(_e);
@@ -21248,8 +21236,8 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21248
21236
  case Ye:
21249
21237
  e.writeCodeword(Kf), e.signalEncoderChange(Ye);
21250
21238
  break;
21251
- case Oe:
21252
- e.writeCodeword(Qf), e.signalEncoderChange(Oe);
21239
+ case Ne:
21240
+ e.writeCodeword(Qf), e.signalEncoderChange(Ne);
21253
21241
  break;
21254
21242
  default:
21255
21243
  throw new Error("Illegal mode: " + i);
@@ -21305,7 +21293,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21305
21293
  function r() {
21306
21294
  }
21307
21295
  return r.prototype.getEncodingMode = function() {
21308
- return Be;
21296
+ return ke;
21309
21297
  }, r.prototype.encodeMaximal = function(e) {
21310
21298
  for (var t = new $(), n = 0, i = e.pos, a = 0; e.hasMoreCharacters(); ) {
21311
21299
  var o = e.getCurrentChar();
@@ -21400,7 +21388,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21400
21388
  function r() {
21401
21389
  }
21402
21390
  return r.prototype.getEncodingMode = function() {
21403
- return Oe;
21391
+ return Ne;
21404
21392
  }, r.prototype.encode = function(e) {
21405
21393
  for (var t = new $(); e.hasMoreCharacters(); ) {
21406
21394
  var n = e.getCurrentChar();
@@ -21796,7 +21784,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21796
21784
  var u = l.getCodewordCount();
21797
21785
  l.updateSymbolInfo();
21798
21786
  var d = l.getSymbolInfo().getDataCapacity();
21799
- u < d && c !== oe && c !== Ge && c !== Oe && l.writeCodeword("þ");
21787
+ u < d && c !== oe && c !== Ge && c !== Ne && l.writeCodeword("þ");
21800
21788
  var f = l.getCodewords();
21801
21789
  for (f.length() < d && f.append(fa); f.length() < d; )
21802
21790
  f.append(this.randomize253State(f.length() + 1));
@@ -21807,7 +21795,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21807
21795
  for (var a = Math.min(t + 3, e.length), o = t; o < a; o++)
21808
21796
  if (!this.isNativeX12(e.charCodeAt(o)))
21809
21797
  return oe;
21810
- } else if (n === Oe && i === Oe) {
21798
+ } else if (n === Ne && i === Ne) {
21811
21799
  for (var a = Math.min(t + 4, e.length), o = t; o < a; o++)
21812
21800
  if (!this.isNativeEDIFACT(e.charCodeAt(o)))
21813
21801
  return oe;
@@ -21827,31 +21815,31 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21827
21815
  if (c === 1) {
21828
21816
  if (o[Ge] > 0)
21829
21817
  return Ge;
21830
- if (o[Oe] > 0)
21831
- return Oe;
21818
+ if (o[Ne] > 0)
21819
+ return Ne;
21832
21820
  if (o[Ye] > 0)
21833
21821
  return Ye;
21834
21822
  if (o[_e] > 0)
21835
21823
  return _e;
21836
21824
  }
21837
- return Be;
21825
+ return ke;
21838
21826
  }
21839
21827
  var u = e.charCodeAt(t + a);
21840
- if (a++, this.isDigit(u) ? i[oe] += 0.5 : this.isExtendedASCII(u) ? (i[oe] = Math.ceil(i[oe]), i[oe] += 2) : (i[oe] = Math.ceil(i[oe]), i[oe]++), this.isNativeC40(u) ? i[Be] += 2 / 3 : this.isExtendedASCII(u) ? i[Be] += 8 / 3 : i[Be] += 4 / 3, this.isNativeText(u) ? i[Ye] += 2 / 3 : this.isExtendedASCII(u) ? i[Ye] += 8 / 3 : i[Ye] += 4 / 3, this.isNativeX12(u) ? i[_e] += 2 / 3 : this.isExtendedASCII(u) ? i[_e] += 13 / 3 : i[_e] += 10 / 3, this.isNativeEDIFACT(u) ? i[Oe] += 3 / 4 : this.isExtendedASCII(u) ? i[Oe] += 17 / 4 : i[Oe] += 13 / 4, this.isSpecialB256(u) ? i[Ge] += 4 : i[Ge]++, a >= 4) {
21841
- if (Se.fill(o, 0), Se.fill(s, 0), this.findMinimums(i, s, j.MAX_VALUE, o), s[oe] < this.min(s[Ge], s[Be], s[Ye], s[_e], s[Oe]))
21828
+ if (a++, this.isDigit(u) ? i[oe] += 0.5 : this.isExtendedASCII(u) ? (i[oe] = Math.ceil(i[oe]), i[oe] += 2) : (i[oe] = Math.ceil(i[oe]), i[oe]++), this.isNativeC40(u) ? i[ke] += 2 / 3 : this.isExtendedASCII(u) ? i[ke] += 8 / 3 : i[ke] += 4 / 3, this.isNativeText(u) ? i[Ye] += 2 / 3 : this.isExtendedASCII(u) ? i[Ye] += 8 / 3 : i[Ye] += 4 / 3, this.isNativeX12(u) ? i[_e] += 2 / 3 : this.isExtendedASCII(u) ? i[_e] += 13 / 3 : i[_e] += 10 / 3, this.isNativeEDIFACT(u) ? i[Ne] += 3 / 4 : this.isExtendedASCII(u) ? i[Ne] += 17 / 4 : i[Ne] += 13 / 4, this.isSpecialB256(u) ? i[Ge] += 4 : i[Ge]++, a >= 4) {
21829
+ if (Se.fill(o, 0), Se.fill(s, 0), this.findMinimums(i, s, j.MAX_VALUE, o), s[oe] < this.min(s[Ge], s[ke], s[Ye], s[_e], s[Ne]))
21842
21830
  return oe;
21843
- if (s[Ge] < s[oe] || s[Ge] + 1 < this.min(s[Be], s[Ye], s[_e], s[Oe]))
21831
+ if (s[Ge] < s[oe] || s[Ge] + 1 < this.min(s[ke], s[Ye], s[_e], s[Ne]))
21844
21832
  return Ge;
21845
- if (s[Oe] + 1 < this.min(s[Ge], s[Be], s[Ye], s[_e], s[oe]))
21846
- return Oe;
21847
- if (s[Ye] + 1 < this.min(s[Ge], s[Be], s[Oe], s[_e], s[oe]))
21833
+ if (s[Ne] + 1 < this.min(s[Ge], s[ke], s[Ye], s[_e], s[oe]))
21834
+ return Ne;
21835
+ if (s[Ye] + 1 < this.min(s[Ge], s[ke], s[Ne], s[_e], s[oe]))
21848
21836
  return Ye;
21849
- if (s[_e] + 1 < this.min(s[Ge], s[Be], s[Oe], s[Ye], s[oe]))
21837
+ if (s[_e] + 1 < this.min(s[Ge], s[ke], s[Ne], s[Ye], s[oe]))
21850
21838
  return _e;
21851
- if (s[Be] + 1 < this.min(s[oe], s[Ge], s[Oe], s[Ye])) {
21852
- if (s[Be] < s[_e])
21853
- return Be;
21854
- if (s[Be] === s[_e]) {
21839
+ if (s[ke] + 1 < this.min(s[oe], s[Ge], s[Ne], s[Ye])) {
21840
+ if (s[ke] < s[_e])
21841
+ return ke;
21842
+ if (s[ke] === s[_e]) {
21855
21843
  for (var d = t + a + 1; d < e.length; ) {
21856
21844
  var f = e.charCodeAt(d);
21857
21845
  if (this.isX12TermSep(f))
@@ -21860,7 +21848,7 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
21860
21848
  break;
21861
21849
  d++;
21862
21850
  }
21863
- return Be;
21851
+ return ke;
21864
21852
  }
21865
21853
  }
21866
21854
  }
@@ -22004,15 +21992,15 @@ var fa = 129, Uo = 230, Wf = 231, $f = 235, jf = 236, Yf = 237, Zf = 238, Kf = 2
22004
21992
  this.encoders = [];
22005
21993
  var S = 0;
22006
21994
  try {
22007
- for (var O = Vn(u), N = O.next(); !N.done; N = O.next()) {
22008
- var y = N.value;
21995
+ for (var O = Vn(u), T = O.next(); !T.done; T = O.next()) {
21996
+ var y = T.value;
22009
21997
  this.encoders[S++] = y;
22010
21998
  }
22011
21999
  } catch (z) {
22012
22000
  l = { error: z };
22013
22001
  } finally {
22014
22002
  try {
22015
- N && !N.done && (c = O.return) && c.call(O);
22003
+ T && !T.done && (c = O.return) && c.call(O);
22016
22004
  } finally {
22017
22005
  if (l) throw l.error;
22018
22006
  }
@@ -22314,7 +22302,7 @@ var _1 = [
22314
22302
  "DIGIT",
22315
22303
  "MIXED",
22316
22304
  "PUNCT"
22317
- ], St = 0, $r = 1, it = 2, Ho = 3, ht = 4, A1 = new xi(null, 0, 0), Fn = [
22305
+ ], Et = 0, $r = 1, it = 2, Ho = 3, ht = 4, A1 = new xi(null, 0, 0), Fn = [
22318
22306
  Int32Array.from([
22319
22307
  0,
22320
22308
  (5 << 16) + 28,
@@ -22380,7 +22368,7 @@ function S1(r) {
22380
22368
  if (e) throw e.error;
22381
22369
  }
22382
22370
  }
22383
- return r[St][ht] = 0, r[$r][ht] = 0, r[$r][St] = 28, r[Ho][ht] = 0, r[it][ht] = 0, r[it][St] = 15, r;
22371
+ return r[Et][ht] = 0, r[$r][ht] = 0, r[$r][Et] = 28, r[Ho][ht] = 0, r[it][ht] = 0, r[it][Et] = 15, r;
22384
22372
  }
22385
22373
  var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22386
22374
  var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], n = 0;
@@ -22419,8 +22407,8 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22419
22407
  }, r.prototype.addBinaryShiftChar = function(e) {
22420
22408
  var t = this.token, n = this.mode, i = this.bitCount;
22421
22409
  if (this.mode === ht || this.mode === it) {
22422
- var a = Fn[n][St];
22423
- t = hr(t, a & 65535, a >> 16), i += a >> 16, n = St;
22410
+ var a = Fn[n][Et];
22411
+ t = hr(t, a & 65535, a >> 16), i += a >> 16, n = Et;
22424
22412
  }
22425
22413
  var o = this.binaryShiftByteCount === 0 || this.binaryShiftByteCount === 31 ? 18 : this.binaryShiftByteCount === 62 ? 9 : 8, s = new r(t, n, this.binaryShiftByteCount + 1, i + o);
22426
22414
  return s.binaryShiftByteCount === 2078 && (s = s.endBinaryShift(e + 1)), s;
@@ -22435,7 +22423,7 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22435
22423
  }, r.prototype.toBitArray = function(e) {
22436
22424
  for (var t, n, i = [], a = this.endBinaryShift(e.length).token; a !== null; a = a.getPrevious())
22437
22425
  i.unshift(a);
22438
- var o = new De();
22426
+ var o = new Re();
22439
22427
  try {
22440
22428
  for (var s = b1(i), l = s.next(); !l.done; l = s.next()) {
22441
22429
  var c = l.value;
@@ -22455,14 +22443,14 @@ var Go = S1(Se.createInt32Array(6, 6)), b1 = function(r) {
22455
22443
  return Y.format("%s bits=%d bytes=%d", _1[this.mode], this.bitCount, this.binaryShiftByteCount);
22456
22444
  }, r.calculateBinaryShiftCost = function(e) {
22457
22445
  return e.binaryShiftByteCount > 62 ? 21 : e.binaryShiftByteCount > 31 ? 20 : e.binaryShiftByteCount > 0 ? 10 : 0;
22458
- }, r.INITIAL_STATE = new r(A1, St, 0, 0), r;
22446
+ }, r.INITIAL_STATE = new r(A1, Et, 0, 0), r;
22459
22447
  }()
22460
22448
  );
22461
22449
  function O1(r) {
22462
22450
  var e = Y.getCharCode(" "), t = Y.getCharCode("."), n = Y.getCharCode(",");
22463
- r[St][e] = 1;
22451
+ r[Et][e] = 1;
22464
22452
  for (var i = Y.getCharCode("Z"), a = Y.getCharCode("A"), o = a; o <= i; o++)
22465
- r[St][o] = o - a + 2;
22453
+ r[Et][o] = o - a + 2;
22466
22454
  r[$r][e] = 1;
22467
22455
  for (var s = Y.getCharCode("z"), l = Y.getCharCode("a"), o = l; o <= s; o++)
22468
22456
  r[$r][o] = o - l + 2;
@@ -22732,29 +22720,29 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
22732
22720
  C[w - h - 1] = S - O - 1, C[w + h] = S + O + 1;
22733
22721
  }
22734
22722
  }
22735
- for (var N = new vt(A), h = 0, F = 0; h < l; h++) {
22723
+ for (var T = new vt(A), h = 0, F = 0; h < l; h++) {
22736
22724
  for (var z = (l - h) * 4 + (s ? 9 : 12), U = 0; U < z; U++)
22737
- for (var Q = U * 2, X = 0; X < 2; X++)
22738
- v.get(F + Q + X) && N.set(C[h * 2 + X], C[h * 2 + U]), v.get(F + z * 2 + Q + X) && N.set(C[h * 2 + U], C[m - 1 - h * 2 - X]), v.get(F + z * 4 + Q + X) && N.set(C[m - 1 - h * 2 - X], C[m - 1 - h * 2 - U]), v.get(F + z * 6 + Q + X) && N.set(C[m - 1 - h * 2 - U], C[h * 2 + X]);
22725
+ for (var Z = U * 2, X = 0; X < 2; X++)
22726
+ v.get(F + Z + X) && T.set(C[h * 2 + X], C[h * 2 + U]), v.get(F + z * 2 + Z + X) && T.set(C[h * 2 + U], C[m - 1 - h * 2 - X]), v.get(F + z * 4 + Z + X) && T.set(C[m - 1 - h * 2 - X], C[m - 1 - h * 2 - U]), v.get(F + z * 6 + Z + X) && T.set(C[m - 1 - h * 2 - U], C[h * 2 + X]);
22739
22727
  F += z * 8;
22740
22728
  }
22741
- if (r.drawModeMessage(N, s, A, y), s)
22742
- r.drawBullsEye(N, j.truncDivision(A, 2), 5);
22729
+ if (r.drawModeMessage(T, s, A, y), s)
22730
+ r.drawBullsEye(T, j.truncDivision(A, 2), 5);
22743
22731
  else {
22744
- r.drawBullsEye(N, j.truncDivision(A, 2), 7);
22732
+ r.drawBullsEye(T, j.truncDivision(A, 2), 7);
22745
22733
  for (var h = 0, U = 0; h < j.truncDivision(m, 2) - 1; h += 15, U += 16)
22746
22734
  for (var X = j.truncDivision(A, 2) & 1; X < A; X += 2)
22747
- N.set(j.truncDivision(A, 2) - U, X), N.set(j.truncDivision(A, 2) + U, X), N.set(X, j.truncDivision(A, 2) - U), N.set(X, j.truncDivision(A, 2) + U);
22735
+ T.set(j.truncDivision(A, 2) - U, X), T.set(j.truncDivision(A, 2) + U, X), T.set(X, j.truncDivision(A, 2) - U), T.set(X, j.truncDivision(A, 2) + U);
22748
22736
  }
22749
- var Z = new g1();
22750
- return Z.setCompact(s), Z.setSize(A), Z.setLayers(l), Z.setCodeWords(g), Z.setMatrix(N), Z;
22737
+ var K = new g1();
22738
+ return K.setCompact(s), K.setSize(A), K.setLayers(l), K.setCodeWords(g), K.setMatrix(T), K;
22751
22739
  }, r.drawBullsEye = function(e, t, n) {
22752
22740
  for (var i = 0; i < n; i += 2)
22753
22741
  for (var a = t - i; a <= t + i; a++)
22754
22742
  e.set(a, t - i), e.set(a, t + i), e.set(t - i, a), e.set(t + i, a);
22755
22743
  e.set(t - n, t - n), e.set(t - n + 1, t - n), e.set(t - n, t - n + 1), e.set(t + n, t - n), e.set(t + n, t - n + 1), e.set(t + n, t + n - 1);
22756
22744
  }, r.generateModeMessage = function(e, t, n) {
22757
- var i = new De();
22745
+ var i = new Re();
22758
22746
  return e ? (i.appendBits(t - 1, 2), i.appendBits(n - 1, 6), i = r.generateCheckWords(i, 28, 4)) : (i.appendBits(t - 1, 5), i.appendBits(n - 1, 11), i = r.generateCheckWords(i, 40, 4)), i;
22759
22747
  }, r.drawModeMessage = function(e, t, n, i) {
22760
22748
  var a = j.truncDivision(n, 2);
@@ -22771,7 +22759,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
22771
22759
  }, r.generateCheckWords = function(e, t, n) {
22772
22760
  var i, a, o = e.getSize() / n, s = new zo(r.getGF(n)), l = j.truncDivision(t, n), c = r.bitsToWords(e, n, l);
22773
22761
  s.encode(c, l - o);
22774
- var u = t % n, d = new De();
22762
+ var u = t % n, d = new Re();
22775
22763
  d.appendBits(0, u);
22776
22764
  try {
22777
22765
  for (var f = T1(Array.from(c)), h = f.next(); !h.done; h = f.next()) {
@@ -22812,7 +22800,7 @@ var Pn = O1(Se.createInt32Array(5, 256)), Fr = function(r) {
22812
22800
  throw new H("Unsupported word size " + e);
22813
22801
  }
22814
22802
  }, r.stuffBits = function(e, t) {
22815
- for (var n = new De(), i = e.getSize(), a = (1 << t) - 2, o = 0; o < i; o += t) {
22803
+ for (var n = new Re(), i = e.getSize(), a = (1 << t) - 2, o = 0; o < i; o += t) {
22816
22804
  for (var s = 0, l = 0; l < t; l++)
22817
22805
  (o + l >= i || e.get(o + l)) && (s |= 1 << t - 1 - l);
22818
22806
  (s & a) === a ? (n.appendBits(s & a, t), o--) : (s & a) === 0 ? (n.appendBits(s | 1, t), o--) : n.appendBits(s, t);
@@ -22909,7 +22897,7 @@ const qo = L((r) => {
22909
22897
  hints: D1
22910
22898
  });
22911
22899
  return /* @__PURE__ */ _("div", { className: "bg-(--color-background) flex size-full flex-col justify-center overflow-hidden", children: [
22912
- /* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(T, { icon: It }) }) }) }),
22900
+ /* @__PURE__ */ p("div", { className: "flex w-full justify-end p-4", children: /* @__PURE__ */ p(xt.Close, { asChild: !0, children: /* @__PURE__ */ p(ne, { "aria-label": "close", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon: bt }) }) }) }),
22913
22901
  /* @__PURE__ */ p("div", { className: "max-h-full w-full grow overflow-hidden p-4", children: /* @__PURE__ */ p("video", { className: "size-full", ref: o }) })
22914
22902
  ] });
22915
22903
  });
@@ -22951,7 +22939,7 @@ const Xo = L((r) => {
22951
22939
  u(!1), a();
22952
22940
  }, [a]);
22953
22941
  return /* @__PURE__ */ _(
22954
- Re,
22942
+ Me,
22955
22943
  {
22956
22944
  size: t,
22957
22945
  inputId: e.identifier,
@@ -22988,7 +22976,7 @@ const Xo = L((r) => {
22988
22976
  accentColor: "base",
22989
22977
  disabled: l,
22990
22978
  children: [
22991
- /* @__PURE__ */ p(T, { icon: dc }),
22979
+ /* @__PURE__ */ p(N, { icon: dc }),
22992
22980
  "Scan"
22993
22981
  ]
22994
22982
  }
@@ -23063,7 +23051,7 @@ const Ca = 500, Wo = L((r) => {
23063
23051
  f.key === "Enter" && f.preventDefault();
23064
23052
  }, []);
23065
23053
  return /* @__PURE__ */ p(
23066
- Re,
23054
+ Me,
23067
23055
  {
23068
23056
  size: t,
23069
23057
  inputId: e.identifier,
@@ -23136,7 +23124,7 @@ const $o = L((r) => {
23136
23124
  a();
23137
23125
  }, [a]);
23138
23126
  return /* @__PURE__ */ p(
23139
- Re,
23127
+ Me,
23140
23128
  {
23141
23129
  size: t,
23142
23130
  inputId: e.identifier,
@@ -23238,13 +23226,13 @@ const rn = (r) => {
23238
23226
  minutes: Number(e[2]),
23239
23227
  utcOffset: t
23240
23228
  } : null;
23241
- }, Ne = (r) => typeof r == "string" && rn(r) !== null, _a = (r, e, t = B1()) => {
23229
+ }, Te = (r) => typeof r == "string" && rn(r) !== null, _a = (r, e, t = B1()) => {
23242
23230
  if (!Number.isInteger(r) || r < 0 || r > 23) throw new Error(`Invalid hour: ${r}`);
23243
23231
  if (!Number.isInteger(e) || e < 0 || e > 59) throw new Error(`Invalid minute: ${e}`);
23244
23232
  if (!mi(t)) throw new Error("Unsupported UTC offset");
23245
23233
  const n = r.toString().padStart(2, "0"), i = e.toString().padStart(2, "0");
23246
23234
  return `T${n}:${i}:00${t}`;
23247
- }, ei = (r) => `UTC${r}`, Mt = (r) => {
23235
+ }, ei = (r) => `UTC${r}`, Rt = (r) => {
23248
23236
  const e = rn(r);
23249
23237
  if (!e) throw new Error(`Invalid time value: ${r}`);
23250
23238
  return (e.hours * 60 + e.minutes - k1(e.utcOffset) + 1440) % 1440;
@@ -23253,8 +23241,8 @@ const rn = (r) => {
23253
23241
  if (!t) throw new Error(`Invalid time value: ${r}`);
23254
23242
  const n = (t.hours % 12 || 12).toString().padStart(2, "0"), i = t.minutes.toString().padStart(2, "0"), a = t.hours >= 12 ? "PM" : "AM", o = `${n}:${i} ${a}`;
23255
23243
  return e ? `${o} ${ei(t.utcOffset)}` : o;
23256
- }, Pr = (r) => typeof r == "object" && (Ne(r.from) || Ne(r.to)), Yo = (r, e) => {
23257
- const t = Mt(r), n = e.from ? Mt(e.from) : null, i = e.to ? Mt(e.to) : null;
23244
+ }, Pr = (r) => typeof r == "object" && (Te(r.from) || Te(r.to)), Yo = (r, e) => {
23245
+ const t = Rt(r), n = e.from ? Rt(e.from) : null, i = e.to ? Rt(e.to) : null;
23258
23246
  return n === null && i === null ? !0 : n === null ? t <= i : i === null ? t >= n : n <= i ? t >= n && t <= i : t >= n || t <= i;
23259
23247
  }, Ci = L((r) => {
23260
23248
  const { value: e, onChange: t, onBlur: n, disabled: i, size: a = "md", id: o, name: s, compact: l = !1 } = r, c = e ? rn(e) : null, u = c ? `${c.hours.toString().padStart(2, "0")}:${c.minutes.toString().padStart(2, "0")}` : "", d = b(
@@ -23285,7 +23273,7 @@ const rn = (r) => {
23285
23273
  {
23286
23274
  id: o,
23287
23275
  name: s,
23288
- className: Ct(
23276
+ className: kt(
23289
23277
  "[&::-webkit-calendar-picker-indicator]:invert-40 dark:[&::-webkit-calendar-picker-indicator]:invert-60",
23290
23278
  {
23291
23279
  "[&::-webkit-datetime-edit]:opacity-60": !e
@@ -23311,7 +23299,7 @@ const rn = (r) => {
23311
23299
  disabled: i || !c,
23312
23300
  children: [
23313
23301
  /* @__PURE__ */ p(pe, { className: "truncate", highContrast: !!c, children: c ? ei(c.utcOffset) : "UTC offset" }),
23314
- /* @__PURE__ */ p(T, { icon: Zr })
23302
+ /* @__PURE__ */ p(N, { icon: Zr })
23315
23303
  ]
23316
23304
  }
23317
23305
  ) }),
@@ -23322,7 +23310,7 @@ const rn = (r) => {
23322
23310
  value: c == null ? void 0 : c.utcOffset,
23323
23311
  onValueChange: f,
23324
23312
  children: jo.map((v) => /* @__PURE__ */ _(D.SelectItem, { value: v, children: [
23325
- /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(T, { icon: et }) }),
23313
+ /* @__PURE__ */ p(D.SelectedIndicator, { children: /* @__PURE__ */ p(N, { icon: et }) }),
23326
23314
  ei(v)
23327
23315
  ] }, v))
23328
23316
  }
@@ -23334,7 +23322,7 @@ Ci.displayName = "TimeFieldControl";
23334
23322
  const Zo = L((r) => {
23335
23323
  const { field: e } = r, { size: t } = ce(Ce), { value: n, name: i, onBlur: a, onChange: o, error: s, disabled: l } = ze({ field: e });
23336
23324
  return /* @__PURE__ */ p(
23337
- Re,
23325
+ Me,
23338
23326
  {
23339
23327
  size: t,
23340
23328
  inputId: e.identifier,
@@ -23389,10 +23377,10 @@ class Ar extends tt {
23389
23377
  return /* @__PURE__ */ p(Zo, { field: this });
23390
23378
  }
23391
23379
  isSerializedValue(t) {
23392
- return t === null || Ne(t);
23380
+ return t === null || Te(t);
23393
23381
  }
23394
23382
  isValue(t) {
23395
- return t === null || Ne(t);
23383
+ return t === null || Te(t);
23396
23384
  }
23397
23385
  blankValue() {
23398
23386
  return null;
@@ -23419,7 +23407,7 @@ const Ko = L((r) => {
23419
23407
  a();
23420
23408
  return;
23421
23409
  }
23422
- const C = Array.from(m).map((w) => Bt.from(G(), w)), A = [...n, ...C];
23410
+ const C = Array.from(m).map((w) => Pt.from(G(), w)), A = [...n, ...C];
23423
23411
  o(A), a();
23424
23412
  }, [a, o, n]), f = b(
23425
23413
  (m) => {
@@ -23445,7 +23433,7 @@ const Ko = L((r) => {
23445
23433
  }, [a, n]);
23446
23434
  const g = e.maxFiles > 1 ? "Select files" : "Select a file";
23447
23435
  return /* @__PURE__ */ _(
23448
- Re,
23436
+ Me,
23449
23437
  {
23450
23438
  size: t,
23451
23439
  inputId: e.identifier,
@@ -23466,7 +23454,7 @@ const Ko = L((r) => {
23466
23454
  type: "button",
23467
23455
  disabled: l,
23468
23456
  children: [
23469
- /* @__PURE__ */ p(T, { icon: oi }),
23457
+ /* @__PURE__ */ p(N, { icon: oi }),
23470
23458
  g
23471
23459
  ]
23472
23460
  }
@@ -23485,7 +23473,7 @@ const Ko = L((r) => {
23485
23473
  value: ""
23486
23474
  }
23487
23475
  ),
23488
- n.length > 0 && /* @__PURE__ */ p("div", { className: "flex h-max flex-col gap-2", children: n.map((m) => /* @__PURE__ */ p(
23476
+ n.length > 0 && /* @__PURE__ */ p("div", { className: "mt-1 flex h-max flex-col gap-2", children: n.map((m) => /* @__PURE__ */ p(
23489
23477
  ci,
23490
23478
  {
23491
23479
  size: t,
@@ -23538,7 +23526,7 @@ class ir extends tt {
23538
23526
  showDirectly: !1
23539
23527
  },
23540
23528
  {
23541
- field: new bt({
23529
+ field: new St({
23542
23530
  label: "Accepted file types",
23543
23531
  description: "Types of allowed files to upload. If left blank, all files will be accepted.",
23544
23532
  required: !1,
@@ -23573,7 +23561,7 @@ class ir extends tt {
23573
23561
  getFieldValidators() {
23574
23562
  const t = super.getFieldValidators(), n = this.maxFileSize ?? yr, i = n * 1e3 * 1e3, a = this.maxFiles || 1;
23575
23563
  return t.push((o) => {
23576
- if (o.some((s) => s instanceof Bt && s.size > i))
23564
+ if (o.some((s) => s instanceof Pt && s.size > i))
23577
23565
  return `Files must be at most ${n}MB.`;
23578
23566
  }), t.push((o) => {
23579
23567
  if (o.length > a)
@@ -23622,7 +23610,7 @@ class ir extends tt {
23622
23610
  return Array.isArray(t) && t.length === 0;
23623
23611
  }
23624
23612
  isValue(t) {
23625
- return Array.isArray(t) ? t.every((n) => n instanceof br || n instanceof Bt) : !1;
23613
+ return Array.isArray(t) ? t.every((n) => n instanceof br || n instanceof Pt) : !1;
23626
23614
  }
23627
23615
  areValuesEqual(t, n) {
23628
23616
  return li(t, n);
@@ -23652,7 +23640,7 @@ const Qo = L((r) => {
23652
23640
  n !== null && window.open(n, "_blank", "noopener,noreferrer");
23653
23641
  }, [n]);
23654
23642
  return /* @__PURE__ */ p(
23655
- Re,
23643
+ Me,
23656
23644
  {
23657
23645
  size: t,
23658
23646
  inputId: e.identifier,
@@ -23687,7 +23675,7 @@ const Qo = L((r) => {
23687
23675
  type: "button",
23688
23676
  disabled: n === null,
23689
23677
  onClick: f,
23690
- children: /* @__PURE__ */ p(T, { icon: Wl })
23678
+ children: /* @__PURE__ */ p(N, { icon: Wl })
23691
23679
  }
23692
23680
  )
23693
23681
  ] })
@@ -23761,14 +23749,14 @@ const Jo = {
23761
23749
  time: Ar,
23762
23750
  number: Je,
23763
23751
  boolean: Yt,
23764
- select: Pt,
23752
+ select: Ft,
23765
23753
  string: rr,
23766
23754
  url: Er,
23767
23755
  text: nr,
23768
23756
  upload: ir,
23769
23757
  qr: _r,
23770
23758
  "multi-string": jt,
23771
- "multi-select": bt,
23759
+ "multi-select": St,
23772
23760
  radio: Jt,
23773
23761
  "checkbox-list": Zt,
23774
23762
  "pass-fail": Qt,
@@ -23885,7 +23873,7 @@ const Jo = {
23885
23873
  [J.Temporal]: { name: "Temporal" },
23886
23874
  [J.Text]: { name: "Text" },
23887
23875
  [J.Verification]: { name: "Verification" }
23888
- }, yr = 50, U1 = yr * 1e3, H1 = U1 * 1e3, Me = "Unlabelled", es = "Unlabelled";
23876
+ }, yr = 50, U1 = yr * 1e3, H1 = U1 * 1e3, Ve = "Unlabelled", es = "Unlabelled";
23889
23877
  class W {
23890
23878
  constructor(e) {
23891
23879
  R(this, "id");
@@ -24173,13 +24161,13 @@ const G1 = W.create({
24173
24161
  }), a0 = W.create({
24174
24162
  id: "time-before",
24175
24163
  label: "before",
24176
- getApplyFn: (r) => (e) => Mt(e) < Mt(r),
24164
+ getApplyFn: (r) => (e) => Rt(e) < Rt(r),
24177
24165
  serialize: (r) => r,
24178
24166
  deserialize: (r) => r
24179
24167
  }), o0 = W.create({
24180
24168
  id: "time-after",
24181
24169
  label: "after",
24182
- getApplyFn: (r) => (e) => Mt(e) > Mt(r),
24170
+ getApplyFn: (r) => (e) => Rt(e) > Rt(r),
24183
24171
  serialize: (r) => r,
24184
24172
  deserialize: (r) => r
24185
24173
  }), s0 = W.create({
@@ -24238,38 +24226,38 @@ class Ue extends Kr {
24238
24226
  return t;
24239
24227
  }
24240
24228
  }
24241
- const ds = L, kt = ds(function(r) {
24229
+ const ds = L, Bt = ds(function(r) {
24242
24230
  const { ref: e, children: t, ...n } = r, i = b(
24243
- (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24231
+ (a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
24244
24232
  t(a),
24245
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(T, { icon: et }) })
24246
- ] }) : /* @__PURE__ */ _(Le, { children: [
24233
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
24234
+ ] }) : /* @__PURE__ */ _(Ie, { children: [
24247
24235
  t,
24248
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(T, { icon: et }) })
24236
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-[auto]", children: /* @__PURE__ */ p(N, { icon: et }) })
24249
24237
  ] }),
24250
24238
  [t]
24251
24239
  );
24252
24240
  return /* @__PURE__ */ p(D.SelectItem, { ref: e, ...n, children: i });
24253
24241
  }), fs = ds(function(r) {
24254
24242
  const { ref: e, children: t, ...n } = r, i = b(
24255
- (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24243
+ (a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
24256
24244
  t(a),
24257
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(T, { icon: et }) })
24258
- ] }) : /* @__PURE__ */ _(Le, { children: [
24245
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
24246
+ ] }) : /* @__PURE__ */ _(Ie, { children: [
24259
24247
  t,
24260
- /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(T, { icon: et }) })
24248
+ /* @__PURE__ */ p(D.SelectedIndicator, { className: "ml-auto", children: /* @__PURE__ */ p(N, { icon: et }) })
24261
24249
  ] }),
24262
24250
  [t]
24263
24251
  );
24264
24252
  return /* @__PURE__ */ p(D.MultiSelectItem, { ref: e, ...n, children: i });
24265
24253
  }), bi = L((r) => {
24266
24254
  const { ref: e, children: t, ...n } = r, i = b(
24267
- (a) => typeof t == "function" ? /* @__PURE__ */ _(Le, { children: [
24255
+ (a) => typeof t == "function" ? /* @__PURE__ */ _(Ie, { children: [
24268
24256
  t(a),
24269
- /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(T, { icon: Gr }) : /* @__PURE__ */ p(T, { icon: et }) })
24270
- ] }) : /* @__PURE__ */ _(Le, { children: [
24257
+ /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
24258
+ ] }) : /* @__PURE__ */ _(Ie, { children: [
24271
24259
  t,
24272
- /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(T, { icon: Gr }) : /* @__PURE__ */ p(T, { icon: et }) })
24260
+ /* @__PURE__ */ p(D.CheckboxItemIndicator, { className: "ml-[auto]", children: (o) => o ? /* @__PURE__ */ p(N, { icon: Gr }) : /* @__PURE__ */ p(N, { icon: et }) })
24273
24261
  ] }),
24274
24262
  [t]
24275
24263
  );
@@ -24285,7 +24273,7 @@ const He = (r) => {
24285
24273
  );
24286
24274
  return /* @__PURE__ */ _(D.Root, { align: "start", children: [
24287
24275
  /* @__PURE__ */ p(D.ClickTrigger, { children: e }),
24288
- /* @__PURE__ */ p(D.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(D.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(kt, { value: l, children: c.modifier.label }, l)) }) })
24276
+ /* @__PURE__ */ p(D.Content, { size: n, variant: i, radius: o, accentColor: a, children: /* @__PURE__ */ p(D.SelectGroup, { required: !0, value: t.getConditionModifier(), onValueChange: s, children: t.getConditionModifiers().map(([l, c]) => /* @__PURE__ */ p(Bt, { value: l, children: c.modifier.label }, l)) }) })
24289
24277
  ] });
24290
24278
  }, zr = L((r) => {
24291
24279
  const { children: e, open: t, onOpenChange: n, defaultOpen: i, modal: a, size: o, align: s, accentColor: l = "base", ...c } = r;
@@ -24346,7 +24334,7 @@ const hs = L((r) => {
24346
24334
  variant: "soft",
24347
24335
  type: "button",
24348
24336
  onClick: y,
24349
- children: /* @__PURE__ */ p(T, { icon: ft })
24337
+ children: /* @__PURE__ */ p(N, { icon: ft })
24350
24338
  }
24351
24339
  )
24352
24340
  ] }),
@@ -24369,7 +24357,7 @@ const hs = L((r) => {
24369
24357
  onClick: () => {
24370
24358
  m(A);
24371
24359
  },
24372
- children: /* @__PURE__ */ p(T, { icon: It })
24360
+ children: /* @__PURE__ */ p(N, { icon: bt })
24373
24361
  }
24374
24362
  )
24375
24363
  ]
@@ -24380,7 +24368,7 @@ const hs = L((r) => {
24380
24368
  ] });
24381
24369
  });
24382
24370
  hs.displayName = "NumberInputPopover";
24383
- const Vt = L((r) => {
24371
+ const Mt = L((r) => {
24384
24372
  const {
24385
24373
  children: e,
24386
24374
  open: t,
@@ -24421,14 +24409,14 @@ const Vt = L((r) => {
24421
24409
  ) }) })
24422
24410
  ] });
24423
24411
  });
24424
- Vt.displayName = "NumberInputPopover";
24425
- const Ve = (r) => {
24412
+ Mt.displayName = "NumberInputPopover";
24413
+ const Fe = (r) => {
24426
24414
  const { condition: e, onClick: t, ...n } = r, i = b(() => {
24427
24415
  t(e);
24428
24416
  }, [e, t]);
24429
- return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(T, { icon: It }) });
24417
+ return /* @__PURE__ */ p(ne, { onClick: i, ...n, children: /* @__PURE__ */ p(N, { icon: bt }) });
24430
24418
  };
24431
- Ve.displayName = "RemoveConditionButton";
24419
+ Fe.displayName = "RemoveConditionButton";
24432
24420
  const Tr = L((r) => {
24433
24421
  const { ref: e, selectFieldOptions: t, ...n } = r, i = se(() => t.map(
24434
24422
  (a) => typeof a == "string" ? {
@@ -24449,7 +24437,7 @@ const Ii = L((r) => {
24449
24437
  label: a
24450
24438
  } : a
24451
24439
  ), [t]);
24452
- return /* @__PURE__ */ p(D.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(kt, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value)) });
24440
+ return /* @__PURE__ */ p(D.SelectGroup, { ref: e, ...n, children: i.map((a) => /* @__PURE__ */ p(Bt, { value: a.value, children: /* @__PURE__ */ p("span", { className: "truncate", children: a.label }) }, a.value)) });
24453
24441
  });
24454
24442
  Ii.displayName = "SelectFieldOptionSelectGroup";
24455
24443
  const lr = L((r) => {
@@ -24525,8 +24513,8 @@ const c0 = (r) => {
24525
24513
  };
24526
24514
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24527
24515
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24528
- /* @__PURE__ */ p(T, { icon: me[e.field.type].icon }),
24529
- /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
24516
+ /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
24517
+ /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
24530
24518
  ] }),
24531
24519
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
24532
24520
  /* @__PURE__ */ _(D.Root, { children: [
@@ -24538,13 +24526,13 @@ const c0 = (r) => {
24538
24526
  value: n,
24539
24527
  onValueChange: e.setConditionValue,
24540
24528
  children: [
24541
- /* @__PURE__ */ p(kt, { value: !0, children: "true" }),
24542
- /* @__PURE__ */ p(kt, { value: !1, children: "false" })
24529
+ /* @__PURE__ */ p(Bt, { value: !0, children: "true" }),
24530
+ /* @__PURE__ */ p(Bt, { value: !1, children: "false" })
24543
24531
  ]
24544
24532
  }
24545
24533
  ) })
24546
24534
  ] }),
24547
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24535
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24548
24536
  ] });
24549
24537
  }, Aa = {
24550
24538
  equals: V({
@@ -24592,8 +24580,8 @@ const cr = [], u0 = (r) => {
24592
24580
  };
24593
24581
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "soft", accentColor: "base", children: [
24594
24582
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "soft", accentColor: "base", children: [
24595
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
24596
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24583
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24584
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
24597
24585
  ] }),
24598
24586
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
24599
24587
  /* @__PURE__ */ _(D.Root, { children: [
@@ -24607,7 +24595,7 @@ const cr = [], u0 = (r) => {
24607
24595
  }
24608
24596
  ) })
24609
24597
  ] }),
24610
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24598
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24611
24599
  ] });
24612
24600
  }, Ea = {
24613
24601
  equals: V({
@@ -24743,12 +24731,12 @@ const dh = (r, e) => se(() => {
24743
24731
  };
24744
24732
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24745
24733
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24746
- /* @__PURE__ */ p(T, { icon: me[e.field.type].icon }),
24747
- /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
24734
+ /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
24735
+ /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
24748
24736
  ] }),
24749
24737
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
24750
24738
  a(),
24751
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24739
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24752
24740
  ] });
24753
24741
  }, Sa = {
24754
24742
  equals: V({
@@ -24822,8 +24810,8 @@ const f0 = (r) => {
24822
24810
  };
24823
24811
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24824
24812
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24825
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
24826
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24813
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24814
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
24827
24815
  ] }),
24828
24816
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
24829
24817
  /* @__PURE__ */ _(D.Root, { children: [
@@ -24837,7 +24825,7 @@ const f0 = (r) => {
24837
24825
  }
24838
24826
  ) })
24839
24827
  ] }),
24840
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24828
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24841
24829
  ] });
24842
24830
  }, ba = {
24843
24831
  equals: V({
@@ -24904,12 +24892,12 @@ const h0 = (r) => {
24904
24892
  };
24905
24893
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
24906
24894
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
24907
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
24908
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
24895
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
24896
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
24909
24897
  ] }),
24910
24898
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
24911
24899
  /* @__PURE__ */ p(hs, { values: i ?? cr, onValuesChange: o, children: /* @__PURE__ */ p(B, { type: "button", className: "truncate", children: s() }) }),
24912
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
24900
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
24913
24901
  ] });
24914
24902
  }, Ia = {
24915
24903
  equals: V({
@@ -24971,7 +24959,7 @@ const p0 = (r) => {
24971
24959
  case "lessThan": {
24972
24960
  const l = e.modifiers.greaterThan, c = i !== void 0 && l.isConditionValueValid(i) ? i : void 0;
24973
24961
  return /* @__PURE__ */ p(
24974
- Vt,
24962
+ Mt,
24975
24963
  {
24976
24964
  value: c ?? null,
24977
24965
  onValueChange: o,
@@ -24983,9 +24971,9 @@ const p0 = (r) => {
24983
24971
  case "inRange":
24984
24972
  case "notInRange": {
24985
24973
  const l = e.modifiers.inRange, c = i !== void 0 && l.isConditionValueValid(i) ? i : void 0;
24986
- return /* @__PURE__ */ _(Le, { children: [
24974
+ return /* @__PURE__ */ _(Ie, { children: [
24987
24975
  /* @__PURE__ */ p(
24988
- Vt,
24976
+ Mt,
24989
24977
  {
24990
24978
  value: (c == null ? void 0 : c.from) ?? null,
24991
24979
  onValueChange: (u) => {
@@ -24999,7 +24987,7 @@ const p0 = (r) => {
24999
24987
  }
25000
24988
  ),
25001
24989
  /* @__PURE__ */ p(
25002
- Vt,
24990
+ Mt,
25003
24991
  {
25004
24992
  value: (c == null ? void 0 : c.to) ?? null,
25005
24993
  onValueChange: (u) => {
@@ -25018,12 +25006,12 @@ const p0 = (r) => {
25018
25006
  };
25019
25007
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25020
25008
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25021
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25022
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25009
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25010
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25023
25011
  ] }),
25024
25012
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25025
25013
  s(),
25026
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25014
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25027
25015
  ] });
25028
25016
  }, Oa = {
25029
25017
  equals: V({
@@ -25111,12 +25099,12 @@ const v0 = (r) => {
25111
25099
  };
25112
25100
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25113
25101
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25114
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25115
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25102
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25103
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25116
25104
  ] }),
25117
25105
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25118
25106
  o(),
25119
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25107
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25120
25108
  ] });
25121
25109
  }, Na = {
25122
25110
  equals: V({
@@ -25173,7 +25161,7 @@ const g0 = (r) => {
25173
25161
  onValueChange: e.setConditionValue,
25174
25162
  children: wr.map((c) => {
25175
25163
  const { label: u } = $t[c];
25176
- return /* @__PURE__ */ p(kt, { value: c, children: /* @__PURE__ */ p("span", { className: "truncate", children: u }) }, c);
25164
+ return /* @__PURE__ */ p(Bt, { value: c, children: /* @__PURE__ */ p("span", { className: "truncate", children: u }) }, c);
25177
25165
  })
25178
25166
  }
25179
25167
  ) })
@@ -25194,7 +25182,7 @@ const g0 = (r) => {
25194
25182
  wr.map((c) => {
25195
25183
  const { label: u, icon: d } = $t[c];
25196
25184
  return /* @__PURE__ */ _(fs, { value: c, children: [
25197
- /* @__PURE__ */ p(T, { icon: d }),
25185
+ /* @__PURE__ */ p(N, { icon: d }),
25198
25186
  /* @__PURE__ */ p("span", { className: "truncate", children: u })
25199
25187
  ] }, c);
25200
25188
  })
@@ -25207,12 +25195,12 @@ const g0 = (r) => {
25207
25195
  };
25208
25196
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25209
25197
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25210
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25211
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25198
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25199
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25212
25200
  ] }),
25213
25201
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25214
25202
  o(),
25215
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25203
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25216
25204
  ] });
25217
25205
  }, Ta = {
25218
25206
  equals: V({
@@ -25307,12 +25295,12 @@ const x0 = (r) => {
25307
25295
  };
25308
25296
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25309
25297
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25310
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25311
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25298
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25299
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25312
25300
  ] }),
25313
25301
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25314
25302
  l(),
25315
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25303
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25316
25304
  ] });
25317
25305
  }, Da = {
25318
25306
  equals: V({
@@ -25367,7 +25355,7 @@ const y0 = (r) => {
25367
25355
  case "lessThan": {
25368
25356
  const s = e.modifiers[a], l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
25369
25357
  return /* @__PURE__ */ p(
25370
- Vt,
25358
+ Mt,
25371
25359
  {
25372
25360
  value: l ?? null,
25373
25361
  onValueChange: (c) => e.setConditionValue(c ?? void 0),
@@ -25379,9 +25367,9 @@ const y0 = (r) => {
25379
25367
  case "inRange":
25380
25368
  case "notInRange": {
25381
25369
  const s = e.modifiers.inRange, l = i !== void 0 && s.isConditionValueValid(i) ? i : void 0;
25382
- return /* @__PURE__ */ _(Le, { children: [
25370
+ return /* @__PURE__ */ _(Ie, { children: [
25383
25371
  /* @__PURE__ */ p(
25384
- Vt,
25372
+ Mt,
25385
25373
  {
25386
25374
  value: (l == null ? void 0 : l.from) ?? null,
25387
25375
  onValueChange: (c) => {
@@ -25395,7 +25383,7 @@ const y0 = (r) => {
25395
25383
  }
25396
25384
  ),
25397
25385
  /* @__PURE__ */ p(
25398
- Vt,
25386
+ Mt,
25399
25387
  {
25400
25388
  value: (l == null ? void 0 : l.to) ?? null,
25401
25389
  onValueChange: (c) => {
@@ -25414,12 +25402,12 @@ const y0 = (r) => {
25414
25402
  };
25415
25403
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25416
25404
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25417
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25418
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25405
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25406
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25419
25407
  ] }),
25420
25408
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25421
25409
  o(),
25422
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25410
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25423
25411
  ] });
25424
25412
  }, Ra = {
25425
25413
  equals: V({
@@ -25507,12 +25495,12 @@ const m0 = (r) => {
25507
25495
  };
25508
25496
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25509
25497
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25510
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25511
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25498
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25499
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25512
25500
  ] }),
25513
25501
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25514
25502
  o(),
25515
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25503
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25516
25504
  ] });
25517
25505
  }, Ma = {
25518
25506
  equals: V({
@@ -25606,12 +25594,12 @@ const C0 = (r) => {
25606
25594
  };
25607
25595
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25608
25596
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25609
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25610
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25597
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25598
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25611
25599
  ] }),
25612
25600
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25613
25601
  c(),
25614
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25602
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25615
25603
  ] });
25616
25604
  }, Va = {
25617
25605
  equals: V({
@@ -25675,12 +25663,12 @@ const w0 = (r) => {
25675
25663
  };
25676
25664
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25677
25665
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25678
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25679
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25666
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25667
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25680
25668
  ] }),
25681
25669
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25682
25670
  o(),
25683
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25671
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25684
25672
  ] });
25685
25673
  }, Fa = {
25686
25674
  equals: V({
@@ -25741,12 +25729,12 @@ const _0 = (r) => {
25741
25729
  };
25742
25730
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25743
25731
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25744
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25745
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25732
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25733
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25746
25734
  ] }),
25747
25735
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25748
25736
  o(),
25749
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25737
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25750
25738
  ] });
25751
25739
  }, Pa = {
25752
25740
  equals: V({
@@ -25810,7 +25798,7 @@ const A0 = (r) => {
25810
25798
  const o = n && typeof n == "object" ? n : void 0, s = (l) => {
25811
25799
  e.setConditionValue(l.from || l.to ? l : void 0);
25812
25800
  };
25813
- return /* @__PURE__ */ _(Le, { children: [
25801
+ return /* @__PURE__ */ _(Ie, { children: [
25814
25802
  /* @__PURE__ */ p(
25815
25803
  Ur,
25816
25804
  {
@@ -25835,47 +25823,47 @@ const A0 = (r) => {
25835
25823
  };
25836
25824
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25837
25825
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25838
- /* @__PURE__ */ p(T, { icon: me[e.field.type].icon }),
25839
- /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Me })
25826
+ /* @__PURE__ */ p(N, { icon: me[e.field.type].icon }),
25827
+ /* @__PURE__ */ p("span", { className: "truncate", children: e.field.label || Ve })
25840
25828
  ] }),
25841
25829
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[i].modifier.label }) }),
25842
25830
  a(),
25843
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25831
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25844
25832
  ] });
25845
25833
  }, Ba = {
25846
25834
  equals: V({
25847
25835
  modifier: n0,
25848
- isValueValid: (r) => Ne(r),
25849
- isConditionValueValid: (r) => Ne(r),
25850
- isSerializedValueValid: (r) => Ne(r)
25836
+ isValueValid: (r) => Te(r),
25837
+ isConditionValueValid: (r) => Te(r),
25838
+ isSerializedValueValid: (r) => Te(r)
25851
25839
  }),
25852
25840
  notEquals: V({
25853
25841
  modifier: i0,
25854
- isValueValid: (r) => Ne(r),
25855
- isConditionValueValid: (r) => Ne(r),
25856
- isSerializedValueValid: (r) => Ne(r)
25842
+ isValueValid: (r) => Te(r),
25843
+ isConditionValueValid: (r) => Te(r),
25844
+ isSerializedValueValid: (r) => Te(r)
25857
25845
  }),
25858
25846
  before: V({
25859
25847
  modifier: a0,
25860
- isValueValid: (r) => Ne(r),
25861
- isConditionValueValid: (r) => Ne(r),
25862
- isSerializedValueValid: (r) => Ne(r)
25848
+ isValueValid: (r) => Te(r),
25849
+ isConditionValueValid: (r) => Te(r),
25850
+ isSerializedValueValid: (r) => Te(r)
25863
25851
  }),
25864
25852
  after: V({
25865
25853
  modifier: o0,
25866
- isValueValid: (r) => Ne(r),
25867
- isConditionValueValid: (r) => Ne(r),
25868
- isSerializedValueValid: (r) => Ne(r)
25854
+ isValueValid: (r) => Te(r),
25855
+ isConditionValueValid: (r) => Te(r),
25856
+ isSerializedValueValid: (r) => Te(r)
25869
25857
  }),
25870
25858
  in: V({
25871
25859
  modifier: s0,
25872
- isValueValid: (r) => Ne(r),
25860
+ isValueValid: (r) => Te(r),
25873
25861
  isConditionValueValid: (r) => Pr(r),
25874
25862
  isSerializedValueValid: (r) => Pr(r)
25875
25863
  }),
25876
25864
  notIn: V({
25877
25865
  modifier: l0,
25878
- isValueValid: (r) => Ne(r),
25866
+ isValueValid: (r) => Te(r),
25879
25867
  isConditionValueValid: (r) => Pr(r),
25880
25868
  isSerializedValueValid: (r) => Pr(r)
25881
25869
  })
@@ -25911,8 +25899,8 @@ const E0 = (r) => {
25911
25899
  };
25912
25900
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25913
25901
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25914
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25915
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25902
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25903
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25916
25904
  ] }),
25917
25905
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25918
25906
  /* @__PURE__ */ _(D.Root, { children: [
@@ -25924,13 +25912,13 @@ const E0 = (r) => {
25924
25912
  value: i,
25925
25913
  onValueChange: e.setConditionValue,
25926
25914
  children: [
25927
- /* @__PURE__ */ p(kt, { value: !0, children: "empty" }),
25928
- /* @__PURE__ */ p(kt, { value: !1, children: "not empty" })
25915
+ /* @__PURE__ */ p(Bt, { value: !0, children: "empty" }),
25916
+ /* @__PURE__ */ p(Bt, { value: !1, children: "not empty" })
25929
25917
  ]
25930
25918
  }
25931
25919
  ) })
25932
25920
  ] }),
25933
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25921
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25934
25922
  ] });
25935
25923
  }, ka = {
25936
25924
  equals: V({
@@ -25979,12 +25967,12 @@ const S0 = (r) => {
25979
25967
  };
25980
25968
  return /* @__PURE__ */ _(ue, { className: "flex w-max min-w-0 max-w-full gap-0.5", size: "sm", variant: "fill", accentColor: "base", children: [
25981
25969
  /* @__PURE__ */ _(ye, { className: "shrink-1 min-w-0", size: "sm", variant: "fill", accentColor: "base", children: [
25982
- /* @__PURE__ */ p(T, { icon: me[n.type].icon }),
25983
- /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Me })
25970
+ /* @__PURE__ */ p(N, { icon: me[n.type].icon }),
25971
+ /* @__PURE__ */ p("span", { className: "truncate", children: n.label || Ve })
25984
25972
  ] }),
25985
25973
  /* @__PURE__ */ p(He, { condition: e, children: /* @__PURE__ */ p(B, { type: "button", children: e.modifiers[a].modifier.label }) }),
25986
25974
  o(),
25987
- /* @__PURE__ */ p(Ve, { condition: e, onClick: t })
25975
+ /* @__PURE__ */ p(Fe, { condition: e, onClick: t })
25988
25976
  ] });
25989
25977
  }, La = {
25990
25978
  equals: V({
@@ -26224,10 +26212,10 @@ const V0 = (r, e) => {
26224
26212
  const h = f.getConditions(e.identifier);
26225
26213
  return new Oi(h).applyConditions(i);
26226
26214
  }), [c, e, i]), d = Ln(e.fields);
26227
- return u ? /* @__PURE__ */ _(Le, { children: [
26228
- l !== 0 ? /* @__PURE__ */ p(Ft, { size: "full" }) : null,
26215
+ return u ? /* @__PURE__ */ _(Ie, { children: [
26216
+ l !== 0 ? /* @__PURE__ */ p(Vt, { size: "full" }) : null,
26229
26217
  /* @__PURE__ */ _("div", { className: "flex flex-col gap-4", children: [
26230
- (t || n) && /* @__PURE__ */ p(Le, { children: /* @__PURE__ */ _("div", { className: "flex flex-col gap-1", children: [
26218
+ (t || n) && /* @__PURE__ */ p(Ie, { children: /* @__PURE__ */ _("div", { className: "flex flex-col gap-1", children: [
26231
26219
  /* @__PURE__ */ p(Gs, { size: o, children: t }),
26232
26220
  n && /* @__PURE__ */ p(pe, { accentColor: "base", size: o, children: n })
26233
26221
  ] }) }),
@@ -26416,7 +26404,7 @@ const ws = L((r) => {
26416
26404
  t(e);
26417
26405
  }, [e, t]), { icon: i, name: a } = me[e];
26418
26406
  return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
26419
- /* @__PURE__ */ p(T, { icon: i }),
26407
+ /* @__PURE__ */ p(N, { icon: i }),
26420
26408
  /* @__PURE__ */ p(pe, { className: "truncate", children: a })
26421
26409
  ] });
26422
26410
  });
@@ -26462,7 +26450,7 @@ const Ri = (r) => {
26462
26450
  identifier: G()
26463
26451
  });
26464
26452
  case "select":
26465
- return new Pt({
26453
+ return new Ft({
26466
26454
  label: "",
26467
26455
  options: [],
26468
26456
  required: !1,
@@ -26475,7 +26463,7 @@ const Ri = (r) => {
26475
26463
  identifier: G()
26476
26464
  });
26477
26465
  case "multi-select":
26478
- return new bt({
26466
+ return new St({
26479
26467
  label: "",
26480
26468
  options: [],
26481
26469
  required: !1,
@@ -26655,13 +26643,13 @@ const Ri = (r) => {
26655
26643
  case "checkbox-list":
26656
26644
  return Zt.getFieldCreationSchema(e);
26657
26645
  case "multi-select":
26658
- return bt.getFieldCreationSchema(e);
26646
+ return St.getFieldCreationSchema(e);
26659
26647
  case "number":
26660
26648
  return Je.getFieldCreationSchema(e);
26661
26649
  case "radio":
26662
26650
  return Jt.getFieldCreationSchema(e);
26663
26651
  case "select":
26664
- return Pt.getFieldCreationSchema(e);
26652
+ return Ft.getFieldCreationSchema(e);
26665
26653
  case "string":
26666
26654
  return rr.getFieldCreationSchema(e);
26667
26655
  case "text":
@@ -26681,10 +26669,10 @@ const Ri = (r) => {
26681
26669
  const { popoverInputs: e, ...t } = r;
26682
26670
  return /* @__PURE__ */ _(xe.Root, { children: [
26683
26671
  /* @__PURE__ */ p(xe.Trigger, { asChild: !0, children: /* @__PURE__ */ _(B, { variant: "soft", type: "button", size: "sm", accentColor: "base", children: [
26684
- /* @__PURE__ */ p(T, { icon: wc }),
26672
+ /* @__PURE__ */ p(N, { icon: wc }),
26685
26673
  "Settings"
26686
26674
  ] }) }),
26687
- /* @__PURE__ */ p(xe.Content, { size: "sm", ...t, children: /* @__PURE__ */ p("div", { className: Ct("flex w-full max-w-[350px] flex-col", Di({ size: "sm" })), children: e }) })
26675
+ /* @__PURE__ */ p(xe.Content, { size: "sm", ...t, children: /* @__PURE__ */ p("div", { className: kt("flex w-full max-w-[350px] flex-col", Di({ size: "sm" })), children: e }) })
26688
26676
  ] });
26689
26677
  });
26690
26678
  Es.displayName = "FieldSettingsPopover";
@@ -26697,8 +26685,8 @@ const Ss = L((r) => {
26697
26685
  n.setOptions({ image: void 0 });
26698
26686
  }, [n]), [c, u] = se(() => {
26699
26687
  const w = [], S = [], O = As(n.type, `${e}.${t}`) ?? [];
26700
- for (const N of O)
26701
- N.showDirectly ? w.push(N.field) : S.push(N.field);
26688
+ for (const T of O)
26689
+ T.showDirectly ? w.push(T.field) : S.push(T.field);
26702
26690
  return [w, S];
26703
26691
  }, [n, e, t]), d = Ln(c), f = Ln(u), h = u.length > 0, v = b(() => {
26704
26692
  o && i(() => ({
@@ -26724,7 +26712,7 @@ const Ss = L((r) => {
26724
26712
  /* @__PURE__ */ _("div", { className: "flex w-full justify-between gap-2", children: [
26725
26713
  /* @__PURE__ */ _("div", { className: "flex items-center gap-2", children: [
26726
26714
  /* @__PURE__ */ _(ye, { accentColor: "base", variant: "soft", size: "sm", children: [
26727
- /* @__PURE__ */ p(T, { icon: C }),
26715
+ /* @__PURE__ */ p(N, { icon: C }),
26728
26716
  A
26729
26717
  ] }),
26730
26718
  !a && /* @__PURE__ */ _("div", { className: "flex items-center gap-2", children: [
@@ -26734,7 +26722,7 @@ const Ss = L((r) => {
26734
26722
  checked: n.required,
26735
26723
  onCheckedChange: g,
26736
26724
  size: "sm",
26737
- children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(T, { icon: et }) })
26725
+ children: /* @__PURE__ */ p(Hr.Indicator, { children: /* @__PURE__ */ p(N, { icon: et }) })
26738
26726
  }
26739
26727
  ),
26740
26728
  /* @__PURE__ */ p(pe, { size: "sm", accentColor: "base", children: "Required" })
@@ -26761,7 +26749,7 @@ const Ss = L((r) => {
26761
26749
  "aria-label": "delete",
26762
26750
  onClick: l,
26763
26751
  size: "sm",
26764
- children: /* @__PURE__ */ p(T, { icon: Lt })
26752
+ children: /* @__PURE__ */ p(N, { icon: Lt })
26765
26753
  }
26766
26754
  )
26767
26755
  ] }),
@@ -26788,7 +26776,7 @@ const Ss = L((r) => {
26788
26776
  }
26789
26777
  )
26790
26778
  ] }),
26791
- c.length > 0 && /* @__PURE__ */ p("div", { className: Ct("w-full", Di({ size: "sm" })), children: d })
26779
+ c.length > 0 && /* @__PURE__ */ p("div", { className: kt("w-full", Di({ size: "sm" })), children: d })
26792
26780
  ] });
26793
26781
  });
26794
26782
  Ss.displayName = "FieldBuilder";
@@ -26838,12 +26826,12 @@ const Mi = L((r) => {
26838
26826
  return /* @__PURE__ */ _(pt, { className: "flex w-full items-center justify-between gap-4", size: "sm", children: [
26839
26827
  /* @__PURE__ */ p(Ss, { fieldIndex: n, field: e, parentPath: o }),
26840
26828
  /* @__PURE__ */ _(ue, { className: "flex flex-col gap-0.5", variant: "ghost", accentColor: "base", size: "sm", children: [
26841
- /* @__PURE__ */ p(wn, { onSelectFieldType: s, size: "sm", children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(T, { icon: ft }) }) }),
26842
- /* @__PURE__ */ p(ne, { type: "button", onClick: d, children: /* @__PURE__ */ p(T, { icon: ao }) }),
26843
- /* @__PURE__ */ p(ne, { type: "button", onClick: f, children: /* @__PURE__ */ p(T, { icon: io }) }),
26844
- /* @__PURE__ */ p(ne, { type: "button", onClick: l, children: /* @__PURE__ */ p(T, { icon: ai }) }),
26845
- /* @__PURE__ */ p(ne, { type: "button", onClick: h, children: /* @__PURE__ */ p(T, { icon: ro }) }),
26846
- /* @__PURE__ */ p(ne, { type: "button", onClick: v, children: /* @__PURE__ */ p(T, { icon: Lt }) })
26829
+ /* @__PURE__ */ p(wn, { onSelectFieldType: s, size: "sm", children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(N, { icon: ft }) }) }),
26830
+ /* @__PURE__ */ p(ne, { type: "button", onClick: d, children: /* @__PURE__ */ p(N, { icon: ao }) }),
26831
+ /* @__PURE__ */ p(ne, { type: "button", onClick: f, children: /* @__PURE__ */ p(N, { icon: io }) }),
26832
+ /* @__PURE__ */ p(ne, { type: "button", onClick: l, children: /* @__PURE__ */ p(N, { icon: ai }) }),
26833
+ /* @__PURE__ */ p(ne, { type: "button", onClick: h, children: /* @__PURE__ */ p(N, { icon: ro }) }),
26834
+ /* @__PURE__ */ p(ne, { type: "button", onClick: v, children: /* @__PURE__ */ p(N, { icon: Lt }) })
26847
26835
  ] }),
26848
26836
  /* @__PURE__ */ p("input", { className: "hidden", ref: a, type: "file", accept: "image/*", onChange: u })
26849
26837
  ] });
@@ -26862,8 +26850,8 @@ const bs = L((r) => {
26862
26850
  t(e);
26863
26851
  }, [e, t]);
26864
26852
  return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
26865
- /* @__PURE__ */ p(T, { icon: me[e.type].icon }),
26866
- e.label || Me
26853
+ /* @__PURE__ */ p(N, { icon: me[e.type].icon }),
26854
+ e.label || Ve
26867
26855
  ] });
26868
26856
  });
26869
26857
  bs.displayName = "FieldDropdownMenuItem";
@@ -26887,7 +26875,7 @@ const Os = L((r) => {
26887
26875
  t(e);
26888
26876
  }, [e, t]);
26889
26877
  return /* @__PURE__ */ _(D.Item, { onSelect: n, children: [
26890
- /* @__PURE__ */ p(T, { icon: no }),
26878
+ /* @__PURE__ */ p(N, { icon: no }),
26891
26879
  e.label || es
26892
26880
  ] });
26893
26881
  });
@@ -26913,7 +26901,7 @@ const Ns = L((r) => {
26913
26901
  targetY: a,
26914
26902
  targetPosition: d === "LR" ? yt.Left : yt.Top
26915
26903
  });
26916
- return /* @__PURE__ */ _(Le, { children: [
26904
+ return /* @__PURE__ */ _(Ie, { children: [
26917
26905
  /* @__PURE__ */ p(js, { id: e, path: y, style: o, markerEnd: s, labelX: m, labelY: C }),
26918
26906
  /* @__PURE__ */ p(Ys, { children: /* @__PURE__ */ _(
26919
26907
  pt,
@@ -26937,7 +26925,7 @@ const Ns = L((r) => {
26937
26925
  variant: "surface",
26938
26926
  size: "xs",
26939
26927
  accentColor: "base",
26940
- children: /* @__PURE__ */ p(T, { icon: ft })
26928
+ children: /* @__PURE__ */ p(N, { icon: ft })
26941
26929
  }
26942
26930
  ) }),
26943
26931
  /* @__PURE__ */ _(Xt.Root, { children: [
@@ -26951,7 +26939,7 @@ const Ns = L((r) => {
26951
26939
  accentColor: "base",
26952
26940
  color: "danger",
26953
26941
  onClick: h,
26954
- children: /* @__PURE__ */ p(T, { icon: Lt })
26942
+ children: /* @__PURE__ */ p(N, { icon: Lt })
26955
26943
  }
26956
26944
  ) }),
26957
26945
  /* @__PURE__ */ p(Xt.Content, { size: "sm", children: "Remove conditional logic" })
@@ -27026,7 +27014,7 @@ const Ts = L((r) => {
27026
27014
  /* @__PURE__ */ _("div", { className: "flex items-center justify-between", children: [
27027
27015
  /* @__PURE__ */ p(pe, { weight: "bold", children: "Fields" }),
27028
27016
  /* @__PURE__ */ p(wn, { onSelectFieldType: l, size: "sm", children: /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", accentColor: "base", children: [
27029
- /* @__PURE__ */ p(T, { icon: ft }),
27017
+ /* @__PURE__ */ p(N, { icon: ft }),
27030
27018
  " Add field"
27031
27019
  ] }) })
27032
27020
  ] }),
@@ -27049,9 +27037,9 @@ const Ts = L((r) => {
27049
27037
  size: "xs",
27050
27038
  onClick: mt,
27051
27039
  children: /* @__PURE__ */ _(ue, { className: "flex flex-col gap-2", variant: "surface", size: "xs", accentColor: "base", children: [
27052
- /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(T, { icon: Kl }) }),
27053
- /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(T, { icon: ai }) }),
27054
- /* @__PURE__ */ p(ne, { type: "button", onClick: s, children: /* @__PURE__ */ p(T, { icon: Lt }) })
27040
+ /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(N, { icon: Kl }) }),
27041
+ /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(N, { icon: ai }) }),
27042
+ /* @__PURE__ */ p(ne, { type: "button", onClick: s, children: /* @__PURE__ */ p(N, { icon: Lt }) })
27055
27043
  ] })
27056
27044
  }
27057
27045
  ) }),
@@ -27115,12 +27103,12 @@ const L0 = {
27115
27103
  a.current && a.current.classList.remove("light");
27116
27104
  }, []);
27117
27105
  const u = se(
27118
- () => i.fieldSections.map((Q, X) => ({
27119
- id: Q.identifier,
27106
+ () => i.fieldSections.map((Z, X) => ({
27107
+ id: Z.identifier,
27120
27108
  position: { x: 0, y: 0 },
27121
27109
  data: {
27122
27110
  index: X,
27123
- fieldSection: Q,
27111
+ fieldSection: Z,
27124
27112
  layoutDirection: l
27125
27113
  },
27126
27114
  draggable: !0,
@@ -27128,19 +27116,19 @@ const L0 = {
27128
27116
  })),
27129
27117
  [i.fieldSections, l]
27130
27118
  ), d = se(() => {
27131
- const Q = [], X = {};
27132
- for (const Z of i.fieldSections)
27133
- X[Z.identifier] = Z;
27134
- for (const Z of i.fieldSections) {
27135
- const Fe = Z.conditions;
27136
- for (const [Ze, ur] of Object.entries(Fe))
27137
- Q.push({
27138
- id: `${Z.identifier}-${Ze}`,
27139
- source: Z.identifier,
27119
+ const Z = [], X = {};
27120
+ for (const K of i.fieldSections)
27121
+ X[K.identifier] = K;
27122
+ for (const K of i.fieldSections) {
27123
+ const Pe = K.conditions;
27124
+ for (const [Ze, ur] of Object.entries(Pe))
27125
+ Z.push({
27126
+ id: `${K.identifier}-${Ze}`,
27127
+ source: K.identifier,
27140
27128
  target: Ze,
27141
27129
  data: {
27142
27130
  targetSection: X[Ze],
27143
- sourceSection: Z,
27131
+ sourceSection: K,
27144
27132
  layoutDirection: l
27145
27133
  },
27146
27134
  animated: ur.length > 0,
@@ -27149,7 +27137,7 @@ const L0 = {
27149
27137
  type: "fieldSectionCondition"
27150
27138
  });
27151
27139
  }
27152
- return Q;
27140
+ return Z;
27153
27141
  }, [i.fieldSections, l]), [f, h, v] = Qs(u), [g, y, m] = Js(d);
27154
27142
  dt(() => {
27155
27143
  h(u);
@@ -27159,23 +27147,23 @@ const L0 = {
27159
27147
  const [C, A] = se(() => U0(f, g, l), [g, l, f]), w = b(() => {
27160
27148
  i.addFieldSection(new ot({ identifier: G(), fields: [] }));
27161
27149
  }, [i]), S = b(
27162
- (Q) => {
27163
- const { source: X, target: Z } = Q, Fe = i.fieldSections.find(({ identifier: Ze }) => Ze === X);
27164
- Fe.setOptions({
27150
+ (Z) => {
27151
+ const { source: X, target: K } = Z, Pe = i.fieldSections.find(({ identifier: Ze }) => Ze === X);
27152
+ Pe.setOptions({
27165
27153
  conditions: {
27166
- ...Fe.conditions,
27167
- [Z]: []
27154
+ ...Pe.conditions,
27155
+ [K]: []
27168
27156
  }
27169
27157
  });
27170
27158
  },
27171
27159
  [i.fieldSections]
27172
27160
  ), O = b(
27173
- (Q) => {
27161
+ (Z) => {
27174
27162
  const X = i.getSectionDependencyGraph();
27175
- return !Ua(X, Q.source, Q.target);
27163
+ return !Ua(X, Z.source, Z.target);
27176
27164
  },
27177
27165
  [i]
27178
- ), N = b(() => {
27166
+ ), T = b(() => {
27179
27167
  o == null || o.zoomOut();
27180
27168
  }, [o]), F = b(() => {
27181
27169
  o == null || o.zoomIn();
@@ -27204,7 +27192,7 @@ const L0 = {
27204
27192
  }
27205
27193
  ),
27206
27194
  /* @__PURE__ */ p(In, { position: "top-left", children: /* @__PURE__ */ p(ue, { className: "flex items-center justify-end gap-2", size: "sm", children: /* @__PURE__ */ _(B, { type: "button", variant: "surface", onClick: w, children: [
27207
- /* @__PURE__ */ p(T, { icon: ft }),
27195
+ /* @__PURE__ */ p(N, { icon: ft }),
27208
27196
  " Add section"
27209
27197
  ] }) }) }),
27210
27198
  /* @__PURE__ */ _(In, { position: "top-right", className: "flex flex-col items-center gap-2", children: [
@@ -27218,16 +27206,16 @@ const L0 = {
27218
27206
  value: l,
27219
27207
  onValueChange: c,
27220
27208
  children: [
27221
- /* @__PURE__ */ p(bn.IconItem, { className: "rounded-b-none", value: "LR", type: "button", children: /* @__PURE__ */ p(T, { icon: Cl }) }),
27222
- /* @__PURE__ */ p(bn.IconItem, { className: "rounded-t-none", value: "TB", type: "button", children: /* @__PURE__ */ p(T, { icon: yl }) })
27209
+ /* @__PURE__ */ p(bn.IconItem, { className: "rounded-b-none", value: "LR", type: "button", children: /* @__PURE__ */ p(N, { icon: Cl }) }),
27210
+ /* @__PURE__ */ p(bn.IconItem, { className: "rounded-t-none", value: "TB", type: "button", children: /* @__PURE__ */ p(N, { icon: yl }) })
27223
27211
  ]
27224
27212
  }
27225
27213
  ),
27226
- /* @__PURE__ */ p(Ft, { size: "sm" }),
27214
+ /* @__PURE__ */ p(Vt, { size: "sm" }),
27227
27215
  /* @__PURE__ */ _(ue, { className: "flex flex-col", size: "sm", accentColor: "base", variant: "soft", children: [
27228
- /* @__PURE__ */ p(ne, { className: "rounded-b-none", onClick: F, type: "button", children: /* @__PURE__ */ p(T, { icon: ft }) }),
27229
- /* @__PURE__ */ p(ne, { onClick: N, radius: "none", type: "button", children: /* @__PURE__ */ p(T, { icon: Gr }) }),
27230
- /* @__PURE__ */ p(ne, { className: "rounded-t-none", onClick: z, type: "button", children: /* @__PURE__ */ p(T, { icon: Sc }) })
27216
+ /* @__PURE__ */ p(ne, { className: "rounded-b-none", onClick: F, type: "button", children: /* @__PURE__ */ p(N, { icon: ft }) }),
27217
+ /* @__PURE__ */ p(ne, { onClick: T, radius: "none", type: "button", children: /* @__PURE__ */ p(N, { icon: Gr }) }),
27218
+ /* @__PURE__ */ p(ne, { className: "rounded-t-none", onClick: z, type: "button", children: /* @__PURE__ */ p(N, { icon: Sc }) })
27231
27219
  ] })
27232
27220
  ] }),
27233
27221
  /* @__PURE__ */ p(In, { position: "bottom-right", children: /* @__PURE__ */ _(ue, { className: "flex items-center justify-end gap-2", size: "sm", children: [
@@ -27460,16 +27448,16 @@ const Ms = L((r) => {
27460
27448
  return /* @__PURE__ */ _(pt, { className: "flex flex-col gap-2", size: "sm", children: [
27461
27449
  /* @__PURE__ */ _(ue, { className: "flex justify-between gap-2", size: "sm", accentColor: "base", variant: "soft", children: [
27462
27450
  /* @__PURE__ */ _(ye, { accentColor: "base", variant: "soft", size: "sm", children: [
27463
- /* @__PURE__ */ p(T, { icon: no }),
27451
+ /* @__PURE__ */ p(N, { icon: no }),
27464
27452
  e.label ?? es
27465
27453
  ] }),
27466
- /* @__PURE__ */ p(ne, { type: "button", onClick: i, variant: "ghost", children: /* @__PURE__ */ p(T, { icon: Lt }) })
27454
+ /* @__PURE__ */ p(ne, { type: "button", onClick: i, variant: "ghost", children: /* @__PURE__ */ p(N, { icon: Lt }) })
27467
27455
  ] }),
27468
27456
  /* @__PURE__ */ _("div", { className: "flex h-max w-full flex-wrap gap-2", children: [
27469
27457
  n.map((s) => s.render({
27470
27458
  onRemove: o
27471
27459
  })),
27472
- /* @__PURE__ */ p(Vi, { fields: e.fields, onSelectField: a, align: "start", children: /* @__PURE__ */ p(ne, { type: "button", size: "sm", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(T, { icon: ft }) }) })
27460
+ /* @__PURE__ */ p(Vi, { fields: e.fields, onSelectField: a, align: "start", children: /* @__PURE__ */ p(ne, { type: "button", size: "sm", variant: "soft", accentColor: "base", children: /* @__PURE__ */ p(N, { icon: ft }) }) })
27473
27461
  ] })
27474
27462
  ] });
27475
27463
  });
@@ -27520,7 +27508,7 @@ const Vs = L((r) => {
27520
27508
  }
27521
27509
  )
27522
27510
  ] }),
27523
- /* @__PURE__ */ p(Ft, { size: "full" }),
27511
+ /* @__PURE__ */ p(Vt, { size: "full" }),
27524
27512
  /* @__PURE__ */ _("div", { className: "flex flex-col gap-2", children: [
27525
27513
  /* @__PURE__ */ _("div", { className: "flex justify-between gap-2", children: [
27526
27514
  /* @__PURE__ */ p(pe, { accentColor: "base", children: "Conditions" }),
@@ -27530,7 +27518,7 @@ const Vs = L((r) => {
27530
27518
  fieldSections: s,
27531
27519
  onSelectFieldSection: i,
27532
27520
  children: /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", className: "w-max", children: [
27533
- /* @__PURE__ */ p(T, { icon: ft }),
27521
+ /* @__PURE__ */ p(N, { icon: ft }),
27534
27522
  "Add condition"
27535
27523
  ] })
27536
27524
  }
@@ -27545,7 +27533,7 @@ const Vs = L((r) => {
27545
27533
  l.identifier
27546
27534
  ))
27547
27535
  ] }),
27548
- /* @__PURE__ */ p(Ft, { size: "full" })
27536
+ /* @__PURE__ */ p(Vt, { size: "full" })
27549
27537
  ] });
27550
27538
  });
27551
27539
  Vs.displayName = "FieldSectionBuilder";
@@ -27642,7 +27630,7 @@ const Fs = L((r) => {
27642
27630
  /* @__PURE__ */ _("div", { className: "flex justify-between gap-2", children: [
27643
27631
  /* @__PURE__ */ p(pe, { accentColor: "base", size: "md", children: "Fields" }),
27644
27632
  /* @__PURE__ */ p(wn, { onSelectFieldType: l, size: "sm", children: /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", children: [
27645
- /* @__PURE__ */ p(T, { icon: ft }),
27633
+ /* @__PURE__ */ p(N, { icon: ft }),
27646
27634
  " Add field"
27647
27635
  ] }) })
27648
27636
  ] }),
@@ -27659,25 +27647,25 @@ const Fs = L((r) => {
27659
27647
  ] })
27660
27648
  ] }),
27661
27649
  /* @__PURE__ */ _(ue, { className: "flex flex-col gap-0.5", variant: "ghost", accentColor: "base", size: "sm", children: [
27662
- /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(T, { icon: ao }) }),
27663
- /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(T, { icon: io }) }),
27650
+ /* @__PURE__ */ p(ne, { type: "button", onClick: c, children: /* @__PURE__ */ p(N, { icon: ao }) }),
27651
+ /* @__PURE__ */ p(ne, { type: "button", onClick: u, children: /* @__PURE__ */ p(N, { icon: io }) }),
27664
27652
  /* @__PURE__ */ _(D.Root, { align: "end", children: [
27665
- /* @__PURE__ */ p(D.ClickTrigger, { children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(T, { icon: eo }) }) }),
27653
+ /* @__PURE__ */ p(D.ClickTrigger, { children: /* @__PURE__ */ p(ne, { type: "button", children: /* @__PURE__ */ p(N, { icon: eo }) }) }),
27666
27654
  /* @__PURE__ */ _(D.Content, { size: "sm", children: [
27667
27655
  /* @__PURE__ */ _(D.Item, { onSelect: s, children: [
27668
- /* @__PURE__ */ p(T, { icon: ai }),
27656
+ /* @__PURE__ */ p(N, { icon: ai }),
27669
27657
  "Duplicate section"
27670
27658
  ] }),
27671
27659
  /* @__PURE__ */ _(D.Item, { onSelect: h, children: [
27672
- /* @__PURE__ */ p(T, { icon: Ka }),
27660
+ /* @__PURE__ */ p(N, { icon: Ka }),
27673
27661
  "Copy JSON"
27674
27662
  ] }),
27675
27663
  /* @__PURE__ */ _(D.Item, { onSelect: v, children: [
27676
- /* @__PURE__ */ p(T, { icon: Qa }),
27664
+ /* @__PURE__ */ p(N, { icon: Qa }),
27677
27665
  "Paste JSON"
27678
27666
  ] }),
27679
27667
  /* @__PURE__ */ _(D.Item, { onSelect: a, children: [
27680
- /* @__PURE__ */ p(T, { icon: Lt }),
27668
+ /* @__PURE__ */ p(N, { icon: Lt }),
27681
27669
  "Delete section"
27682
27670
  ] })
27683
27671
  ] })
@@ -27748,11 +27736,11 @@ const Ps = L(() => {
27748
27736
  /* @__PURE__ */ _("div", { className: "flex flex-col gap-4", children: [
27749
27737
  /* @__PURE__ */ _("div", { className: "flex items-center justify-end gap-2", children: [
27750
27738
  /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", onClick: o, children: [
27751
- /* @__PURE__ */ p(T, { icon: Ka }),
27739
+ /* @__PURE__ */ p(N, { icon: Ka }),
27752
27740
  " Copy JSON"
27753
27741
  ] }),
27754
27742
  /* @__PURE__ */ _(B, { type: "button", variant: "soft", size: "sm", onClick: s, children: [
27755
- /* @__PURE__ */ p(T, { icon: Qa }),
27743
+ /* @__PURE__ */ p(N, { icon: Qa }),
27756
27744
  " Paste JSON"
27757
27745
  ] })
27758
27746
  ] }),
@@ -27774,7 +27762,7 @@ const Ps = L(() => {
27774
27762
  size: "sm",
27775
27763
  onClick: a,
27776
27764
  children: [
27777
- /* @__PURE__ */ p(T, { icon: ft }),
27765
+ /* @__PURE__ */ p(N, { icon: ft }),
27778
27766
  " Add section"
27779
27767
  ]
27780
27768
  }
@@ -27814,76 +27802,86 @@ const X0 = L(
27814
27802
  onCancel: u,
27815
27803
  hideCancel: d = !1,
27816
27804
  className: f,
27817
- buttonProps: h,
27818
- size: v = "md"
27819
- } = r, g = se(() => n.initializeValues(i), [n, i]), y = b(
27820
- (N) => {
27821
- o == null || o(N);
27805
+ submitButtonProps: h,
27806
+ cancelButtonProps: v,
27807
+ size: g = "md"
27808
+ } = r, y = se(() => n.initializeValues(i), [n, i]), m = b(
27809
+ (F) => {
27810
+ o == null || o(F);
27822
27811
  },
27823
27812
  [o]
27824
- ), m = Xa({
27825
- values: g,
27813
+ ), C = Xa({
27814
+ values: y,
27826
27815
  mode: "onBlur",
27827
27816
  criteriaMode: "all",
27828
27817
  disabled: t,
27829
- resolver: (N) => {
27830
- const F = n.validateValues(N), z = Bs(F);
27831
- return Object.keys(F).length > 0 ? {
27818
+ resolver: (F) => {
27819
+ const z = n.validateValues(F), U = Bs(z);
27820
+ return Object.keys(z).length > 0 ? {
27832
27821
  values: {},
27833
- errors: z
27822
+ errors: U
27834
27823
  } : {
27835
- values: N,
27824
+ values: F,
27836
27825
  errors: {}
27837
27826
  };
27838
27827
  }
27839
- }), C = b(
27840
- (N) => {
27841
- a == null || a(N);
27828
+ }), A = b(
27829
+ (F) => {
27830
+ a == null || a(F);
27842
27831
  },
27843
27832
  [a]
27844
27833
  );
27845
27834
  dt(() => {
27846
- const { unsubscribe: N } = m.watch((F, { type: z }) => {
27847
- z === "change" && C(F);
27835
+ const { unsubscribe: F } = C.watch((z, { type: U }) => {
27836
+ U === "change" && A(z);
27848
27837
  });
27849
27838
  return () => {
27850
- N();
27839
+ F();
27851
27840
  };
27852
- }, [m, C]);
27853
- const A = Bc(n.getFieldSections()), w = se(
27841
+ }, [C, A]);
27842
+ const w = Bc(n.getFieldSections()), S = se(
27854
27843
  () => ({
27855
27844
  fieldSchema: n,
27856
- size: v
27845
+ size: g
27857
27846
  }),
27858
- [n, v]
27859
- ), S = !d && !!u, O = !l;
27860
- return /* @__PURE__ */ p(Wa, { ...m, children: /* @__PURE__ */ p(Ce, { value: w, children: /* @__PURE__ */ _(
27847
+ [n, g]
27848
+ ), O = !d && !!u, T = !l;
27849
+ return /* @__PURE__ */ p(Wa, { ...C, children: /* @__PURE__ */ p(Ce, { value: S, children: /* @__PURE__ */ _(
27861
27850
  "form",
27862
27851
  {
27863
27852
  ref: e,
27864
- className: Ct(f, "flex flex-col gap-4"),
27865
- onSubmit: m.handleSubmit(y),
27853
+ className: kt(f, "flex flex-col gap-4"),
27854
+ onSubmit: C.handleSubmit(m),
27866
27855
  children: [
27867
- /* @__PURE__ */ p("div", { className: k0({ size: v }), children: A }),
27868
- !t && (S || O) ? /* @__PURE__ */ _(ue, { className: "flex items-center justify-end gap-2", size: v, children: [
27869
- S ? /* @__PURE__ */ _(
27856
+ /* @__PURE__ */ p("div", { className: k0({ size: g }), children: w }),
27857
+ !t && (O || T) ? /* @__PURE__ */ _(ue, { className: "flex items-center justify-end gap-2", size: g, children: [
27858
+ O ? /* @__PURE__ */ _(
27870
27859
  B,
27871
27860
  {
27872
- ...h,
27873
27861
  accentColor: "base",
27874
27862
  type: "button",
27875
27863
  variant: "soft",
27876
27864
  onClick: u,
27865
+ ...v,
27877
27866
  children: [
27878
- /* @__PURE__ */ p(T, { icon: It }),
27867
+ /* @__PURE__ */ p(N, { icon: bt }),
27879
27868
  c
27880
27869
  ]
27881
27870
  }
27882
27871
  ) : null,
27883
- O ? /* @__PURE__ */ _(B, { ...h, type: "submit", accentColor: "primary", variant: "surface", children: [
27884
- /* @__PURE__ */ p(T, { icon: et }),
27885
- s
27886
- ] }) : null
27872
+ T ? /* @__PURE__ */ _(
27873
+ B,
27874
+ {
27875
+ type: "submit",
27876
+ accentColor: "primary",
27877
+ variant: "surface",
27878
+ ...h,
27879
+ children: [
27880
+ /* @__PURE__ */ p(N, { icon: et }),
27881
+ s
27882
+ ]
27883
+ }
27884
+ ) : null
27887
27885
  ] }) : null
27888
27886
  ]
27889
27887
  }
@@ -27901,8 +27899,8 @@ const Ls = L((r) => {
27901
27899
  (!v.fields || v.fields.length === 0) && (g.fields = "At least one field is required.");
27902
27900
  const y = [];
27903
27901
  for (const [w, S] of v.fields.entries())
27904
- for (const [O, N] of S.fields.entries()) {
27905
- const F = ((A = As(N.type, `fields.${w}.fields.${O}`)) == null ? void 0 : A.map(
27902
+ for (const [O, T] of S.fields.entries()) {
27903
+ const F = ((A = As(T.type, `fields.${w}.fields.${O}`)) == null ? void 0 : A.map(
27906
27904
  ({ field: z }) => z
27907
27905
  )) ?? [];
27908
27906
  y.push(...F);
@@ -28009,9 +28007,9 @@ export {
28009
28007
  Sr as ImageFile,
28010
28008
  fo as ImageViewer,
28011
28009
  Pc as ImageViewerProvider,
28012
- Re as InputWithLabel,
28010
+ Me as InputWithLabel,
28013
28011
  Xr as LONG_TEXT_FIELD_MAX_LENGTH,
28014
- bt as MultiSelectField,
28012
+ St as MultiSelectField,
28015
28013
  sn as MultiSelectFieldCondition,
28016
28014
  f0 as MultiSelectFieldConditionCell,
28017
28015
  mo as MultiSelectFieldInput,
@@ -28059,7 +28057,7 @@ export {
28059
28057
  Xo as ScanFieldInput,
28060
28058
  yi as Scanner,
28061
28059
  R1 as ScannerProvider,
28062
- Pt as SelectField,
28060
+ Ft as SelectField,
28063
28061
  vn as SelectFieldCondition,
28064
28062
  C0 as SelectFieldConditionCell,
28065
28063
  Co as SelectFieldInput,
@@ -28093,7 +28091,7 @@ export {
28093
28091
  i0 as TimeNotEqualsConditionModifier,
28094
28092
  s0 as TimeRangeInConditionModifier,
28095
28093
  l0 as TimeRangeNotInConditionModifier,
28096
- Me as UNLABELLED_FIELD_LABEL,
28094
+ Ve as UNLABELLED_FIELD_LABEL,
28097
28095
  es as UNLABELLED_SECTION_LABEL,
28098
28096
  Er as URLField,
28099
28097
  Cn as URLFieldCondition,
@@ -28101,7 +28099,7 @@ export {
28101
28099
  Qo as URLFieldInput,
28102
28100
  jo as UTC_OFFSETS,
28103
28101
  M1 as UTC_OFFSETS_SET,
28104
- Bt as UUIDFile,
28102
+ Pt as UUIDFile,
28105
28103
  br as UUIDPromise,
28106
28104
  ir as UploadField,
28107
28105
  mn as UploadFieldCondition,
@@ -28142,7 +28140,7 @@ export {
28142
28140
  ei as formatUTCOffset,
28143
28141
  B1 as getCurrentUTCOffset,
28144
28142
  vh as getFieldsMapping,
28145
- Mt as getUTCMinuteOfDay,
28143
+ Rt as getUTCMinuteOfDay,
28146
28144
  k1 as getUTCOffsetMinutes,
28147
28145
  V0 as initializeFieldValues,
28148
28146
  M0 as insertFilesAndPromisesToFieldValues,
@@ -28151,7 +28149,7 @@ export {
28151
28149
  zc as isPassFailFieldValue,
28152
28150
  Lc as isSerializedPassFailFieldValue,
28153
28151
  qr as isStringArray,
28154
- Ne as isTime,
28152
+ Te as isTime,
28155
28153
  Yo as isTimeInRange,
28156
28154
  Pr as isTimeRange,
28157
28155
  mi as isUTCOffset,