@pie-element/drag-in-the-blank 10.1.2-next.7 → 10.1.2-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { i as e, r as t, t as n } from "../rolldown-runtime-CWhphoD1.js";
2
- import { $ as r, A as i, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, Mt as w, N as ee, Nt as T, O as te, Ot as ne, P as re, Pt as ie, Q as ae, R as E, Rt as D, S as O, St as oe, Tt as k, U as se, V as A, Vt as ce, W as le, X as ue, Y as j, Z as de, _t as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as ye, et as be, f as xe, ft as Se, gt as Ce, ht as M, it as we, j as Te, jt as Ee, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe, zt as $e } from "../drag-provider-BbQMM4wo.js";
2
+ import { $ as r, A as i, At as a, B as o, Bt as s, C as c, Ct as l, D as u, Dt as d, E as f, Et as p, F as m, Ft as h, G as g, H as _, I as v, It as y, J as b, K as x, L as S, Lt as C, Mt as w, N as ee, Nt as T, O as te, Ot as E, P as ne, Pt as re, Q as ie, R as D, Rt as O, S as ae, St as oe, Tt as k, U as se, V as A, Vt as ce, W as le, X as ue, Y as j, Z as de, _t as fe, at as pe, b as me, bt as he, c as ge, ct as _e, d as ve, dt as ye, et as be, f as xe, ft as Se, gt as Ce, ht as M, it as we, j as Te, jt as Ee, k as De, kt as Oe, l as ke, lt as Ae, mt as je, n as Me, nt as Ne, o as Pe, ot as Fe, q as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe, zt as $e } from "../drag-provider-BbQMM4wo.js";
3
3
  import { a as et, c as tt, d as nt, f as rt, g as it, h as at, i as ot, n as st, o as ct, p as lt, s as ut, t as dt, u as ft } from "../dist-CqufoV2m.js";
4
4
  import * as N from "react";
5
5
  import pt, { Component as mt, createContext as ht, createElement as gt, createRef as _t, forwardRef as vt, memo as yt, useCallback as bt, useContext as xt, useDebugValue as St, useEffect as Ct, useLayoutEffect as wt, useMemo as Tt, useRef as Et, useState as Dt, version as Ot } from "react";
@@ -35,7 +35,7 @@ function Pt(e) {
35
35
  //#endregion
36
36
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js
37
37
  function Ft(e) {
38
- return /*#__PURE__*/ P(ne, {
38
+ return /*#__PURE__*/ P(E, {
39
39
  ...e,
40
40
  defaultTheme: Ze,
41
41
  themeId: h
@@ -67,7 +67,7 @@ function zt(e) {
67
67
  }
68
68
  //#endregion
69
69
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/utils/useControlled.js
70
- var Bt = zt, Vt = /* @__PURE__ */ e(re(), 1), Ht = (0, Vt.default)("@pie-lib:editable-html:plugins"), Ut = [
70
+ var Bt = zt, Vt = /* @__PURE__ */ e(ne(), 1), Ht = (0, Vt.default)("@pie-lib:editable-html:plugins"), Ut = [
71
71
  "bold",
72
72
  "html",
73
73
  "extraCSSRules",
@@ -18531,7 +18531,7 @@ function lw({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
18531
18531
  });
18532
18532
  } else !r && c && l(null);
18533
18533
  }, [r, c]);
18534
- let f = i && r ? i.value.value : a.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = i && r, g = o ? `2px solid ${D.primaryDark()}` : h ? `1px solid ${D.defaults.BORDER_DARK}` : `1px solid ${D.defaults.BORDER_LIGHT}`;
18534
+ let f = i && r ? i.value.value : a.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = i && r, g = o ? `2px solid ${O.primaryDark()}` : h ? `1px solid ${O.defaults.BORDER_DARK}` : `1px solid ${O.defaults.BORDER_LIGHT}`;
18535
18535
  return /* @__PURE__ */ F("div", {
18536
18536
  ref: u,
18537
18537
  className: o ? "selected" : void 0,
@@ -18539,7 +18539,7 @@ function lw({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
18539
18539
  display: "inline-flex",
18540
18540
  minWidth: "178px",
18541
18541
  minHeight: "36px",
18542
- background: h ? `${D.defaults.BORDER_LIGHT}` : `${D.defaults.WHITE}`,
18542
+ background: h ? `${O.defaults.BORDER_LIGHT}` : `${O.defaults.WHITE}`,
18543
18543
  border: g,
18544
18544
  boxSizing: "border-box",
18545
18545
  borderRadius: "3px",
@@ -22621,10 +22621,10 @@ var WO = class extends pt.Component {
22621
22621
  let t = {
22622
22622
  pointerEvents: "none",
22623
22623
  textTransform: "none !important",
22624
- color: D.text(),
22624
+ color: O.text(),
22625
22625
  "& .mq-scaled.mq-sqrt-prefix": { transform: "scale(1, 0.9) !important" },
22626
22626
  "& .mq-sup-only .mq-sup": { marginBottom: "0.9px !important" },
22627
- "& .mq-empty": { backgroundColor: `${D.keypadEmptyPlaceholder()} !important` },
22627
+ "& .mq-empty": { backgroundColor: `${O.keypadEmptyPlaceholder()} !important` },
22628
22628
  "& .mq-overline .mq-overline-inner": { borderTop: "2px solid black" },
22629
22629
  "& .mq-non-leaf.mq-overline": { borderTop: "none !important" },
22630
22630
  "& .mq-overarrow": {
@@ -22741,9 +22741,9 @@ var ek = (e) => e ? {
22741
22741
  textTransform: "none",
22742
22742
  fontSize: n || r ? "200% !important" : "140% !important",
22743
22743
  lineHeight: n || r ? "100%" : "normal",
22744
- color: D.text(),
22745
- backgroundColor: e === "operators" ? D.keypadButtonOperator() : D.keypadButton(),
22746
- "&:hover": { backgroundColor: e === "operators" ? D.keypadButtonOperatorHover() : D.keypadButtonHover() },
22744
+ color: O.text(),
22745
+ backgroundColor: e === "operators" ? O.keypadButtonOperator() : O.keypadButton(),
22746
+ "&:hover": { backgroundColor: e === "operators" ? O.keypadButtonOperatorHover() : O.keypadButtonHover() },
22747
22747
  borderRadius: 0,
22748
22748
  ...t && { fontFamily: "Roboto, Helvetica, Arial, sans-serif !important" }
22749
22749
  })), rk = M(u)(({ category: e }) => ({
@@ -22753,12 +22753,12 @@ var ek = (e) => e ? {
22753
22753
  fontSize: "110% !important",
22754
22754
  minWidth: "auto",
22755
22755
  borderRadius: 0,
22756
- backgroundColor: e === "operators" ? D.keypadButtonOperator() : D.keypadButton(),
22757
- "&:hover": { backgroundColor: e === "operators" ? D.keypadButtonOperatorHover() : D.keypadButtonHover() }
22756
+ backgroundColor: e === "operators" ? O.keypadButtonOperator() : O.keypadButton(),
22757
+ "&:hover": { backgroundColor: e === "operators" ? O.keypadButtonOperatorHover() : O.keypadButtonHover() }
22758
22758
  })), ik = M(fS)(({ category: e }) => ({
22759
22759
  minWidth: "auto",
22760
- backgroundColor: e === "operators" ? D.keypadButtonOperator() : D.keypadButton(),
22761
- "&:hover": { backgroundColor: e === "operators" ? D.keypadButtonOperatorHover() : D.keypadButtonHover() },
22760
+ backgroundColor: e === "operators" ? O.keypadButtonOperator() : O.keypadButton(),
22761
+ "&:hover": { backgroundColor: e === "operators" ? O.keypadButtonOperatorHover() : O.keypadButtonHover() },
22762
22762
  borderRadius: 0,
22763
22763
  "& .icon": { height: "30px" }
22764
22764
  })), ak = class extends pt.Component {
@@ -22924,7 +22924,7 @@ var ek = (e) => e ? {
22924
22924
  }
22925
22925
  }, ck = M("span")(() => ({
22926
22926
  display: "inline-flex",
22927
- border: `1px solid ${D.border()}`,
22927
+ border: `1px solid ${O.border()}`,
22928
22928
  margin: "1px 5px",
22929
22929
  cursor: "pointer",
22930
22930
  alignItems: "center",
@@ -22933,10 +22933,10 @@ var ek = (e) => e ? {
22933
22933
  minHeight: "36px",
22934
22934
  height: "fit-content"
22935
22935
  })), lk = M("div")(() => ({
22936
- background: D.backgroundDark(),
22937
- color: D.text(),
22936
+ background: O.backgroundDark(),
22937
+ color: O.text(),
22938
22938
  display: "inline-flex",
22939
- borderRight: `2px solid ${D.border()}`,
22939
+ borderRight: `2px solid ${O.border()}`,
22940
22940
  boxSizing: "border-box",
22941
22941
  overflow: "hidden",
22942
22942
  fontSize: "12px",
@@ -23683,15 +23683,15 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23683
23683
  nativeInput: ["nativeInput"]
23684
23684
  }, Gk, t);
23685
23685
  }, iA = /*#__PURE__*/ N.forwardRef(function(e, t) {
23686
- let { "aria-describedby": n, "aria-label": r, autoFocus: i, autoWidth: a, children: o, className: s, defaultOpen: c, defaultValue: l, disabled: u, displayEmpty: f, error: p = !1, IconComponent: m, inputRef: h, labelId: g, MenuProps: _ = {}, multiple: v, name: b, onBlur: x, onChange: S, onClose: C, onFocus: w, onKeyDown: ee, onMouseDown: T, onOpen: te, open: ne, readOnly: re, renderValue: ie, required: ae, SelectDisplayProps: E = {}, tabIndex: D, type: O, value: k, variant: se = "standard", ...A } = e, [ce, le] = Bt({
23686
+ let { "aria-describedby": n, "aria-label": r, autoFocus: i, autoWidth: a, children: o, className: s, defaultOpen: c, defaultValue: l, disabled: u, displayEmpty: f, error: p = !1, IconComponent: m, inputRef: h, labelId: g, MenuProps: _ = {}, multiple: v, name: b, onBlur: x, onChange: S, onClose: C, onFocus: w, onKeyDown: ee, onMouseDown: T, onOpen: te, open: E, readOnly: ne, renderValue: re, required: ie, SelectDisplayProps: D = {}, tabIndex: O, type: ae, value: k, variant: se = "standard", ...A } = e, [ce, le] = Bt({
23687
23687
  controlled: k,
23688
23688
  default: l,
23689
23689
  name: "Select"
23690
23690
  }), [ue, j] = Bt({
23691
- controlled: ne,
23691
+ controlled: E,
23692
23692
  default: c,
23693
23693
  name: "Select"
23694
- }), de = N.useRef(null), fe = N.useRef(null), [pe, he] = N.useState(null), { current: ge } = N.useRef(ne != null), [_e, ve] = N.useState(), [ye, xe] = N.useState(null), Se = be(t, h), Ce = N.useCallback((e) => {
23694
+ }), de = N.useRef(null), fe = N.useRef(null), [pe, he] = N.useState(null), { current: ge } = N.useRef(E != null), [_e, ve] = N.useState(), [ye, xe] = N.useState(null), Se = be(t, h), Ce = N.useCallback((e) => {
23695
23695
  fe.current = e, e && he(e);
23696
23696
  }, []), M = pe?.parentNode;
23697
23697
  N.useImperativeHandle(Se, () => ({
@@ -23760,7 +23760,7 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23760
23760
  v || Te(!1, t);
23761
23761
  }
23762
23762
  }, Me = (e) => {
23763
- re || ([
23763
+ ne || ([
23764
23764
  " ",
23765
23765
  "ArrowUp",
23766
23766
  "ArrowDown",
@@ -23777,7 +23777,7 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23777
23777
  };
23778
23778
  delete A["aria-invalid"];
23779
23779
  let Pe, Fe, Ie = [], Le = !1;
23780
- (me({ value: ce }) || f) && (ie ? Pe = ie(ce) : Le = !0);
23780
+ (me({ value: ce }) || f) && (re ? Pe = re(ce) : Le = !0);
23781
23781
  let Re = Oe.map((e) => {
23782
23782
  if (!/*#__PURE__*/ N.isValidElement(e)) return null;
23783
23783
  let t;
@@ -23801,8 +23801,8 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23801
23801
  let Be = _e;
23802
23802
  !a && ge && pe && (Be = M.clientWidth);
23803
23803
  let Ve;
23804
- Ve = D === void 0 ? u ? null : 0 : D;
23805
- let He = E.id || (b ? `mui-component-select-${b}` : void 0), Ue = {
23804
+ Ve = O === void 0 ? u ? null : 0 : O;
23805
+ let He = D.id || (b ? `mui-component-select-${b}` : void 0), Ue = {
23806
23806
  ...e,
23807
23807
  variant: se,
23808
23808
  value: ce,
@@ -23828,15 +23828,15 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23828
23828
  "aria-label": r,
23829
23829
  "aria-labelledby": [g, He].filter(Boolean).join(" ") || void 0,
23830
23830
  "aria-describedby": n,
23831
- "aria-required": ae ? "true" : void 0,
23831
+ "aria-required": ie ? "true" : void 0,
23832
23832
  "aria-invalid": p ? "true" : void 0,
23833
23833
  onKeyDown: Me,
23834
- onMouseDown: u || re ? null : Ee,
23834
+ onMouseDown: u || ne ? null : Ee,
23835
23835
  onBlur: Ne,
23836
23836
  onFocus: w,
23837
- ...E,
23837
+ ...D,
23838
23838
  ownerState: Ue,
23839
- className: d(E.className, We.select, s),
23839
+ className: d(D.className, We.select, s),
23840
23840
  id: He,
23841
23841
  children: Jk(Pe) ? $k ||= /*#__PURE__*/ P("span", {
23842
23842
  className: "notranslate",
@@ -23855,7 +23855,7 @@ var Qk = Xk.Provider, $k, eA = M(Bk, {
23855
23855
  disabled: u,
23856
23856
  className: We.nativeInput,
23857
23857
  autoFocus: i,
23858
- required: ae,
23858
+ required: ie,
23859
23859
  ...A,
23860
23860
  ownerState: Ue
23861
23861
  }),
@@ -24192,7 +24192,7 @@ var fA = k("MuiInputBase", [
24192
24192
  let n = ye({
24193
24193
  props: e,
24194
24194
  name: "MuiInputBase"
24195
- }), { "aria-describedby": r, autoComplete: i, autoFocus: a, className: o, color: s, components: l = {}, componentsProps: u = {}, defaultValue: f, disabled: p, disableInjectingGlobalStyles: m, endAdornment: h, error: g, fullWidth: _ = !1, id: v, inputComponent: b = "input", inputProps: x = {}, inputRef: S, margin: C, maxRows: w, minRows: ee, multiline: T = !1, name: te, onBlur: ne, onChange: re, onClick: ie, onFocus: D, onKeyDown: oe, onKeyUp: k, placeholder: se, readOnly: A, renderSuffix: ce, rows: le, size: ue, slotProps: j = {}, slots: de = {}, startAdornment: fe, type: pe = "text", value: he, ...ge } = n, _e = x.value == null ? he : x.value, { current: ve } = N.useRef(_e != null), xe = N.useRef(), Ce = N.useCallback((e) => {}, []), M = be(xe, S, x.ref, Ce), [we, Te] = N.useState(!1), Ee = O(), De = Ke({
24195
+ }), { "aria-describedby": r, autoComplete: i, autoFocus: a, className: o, color: s, components: l = {}, componentsProps: u = {}, defaultValue: f, disabled: p, disableInjectingGlobalStyles: m, endAdornment: h, error: g, fullWidth: _ = !1, id: v, inputComponent: b = "input", inputProps: x = {}, inputRef: S, margin: C, maxRows: w, minRows: ee, multiline: T = !1, name: te, onBlur: E, onChange: ne, onClick: re, onFocus: O, onKeyDown: oe, onKeyUp: k, placeholder: se, readOnly: A, renderSuffix: ce, rows: le, size: ue, slotProps: j = {}, slots: de = {}, startAdornment: fe, type: pe = "text", value: he, ...ge } = n, _e = x.value == null ? he : x.value, { current: ve } = N.useRef(_e != null), xe = N.useRef(), Ce = N.useCallback((e) => {}, []), M = be(xe, S, x.ref, Ce), [we, Te] = N.useState(!1), Ee = ae(), De = Ke({
24196
24196
  props: n,
24197
24197
  muiFormControl: Ee,
24198
24198
  states: [
@@ -24206,46 +24206,46 @@ var fA = k("MuiInputBase", [
24206
24206
  ]
24207
24207
  });
24208
24208
  De.focused = Ee ? Ee.focused : we, N.useEffect(() => {
24209
- !Ee && p && we && (Te(!1), ne && ne());
24209
+ !Ee && p && we && (Te(!1), E && E());
24210
24210
  }, [
24211
24211
  Ee,
24212
24212
  p,
24213
24213
  we,
24214
- ne
24214
+ E
24215
24215
  ]);
24216
24216
  let Oe = Ee && Ee.onFilled, ke = Ee && Ee.onEmpty, Ae = N.useCallback((e) => {
24217
24217
  me(e) ? Oe && Oe() : ke && ke();
24218
24218
  }, [Oe, ke]);
24219
- E(() => {
24219
+ D(() => {
24220
24220
  ve && Ae({ value: _e });
24221
24221
  }, [
24222
24222
  _e,
24223
24223
  Ae,
24224
24224
  ve
24225
- ]), E(() => {
24225
+ ]), D(() => {
24226
24226
  if (!a) return;
24227
24227
  let e = xe.current;
24228
24228
  if (!e) return;
24229
- let t = ze(e), n = ae(t), r = n == null || n === t.body || n === t.documentElement;
24229
+ let t = ze(e), n = ie(t), r = n == null || n === t.body || n === t.documentElement;
24230
24230
  e === n ? Ee && Ee.onFocus ? Ee.onFocus() : Te(!0) : r && e.focus();
24231
24231
  }, [a]);
24232
24232
  let je = (e) => {
24233
- D && D(e), x.onFocus && x.onFocus(e), Ee && Ee.onFocus ? Ee.onFocus(e) : Te(!0);
24233
+ O && O(e), x.onFocus && x.onFocus(e), Ee && Ee.onFocus ? Ee.onFocus(e) : Te(!0);
24234
24234
  }, Me = (e) => {
24235
- ne && ne(e), x.onBlur && x.onBlur(e), Ee && Ee.onBlur ? Ee.onBlur(e) : Te(!1);
24235
+ E && E(e), x.onBlur && x.onBlur(e), Ee && Ee.onBlur ? Ee.onBlur(e) : Te(!1);
24236
24236
  }, Ne = (e, ...t) => {
24237
24237
  if (!ve) {
24238
24238
  let t = e.target || xe.current;
24239
24239
  if (t == null) throw Error(y(1));
24240
24240
  Ae({ value: t.value });
24241
24241
  }
24242
- x.onChange && x.onChange(e, ...t), re && re(e, ...t);
24242
+ x.onChange && x.onChange(e, ...t), ne && ne(e, ...t);
24243
24243
  };
24244
24244
  N.useEffect(() => {
24245
24245
  Ae(xe.current);
24246
24246
  }, []);
24247
24247
  let Pe = (e) => {
24248
- xe.current && e.currentTarget === e.target && xe.current.focus(), ie && ie(e);
24248
+ xe.current && e.currentTarget === e.target && xe.current.focus(), re && re(e);
24249
24249
  }, Fe = b, Ie = x;
24250
24250
  T && Fe === "input" && (Ie = le ? {
24251
24251
  type: void 0,
@@ -24885,7 +24885,7 @@ var BA = {
24885
24885
  let n = ye({
24886
24886
  props: e,
24887
24887
  name: "MuiOutlinedInput"
24888
- }), { components: r = {}, fullWidth: i = !1, inputComponent: a = "input", label: o, multiline: s = !1, notched: c, slots: l = {}, slotProps: u = {}, type: d = "text", ...f } = n, p = VA(n), m = O(), h = Ke({
24888
+ }), { components: r = {}, fullWidth: i = !1, inputComponent: a = "input", label: o, multiline: s = !1, notched: c, slots: l = {}, slotProps: u = {}, type: d = "text", ...f } = n, p = VA(n), m = ae(), h = Ke({
24889
24889
  props: n,
24890
24890
  muiFormControl: m,
24891
24891
  states: [
@@ -24963,29 +24963,29 @@ var KA = (e) => {
24963
24963
  let n = ye({
24964
24964
  name: "MuiSelect",
24965
24965
  props: e
24966
- }), { autoWidth: r = !1, children: i, classes: o = {}, className: s, defaultOpen: c = !1, displayEmpty: l = !1, IconComponent: u = aA, id: f, input: p, inputProps: m, label: h, labelId: g, MenuProps: _, multiple: v = !1, native: y = !1, onClose: b, onOpen: x, open: S, renderValue: C, SelectDisplayProps: w, variant: ee = "outlined", ...T } = n, te = y ? Wk : iA, ne = Ke({
24966
+ }), { autoWidth: r = !1, children: i, classes: o = {}, className: s, defaultOpen: c = !1, displayEmpty: l = !1, IconComponent: u = aA, id: f, input: p, inputProps: m, label: h, labelId: g, MenuProps: _, multiple: v = !1, native: y = !1, onClose: b, onOpen: x, open: S, renderValue: C, SelectDisplayProps: w, variant: ee = "outlined", ...T } = n, te = y ? Wk : iA, E = Ke({
24967
24967
  props: n,
24968
- muiFormControl: O(),
24968
+ muiFormControl: ae(),
24969
24969
  states: ["variant", "error"]
24970
- }), re = ne.variant || ee, ie = {
24970
+ }), ne = E.variant || ee, re = {
24971
24971
  ...n,
24972
- variant: re,
24972
+ variant: ne,
24973
24973
  classes: o
24974
- }, ae = KA(ie), { root: E, ...D } = ae, oe = p || {
24975
- standard: /*#__PURE__*/ P(JA, { ownerState: ie }),
24974
+ }, ie = KA(re), { root: D, ...O } = ie, oe = p || {
24975
+ standard: /*#__PURE__*/ P(JA, { ownerState: re }),
24976
24976
  outlined: /*#__PURE__*/ P(YA, {
24977
24977
  label: h,
24978
- ownerState: ie
24978
+ ownerState: re
24979
24979
  }),
24980
- filled: /*#__PURE__*/ P(XA, { ownerState: ie })
24981
- }[re], k = be(t, Ne(oe));
24980
+ filled: /*#__PURE__*/ P(XA, { ownerState: re })
24981
+ }[ne], k = be(t, Ne(oe));
24982
24982
  return /*#__PURE__*/ P(N.Fragment, { children: /*#__PURE__*/ N.cloneElement(oe, {
24983
24983
  inputComponent: te,
24984
24984
  inputProps: {
24985
24985
  children: i,
24986
- error: ne.error,
24986
+ error: E.error,
24987
24987
  IconComponent: u,
24988
- variant: re,
24988
+ variant: ne,
24989
24989
  type: void 0,
24990
24990
  multiple: v,
24991
24991
  ...y ? { id: f } : {
@@ -25004,13 +25004,13 @@ var KA = (e) => {
25004
25004
  }
25005
25005
  },
25006
25006
  ...m,
25007
- classes: m ? a(D, m.classes) : D,
25007
+ classes: m ? a(O, m.classes) : O,
25008
25008
  ...p ? p.props.inputProps : {}
25009
25009
  },
25010
- ...(v && y || l) && re === "outlined" ? { notched: !0 } : {},
25010
+ ...(v && y || l) && ne === "outlined" ? { notched: !0 } : {},
25011
25011
  ref: k,
25012
- className: d(oe.props.className, s, ae.root),
25013
- ...!p && { variant: re },
25012
+ className: d(oe.props.className, s, ie.root),
25013
+ ...!p && { variant: ne },
25014
25014
  ...T
25015
25015
  }) });
25016
25016
  });
@@ -25134,7 +25134,7 @@ var $A = (e, t) => {
25134
25134
  a,
25135
25135
  s
25136
25136
  ]), _ = N.useRef(null);
25137
- E(() => {
25137
+ D(() => {
25138
25138
  r && _.current && QA(_.current, m);
25139
25139
  }, [r]);
25140
25140
  let v = {
@@ -25271,14 +25271,14 @@ var $A = (e, t) => {
25271
25271
  "& .mq-sqrt-prefix .mq-scaled": { verticalAlign: "middle !important" }
25272
25272
  })), mj = M(XO.Input)(({ controlledKeypadMode: e }) => ({
25273
25273
  maxWidth: e ? "400px" : "500px",
25274
- color: D.text(),
25275
- backgroundColor: D.background(),
25274
+ color: O.text(),
25275
+ backgroundColor: O.background(),
25276
25276
  padding: "2px"
25277
25277
  })), hj = M(u)({
25278
25278
  position: "absolute",
25279
25279
  right: "12px",
25280
25280
  border: "1px solid lightgrey",
25281
- color: D.text()
25281
+ color: O.text()
25282
25282
  }), gj = M("hr")(({ theme: e }) => ({
25283
25283
  padding: 0,
25284
25284
  margin: 0,
@@ -25497,8 +25497,8 @@ var $A = (e, t) => {
25497
25497
  height: "28px",
25498
25498
  color: "#00bb00",
25499
25499
  ...e && {
25500
- backgroundColor: D.white(),
25501
- "&:hover": { backgroundColor: D.backgroundDark() }
25500
+ backgroundColor: O.white(),
25501
+ "&:hover": { backgroundColor: O.backgroundDark() }
25502
25502
  },
25503
25503
  "& .MuiIconButton-label": {
25504
25504
  position: "absolute",
@@ -26142,7 +26142,7 @@ var Xj = k("MuiFormHelperText", [
26142
26142
  name: "MuiFormHelperText"
26143
26143
  }), { children: r, className: i, component: a = "p", disabled: o, error: s, filled: c, focused: l, margin: u, required: f, variant: p, ...m } = n, h = Ke({
26144
26144
  props: n,
26145
- muiFormControl: O(),
26145
+ muiFormControl: ae(),
26146
26146
  states: [
26147
26147
  "variant",
26148
26148
  "size",
@@ -26199,7 +26199,7 @@ var nM = {
26199
26199
  let n = ye({
26200
26200
  props: e,
26201
26201
  name: "MuiTextField"
26202
- }), { autoComplete: r, autoFocus: i = !1, children: a, className: o, color: s = "primary", defaultValue: c, disabled: l = !1, error: u = !1, FormHelperTextProps: f, fullWidth: p = !1, helperText: m, id: h, InputLabelProps: g, inputProps: _, InputProps: v, inputRef: y, label: x, maxRows: S, minRows: C, multiline: w = !1, name: ee, onBlur: T, onChange: te, onFocus: ne, placeholder: re, required: ie = !1, rows: ae, select: E = !1, SelectProps: D, slots: O = {}, slotProps: k = {}, type: se, value: A, variant: ce = "outlined", ...le } = n, ue = {
26202
+ }), { autoComplete: r, autoFocus: i = !1, children: a, className: o, color: s = "primary", defaultValue: c, disabled: l = !1, error: u = !1, FormHelperTextProps: f, fullWidth: p = !1, helperText: m, id: h, InputLabelProps: g, inputProps: _, InputProps: v, inputRef: y, label: x, maxRows: S, minRows: C, multiline: w = !1, name: ee, onBlur: T, onChange: te, onFocus: E, placeholder: ne, required: re = !1, rows: ie, select: D = !1, SelectProps: O, slots: ae = {}, slotProps: k = {}, type: se, value: A, variant: ce = "outlined", ...le } = n, ue = {
26203
26203
  ...n,
26204
26204
  autoFocus: i,
26205
26205
  color: s,
@@ -26207,21 +26207,21 @@ var nM = {
26207
26207
  error: u,
26208
26208
  fullWidth: p,
26209
26209
  multiline: w,
26210
- required: ie,
26211
- select: E,
26210
+ required: re,
26211
+ select: D,
26212
26212
  variant: ce
26213
26213
  }, j = rM(ue), de = oe(h), fe = m && de ? `${de}-helper-text` : void 0, pe = x && de ? `${de}-label` : void 0, me = nM[ce], he = {
26214
- slots: O,
26214
+ slots: ae,
26215
26215
  slotProps: {
26216
26216
  input: v,
26217
26217
  inputLabel: g,
26218
26218
  htmlInput: _,
26219
26219
  formHelperText: f,
26220
- select: D,
26220
+ select: O,
26221
26221
  ...k
26222
26222
  }
26223
26223
  }, ge = {}, _e = he.slotProps.inputLabel;
26224
- ce === "outlined" && (_e && _e.shrink !== void 0 && (ge.notched = _e.shrink), ge.label = x), E && ((!D || !D.native) && (ge.id = void 0), ge["aria-describedby"] = void 0);
26224
+ ce === "outlined" && (_e && _e.shrink !== void 0 && (ge.notched = _e.shrink), ge.label = x), D && ((!O || !O.native) && (ge.id = void 0), ge["aria-describedby"] = void 0);
26225
26225
  let [ve, be] = b("root", {
26226
26226
  elementType: iM,
26227
26227
  shouldForwardComponentProp: !0,
@@ -26236,7 +26236,7 @@ var nM = {
26236
26236
  disabled: l,
26237
26237
  error: u,
26238
26238
  fullWidth: p,
26239
- required: ie,
26239
+ required: re,
26240
26240
  color: s,
26241
26241
  variant: ce
26242
26242
  }
@@ -26269,7 +26269,7 @@ var nM = {
26269
26269
  fullWidth: p,
26270
26270
  multiline: w,
26271
26271
  name: ee,
26272
- rows: ae,
26272
+ rows: ie,
26273
26273
  maxRows: S,
26274
26274
  minRows: C,
26275
26275
  type: se,
@@ -26278,10 +26278,10 @@ var nM = {
26278
26278
  inputRef: y,
26279
26279
  onBlur: T,
26280
26280
  onChange: te,
26281
- onFocus: ne,
26282
- placeholder: re,
26281
+ onFocus: E,
26282
+ placeholder: ne,
26283
26283
  inputProps: Te,
26284
- slots: { input: O.htmlInput ? we : void 0 },
26284
+ slots: { input: ae.htmlInput ? we : void 0 },
26285
26285
  ...Se
26286
26286
  });
26287
26287
  return /*#__PURE__*/ F(ve, {
@@ -26293,7 +26293,7 @@ var nM = {
26293
26293
  ...M,
26294
26294
  children: x
26295
26295
  }),
26296
- E ? /*#__PURE__*/ P(Oe, {
26296
+ D ? /*#__PURE__*/ P(Oe, {
26297
26297
  "aria-describedby": fe,
26298
26298
  id: de,
26299
26299
  labelId: pe,
@@ -26511,24 +26511,24 @@ var dM = k("MuiDialog", [
26511
26511
  }), r = Ge(), i = {
26512
26512
  enter: r.transitions.duration.enteringScreen,
26513
26513
  exit: r.transitions.duration.leavingScreen
26514
- }, { "aria-describedby": a, "aria-labelledby": o, "aria-modal": s = !0, BackdropComponent: c, BackdropProps: l, children: u, className: f, disableEscapeKeyDown: p = !1, fullScreen: m = !1, fullWidth: h = !1, maxWidth: g = "sm", onClick: v, onClose: y, open: x, PaperComponent: S = _, PaperProps: C = {}, role: w = "dialog", scroll: ee = "paper", slots: T = {}, slotProps: te = {}, TransitionComponent: ne = Ie, transitionDuration: re = i, TransitionProps: ie, ...ae } = n, E = {
26514
+ }, { "aria-describedby": a, "aria-labelledby": o, "aria-modal": s = !0, BackdropComponent: c, BackdropProps: l, children: u, className: f, disableEscapeKeyDown: p = !1, fullScreen: m = !1, fullWidth: h = !1, maxWidth: g = "sm", onClick: v, onClose: y, open: x, PaperComponent: S = _, PaperProps: C = {}, role: w = "dialog", scroll: ee = "paper", slots: T = {}, slotProps: te = {}, TransitionComponent: E = Ie, transitionDuration: ne = i, TransitionProps: re, ...ie } = n, D = {
26515
26515
  ...n,
26516
26516
  disableEscapeKeyDown: p,
26517
26517
  fullScreen: m,
26518
26518
  fullWidth: h,
26519
26519
  maxWidth: g,
26520
26520
  scroll: ee
26521
- }, D = mM(E), O = N.useRef(), k = (e) => {
26522
- O.current = e.target === e.currentTarget;
26521
+ }, O = mM(D), ae = N.useRef(), k = (e) => {
26522
+ ae.current = e.target === e.currentTarget;
26523
26523
  }, se = (e) => {
26524
- v && v(e), O.current && (O.current = null, y && y(e, "backdropClick"));
26524
+ v && v(e), ae.current && (ae.current = null, y && y(e, "backdropClick"));
26525
26525
  }, A = oe(o), ce = N.useMemo(() => ({ titleId: A }), [A]), le = {
26526
26526
  slots: {
26527
- transition: ne,
26527
+ transition: E,
26528
26528
  ...T
26529
26529
  },
26530
26530
  slotProps: {
26531
- transition: ie,
26531
+ transition: re,
26532
26532
  paper: C,
26533
26533
  backdrop: l,
26534
26534
  ...te
@@ -26537,21 +26537,21 @@ var dM = k("MuiDialog", [
26537
26537
  elementType: hM,
26538
26538
  shouldForwardComponentProp: !0,
26539
26539
  externalForwardedProps: le,
26540
- ownerState: E,
26541
- className: d(D.root, f),
26540
+ ownerState: D,
26541
+ className: d(O.root, f),
26542
26542
  ref: t
26543
26543
  }), [fe, pe] = b("backdrop", {
26544
26544
  elementType: pM,
26545
26545
  shouldForwardComponentProp: !0,
26546
26546
  externalForwardedProps: le,
26547
- ownerState: E,
26548
- className: D.backdrop
26547
+ ownerState: D,
26548
+ className: O.backdrop
26549
26549
  }), [me, he] = b("paper", {
26550
26550
  elementType: _M,
26551
26551
  shouldForwardComponentProp: !0,
26552
26552
  externalForwardedProps: le,
26553
- ownerState: E,
26554
- className: D.paper,
26553
+ ownerState: D,
26554
+ className: O.paper,
26555
26555
  additionalProps: {
26556
26556
  elevation: 24,
26557
26557
  role: w,
@@ -26564,16 +26564,16 @@ var dM = k("MuiDialog", [
26564
26564
  }), [ge, _e] = b("container", {
26565
26565
  elementType: gM,
26566
26566
  externalForwardedProps: le,
26567
- ownerState: E,
26568
- className: D.container
26567
+ ownerState: D,
26568
+ className: O.container
26569
26569
  }), [ve, be] = b("transition", {
26570
26570
  elementType: Ie,
26571
26571
  externalForwardedProps: le,
26572
- ownerState: E,
26572
+ ownerState: D,
26573
26573
  additionalProps: {
26574
26574
  appear: !0,
26575
26575
  in: x,
26576
- timeout: re,
26576
+ timeout: ne,
26577
26577
  role: "presentation"
26578
26578
  }
26579
26579
  });
@@ -26581,7 +26581,7 @@ var dM = k("MuiDialog", [
26581
26581
  closeAfterTransition: !0,
26582
26582
  slots: { backdrop: fe },
26583
26583
  slotProps: { backdrop: {
26584
- transitionDuration: re,
26584
+ transitionDuration: ne,
26585
26585
  as: c,
26586
26586
  ...pe
26587
26587
  } },
@@ -26590,7 +26590,7 @@ var dM = k("MuiDialog", [
26590
26590
  open: x,
26591
26591
  onClick: se,
26592
26592
  ...j,
26593
- ...ae,
26593
+ ...ie,
26594
26594
  children: /*#__PURE__*/ P(ve, {
26595
26595
  ...be,
26596
26596
  children: /*#__PURE__*/ P(ge, {
@@ -26660,7 +26660,7 @@ var dM = k("MuiDialog", [
26660
26660
  "disabled",
26661
26661
  "extraStyles"
26662
26662
  ].includes(e) })(({ active: e, disabled: t }) => ({
26663
- color: e ? D.text() : D.disabled(),
26663
+ color: e ? O.text() : O.disabled(),
26664
26664
  display: "inline-flex",
26665
26665
  padding: "2px",
26666
26666
  background: "none",
@@ -26670,8 +26670,8 @@ var dM = k("MuiDialog", [
26670
26670
  width: "24px",
26671
26671
  height: "24px"
26672
26672
  },
26673
- "&:hover": { color: t ? D.disabled() : D.text() },
26674
- "&:focus": { outline: `2px solid ${D.buttonFocusOutline()}` },
26673
+ "&:hover": { color: t ? O.disabled() : O.text() },
26674
+ "&:focus": { outline: `2px solid ${O.buttonFocusOutline()}` },
26675
26675
  ...t && { opacity: .7 }
26676
26676
  })), xM = (0, Vt.default)("pie-elements:editable-html:raw-button");
26677
26677
  (class extends pt.Component {
@@ -26839,7 +26839,7 @@ k("MuiLinearProgress", [
26839
26839
  ]);
26840
26840
  //#endregion
26841
26841
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/LinearProgress/LinearProgress.js
26842
- var kM = 4, AM = ie`
26842
+ var kM = 4, AM = re`
26843
26843
  0% {
26844
26844
  left: -35%;
26845
26845
  right: 100%;
@@ -26856,7 +26856,7 @@ var kM = 4, AM = ie`
26856
26856
  }
26857
26857
  `, jM = typeof AM == "string" ? null : T`
26858
26858
  animation: ${AM} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
26859
- `, MM = ie`
26859
+ `, MM = re`
26860
26860
  0% {
26861
26861
  left: -200%;
26862
26862
  right: 100%;
@@ -26873,7 +26873,7 @@ var kM = 4, AM = ie`
26873
26873
  }
26874
26874
  `, NM = typeof MM == "string" ? null : T`
26875
26875
  animation: ${MM} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
26876
- `, PM = ie`
26876
+ `, PM = re`
26877
26877
  0% {
26878
26878
  opacity: 1;
26879
26879
  background-position: 0 -23px;
@@ -27224,8 +27224,8 @@ function YM(e) {
27224
27224
  ]), Ct(() => {
27225
27225
  w();
27226
27226
  let e = y?.current;
27227
- return e && n.isEditable && e.addEventListener("mousedown", ie, !1), () => {
27228
- e && e.removeEventListener("mousedown", ie, !1);
27227
+ return e && n.isEditable && e.addEventListener("mousedown", re, !1), () => {
27228
+ e && e.removeEventListener("mousedown", re, !1);
27229
27229
  };
27230
27230
  }, []), Ct(() => {
27231
27231
  w();
@@ -27276,17 +27276,17 @@ function YM(e) {
27276
27276
  width: i.width,
27277
27277
  height: i.height
27278
27278
  }));
27279
- }, [n, C]), ne = bt((e) => {
27279
+ }, [n, C]), E = bt((e) => {
27280
27280
  C(e);
27281
- }, [n, C]), re = bt(() => {
27282
- window.removeEventListener("mousemove", te), window.removeEventListener("mouseup", re);
27283
- }, [te]), ie = bt(() => {
27284
- window.addEventListener("mousemove", te), window.addEventListener("mouseup", re);
27285
- }, [te, re]), ae = {
27281
+ }, [n, C]), ne = bt(() => {
27282
+ window.removeEventListener("mousemove", te), window.removeEventListener("mouseup", ne);
27283
+ }, [te]), re = bt(() => {
27284
+ window.addEventListener("mousemove", te), window.addEventListener("mouseup", ne);
27285
+ }, [te, ne]), ie = {
27286
27286
  width: JM(t.attrs.width),
27287
27287
  height: JM(t.attrs.height),
27288
27288
  objectFit: "contain"
27289
- }, E = {
27289
+ }, D = {
27290
27290
  left: "flex-start",
27291
27291
  center: "center",
27292
27292
  right: "flex-end"
@@ -27295,7 +27295,7 @@ function YM(e) {
27295
27295
  onFocus: i,
27296
27296
  loading: !t.attrs.loaded,
27297
27297
  pendingDelete: t.attrs.deleteStatus === "pending",
27298
- style: { justifyContent: E },
27298
+ style: { justifyContent: D },
27299
27299
  children: [/* @__PURE__ */ P(UM, {
27300
27300
  mode: "determinate",
27301
27301
  value: t.attrs.percent || 0,
@@ -27308,7 +27308,7 @@ function YM(e) {
27308
27308
  draggable: !1,
27309
27309
  ref: v,
27310
27310
  src: t.attrs.src,
27311
- style: ae,
27311
+ style: ie,
27312
27312
  onLoad: ee,
27313
27313
  alt: t.attrs.alt
27314
27314
  }), /* @__PURE__ */ P(qM, {
@@ -27341,7 +27341,7 @@ function YM(e) {
27341
27341
  alt: t.attrs.alt,
27342
27342
  imageLoaded: t.attrs.loaded,
27343
27343
  alignment: t.attrs.alignment || "left",
27344
- onChange: ne
27344
+ onChange: E
27345
27345
  })
27346
27346
  })
27347
27347
  }), n._tiptapContainerEl)] });
@@ -27453,7 +27453,7 @@ function eN(e) {
27453
27453
  let { onChange: t, ...n } = e, r = N.useRef(), i = N.useRef(null), a = () => {
27454
27454
  r.current = i.current.offsetHeight - i.current.clientHeight;
27455
27455
  };
27456
- return E(() => {
27456
+ return D(() => {
27457
27457
  let e = Ae(() => {
27458
27458
  let e = r.current;
27459
27459
  a(), e !== r.current && t(r.current);
@@ -27728,22 +27728,22 @@ var lN = k("MuiTabs", [
27728
27728
  let n = ye({
27729
27729
  props: e,
27730
27730
  name: "MuiTabs"
27731
- }), r = Ge(), i = l(), { "aria-label": a, "aria-labelledby": o, action: s, centered: c = !1, children: u, className: f, component: p = "div", allowScrollButtonsMobile: m = !1, indicatorColor: h = "primary", onChange: g, orientation: _ = "horizontal", ScrollButtonComponent: y, scrollButtons: x = "auto", selectionFollowsFocus: S, slots: C = {}, slotProps: w = {}, TabIndicatorProps: ee = {}, TabScrollButtonProps: T = {}, textColor: te = "primary", value: ne, variant: re = "standard", visibleScrollbar: ie = !1, ...E } = n, D = re === "scrollable", O = _ === "vertical", oe = O ? "scrollTop" : "scrollLeft", k = O ? "top" : "left", se = O ? "bottom" : "right", A = O ? "clientHeight" : "clientWidth", ce = O ? "height" : "width", le = {
27731
+ }), r = Ge(), i = l(), { "aria-label": a, "aria-labelledby": o, action: s, centered: c = !1, children: u, className: f, component: p = "div", allowScrollButtonsMobile: m = !1, indicatorColor: h = "primary", onChange: g, orientation: _ = "horizontal", ScrollButtonComponent: y, scrollButtons: x = "auto", selectionFollowsFocus: S, slots: C = {}, slotProps: w = {}, TabIndicatorProps: ee = {}, TabScrollButtonProps: T = {}, textColor: te = "primary", value: E, variant: ne = "standard", visibleScrollbar: re = !1, ...D } = n, O = ne === "scrollable", ae = _ === "vertical", oe = ae ? "scrollTop" : "scrollLeft", k = ae ? "top" : "left", se = ae ? "bottom" : "right", A = ae ? "clientHeight" : "clientWidth", ce = ae ? "height" : "width", le = {
27732
27732
  ...n,
27733
27733
  component: p,
27734
27734
  allowScrollButtonsMobile: m,
27735
27735
  indicatorColor: h,
27736
27736
  orientation: _,
27737
- vertical: O,
27737
+ vertical: ae,
27738
27738
  scrollButtons: x,
27739
27739
  textColor: te,
27740
- variant: re,
27741
- visibleScrollbar: ie,
27742
- fixed: !D,
27743
- hideScrollbar: D && !ie,
27744
- scrollableX: D && !O,
27745
- scrollableY: D && O,
27746
- centered: c && !D,
27740
+ variant: ne,
27741
+ visibleScrollbar: re,
27742
+ fixed: !O,
27743
+ hideScrollbar: O && !re,
27744
+ scrollableX: O && !ae,
27745
+ scrollableY: O && ae,
27746
+ centered: c && !O,
27747
27747
  scrollButtonsHideMobile: !m
27748
27748
  }, ue = pN(le), j = xe({
27749
27749
  elementType: C.StartScrollButtonIcon,
@@ -27779,10 +27779,10 @@ var lN = k("MuiTabs", [
27779
27779
  };
27780
27780
  }
27781
27781
  let n;
27782
- if (e && ne !== !1) {
27782
+ if (e && E !== !1) {
27783
27783
  let e = Oe.current.children;
27784
27784
  if (e.length > 0) {
27785
- let t = e[Ee.get(ne)];
27785
+ let t = e[Ee.get(E)];
27786
27786
  n = t ? t.getBoundingClientRect() : null;
27787
27787
  }
27788
27788
  }
@@ -27792,7 +27792,7 @@ var lN = k("MuiTabs", [
27792
27792
  };
27793
27793
  }, Me = v(() => {
27794
27794
  let { tabsMeta: e, tabMeta: t } = je(), n = 0, r;
27795
- O ? (r = "top", t && e && (n = t.top - e.top + e.scrollTop)) : (r = i ? "right" : "left", t && e && (n = (i ? -1 : 1) * (t[r] - e[r] + e.scrollLeft)));
27795
+ ae ? (r = "top", t && e && (n = t.top - e.top + e.scrollTop)) : (r = i ? "right" : "left", t && e && (n = (i ? -1 : 1) * (t[r] - e[r] + e.scrollLeft)));
27796
27796
  let a = {
27797
27797
  [r]: n,
27798
27798
  [ce]: t ? t[ce] : 0
@@ -27806,7 +27806,7 @@ var lN = k("MuiTabs", [
27806
27806
  t ? QM(oe, De.current, e, { duration: r.transitions.duration.standard }) : De.current[oe] = e;
27807
27807
  }, Pe = (e) => {
27808
27808
  let t = De.current[oe];
27809
- O ? t += e : t += e * (i ? -1 : 1), Ne(t);
27809
+ ae ? t += e : t += e * (i ? -1 : 1), Ne(t);
27810
27810
  }, Fe = () => {
27811
27811
  let e = De.current[A], t = 0, n = Array.from(Oe.current.children);
27812
27812
  for (let r = 0; r < n.length; r += 1) {
@@ -27851,11 +27851,11 @@ var lN = k("MuiTabs", [
27851
27851
  }
27852
27852
  }), Ke = () => {
27853
27853
  let e = {};
27854
- e.scrollbarSizeListener = D ? /*#__PURE__*/ P(Re, {
27854
+ e.scrollbarSizeListener = O ? /*#__PURE__*/ P(Re, {
27855
27855
  ...Ve,
27856
27856
  onChange: He
27857
27857
  }) : null;
27858
- let t = D && (x === "auto" && (_e || be) || x === !0);
27858
+ let t = O && (x === "auto" && (_e || be) || x === !0);
27859
27859
  return e.scrollButtonStart = t ? /*#__PURE__*/ P(Ue, {
27860
27860
  direction: i ? "right" : "left",
27861
27861
  onClick: Ie,
@@ -27879,7 +27879,7 @@ var lN = k("MuiTabs", [
27879
27879
  }
27880
27880
  }
27881
27881
  }), Je = v(() => {
27882
- D && x !== !1 && M(!Ce);
27882
+ O && x !== !1 && M(!Ce);
27883
27883
  });
27884
27884
  N.useEffect(() => {
27885
27885
  let e = Ae(() => {
@@ -27902,7 +27902,7 @@ var lN = k("MuiTabs", [
27902
27902
  };
27903
27903
  }, [Me, Je]), N.useEffect(() => {
27904
27904
  let e = Array.from(Oe.current.children), t = e.length;
27905
- if (typeof IntersectionObserver < "u" && t > 0 && D && x !== !1) {
27905
+ if (typeof IntersectionObserver < "u" && t > 0 && O && x !== !1) {
27906
27906
  let n = e[0], r = e[t - 1], i = {
27907
27907
  root: De.current,
27908
27908
  threshold: .99
@@ -27918,7 +27918,7 @@ var lN = k("MuiTabs", [
27918
27918
  };
27919
27919
  }
27920
27920
  }, [
27921
- D,
27921
+ O,
27922
27922
  x,
27923
27923
  Ce,
27924
27924
  u?.length
@@ -27942,20 +27942,20 @@ var lN = k("MuiTabs", [
27942
27942
  if (!/*#__PURE__*/ N.isValidElement(e)) return null;
27943
27943
  let t = e.props.value === void 0 ? Qe : e.props.value;
27944
27944
  Ee.set(t, Qe);
27945
- let n = t === ne;
27945
+ let n = t === E;
27946
27946
  return Qe += 1, /*#__PURE__*/ N.cloneElement(e, {
27947
- fullWidth: re === "fullWidth",
27947
+ fullWidth: ne === "fullWidth",
27948
27948
  indicator: n && !fe && Ze,
27949
27949
  selected: n,
27950
27950
  selectionFollowsFocus: S,
27951
27951
  onChange: g,
27952
27952
  textColor: te,
27953
27953
  value: t,
27954
- ...Qe === 1 && ne === !1 && !e.props.tabIndex ? { tabIndex: 0 } : {}
27954
+ ...Qe === 1 && E === !1 && !e.props.tabIndex ? { tabIndex: 0 } : {}
27955
27955
  });
27956
27956
  }), et = (e) => {
27957
27957
  if (e.altKey || e.shiftKey || e.ctrlKey || e.metaKey) return;
27958
- let t = Oe.current, n = ae(ze(t));
27958
+ let t = Oe.current, n = ie(ze(t));
27959
27959
  if (n?.getAttribute("role") !== "tab") return;
27960
27960
  let r = _ === "horizontal" ? "ArrowLeft" : "ArrowUp", a = _ === "horizontal" ? "ArrowRight" : "ArrowDown";
27961
27961
  switch (_ === "horizontal" && i && (r = "ArrowRight", a = "ArrowLeft"), e.key) {
@@ -27979,7 +27979,7 @@ var lN = k("MuiTabs", [
27979
27979
  elementType: mN,
27980
27980
  externalForwardedProps: {
27981
27981
  ...ke,
27982
- ...E,
27982
+ ...D,
27983
27983
  component: p
27984
27984
  },
27985
27985
  ownerState: le
@@ -27991,7 +27991,7 @@ var lN = k("MuiTabs", [
27991
27991
  ownerState: le,
27992
27992
  additionalProps: { style: {
27993
27993
  overflow: we.overflow,
27994
- [O ? `margin${i ? "Left" : "Right"}` : "marginBottom"]: ie ? void 0 : -we.scrollbarWidth
27994
+ [ae ? `margin${i ? "Left" : "Right"}` : "marginBottom"]: re ? void 0 : -we.scrollbarWidth
27995
27995
  } }
27996
27996
  }), [ot, st] = b("list", {
27997
27997
  ref: Oe,
@@ -28979,52 +28979,52 @@ var lP = (e, t) => {
28979
28979
  disablePadding: h,
28980
28980
  divider: g,
28981
28981
  hasSecondaryAction: T
28982
- }, ne = uP(te), re = be(w, t), [ie, ae] = b("secondaryAction", {
28982
+ }, E = uP(te), ne = be(w, t), [re, ie] = b("secondaryAction", {
28983
28983
  elementType: cP,
28984
28984
  externalForwardedProps: {
28985
28985
  slots: y,
28986
28986
  slotProps: v
28987
28987
  },
28988
28988
  ownerState: te,
28989
- className: ne.secondaryAction
28990
- }), E = y.root || s.Root || dP, D = v.root || c.root || {}, O = {
28991
- className: d(ne.root, D.className, a),
28989
+ className: E.secondaryAction
28990
+ }), D = y.root || s.Root || dP, O = v.root || c.root || {}, ae = {
28991
+ className: d(E.root, O.className, a),
28992
28992
  ...x
28993
28993
  }, oe = o || "li";
28994
- return T ? (oe = !O.component && !o ? "div" : oe, l === "li" && (oe === "li" ? oe = "div" : O.component === "li" && (O.component = "div")), /*#__PURE__*/ P(ve.Provider, {
28994
+ return T ? (oe = !ae.component && !o ? "div" : oe, l === "li" && (oe === "li" ? oe = "div" : ae.component === "li" && (ae.component = "div")), /*#__PURE__*/ P(ve.Provider, {
28995
28995
  value: C,
28996
28996
  children: /*#__PURE__*/ F(fP, {
28997
28997
  as: l,
28998
- className: d(ne.container, u),
28999
- ref: re,
28998
+ className: d(E.container, u),
28999
+ ref: ne,
29000
29000
  ownerState: te,
29001
29001
  ...f,
29002
- children: [/*#__PURE__*/ P(E, {
29003
- ...D,
29004
- ...!Se(E) && {
29002
+ children: [/*#__PURE__*/ P(D, {
29003
+ ...O,
29004
+ ...!Se(D) && {
29005
29005
  as: oe,
29006
29006
  ownerState: {
29007
29007
  ...te,
29008
- ...D.ownerState
29008
+ ...O.ownerState
29009
29009
  }
29010
29010
  },
29011
- ...O,
29011
+ ...ae,
29012
29012
  children: ee
29013
29013
  }), ee.pop()]
29014
29014
  })
29015
29015
  })) : /*#__PURE__*/ P(ve.Provider, {
29016
29016
  value: C,
29017
- children: /*#__PURE__*/ F(E, {
29018
- ...D,
29017
+ children: /*#__PURE__*/ F(D, {
29018
+ ...O,
29019
29019
  as: oe,
29020
- ref: re,
29021
- ...!Se(E) && { ownerState: {
29020
+ ref: ne,
29021
+ ...!Se(D) && { ownerState: {
29022
29022
  ...te,
29023
- ...D.ownerState
29023
+ ...O.ownerState
29024
29024
  } },
29025
- ...O,
29026
- children: [ee, _ && /*#__PURE__*/ P(ie, {
29027
- ...ae,
29025
+ ...ae,
29026
+ children: [ee, _ && /*#__PURE__*/ P(re, {
29027
+ ...ie,
29028
29028
  children: _
29029
29029
  })]
29030
29030
  })
@@ -30792,16 +30792,16 @@ function mI(e) {
30792
30792
  p -= T - r.width, p *= c ? 1 : -1;
30793
30793
  }
30794
30794
  }
30795
- var te = Object.assign({ position: s }, l && fI), ne = u === !0 ? pI({
30795
+ var te = Object.assign({ position: s }, l && fI), E = u === !0 ? pI({
30796
30796
  x: p,
30797
30797
  y: h
30798
30798
  }, MF(n)) : {
30799
30799
  x: p,
30800
30800
  y: h
30801
30801
  };
30802
- if (p = ne.x, h = ne.y, c) {
30803
- var re;
30804
- return Object.assign({}, te, (re = {}, re[b] = v ? "0" : "", re[y] = _ ? "0" : "", re.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", re));
30802
+ if (p = E.x, h = E.y, c) {
30803
+ var ne;
30804
+ return Object.assign({}, te, (ne = {}, ne[b] = v ? "0" : "", ne[y] = _ ? "0" : "", ne.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", ne));
30805
30805
  }
30806
30806
  return Object.assign({}, te, (t = {}, t[b] = v ? h + "px" : "", t[y] = _ ? p + "px" : "", t.transform = "", t));
30807
30807
  }
@@ -31032,10 +31032,10 @@ function LI(e, t) {
31032
31032
  right: ee.right - x.right + _.right
31033
31033
  }, te = e.modifiersData.offset;
31034
31034
  if (f === "popper" && te) {
31035
- var ne = te[i];
31035
+ var E = te[i];
31036
31036
  Object.keys(T).forEach(function(e) {
31037
31037
  var t = ["right", "bottom"].indexOf(e) >= 0 ? 1 : -1, n = ["top", "bottom"].indexOf(e) >= 0 ? "y" : "x";
31038
- T[e] += ne[n] * t;
31038
+ T[e] += E[n] * t;
31039
31039
  });
31040
31040
  }
31041
31041
  return T;
@@ -31086,22 +31086,22 @@ function BI(e) {
31086
31086
  allowedAutoPlacements: h
31087
31087
  }) : n);
31088
31088
  }, []), b = t.rects.reference, x = t.rects.popper, S = /* @__PURE__ */ new Map(), C = !0, w = y[0], ee = 0; ee < y.length; ee++) {
31089
- var T = y[ee], te = zF(T), ne = dI(T) === CF, re = ["top", vF].indexOf(te) >= 0, ie = re ? "width" : "height", ae = LI(t, {
31089
+ var T = y[ee], te = zF(T), E = dI(T) === CF, ne = ["top", vF].indexOf(te) >= 0, re = ne ? "width" : "height", ie = LI(t, {
31090
31090
  placement: T,
31091
31091
  boundary: u,
31092
31092
  rootBoundary: d,
31093
31093
  altBoundary: f,
31094
31094
  padding: l
31095
- }), E = re ? ne ? yF : bF : ne ? vF : "top";
31096
- b[ie] > x[ie] && (E = xI(E));
31097
- var D = xI(E), O = [];
31098
- if (a && O.push(ae[te] <= 0), s && O.push(ae[E] <= 0, ae[D] <= 0), O.every(function(e) {
31095
+ }), D = ne ? E ? yF : bF : E ? vF : "top";
31096
+ b[re] > x[re] && (D = xI(D));
31097
+ var O = xI(D), ae = [];
31098
+ if (a && ae.push(ie[te] <= 0), s && ae.push(ie[D] <= 0, ie[O] <= 0), ae.every(function(e) {
31099
31099
  return e;
31100
31100
  })) {
31101
31101
  w = T, C = !1;
31102
31102
  break;
31103
31103
  }
31104
- S.set(T, O);
31104
+ S.set(T, ae);
31105
31105
  }
31106
31106
  if (C) for (var oe = m ? 3 : 1, k = function(e) {
31107
31107
  var t = y.find(function(t) {
@@ -31227,23 +31227,23 @@ function QI(e) {
31227
31227
  } : Object.assign({
31228
31228
  mainAxis: 0,
31229
31229
  altAxis: 0
31230
- }, ee), te = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, ne = {
31230
+ }, ee), te = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, E = {
31231
31231
  x: 0,
31232
31232
  y: 0
31233
31233
  };
31234
31234
  if (S) {
31235
31235
  if (a) {
31236
- var re = b === "y" ? "top" : bF, ie = b === "y" ? vF : yF, ae = b === "y" ? "height" : "width", E = S[b], D = E + g[re], O = E - g[ie], oe = p ? -w[ae] / 2 : 0, k = v === "start" ? C[ae] : w[ae], se = v === "start" ? -w[ae] : -C[ae], A = t.elements.arrow, ce = p && A ? KF(A) : {
31236
+ var ne = b === "y" ? "top" : bF, re = b === "y" ? vF : yF, ie = b === "y" ? "height" : "width", D = S[b], O = D + g[ne], ae = D - g[re], oe = p ? -w[ie] / 2 : 0, k = v === "start" ? C[ie] : w[ie], se = v === "start" ? -w[ie] : -C[ie], A = t.elements.arrow, ce = p && A ? KF(A) : {
31237
31237
  width: 0,
31238
31238
  height: 0
31239
- }, le = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : iI(), ue = le[re], j = le[ie], de = nI(0, C[ae], ce[ae]), fe = y ? C[ae] / 2 - oe - de - ue - T.mainAxis : k - de - ue - T.mainAxis, pe = y ? -C[ae] / 2 + oe + de + j + T.mainAxis : se + de + j + T.mainAxis, me = t.elements.arrow && eI(t.elements.arrow), he = me ? b === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, ge = te?.[b] ?? 0, _e = E + fe - ge - he, ve = E + pe - ge, ye = nI(p ? VF(D, _e) : D, E, p ? BF(O, ve) : O);
31240
- S[b] = ye, ne[b] = ye - E;
31239
+ }, le = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : iI(), ue = le[ne], j = le[re], de = nI(0, C[ie], ce[ie]), fe = y ? C[ie] / 2 - oe - de - ue - T.mainAxis : k - de - ue - T.mainAxis, pe = y ? -C[ie] / 2 + oe + de + j + T.mainAxis : se + de + j + T.mainAxis, me = t.elements.arrow && eI(t.elements.arrow), he = me ? b === "y" ? me.clientTop || 0 : me.clientLeft || 0 : 0, ge = te?.[b] ?? 0, _e = D + fe - ge - he, ve = D + pe - ge, ye = nI(p ? VF(O, _e) : O, D, p ? BF(ae, ve) : ae);
31240
+ S[b] = ye, E[b] = ye - D;
31241
31241
  }
31242
31242
  if (s) {
31243
31243
  var be = b === "x" ? "top" : bF, xe = b === "x" ? vF : yF, Se = S[x], Ce = x === "y" ? "height" : "width", M = Se + g[be], we = Se - g[xe], Te = ["top", bF].indexOf(_) !== -1, Ee = te?.[x] ?? 0, De = Te ? M : Se - C[Ce] - w[Ce] - Ee + T.altAxis, Oe = Te ? Se + C[Ce] + w[Ce] - Ee - T.altAxis : we, ke = p && Te ? rI(De, Se, Oe) : nI(p ? De : M, Se, p ? Oe : we);
31244
- S[x] = ke, ne[x] = ke - Se;
31244
+ S[x] = ke, E[x] = ke - Se;
31245
31245
  }
31246
- t.modifiersData[r] = ne;
31246
+ t.modifiersData[r] = E;
31247
31247
  }
31248
31248
  }
31249
31249
  var $I = {
@@ -31538,10 +31538,10 @@ var gL = (e) => {
31538
31538
  ]);
31539
31539
  let T = { placement: S };
31540
31540
  p !== null && (T.TransitionProps = p);
31541
- let te = gL(e), ne = f.root ?? "div";
31542
- return /*#__PURE__*/ P(ne, {
31541
+ let te = gL(e), E = f.root ?? "div";
31542
+ return /*#__PURE__*/ P(E, {
31543
31543
  ...xe({
31544
- elementType: ne,
31544
+ elementType: E,
31545
31545
  externalSlotProps: d.root,
31546
31546
  externalForwardedProps: h,
31547
31547
  additionalProps: {
@@ -32221,14 +32221,14 @@ var GL = (e) => {
32221
32221
  width: "24px",
32222
32222
  height: "24px"
32223
32223
  },
32224
- "&:hover": { color: D.text() },
32225
- "&:focus": { outline: `2px solid ${D.buttonFocusOutline()}` }
32224
+ "&:hover": { color: O.text() },
32225
+ "&:focus": { outline: `2px solid ${O.buttonFocusOutline()}` }
32226
32226
  },
32227
- "& .active": { color: D.text() },
32227
+ "& .active": { color: O.text() },
32228
32228
  "& .disabled": {
32229
32229
  opacity: .7,
32230
32230
  cursor: "not-allowed",
32231
- "& :hover": { color: D.disabled() }
32231
+ "& :hover": { color: O.disabled() }
32232
32232
  },
32233
32233
  "& .isActive": {
32234
32234
  background: "var(--purple)",
@@ -32333,22 +32333,22 @@ var GL = (e) => {
32333
32333
  tableLayout: "fixed",
32334
32334
  width: "100%",
32335
32335
  borderCollapse: "collapse",
32336
- color: D.text(),
32337
- backgroundColor: D.background()
32336
+ color: O.text(),
32337
+ backgroundColor: O.background()
32338
32338
  },
32339
- "& table:not([border=\"1\"]) tr": { borderTop: `1px solid ${D.tableGridLight()}` },
32339
+ "& table:not([border=\"1\"]) tr": { borderTop: `1px solid ${O.tableGridLight()}` },
32340
32340
  "& td, th": {
32341
32341
  padding: ".6em 1em",
32342
32342
  textAlign: "center"
32343
32343
  },
32344
- "& table:not([border=\"1\"]) td, th": { border: `1px solid ${D.tableGridLight()}` },
32344
+ "& table:not([border=\"1\"]) td, th": { border: `1px solid ${O.tableGridLight()}` },
32345
32345
  ...n && { border: `2px solid ${e.palette.error.main} !important` }
32346
32346
  })), JL = M("div", { shouldForwardProp: (e) => !["disableScrollbar", "highlightShape"].includes(e) })(({ theme: e, disableScrollbar: t, highlightShape: n }) => ({
32347
32347
  position: "relative",
32348
32348
  padding: "0px",
32349
32349
  overflowY: "auto",
32350
- color: D.text(),
32351
- backgroundColor: n ? e.palette.action.selected : D.background(),
32350
+ color: O.text(),
32351
+ backgroundColor: n ? e.palette.action.selected : O.background(),
32352
32352
  ...t && {
32353
32353
  "&::-webkit-scrollbar": { display: "none" },
32354
32354
  scrollbarWidth: "none",
@@ -33685,9 +33685,9 @@ var yB = (e, t, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain:
33685
33685
  node: w,
33686
33686
  pos: 0,
33687
33687
  depth: 0
33688
- } : null, T = x ?? ee, te = !!x && y.depth >= 1 && y.depth - x.depth <= 1, ne = !!ee;
33689
- if ((te || ne) && T) {
33690
- if (T.node.type === p) return S && ne ? c().command(({ tr: e, dispatch: t }) => {
33688
+ } : null, T = x ?? ee, te = !!x && y.depth >= 1 && y.depth - x.depth <= 1, E = !!ee;
33689
+ if ((te || E) && T) {
33690
+ if (T.node.type === p) return S && E ? c().command(({ tr: e, dispatch: t }) => {
33691
33691
  let n = vB(e);
33692
33692
  return n ? (e.setSelection(n), t && t(e), !0) : !1;
33693
33693
  }).liftListItem(m).run() : l.liftListItem(m);
@@ -38313,8 +38313,8 @@ Ym.create({
38313
38313
  })) ?? null };
38314
38314
  }
38315
38315
  });
38316
- var cK = "placeholder", lK = new ea("tiptap__placeholder"), uK = 200;
38317
- function dK(e) {
38316
+ var cK = "placeholder", lK = new ea("tiptap__placeholder");
38317
+ function uK(e) {
38318
38318
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
38319
38319
  return o && u.push(l), Zu.node(i, i + a.nodeSize, {
38320
38320
  class: u.join(" "),
@@ -38326,156 +38326,198 @@ function dK(e) {
38326
38326
  }) : n
38327
38327
  });
38328
38328
  }
38329
- function fK({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38329
+ function dK(e, t) {
38330
+ return typeof e == "function" ? e(t) : e;
38331
+ }
38332
+ function fK({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
38333
+ let { anchor: s } = i, c = [], l = e.isEmpty;
38334
+ return r.nodesBetween(a, o, (r, i) => {
38335
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && rm(r);
38336
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(uK({
38337
+ editor: e,
38338
+ isEmptyDoc: l,
38339
+ dataAttribute: n,
38340
+ hasAnchor: a,
38341
+ placeholder: t.placeholder,
38342
+ classes: {
38343
+ emptyEditor: t.emptyEditorClass,
38344
+ emptyNode: dK(t.emptyNodeClass, {
38345
+ editor: e,
38346
+ node: r,
38347
+ pos: i,
38348
+ hasAnchor: a
38349
+ })
38350
+ },
38351
+ node: r,
38352
+ pos: i
38353
+ })), t.includeChildren;
38354
+ }), c;
38355
+ }
38356
+ function pK({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38330
38357
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
38331
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
38332
- emptyEditor: t.emptyEditorClass,
38333
- emptyNode: t.emptyNodeClass
38334
- };
38358
+ let { anchor: a } = i, o = [], s = e.isEmpty;
38335
38359
  if (t.showOnlyCurrent && !t.includeChildren) {
38336
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
38337
- if (l && l.type.isTextblock && rm(l)) {
38338
- let r = a >= u && a <= u + l.nodeSize;
38339
- o.push(dK({
38360
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
38361
+ if (c && c.type.isTextblock && rm(c)) {
38362
+ let r = a >= l && a <= l + c.nodeSize;
38363
+ o.push(uK({
38340
38364
  editor: e,
38341
38365
  isEmptyDoc: s,
38342
38366
  dataAttribute: n,
38343
38367
  hasAnchor: r,
38344
38368
  placeholder: t.placeholder,
38345
- classes: c,
38346
- node: l,
38347
- pos: u
38369
+ classes: {
38370
+ emptyEditor: t.emptyEditorClass,
38371
+ emptyNode: dK(t.emptyNodeClass, {
38372
+ editor: e,
38373
+ node: c,
38374
+ pos: l,
38375
+ hasAnchor: r
38376
+ })
38377
+ },
38378
+ node: c,
38379
+ pos: l
38348
38380
  }));
38349
38381
  }
38350
- } else {
38351
- let i = lK.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
38352
- r.nodesBetween(l, u, (r, i) => {
38353
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && rm(r);
38354
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(dK({
38355
- editor: e,
38356
- isEmptyDoc: s,
38357
- dataAttribute: n,
38358
- hasAnchor: l,
38359
- placeholder: t.placeholder,
38360
- classes: c,
38361
- node: r,
38362
- pos: i
38363
- })), t.includeChildren;
38364
- });
38365
- }
38382
+ } else o.push(...fK({
38383
+ editor: e,
38384
+ options: t,
38385
+ dataAttribute: n,
38386
+ doc: r,
38387
+ selection: i,
38388
+ from: 0,
38389
+ to: r.content.size
38390
+ }));
38366
38391
  return ed.create(r, o);
38367
38392
  }
38368
- function pK(e) {
38369
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38393
+ function mK(e, t) {
38394
+ let n = e.resolve(t);
38395
+ if (n.depth === 0) {
38396
+ let e = n.nodeAfter ?? n.nodeBefore;
38397
+ if (!e) return {
38398
+ from: t,
38399
+ to: t
38400
+ };
38401
+ let r = n.nodeAfter ? t : t - e.nodeSize;
38402
+ return {
38403
+ from: r,
38404
+ to: r + e.nodeSize
38405
+ };
38406
+ }
38407
+ let r = n.before(1);
38408
+ return {
38409
+ from: r,
38410
+ to: r + n.node(1).nodeSize
38411
+ };
38370
38412
  }
38371
- function mK(e) {
38372
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
38373
- return /auto|scroll|overlay/.test(n);
38413
+ function hK(e, t) {
38414
+ return {
38415
+ from: Math.max(0, t.from - 1),
38416
+ to: Math.min(e.content.size, t.to - 1)
38417
+ };
38374
38418
  }
38375
- function hK(e) {
38376
- let t = e;
38377
- for (; t;) {
38378
- if (mK(t)) return t;
38379
- let e = t.parentElement;
38380
- if (!e) {
38381
- let e = t.getRootNode();
38382
- if (e instanceof ShadowRoot) {
38383
- t = e.host;
38384
- continue;
38385
- }
38386
- return window;
38387
- }
38388
- t = e;
38419
+ function gK(e, t, n) {
38420
+ let r = [];
38421
+ return e.forEach((e, i) => {
38422
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
38423
+ s < n && c > t && r.push({
38424
+ from: a,
38425
+ to: o
38426
+ });
38427
+ }), r;
38428
+ }
38429
+ function _K(e) {
38430
+ if (e.length === 0) return [];
38431
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
38432
+ for (let e = 1; e < t.length; e += 1) {
38433
+ let r = n[n.length - 1], i = t[e];
38434
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
38389
38435
  }
38390
- return window;
38436
+ return n;
38391
38437
  }
38392
- function gK(e) {
38393
- return e === window ? {
38394
- top: 0,
38395
- bottom: window.innerHeight
38396
- } : e.getBoundingClientRect();
38438
+ function vK(e, t) {
38439
+ let n = gK(e, t.from, t.to);
38440
+ return n.push(hK(e, mK(e, t.from))), t.to > t.from ? n.push(hK(e, mK(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(hK(e, mK(e, Math.min(t.from + 1, e.content.size)))), n;
38397
38441
  }
38398
- function _K({ doc: e, view: t, scrollContainer: n }) {
38399
- let r = t.dom.getBoundingClientRect(), i = n ? gK(n) : {
38400
- top: 0,
38401
- bottom: window.innerHeight
38402
- }, a = Math.max(r.top, i.top) - uK, o = Math.min(r.bottom, i.bottom) + uK;
38403
- if (a >= o) return {
38404
- top: 0,
38405
- bottom: e.content.size
38406
- };
38407
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
38408
- left: s,
38409
- top: a + 2
38410
- }), l = t.posAtCoords({
38411
- left: s,
38412
- top: o - 2
38413
- });
38414
- return {
38415
- top: c ? c.pos : 0,
38416
- bottom: l ? l.pos : e.content.size
38417
- };
38442
+ function yK(e, t, n) {
38443
+ let r = [];
38444
+ if (e.docChanged) {
38445
+ let t = Kp(e);
38446
+ for (let e of t) r.push(...vK(n.doc, e.newRange));
38447
+ }
38448
+ return e.selectionSet && (r.push(hK(n.doc, mK(n.doc, e.mapping.map(t.selection.anchor)))), r.push(hK(n.doc, mK(n.doc, n.selection.anchor)))), _K(r);
38418
38449
  }
38419
- var vK = {
38420
- init() {
38421
- return {
38422
- topPos: null,
38423
- bottomPos: null
38424
- };
38425
- },
38426
- apply(e, t) {
38427
- let n = e.getMeta(lK);
38428
- return n?.positions ? {
38429
- topPos: n.positions.top,
38430
- bottomPos: n.positions.bottom
38431
- } : e.docChanged ? {
38432
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
38433
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
38434
- } : t;
38450
+ function bK(e, t, n) {
38451
+ let r = Math.max(0, Math.min(e, n.content.size));
38452
+ return {
38453
+ from: r,
38454
+ to: Math.max(r, Math.min(t, n.content.size))
38455
+ };
38456
+ }
38457
+ function xK({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
38458
+ let s = e;
38459
+ for (let e of t) {
38460
+ let { from: t, to: c } = bK(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
38461
+ l.length && (s = s.remove(l));
38462
+ let u = fK({
38463
+ editor: n,
38464
+ options: r,
38465
+ dataAttribute: i,
38466
+ doc: a,
38467
+ selection: o,
38468
+ from: t,
38469
+ to: c
38470
+ });
38471
+ u.length && (s = s.add(a, u));
38435
38472
  }
38436
- };
38437
- function yK(e) {
38438
- let t = hK(e.dom), n = () => {
38439
- let n = _K({
38440
- view: e,
38441
- doc: e.state.doc,
38442
- scrollContainer: t
38443
- }), r = lK.getState(e.state);
38444
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
38445
- let i = e.state.tr.setMeta(lK, { positions: n });
38446
- e.dispatch(i);
38447
- }, r = null, i = 0, a = () => {
38448
- r === null && (r = requestAnimationFrame(() => {
38449
- r = null;
38450
- let e = performance.now();
38451
- e - i >= 150 ? (i = e, n()) : a();
38452
- }));
38453
- };
38454
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
38455
- update(t, n) {
38456
- e.state.doc.content.size !== n.doc.content.size && a();
38473
+ return s;
38474
+ }
38475
+ function SK({ editor: e, options: t, dataAttribute: n }) {
38476
+ return {
38477
+ init(r, i) {
38478
+ return pK({
38479
+ editor: e,
38480
+ options: t,
38481
+ dataAttribute: n,
38482
+ doc: i.doc,
38483
+ selection: i.selection
38484
+ }) ?? ed.empty;
38457
38485
  },
38458
- destroy: () => {
38459
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
38486
+ apply(r, i, a, o) {
38487
+ return !r.docChanged && !r.selectionSet ? i : xK({
38488
+ decorations: i.map(r.mapping, r.doc),
38489
+ ranges: yK(r, a, o),
38490
+ editor: e,
38491
+ options: t,
38492
+ dataAttribute: n,
38493
+ doc: o.doc,
38494
+ selection: o.selection
38495
+ });
38460
38496
  }
38461
38497
  };
38462
38498
  }
38463
- function bK({ editor: e, options: t }) {
38464
- let n = t.dataAttribute ? `data-${pK(t.dataAttribute)}` : `data-${cK}`;
38499
+ function CK(e) {
38500
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38501
+ }
38502
+ function wK({ editor: e, options: t }) {
38503
+ let n = t.dataAttribute ? `data-${CK(t.dataAttribute)}` : `data-${cK}`, r = t.showOnlyCurrent && !t.includeChildren;
38465
38504
  return new V({
38466
38505
  key: lK,
38467
- state: vK,
38468
- view: yK,
38469
- props: { decorations: ({ doc: r, selection: i }) => fK({
38506
+ ...r ? {} : { state: SK({
38507
+ editor: e,
38508
+ options: t,
38509
+ dataAttribute: n
38510
+ }) },
38511
+ props: { decorations: r ? ({ doc: r, selection: i }) => pK({
38470
38512
  editor: e,
38471
38513
  options: t,
38472
38514
  dataAttribute: n,
38473
38515
  doc: r,
38474
38516
  selection: i
38475
- }) }
38517
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? ed.empty : lK.getState(n) ?? ed.empty }
38476
38518
  });
38477
38519
  }
38478
- var xK = Ym.create({
38520
+ var TK = Ym.create({
38479
38521
  name: "placeholder",
38480
38522
  addOptions() {
38481
38523
  return {
@@ -38489,12 +38531,25 @@ var xK = Ym.create({
38489
38531
  };
38490
38532
  },
38491
38533
  addProseMirrorPlugins() {
38492
- return [bK({
38534
+ return [wK({
38493
38535
  editor: this.editor,
38494
38536
  options: this.options
38495
38537
  })];
38496
38538
  }
38497
38539
  });
38540
+ function EK(e, t) {
38541
+ return !e.selection.empty && !im(e.selection) && t.isEditable;
38542
+ }
38543
+ function DK(e, t) {
38544
+ return EK(e, t) && !t.isFocused && !t.view.dragging;
38545
+ }
38546
+ function OK() {
38547
+ var e;
38548
+ (e = window.getSelection()) == null || e.removeAllRanges();
38549
+ }
38550
+ function kK(e) {
38551
+ e.focus();
38552
+ }
38498
38553
  Ym.create({
38499
38554
  name: "selection",
38500
38555
  addOptions() {
@@ -38504,13 +38559,25 @@ Ym.create({
38504
38559
  let { editor: e, options: t } = this;
38505
38560
  return [new V({
38506
38561
  key: new ea("selection"),
38507
- props: { decorations(n) {
38508
- return n.selection.empty || e.isFocused || !e.isEditable || im(n.selection) || e.view.dragging ? null : ed.create(n.doc, [Zu.inline(n.selection.from, n.selection.to, { class: t.className })]);
38509
- } }
38562
+ props: {
38563
+ decorations(n) {
38564
+ return DK(n, e) ? ed.create(n.doc, [Zu.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
38565
+ },
38566
+ handleDOMEvents: {
38567
+ blur(t) {
38568
+ return EK(t.state, e) && OK(), !1;
38569
+ },
38570
+ focus(t) {
38571
+ return EK(t.state, e) && requestAnimationFrame(() => {
38572
+ !e.isDestroyed && t.hasFocus() && kK(t);
38573
+ }), !1;
38574
+ }
38575
+ }
38576
+ }
38510
38577
  })];
38511
38578
  }
38512
38579
  });
38513
- function SK({ types: e, node: t }) {
38580
+ function AK({ types: e, node: t }) {
38514
38581
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
38515
38582
  }
38516
38583
  Ym.create({
@@ -38532,7 +38599,7 @@ Ym.create({
38532
38599
  state: {
38533
38600
  init: (e, t) => {
38534
38601
  let r = t.tr.doc.lastChild;
38535
- return !SK({
38602
+ return !AK({
38536
38603
  node: r,
38537
38604
  types: n
38538
38605
  });
@@ -38540,7 +38607,7 @@ Ym.create({
38540
38607
  apply: (e, t) => {
38541
38608
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
38542
38609
  let r = e.doc.lastChild;
38543
- return !SK({
38610
+ return !AK({
38544
38611
  node: r,
38545
38612
  types: n
38546
38613
  });
@@ -38575,7 +38642,7 @@ Ym.create({
38575
38642
  };
38576
38643
  }
38577
38644
  });
38578
- var CK = Vm.create({
38645
+ var jK = Vm.create({
38579
38646
  name: "superscript",
38580
38647
  addOptions() {
38581
38648
  return { HTMLAttributes: {} };
@@ -38605,7 +38672,7 @@ var CK = Vm.create({
38605
38672
  addKeyboardShortcuts() {
38606
38673
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
38607
38674
  }
38608
- }), wK = Vm.create({
38675
+ }), MK = Vm.create({
38609
38676
  name: "subscript",
38610
38677
  addOptions() {
38611
38678
  return { HTMLAttributes: {} };
@@ -38635,7 +38702,7 @@ var CK = Vm.create({
38635
38702
  addKeyboardShortcuts() {
38636
38703
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
38637
38704
  }
38638
- }), TK = Ym.create({
38705
+ }), NK = Ym.create({
38639
38706
  name: "textAlign",
38640
38707
  addOptions() {
38641
38708
  return {
@@ -38677,7 +38744,7 @@ var CK = Vm.create({
38677
38744
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
38678
38745
  };
38679
38746
  }
38680
- }), EK = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, DK = Th.create({
38747
+ }), PK = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, FK = Th.create({
38681
38748
  name: "image",
38682
38749
  addOptions() {
38683
38750
  return {
@@ -38770,7 +38837,7 @@ var CK = Vm.create({
38770
38837
  },
38771
38838
  addInputRules() {
38772
38839
  return [dh({
38773
- find: EK,
38840
+ find: PK,
38774
38841
  type: this.type,
38775
38842
  getAttributes: (e) => {
38776
38843
  let [, , t, n, r] = e;
@@ -38782,17 +38849,17 @@ var CK = Vm.create({
38782
38849
  }
38783
38850
  })];
38784
38851
  }
38785
- }), OK = xK, kK = {
38852
+ }), IK = TK, LK = {
38786
38853
  position: "bottom",
38787
38854
  alignment: "left",
38788
38855
  alwaysVisible: !1,
38789
38856
  showDone: !0,
38790
38857
  doneOn: "blur"
38791
- }, AK = {
38858
+ }, RK = {
38792
38859
  options: {},
38793
38860
  respAreaToolbar: () => {},
38794
38861
  onHandleAreaChange: () => {}
38795
- }, jK = [
38862
+ }, zK = [
38796
38863
  "bold",
38797
38864
  "italic",
38798
38865
  "underline",
@@ -38814,7 +38881,7 @@ var CK = Vm.create({
38814
38881
  "h3",
38815
38882
  "undo",
38816
38883
  "redo"
38817
- ], MK = {
38884
+ ], BK = {
38818
38885
  "--white": "#fff",
38819
38886
  "--black": "#2e2b29",
38820
38887
  "--black-contrast": "#110f0e",
@@ -38833,14 +38900,18 @@ var CK = Vm.create({
38833
38900
  "--red": "#ff5c33",
38834
38901
  "--red-light": "#ffebe5",
38835
38902
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
38836
- }, NK = (e) => {
38903
+ }, VK = (e) => ({
38904
+ spellcheck: e ? "true" : "false",
38905
+ autocorrect: e ? "on" : "off",
38906
+ autocapitalize: e ? "on" : "off"
38907
+ }), HK = (e) => {
38837
38908
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = Dt([]), [a, o] = Dt(!1), { toolbarOpts: s } = e, c = bt((e) => {
38838
38909
  i((t) => {
38839
38910
  let n = t.filter((t) => t.pos !== e);
38840
38911
  return n.length === 0 && o(!1), n;
38841
38912
  });
38842
38913
  }, [i]), l = {
38843
- ...kK,
38914
+ ...LK,
38844
38915
  ...s
38845
38916
  }, u = bt((t) => {
38846
38917
  let n = t.getHTML();
@@ -38851,13 +38922,13 @@ var CK = Vm.create({
38851
38922
  e.onDone,
38852
38923
  l.doneOn
38853
38924
  ]), d = Tt(() => ({
38854
- ...AK,
38925
+ ...RK,
38855
38926
  ...e.responseAreaProps,
38856
38927
  onInlineDropdownToolbarClose: u
38857
38928
  }), [e.responseAreaProps, u]), f = Tt(() => {
38858
38929
  let { customPlugins: t, ...n } = e.pluginProps || {};
38859
38930
  t ||= [];
38860
- let r = (e.activePlugins || jK)?.filter((e) => {
38931
+ let r = (e.activePlugins || zK)?.filter((e) => {
38861
38932
  let t = Wt[e] || e, r = n[t] || {};
38862
38933
  return !r || !r.disabled;
38863
38934
  });
@@ -38875,103 +38946,112 @@ var CK = Vm.create({
38875
38946
  setKeypadInteraction: {},
38876
38947
  media: {}
38877
38948
  });
38878
- }, [e, d.type]), p = LC({
38879
- extensions: [
38880
- TK.configure({
38881
- types: [
38882
- "heading",
38883
- "paragraph",
38884
- "div",
38885
- "headingParagraph",
38886
- "h1",
38887
- "h2",
38888
- "h3",
38889
- "h4",
38890
- "h5",
38891
- "h6",
38892
- "td",
38893
- "th"
38894
- ],
38895
- alignments: [
38896
- "left",
38897
- "right",
38898
- "center",
38899
- "justify"
38900
- ]
38901
- }),
38902
- oK,
38903
- sK.configure({ limit: e.charactersLimit || 1e6 }),
38904
- XG.configure({ trailingNode: {
38949
+ }, [e, d.type]), p = [
38950
+ NK.configure({
38951
+ types: [
38952
+ "heading",
38953
+ "paragraph",
38954
+ "div",
38955
+ "headingParagraph",
38956
+ "h1",
38957
+ "h2",
38958
+ "h3",
38959
+ "h4",
38960
+ "h5",
38961
+ "h6",
38962
+ "td",
38963
+ "th"
38964
+ ],
38965
+ alignments: [
38966
+ "left",
38967
+ "right",
38968
+ "center",
38969
+ "justify"
38970
+ ]
38971
+ }),
38972
+ oK,
38973
+ sK.configure({ limit: e.charactersLimit || 1e6 }),
38974
+ XG.configure({
38975
+ trailingNode: {
38905
38976
  node: "paragraph",
38906
38977
  notAfter: ["paragraph", "div"]
38907
- } }),
38908
- ZP,
38909
- rS,
38910
- QP,
38911
- iS,
38912
- aS,
38913
- OK.configure({
38914
- placeholder: e.placeholder,
38915
- showOnlyWhenEditable: !0,
38916
- showOnlyCurrent: !1,
38917
- includeChildren: !0
38918
- }),
38919
- $x,
38920
- Lx,
38921
- nS,
38922
- tS,
38923
- yk.configure(d),
38924
- bk.configure(d),
38925
- Sk.configure(d),
38926
- Ck.configure(d),
38927
- xk.configure(d),
38928
- Rj.configure({
38929
- toolbarOpts: l,
38930
- math: e.pluginProps?.math || {}
38931
- }),
38932
- wK,
38933
- CK,
38934
- DK,
38935
- XM.configure({
38936
- toolbarOpts: l,
38937
- imageHandling: {
38938
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
38939
- onDone: (t) => e.onDone?.(t.getHTML()),
38940
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
38941
- let { src: n } = t.attrs;
38942
- e.imageSupport.delete(n, (e) => {
38943
- c(t.pos);
38944
- });
38945
- }),
38946
- insertImageRequested: e.imageSupport && ((t, n, r) => {
38947
- let [o, s] = n, l = (n) => {
38948
- let r;
38949
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
38950
- };
38951
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
38952
- let n = r(l), i = tt(() => {
38953
- let e = () => window.removeEventListener("focus", i);
38954
- if (!t._insertingImage) {
38955
- e();
38956
- return;
38957
- }
38958
- c(s), t._insertingImage = !1, e();
38959
- }, 500);
38960
- window.addEventListener("focus", i), e.imageSupport.add(n);
38961
- })();
38962
- }),
38963
- maxImageWidth: e.maxImageWidth,
38964
- maxImageHeight: e.maxImageHeight
38965
- },
38966
- limit: 3
38967
- }),
38968
- $N.configure({ uploadSoundSupport: e.uploadSoundSupport }),
38969
- gP.configure({ extraCSSRules: e.extraCSSRules })
38970
- ],
38978
+ },
38979
+ link: {
38980
+ autolink: !1,
38981
+ linkOnPaste: !1
38982
+ }
38983
+ }),
38984
+ ZP,
38985
+ rS,
38986
+ QP,
38987
+ iS,
38988
+ aS,
38989
+ IK.configure({
38990
+ placeholder: e.placeholder,
38991
+ showOnlyWhenEditable: !0,
38992
+ showOnlyCurrent: !1,
38993
+ includeChildren: !0
38994
+ }),
38995
+ $x,
38996
+ Lx,
38997
+ nS,
38998
+ tS,
38999
+ yk.configure(d),
39000
+ bk.configure(d),
39001
+ Sk.configure(d),
39002
+ Ck.configure(d),
39003
+ xk.configure(d),
39004
+ Rj.configure({
39005
+ toolbarOpts: l,
39006
+ math: e.pluginProps?.math || {}
39007
+ }),
39008
+ MK,
39009
+ jK,
39010
+ FK,
39011
+ XM.configure({
39012
+ toolbarOpts: l,
39013
+ imageHandling: {
39014
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39015
+ onDone: (t) => e.onDone?.(t.getHTML()),
39016
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39017
+ let { src: n } = t.attrs;
39018
+ e.imageSupport.delete(n, (e) => {
39019
+ c(t.pos);
39020
+ });
39021
+ }),
39022
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39023
+ let [o, s] = n, l = (n) => {
39024
+ let r;
39025
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39026
+ };
39027
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39028
+ let n = r(l), i = tt(() => {
39029
+ let e = () => window.removeEventListener("focus", i);
39030
+ if (!t._insertingImage) {
39031
+ e();
39032
+ return;
39033
+ }
39034
+ c(s), t._insertingImage = !1, e();
39035
+ }, 500);
39036
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39037
+ })();
39038
+ }),
39039
+ maxImageWidth: e.maxImageWidth,
39040
+ maxImageHeight: e.maxImageHeight
39041
+ },
39042
+ limit: 3
39043
+ }),
39044
+ $N.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39045
+ gP.configure({ extraCSSRules: e.extraCSSRules })
39046
+ ], m = e.spellCheck !== !1, h = LC({
39047
+ extensions: p,
38971
39048
  immediatelyRender: !1,
38972
- editorProps: { handleKeyDown(t, n) {
38973
- return e.onKeyDown ? e.onKeyDown(n) : !1;
38974
- } },
39049
+ editorProps: {
39050
+ attributes: VK(m),
39051
+ handleKeyDown(t, n) {
39052
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39053
+ }
39054
+ },
38975
39055
  editable: !e.disabled,
38976
39056
  content: Yt(e.markup),
38977
39057
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -38982,22 +39062,29 @@ var CK = Vm.create({
38982
39062
  }
38983
39063
  }, [e.charactersLimit]);
38984
39064
  Ct(() => {
38985
- e.editorRef && e.editorRef(p);
38986
- }, [e.editorRef, p]), Ct(() => {
38987
- p?.setEditable(!e.disabled);
38988
- }, [e.disabled, p]), Ct(() => {
38989
- if (!p) return;
39065
+ e.editorRef && e.editorRef(h);
39066
+ }, [e.editorRef, h]), Ct(() => {
39067
+ h?.setEditable(!e.disabled);
39068
+ }, [e.disabled, h]), Ct(() => {
39069
+ if (!h) return;
39070
+ let e = h.options?.editorProps, t = VK(m);
39071
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39072
+ ...e,
39073
+ attributes: t
39074
+ } });
39075
+ }, [m, h]), Ct(() => {
39076
+ if (!h) return;
38990
39077
  let t = Yt(e.markup);
38991
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
38992
- }, [e.markup, p]), Ct(() => {
38993
- Object.entries(MK).forEach(([e, t]) => {
39078
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39079
+ }, [e.markup, h]), Ct(() => {
39080
+ Object.entries(BK).forEach(([e, t]) => {
38994
39081
  document.documentElement.style.setProperty(e, t);
38995
39082
  });
38996
39083
  }, []);
38997
- let m = NC({
38998
- editor: p,
39084
+ let g = NC({
39085
+ editor: h,
38999
39086
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39000
- }), h = Tt(() => {
39087
+ }), _ = Tt(() => {
39001
39088
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39002
39089
  return {
39003
39090
  width: $P(n),
@@ -39012,20 +39099,20 @@ var CK = Vm.create({
39012
39099
  ...e,
39013
39100
  activePlugins: f,
39014
39101
  toolbarOpts: l,
39015
- editorState: m,
39016
- editor: p,
39017
- children: p && /* @__PURE__ */ P(PK, {
39102
+ editorState: g,
39103
+ editor: h,
39104
+ children: h && /* @__PURE__ */ P(UK, {
39018
39105
  style: {
39019
- minHeight: h.minHeight,
39020
- height: h.height,
39021
- maxHeight: h.maxHeight
39106
+ minHeight: _.minHeight,
39107
+ height: _.height,
39108
+ maxHeight: _.maxHeight
39022
39109
  },
39023
39110
  showParagraph: t && !t.disabled,
39024
39111
  separateParagraph: n && !n.disabled,
39025
- editor: p
39112
+ editor: h
39026
39113
  })
39027
39114
  });
39028
- }, PK = M(AC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39115
+ }, UK = M(AC, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39029
39116
  display: "flex",
39030
39117
  outline: "none !important",
39031
39118
  "& .ProseMirror": {
@@ -39053,7 +39140,7 @@ var CK = Vm.create({
39053
39140
  } },
39054
39141
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39055
39142
  }
39056
- })), FK = NK, IK = class e extends CustomEvent {
39143
+ })), WK = HK, GK = class e extends CustomEvent {
39057
39144
  static {
39058
39145
  this.TYPE = "model.updated";
39059
39146
  }
@@ -39066,7 +39153,7 @@ var CK = Vm.create({
39066
39153
  }
39067
39154
  }), this.update = t, this.reset = n;
39068
39155
  }
39069
- }, LK = class e extends CustomEvent {
39156
+ }, KK = class e extends CustomEvent {
39070
39157
  static {
39071
39158
  this.TYPE = "delete.image";
39072
39159
  }
@@ -39079,7 +39166,7 @@ var CK = Vm.create({
39079
39166
  }
39080
39167
  }), this.src = t, this.done = n;
39081
39168
  }
39082
- }, RK = class e extends CustomEvent {
39169
+ }, qK = class e extends CustomEvent {
39083
39170
  static {
39084
39171
  this.TYPE = "insert.image";
39085
39172
  }
@@ -39089,7 +39176,7 @@ var CK = Vm.create({
39089
39176
  detail: t
39090
39177
  }), this.handler = t;
39091
39178
  }
39092
- }, zK = class e extends CustomEvent {
39179
+ }, JK = class e extends CustomEvent {
39093
39180
  static {
39094
39181
  this.TYPE = "delete.sound";
39095
39182
  }
@@ -39102,7 +39189,7 @@ var CK = Vm.create({
39102
39189
  }
39103
39190
  }), this.src = t, this.done = n;
39104
39191
  }
39105
- }, BK = class e extends CustomEvent {
39192
+ }, YK = class e extends CustomEvent {
39106
39193
  static {
39107
39194
  this.TYPE = "insert.sound";
39108
39195
  }
@@ -39115,7 +39202,7 @@ var CK = Vm.create({
39115
39202
  };
39116
39203
  //#endregion
39117
39204
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/switchBaseClasses.js
39118
- function VK(e) {
39205
+ function XK(e) {
39119
39206
  return p("PrivateSwitchBase", e);
39120
39207
  }
39121
39208
  k("PrivateSwitchBase", [
@@ -39128,7 +39215,7 @@ k("PrivateSwitchBase", [
39128
39215
  ]);
39129
39216
  //#endregion
39130
39217
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/SwitchBase.js
39131
- var HK = (e) => {
39218
+ var ZK = (e) => {
39132
39219
  let { classes: t, checked: n, disabled: r, edge: i } = e;
39133
39220
  return Ye({
39134
39221
  root: [
@@ -39138,8 +39225,8 @@ var HK = (e) => {
39138
39225
  i && `edge${A(i)}`
39139
39226
  ],
39140
39227
  input: ["input"]
39141
- }, VK, t);
39142
- }, UK = M(i, { name: "MuiSwitchBase" })({
39228
+ }, XK, t);
39229
+ }, QK = M(i, { name: "MuiSwitchBase" })({
39143
39230
  padding: 9,
39144
39231
  borderRadius: "50%",
39145
39232
  variants: [
@@ -39166,7 +39253,7 @@ var HK = (e) => {
39166
39253
  style: { marginRight: -12 }
39167
39254
  }
39168
39255
  ]
39169
- }), WK = M("input", {
39256
+ }), $K = M("input", {
39170
39257
  name: "MuiSwitchBase",
39171
39258
  shouldForwardProp: Ce
39172
39259
  })({
@@ -39180,29 +39267,29 @@ var HK = (e) => {
39180
39267
  margin: 0,
39181
39268
  padding: 0,
39182
39269
  zIndex: 1
39183
- }), GK = /*#__PURE__*/ N.forwardRef(function(e, t) {
39270
+ }), eq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39184
39271
  let { autoFocus: n, checked: r, checkedIcon: i, defaultChecked: a, disabled: o, disableFocusRipple: s = !1, edge: c = !1, icon: l, id: u, inputProps: d, inputRef: f, name: p, onBlur: m, onChange: h, onFocus: g, readOnly: _, required: v = !1, tabIndex: y, type: x, value: S, slots: C = {}, slotProps: w = {}, ...ee } = e, [T, te] = Bt({
39185
39272
  controlled: r,
39186
39273
  default: !!a,
39187
39274
  name: "SwitchBase",
39188
39275
  state: "checked"
39189
- }), ne = O(), re = (e) => {
39190
- g && g(e), ne && ne.onFocus && ne.onFocus(e);
39276
+ }), E = ae(), ne = (e) => {
39277
+ g && g(e), E && E.onFocus && E.onFocus(e);
39278
+ }, re = (e) => {
39279
+ m && m(e), E && E.onBlur && E.onBlur(e);
39191
39280
  }, ie = (e) => {
39192
- m && m(e), ne && ne.onBlur && ne.onBlur(e);
39193
- }, ae = (e) => {
39194
39281
  if (e.nativeEvent.defaultPrevented || _) return;
39195
39282
  let t = e.target.checked;
39196
39283
  te(t), h && h(e, t);
39197
- }, E = o;
39198
- ne && E === void 0 && (E = ne.disabled);
39199
- let D = x === "checkbox" || x === "radio", oe = {
39284
+ }, D = o;
39285
+ E && D === void 0 && (D = E.disabled);
39286
+ let O = x === "checkbox" || x === "radio", oe = {
39200
39287
  ...e,
39201
39288
  checked: T,
39202
- disabled: E,
39289
+ disabled: D,
39203
39290
  disableFocusRipple: s,
39204
39291
  edge: c
39205
- }, k = HK(oe), se = {
39292
+ }, k = ZK(oe), se = {
39206
39293
  slots: C,
39207
39294
  slotProps: {
39208
39295
  input: d,
@@ -39210,7 +39297,7 @@ var HK = (e) => {
39210
39297
  }
39211
39298
  }, [A, ce] = b("root", {
39212
39299
  ref: t,
39213
- elementType: UK,
39300
+ elementType: QK,
39214
39301
  className: k.root,
39215
39302
  shouldForwardComponentProp: !0,
39216
39303
  externalForwardedProps: {
@@ -39221,10 +39308,10 @@ var HK = (e) => {
39221
39308
  getSlotProps: (e) => ({
39222
39309
  ...e,
39223
39310
  onFocus: (t) => {
39224
- e.onFocus?.(t), re(t);
39311
+ e.onFocus?.(t), ne(t);
39225
39312
  },
39226
39313
  onBlur: (t) => {
39227
- e.onBlur?.(t), ie(t);
39314
+ e.onBlur?.(t), re(t);
39228
39315
  }
39229
39316
  }),
39230
39317
  ownerState: oe,
@@ -39236,13 +39323,13 @@ var HK = (e) => {
39236
39323
  }
39237
39324
  }), [le, ue] = b("input", {
39238
39325
  ref: f,
39239
- elementType: WK,
39326
+ elementType: $K,
39240
39327
  className: k.input,
39241
39328
  externalForwardedProps: se,
39242
39329
  getSlotProps: (e) => ({
39243
39330
  ...e,
39244
39331
  onChange: (t) => {
39245
- e.onChange?.(t), ae(t);
39332
+ e.onChange?.(t), ie(t);
39246
39333
  }
39247
39334
  }),
39248
39335
  ownerState: oe,
@@ -39250,8 +39337,8 @@ var HK = (e) => {
39250
39337
  autoFocus: n,
39251
39338
  checked: r,
39252
39339
  defaultChecked: a,
39253
- disabled: E,
39254
- id: D ? u : void 0,
39340
+ disabled: D,
39341
+ id: O ? u : void 0,
39255
39342
  name: p,
39256
39343
  readOnly: _,
39257
39344
  required: v,
@@ -39264,13 +39351,13 @@ var HK = (e) => {
39264
39351
  ...ce,
39265
39352
  children: [/*#__PURE__*/ P(le, { ...ue }), T ? i : l]
39266
39353
  });
39267
- }), KK = o(/*#__PURE__*/ P("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), qK = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), JK = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
39354
+ }), tq = o(/*#__PURE__*/ P("path", { d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" }), "CheckBoxOutlineBlank"), nq = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }), "CheckBox"), rq = o(/*#__PURE__*/ P("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z" }), "IndeterminateCheckBox");
39268
39355
  //#endregion
39269
39356
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
39270
- function YK(e) {
39357
+ function iq(e) {
39271
39358
  return p("MuiCheckbox", e);
39272
39359
  }
39273
- var XK = k("MuiCheckbox", [
39360
+ var aq = k("MuiCheckbox", [
39274
39361
  "root",
39275
39362
  "checked",
39276
39363
  "disabled",
@@ -39279,18 +39366,18 @@ var XK = k("MuiCheckbox", [
39279
39366
  "colorSecondary",
39280
39367
  "sizeSmall",
39281
39368
  "sizeMedium"
39282
- ]), ZK = (e) => {
39369
+ ]), oq = (e) => {
39283
39370
  let { classes: t, indeterminate: n, color: r, size: i } = e, a = Ye({ root: [
39284
39371
  "root",
39285
39372
  n && "indeterminate",
39286
39373
  `color${A(r)}`,
39287
39374
  `size${A(i)}`
39288
- ] }, YK, t);
39375
+ ] }, iq, t);
39289
39376
  return {
39290
39377
  ...t,
39291
39378
  ...a
39292
39379
  };
39293
- }, QK = M(GK, {
39380
+ }, sq = M(eq, {
39294
39381
  shouldForwardProp: (e) => Ce(e) || e === "classes",
39295
39382
  name: "MuiCheckbox",
39296
39383
  slot: "Root",
@@ -39323,8 +39410,8 @@ var XK = k("MuiCheckbox", [
39323
39410
  ...Object.entries(e.palette).filter(De()).map(([t]) => ({
39324
39411
  props: { color: t },
39325
39412
  style: {
39326
- [`&.${XK.checked}, &.${XK.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39327
- [`&.${XK.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39413
+ [`&.${aq.checked}, &.${aq.indeterminate}`]: { color: (e.vars || e).palette[t].main },
39414
+ [`&.${aq.disabled}`]: { color: (e.vars || e).palette.action.disabled }
39328
39415
  }
39329
39416
  })),
39330
39417
  {
@@ -39332,19 +39419,19 @@ var XK = k("MuiCheckbox", [
39332
39419
  style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
39333
39420
  }
39334
39421
  ]
39335
- }))), $K = /*#__PURE__*/ P(qK, {}), eq = /*#__PURE__*/ P(KK, {}), tq = /*#__PURE__*/ P(JK, {}), nq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39422
+ }))), cq = /*#__PURE__*/ P(nq, {}), lq = /*#__PURE__*/ P(tq, {}), uq = /*#__PURE__*/ P(rq, {}), dq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39336
39423
  let n = ye({
39337
39424
  props: e,
39338
39425
  name: "MuiCheckbox"
39339
- }), { checkedIcon: r = $K, color: i = "primary", icon: a = eq, indeterminate: o = !1, indeterminateIcon: s = tq, inputProps: c, size: l = "medium", disableRipple: u = !1, className: f, slots: p = {}, slotProps: h = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
39426
+ }), { checkedIcon: r = cq, color: i = "primary", icon: a = lq, indeterminate: o = !1, indeterminateIcon: s = uq, inputProps: c, size: l = "medium", disableRipple: u = !1, className: f, slots: p = {}, slotProps: h = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
39340
39427
  ...n,
39341
39428
  disableRipple: u,
39342
39429
  color: i,
39343
39430
  indeterminate: o,
39344
39431
  size: l
39345
- }, x = ZK(y), S = h.input ?? c, [C, w] = b("root", {
39432
+ }, x = oq(y), S = h.input ?? c, [C, w] = b("root", {
39346
39433
  ref: t,
39347
- elementType: QK,
39434
+ elementType: sq,
39348
39435
  className: d(x.root, f),
39349
39436
  shouldForwardComponentProp: !0,
39350
39437
  externalForwardedProps: {
@@ -39372,10 +39459,10 @@ var XK = k("MuiCheckbox", [
39372
39459
  });
39373
39460
  //#endregion
39374
39461
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
39375
- function rq(e) {
39462
+ function fq(e) {
39376
39463
  return p("MuiFormControlLabel", e);
39377
39464
  }
39378
- var iq = k("MuiFormControlLabel", [
39465
+ var pq = k("MuiFormControlLabel", [
39379
39466
  "root",
39380
39467
  "labelPlacementStart",
39381
39468
  "labelPlacementTop",
@@ -39385,7 +39472,7 @@ var iq = k("MuiFormControlLabel", [
39385
39472
  "error",
39386
39473
  "required",
39387
39474
  "asterisk"
39388
- ]), aq = (e) => {
39475
+ ]), mq = (e) => {
39389
39476
  let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
39390
39477
  return Ye({
39391
39478
  root: [
@@ -39397,14 +39484,14 @@ var iq = k("MuiFormControlLabel", [
39397
39484
  ],
39398
39485
  label: ["label", n && "disabled"],
39399
39486
  asterisk: ["asterisk", i && "error"]
39400
- }, rq, t);
39401
- }, oq = M("label", {
39487
+ }, fq, t);
39488
+ }, hq = M("label", {
39402
39489
  name: "MuiFormControlLabel",
39403
39490
  slot: "Root",
39404
39491
  overridesResolver: (e, t) => {
39405
39492
  let { ownerState: n } = e;
39406
39493
  return [
39407
- { [`& .${iq.label}`]: t.label },
39494
+ { [`& .${pq.label}`]: t.label },
39408
39495
  t.root,
39409
39496
  t[`labelPlacement${A(n.labelPlacement)}`]
39410
39497
  ];
@@ -39417,8 +39504,8 @@ var iq = k("MuiFormControlLabel", [
39417
39504
  WebkitTapHighlightColor: "transparent",
39418
39505
  marginLeft: -11,
39419
39506
  marginRight: 16,
39420
- [`&.${iq.disabled}`]: { cursor: "default" },
39421
- [`& .${iq.label}`]: { [`&.${iq.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
39507
+ [`&.${pq.disabled}`]: { cursor: "default" },
39508
+ [`& .${pq.label}`]: { [`&.${pq.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
39422
39509
  variants: [
39423
39510
  {
39424
39511
  props: { labelPlacement: "start" },
@@ -39440,14 +39527,14 @@ var iq = k("MuiFormControlLabel", [
39440
39527
  style: { marginLeft: 16 }
39441
39528
  }
39442
39529
  ]
39443
- }))), sq = M("span", {
39530
+ }))), gq = M("span", {
39444
39531
  name: "MuiFormControlLabel",
39445
39532
  slot: "Asterisk"
39446
- })(j(({ theme: e }) => ({ [`&.${iq.error}`]: { color: (e.vars || e).palette.error.main } }))), cq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39533
+ })(j(({ theme: e }) => ({ [`&.${pq.error}`]: { color: (e.vars || e).palette.error.main } }))), _q = /*#__PURE__*/ N.forwardRef(function(e, t) {
39447
39534
  let n = ye({
39448
39535
  props: e,
39449
39536
  name: "MuiFormControlLabel"
39450
- }), { checked: r, className: i, componentsProps: a = {}, control: o, disabled: s, disableTypography: c, inputRef: l, label: u, labelPlacement: f = "end", name: p, onChange: m, required: h, slots: g = {}, slotProps: _ = {}, value: v, ...y } = n, x = O(), S = s ?? o.props.disabled ?? x?.disabled, C = h ?? o.props.required, w = {
39537
+ }), { checked: r, className: i, componentsProps: a = {}, control: o, disabled: s, disableTypography: c, inputRef: l, label: u, labelPlacement: f = "end", name: p, onChange: m, required: h, slots: g = {}, slotProps: _ = {}, value: v, ...y } = n, x = ae(), S = s ?? o.props.disabled ?? x?.disabled, C = h ?? o.props.required, w = {
39451
39538
  disabled: S,
39452
39539
  required: C
39453
39540
  };
@@ -39470,7 +39557,7 @@ var iq = k("MuiFormControlLabel", [
39470
39557
  labelPlacement: f,
39471
39558
  required: C,
39472
39559
  error: ee.error
39473
- }, te = aq(T), [ne, re] = b("typography", {
39560
+ }, te = mq(T), [E, ne] = b("typography", {
39474
39561
  elementType: Nk,
39475
39562
  externalForwardedProps: {
39476
39563
  slots: g,
@@ -39480,31 +39567,31 @@ var iq = k("MuiFormControlLabel", [
39480
39567
  }
39481
39568
  },
39482
39569
  ownerState: T
39483
- }), ie = u;
39484
- return ie != null && ie.type !== Nk && !c && (ie = /*#__PURE__*/ P(ne, {
39570
+ }), re = u;
39571
+ return re != null && re.type !== Nk && !c && (re = /*#__PURE__*/ P(E, {
39485
39572
  component: "span",
39486
- ...re,
39487
- className: d(te.label, re?.className),
39488
- children: ie
39489
- })), /*#__PURE__*/ F(oq, {
39573
+ ...ne,
39574
+ className: d(te.label, ne?.className),
39575
+ children: re
39576
+ })), /*#__PURE__*/ F(hq, {
39490
39577
  className: d(te.root, i),
39491
39578
  ownerState: T,
39492
39579
  ref: t,
39493
39580
  ...y,
39494
- children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [ie, /*#__PURE__*/ F(sq, {
39581
+ children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [re, /*#__PURE__*/ F(gq, {
39495
39582
  ownerState: T,
39496
39583
  "aria-hidden": !0,
39497
39584
  className: te.asterisk,
39498
39585
  children: [" ", "*"]
39499
- })] }) : ie]
39586
+ })] }) : re]
39500
39587
  });
39501
39588
  });
39502
39589
  //#endregion
39503
39590
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
39504
- function lq(e) {
39591
+ function vq(e) {
39505
39592
  return p("MuiInputAdornment", e);
39506
39593
  }
39507
- var uq = k("MuiInputAdornment", [
39594
+ var yq = k("MuiInputAdornment", [
39508
39595
  "root",
39509
39596
  "filled",
39510
39597
  "standard",
@@ -39514,7 +39601,7 @@ var uq = k("MuiInputAdornment", [
39514
39601
  "disablePointerEvents",
39515
39602
  "hiddenLabel",
39516
39603
  "sizeSmall"
39517
- ]), dq, fq = (e, t) => {
39604
+ ]), bq, xq = (e, t) => {
39518
39605
  let { ownerState: n } = e;
39519
39606
  return [
39520
39607
  t.root,
@@ -39522,7 +39609,7 @@ var uq = k("MuiInputAdornment", [
39522
39609
  n.disablePointerEvents === !0 && t.disablePointerEvents,
39523
39610
  t[n.variant]
39524
39611
  ];
39525
- }, pq = (e) => {
39612
+ }, Sq = (e) => {
39526
39613
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
39527
39614
  return Ye({ root: [
39528
39615
  "root",
@@ -39531,11 +39618,11 @@ var uq = k("MuiInputAdornment", [
39531
39618
  o,
39532
39619
  r && "hiddenLabel",
39533
39620
  a && `size${A(a)}`
39534
- ] }, lq, t);
39535
- }, mq = M("div", {
39621
+ ] }, vq, t);
39622
+ }, Cq = M("div", {
39536
39623
  name: "MuiInputAdornment",
39537
39624
  slot: "Root",
39538
- overridesResolver: fq
39625
+ overridesResolver: xq
39539
39626
  })(j(({ theme: e }) => ({
39540
39627
  display: "flex",
39541
39628
  maxHeight: "2em",
@@ -39545,7 +39632,7 @@ var uq = k("MuiInputAdornment", [
39545
39632
  variants: [
39546
39633
  {
39547
39634
  props: { variant: "filled" },
39548
- style: { [`&.${uq.positionStart}&:not(.${uq.hiddenLabel})`]: { marginTop: 16 } }
39635
+ style: { [`&.${yq.positionStart}&:not(.${yq.hiddenLabel})`]: { marginTop: 16 } }
39549
39636
  },
39550
39637
  {
39551
39638
  props: { position: "start" },
@@ -39560,11 +39647,11 @@ var uq = k("MuiInputAdornment", [
39560
39647
  style: { pointerEvents: "none" }
39561
39648
  }
39562
39649
  ]
39563
- }))), hq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39650
+ }))), wq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39564
39651
  let n = ye({
39565
39652
  props: e,
39566
39653
  name: "MuiInputAdornment"
39567
- }), { children: r, className: i, component: a = "div", disablePointerEvents: o = !1, disableTypography: s = !1, position: l, variant: u, ...f } = n, p = O() || {}, m = u;
39654
+ }), { children: r, className: i, component: a = "div", disablePointerEvents: o = !1, disableTypography: s = !1, position: l, variant: u, ...f } = n, p = ae() || {}, m = u;
39568
39655
  u && p.variant, p && !m && (m = p.variant);
39569
39656
  let h = {
39570
39657
  ...n,
@@ -39573,10 +39660,10 @@ var uq = k("MuiInputAdornment", [
39573
39660
  disablePointerEvents: o,
39574
39661
  position: l,
39575
39662
  variant: m
39576
- }, g = pq(h);
39663
+ }, g = Sq(h);
39577
39664
  return /*#__PURE__*/ P(c.Provider, {
39578
39665
  value: null,
39579
- children: /*#__PURE__*/ P(mq, {
39666
+ children: /*#__PURE__*/ P(Cq, {
39580
39667
  as: a,
39581
39668
  ownerState: h,
39582
39669
  className: d(g.root, i),
@@ -39585,20 +39672,20 @@ var uq = k("MuiInputAdornment", [
39585
39672
  children: typeof r == "string" && !s ? /*#__PURE__*/ P(Nk, {
39586
39673
  color: "textSecondary",
39587
39674
  children: r
39588
- }) : /*#__PURE__*/ F(N.Fragment, { children: [l === "start" ? dq ||= /*#__PURE__*/ P("span", {
39675
+ }) : /*#__PURE__*/ F(N.Fragment, { children: [l === "start" ? bq ||= /*#__PURE__*/ P("span", {
39589
39676
  className: "notranslate",
39590
39677
  "aria-hidden": !0,
39591
39678
  children: "​"
39592
39679
  }) : null, r] })
39593
39680
  })
39594
39681
  });
39595
- }), gq = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), _q = o(/*#__PURE__*/ P("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), vq = M("span", {
39682
+ }), Tq = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" }), "RadioButtonUnchecked"), Eq = o(/*#__PURE__*/ P("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z" }), "RadioButtonChecked"), Dq = M("span", {
39596
39683
  name: "MuiRadioButtonIcon",
39597
39684
  shouldForwardProp: Ce
39598
39685
  })({
39599
39686
  position: "relative",
39600
39687
  display: "flex"
39601
- }), yq = M(gq, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), bq = M(_q, { name: "MuiRadioButtonIcon" })(j(({ theme: e }) => ({
39688
+ }), Oq = M(Tq, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), kq = M(Eq, { name: "MuiRadioButtonIcon" })(j(({ theme: e }) => ({
39602
39689
  left: 0,
39603
39690
  position: "absolute",
39604
39691
  transform: "scale(0)",
@@ -39617,19 +39704,19 @@ var uq = k("MuiInputAdornment", [
39617
39704
  }
39618
39705
  }]
39619
39706
  })));
39620
- function xq(e) {
39707
+ function Aq(e) {
39621
39708
  let { checked: t = !1, classes: n = {}, fontSize: r } = e, i = {
39622
39709
  ...e,
39623
39710
  checked: t
39624
39711
  };
39625
- return /*#__PURE__*/ F(vq, {
39712
+ return /*#__PURE__*/ F(Dq, {
39626
39713
  className: n.root,
39627
39714
  ownerState: i,
39628
- children: [/*#__PURE__*/ P(yq, {
39715
+ children: [/*#__PURE__*/ P(Oq, {
39629
39716
  fontSize: r,
39630
39717
  className: n.background,
39631
39718
  ownerState: i
39632
- }), /*#__PURE__*/ P(bq, {
39719
+ }), /*#__PURE__*/ P(kq, {
39633
39720
  fontSize: r,
39634
39721
  className: n.dot,
39635
39722
  ownerState: i
@@ -39638,25 +39725,25 @@ function xq(e) {
39638
39725
  }
39639
39726
  //#endregion
39640
39727
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js
39641
- var Sq = /*#__PURE__*/ N.createContext(void 0);
39728
+ var jq = /*#__PURE__*/ N.createContext(void 0);
39642
39729
  //#endregion
39643
39730
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js
39644
- function Cq() {
39645
- return N.useContext(Sq);
39731
+ function Mq() {
39732
+ return N.useContext(jq);
39646
39733
  }
39647
39734
  //#endregion
39648
39735
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Radio/radioClasses.js
39649
- function wq(e) {
39736
+ function Nq(e) {
39650
39737
  return p("MuiRadio", e);
39651
39738
  }
39652
- var Tq = k("MuiRadio", [
39739
+ var Pq = k("MuiRadio", [
39653
39740
  "root",
39654
39741
  "checked",
39655
39742
  "disabled",
39656
39743
  "colorPrimary",
39657
39744
  "colorSecondary",
39658
39745
  "sizeSmall"
39659
- ]), Eq = (e) => {
39746
+ ]), Fq = (e) => {
39660
39747
  let { classes: t, color: n, size: r } = e, i = { root: [
39661
39748
  "root",
39662
39749
  `color${A(n)}`,
@@ -39664,9 +39751,9 @@ var Tq = k("MuiRadio", [
39664
39751
  ] };
39665
39752
  return {
39666
39753
  ...t,
39667
- ...Ye(i, wq, t)
39754
+ ...Ye(i, Nq, t)
39668
39755
  };
39669
- }, Dq = M(GK, {
39756
+ }, Iq = M(eq, {
39670
39757
  shouldForwardProp: (e) => Ce(e) || e === "classes",
39671
39758
  name: "MuiRadio",
39672
39759
  slot: "Root",
@@ -39680,7 +39767,7 @@ var Tq = k("MuiRadio", [
39680
39767
  }
39681
39768
  })(j(({ theme: e }) => ({
39682
39769
  color: (e.vars || e).palette.text.secondary,
39683
- [`&.${Tq.disabled}`]: { color: (e.vars || e).palette.action.disabled },
39770
+ [`&.${Pq.disabled}`]: { color: (e.vars || e).palette.action.disabled },
39684
39771
  variants: [
39685
39772
  {
39686
39773
  props: {
@@ -39703,7 +39790,7 @@ var Tq = k("MuiRadio", [
39703
39790
  color: t,
39704
39791
  disabled: !1
39705
39792
  },
39706
- style: { [`&.${Tq.checked}`]: { color: (e.vars || e).palette[t].main } }
39793
+ style: { [`&.${Pq.checked}`]: { color: (e.vars || e).palette[t].main } }
39707
39794
  })),
39708
39795
  {
39709
39796
  props: { disableRipple: !1 },
@@ -39711,14 +39798,14 @@ var Tq = k("MuiRadio", [
39711
39798
  }
39712
39799
  ]
39713
39800
  })));
39714
- function Oq(e, t) {
39801
+ function Lq(e, t) {
39715
39802
  return typeof t == "object" && t ? e === t : String(e) === String(t);
39716
39803
  }
39717
- var kq = /*#__PURE__*/ P(xq, { checked: !0 }), Aq = /*#__PURE__*/ P(xq, {}), jq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39804
+ var Rq = /*#__PURE__*/ P(Aq, { checked: !0 }), zq = /*#__PURE__*/ P(Aq, {}), Bq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39718
39805
  let n = ye({
39719
39806
  props: e,
39720
39807
  name: "MuiRadio"
39721
- }), { checked: r, checkedIcon: i = kq, color: a = "primary", icon: o = Aq, name: s, onChange: c, size: l = "medium", className: u, disabled: f, disableRipple: p = !1, slots: m = {}, slotProps: h = {}, inputProps: g, ..._ } = n, v = O(), y = f;
39808
+ }), { checked: r, checkedIcon: i = Rq, color: a = "primary", icon: o = zq, name: s, onChange: c, size: l = "medium", className: u, disabled: f, disableRipple: p = !1, slots: m = {}, slotProps: h = {}, inputProps: g, ..._ } = n, v = ae(), y = f;
39722
39809
  v && y === void 0 && (y = v.disabled), y ??= !1;
39723
39810
  let x = {
39724
39811
  ...n,
@@ -39726,11 +39813,11 @@ var kq = /*#__PURE__*/ P(xq, { checked: !0 }), Aq = /*#__PURE__*/ P(xq, {}), jq
39726
39813
  disableRipple: p,
39727
39814
  color: a,
39728
39815
  size: l
39729
- }, S = Eq(x), C = Cq(), w = r, ee = Rt(c, C && C.onChange), T = s;
39730
- C && (w === void 0 && (w = Oq(C.value, n.value)), T === void 0 && (T = C.name));
39731
- let te = h.input ?? g, [ne, re] = b("root", {
39816
+ }, S = Fq(x), C = Mq(), w = r, ee = Rt(c, C && C.onChange), T = s;
39817
+ C && (w === void 0 && (w = Lq(C.value, n.value)), T === void 0 && (T = C.name));
39818
+ let te = h.input ?? g, [E, ne] = b("root", {
39732
39819
  ref: t,
39733
- elementType: Dq,
39820
+ elementType: Iq,
39734
39821
  className: d(S.root, u),
39735
39822
  shouldForwardComponentProp: !0,
39736
39823
  externalForwardedProps: {
@@ -39756,17 +39843,17 @@ var kq = /*#__PURE__*/ P(xq, { checked: !0 }), Aq = /*#__PURE__*/ P(xq, {}), jq
39756
39843
  slotProps: { input: typeof te == "function" ? te(x) : te }
39757
39844
  }
39758
39845
  });
39759
- return /*#__PURE__*/ P(ne, {
39760
- ...re,
39846
+ return /*#__PURE__*/ P(E, {
39847
+ ...ne,
39761
39848
  classes: S
39762
39849
  });
39763
39850
  });
39764
39851
  //#endregion
39765
39852
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
39766
- function Mq(e) {
39853
+ function Vq(e) {
39767
39854
  return p("MuiTooltip", e);
39768
39855
  }
39769
- var Nq = k("MuiTooltip", [
39856
+ var Hq = k("MuiTooltip", [
39770
39857
  "popper",
39771
39858
  "popperInteractive",
39772
39859
  "popperArrow",
@@ -39782,10 +39869,10 @@ var Nq = k("MuiTooltip", [
39782
39869
  ]);
39783
39870
  //#endregion
39784
39871
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
39785
- function Pq(e) {
39872
+ function Uq(e) {
39786
39873
  return Math.round(e * 1e5) / 1e5;
39787
39874
  }
39788
- var Fq = (e) => {
39875
+ var Wq = (e) => {
39789
39876
  let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
39790
39877
  return Ye({
39791
39878
  popper: [
@@ -39800,8 +39887,8 @@ var Fq = (e) => {
39800
39887
  `tooltipPlacement${A(a.split("-")[0])}`
39801
39888
  ],
39802
39889
  arrow: ["arrow"]
39803
- }, Mq, t);
39804
- }, Iq = M(bL, {
39890
+ }, Vq, t);
39891
+ }, Gq = M(bL, {
39805
39892
  name: "MuiTooltip",
39806
39893
  slot: "Popper",
39807
39894
  overridesResolver: (e, t) => {
@@ -39828,22 +39915,22 @@ var Fq = (e) => {
39828
39915
  {
39829
39916
  props: ({ ownerState: e }) => e.arrow,
39830
39917
  style: {
39831
- [`&[data-popper-placement*="bottom"] .${Nq.arrow}`]: {
39918
+ [`&[data-popper-placement*="bottom"] .${Hq.arrow}`]: {
39832
39919
  top: 0,
39833
39920
  marginTop: "-0.71em",
39834
39921
  "&::before": { transformOrigin: "0 100%" }
39835
39922
  },
39836
- [`&[data-popper-placement*="top"] .${Nq.arrow}`]: {
39923
+ [`&[data-popper-placement*="top"] .${Hq.arrow}`]: {
39837
39924
  bottom: 0,
39838
39925
  marginBottom: "-0.71em",
39839
39926
  "&::before": { transformOrigin: "100% 0" }
39840
39927
  },
39841
- [`&[data-popper-placement*="right"] .${Nq.arrow}`]: {
39928
+ [`&[data-popper-placement*="right"] .${Hq.arrow}`]: {
39842
39929
  height: "1em",
39843
39930
  width: "0.71em",
39844
39931
  "&::before": { transformOrigin: "100% 100%" }
39845
39932
  },
39846
- [`&[data-popper-placement*="left"] .${Nq.arrow}`]: {
39933
+ [`&[data-popper-placement*="left"] .${Hq.arrow}`]: {
39847
39934
  height: "1em",
39848
39935
  width: "0.71em",
39849
39936
  "&::before": { transformOrigin: "0 0" }
@@ -39852,34 +39939,34 @@ var Fq = (e) => {
39852
39939
  },
39853
39940
  {
39854
39941
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39855
- style: { [`&[data-popper-placement*="right"] .${Nq.arrow}`]: {
39942
+ style: { [`&[data-popper-placement*="right"] .${Hq.arrow}`]: {
39856
39943
  left: 0,
39857
39944
  marginLeft: "-0.71em"
39858
39945
  } }
39859
39946
  },
39860
39947
  {
39861
39948
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39862
- style: { [`&[data-popper-placement*="right"] .${Nq.arrow}`]: {
39949
+ style: { [`&[data-popper-placement*="right"] .${Hq.arrow}`]: {
39863
39950
  right: 0,
39864
39951
  marginRight: "-0.71em"
39865
39952
  } }
39866
39953
  },
39867
39954
  {
39868
39955
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
39869
- style: { [`&[data-popper-placement*="left"] .${Nq.arrow}`]: {
39956
+ style: { [`&[data-popper-placement*="left"] .${Hq.arrow}`]: {
39870
39957
  right: 0,
39871
39958
  marginRight: "-0.71em"
39872
39959
  } }
39873
39960
  },
39874
39961
  {
39875
39962
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
39876
- style: { [`&[data-popper-placement*="left"] .${Nq.arrow}`]: {
39963
+ style: { [`&[data-popper-placement*="left"] .${Hq.arrow}`]: {
39877
39964
  left: 0,
39878
39965
  marginLeft: "-0.71em"
39879
39966
  } }
39880
39967
  }
39881
39968
  ]
39882
- }))), Lq = M("div", {
39969
+ }))), Kq = M("div", {
39883
39970
  name: "MuiTooltip",
39884
39971
  slot: "Tooltip",
39885
39972
  overridesResolver: (e, t) => {
@@ -39902,13 +39989,13 @@ var Fq = (e) => {
39902
39989
  margin: 2,
39903
39990
  wordWrap: "break-word",
39904
39991
  fontWeight: e.typography.fontWeightMedium,
39905
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
39906
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
39907
- [`.${Nq.popper}[data-popper-placement*="top"] &`]: {
39992
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
39993
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
39994
+ [`.${Hq.popper}[data-popper-placement*="top"] &`]: {
39908
39995
  transformOrigin: "center bottom",
39909
39996
  marginBottom: "14px"
39910
39997
  },
39911
- [`.${Nq.popper}[data-popper-placement*="bottom"] &`]: {
39998
+ [`.${Hq.popper}[data-popper-placement*="bottom"] &`]: {
39912
39999
  transformOrigin: "center top",
39913
40000
  marginTop: "14px"
39914
40001
  },
@@ -39925,48 +40012,48 @@ var Fq = (e) => {
39925
40012
  style: {
39926
40013
  padding: "8px 16px",
39927
40014
  fontSize: e.typography.pxToRem(14),
39928
- lineHeight: `${Pq(16 / 14)}em`,
40015
+ lineHeight: `${Uq(16 / 14)}em`,
39929
40016
  fontWeight: e.typography.fontWeightRegular
39930
40017
  }
39931
40018
  },
39932
40019
  {
39933
40020
  props: ({ ownerState: e }) => !e.isRtl,
39934
40021
  style: {
39935
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
39936
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
40022
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
40023
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
39937
40024
  }
39938
40025
  },
39939
40026
  {
39940
40027
  props: ({ ownerState: e }) => !e.isRtl && e.touch,
39941
40028
  style: {
39942
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
39943
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
40029
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
40030
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
39944
40031
  }
39945
40032
  },
39946
40033
  {
39947
40034
  props: ({ ownerState: e }) => !!e.isRtl,
39948
40035
  style: {
39949
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
39950
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
40036
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
40037
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
39951
40038
  }
39952
40039
  },
39953
40040
  {
39954
40041
  props: ({ ownerState: e }) => !!e.isRtl && e.touch,
39955
40042
  style: {
39956
- [`.${Nq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
39957
- [`.${Nq.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
40043
+ [`.${Hq.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
40044
+ [`.${Hq.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
39958
40045
  }
39959
40046
  },
39960
40047
  {
39961
40048
  props: ({ ownerState: e }) => e.touch,
39962
- style: { [`.${Nq.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
40049
+ style: { [`.${Hq.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
39963
40050
  },
39964
40051
  {
39965
40052
  props: ({ ownerState: e }) => e.touch,
39966
- style: { [`.${Nq.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
40053
+ style: { [`.${Hq.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
39967
40054
  }
39968
40055
  ]
39969
- }))), Rq = M("span", {
40056
+ }))), qq = M("span", {
39970
40057
  name: "MuiTooltip",
39971
40058
  slot: "Arrow"
39972
40059
  })(j(({ theme: e }) => ({
@@ -39985,21 +40072,21 @@ var Fq = (e) => {
39985
40072
  backgroundColor: "currentColor",
39986
40073
  transform: "rotate(45deg)"
39987
40074
  }
39988
- }))), zq = !1, Bq = new Le(), Vq = {
40075
+ }))), Jq = !1, Yq = new Le(), Xq = {
39989
40076
  x: 0,
39990
40077
  y: 0
39991
40078
  };
39992
- function Hq(e, t) {
40079
+ function Zq(e, t) {
39993
40080
  return (n, ...r) => {
39994
40081
  t && t(n, ...r), e(n, ...r);
39995
40082
  };
39996
40083
  }
39997
- var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40084
+ var Qq = /*#__PURE__*/ N.forwardRef(function(e, t) {
39998
40085
  let n = ye({
39999
40086
  props: e,
40000
40087
  name: "MuiTooltip"
40001
- }), { arrow: i = !1, children: a, classes: o, components: s = {}, componentsProps: c = {}, describeChild: u = !1, disableFocusListener: f = !1, disableHoverListener: p = !1, disableInteractive: m = !1, disableTouchListener: h = !1, enterDelay: g = 100, enterNextDelay: _ = 0, enterTouchDelay: y = 700, followCursor: x = !1, id: C, leaveDelay: w = 0, leaveTouchDelay: ee = 1500, onClose: T, onOpen: te, open: ne, placement: re = "bottom", PopperComponent: ie, PopperProps: ae = {}, slotProps: E = {}, slots: D = {}, title: O, TransitionComponent: oe, TransitionProps: k, ...se } = n, A = /*#__PURE__*/ N.isValidElement(a) ? a : /*#__PURE__*/ P("span", { children: a }), ce = Ge(), le = l(), [ue, j] = N.useState(), [de, fe] = N.useState(null), pe = N.useRef(!1), me = m || x, he = we(), ge = we(), _e = we(), ve = we(), [xe, Se] = Bt({
40002
- controlled: ne,
40088
+ }), { arrow: i = !1, children: a, classes: o, components: s = {}, componentsProps: c = {}, describeChild: u = !1, disableFocusListener: f = !1, disableHoverListener: p = !1, disableInteractive: m = !1, disableTouchListener: h = !1, enterDelay: g = 100, enterNextDelay: _ = 0, enterTouchDelay: y = 700, followCursor: x = !1, id: C, leaveDelay: w = 0, leaveTouchDelay: ee = 1500, onClose: T, onOpen: te, open: E, placement: ne = "bottom", PopperComponent: re, PopperProps: ie = {}, slotProps: D = {}, slots: O = {}, title: ae, TransitionComponent: oe, TransitionProps: k, ...se } = n, A = /*#__PURE__*/ N.isValidElement(a) ? a : /*#__PURE__*/ P("span", { children: a }), ce = Ge(), le = l(), [ue, j] = N.useState(), [de, fe] = N.useState(null), pe = N.useRef(!1), me = m || x, he = we(), ge = we(), _e = we(), ve = we(), [xe, Se] = Bt({
40089
+ controlled: E,
40003
40090
  default: !1,
40004
40091
  name: "Tooltip",
40005
40092
  state: "open"
@@ -40008,15 +40095,15 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40008
40095
  });
40009
40096
  N.useEffect(() => De, [De]);
40010
40097
  let Oe = (e) => {
40011
- Bq.clear(), zq = !0, Se(!0), te && !Ce && te(e);
40098
+ Yq.clear(), Jq = !0, Se(!0), te && !Ce && te(e);
40012
40099
  }, ke = v((e) => {
40013
- Bq.start(800 + w, () => {
40014
- zq = !1;
40100
+ Yq.start(800 + w, () => {
40101
+ Jq = !1;
40015
40102
  }), Se(!1), T && Ce && T(e), he.start(ce.transitions.duration.shortest, () => {
40016
40103
  pe.current = !1;
40017
40104
  });
40018
40105
  }), Ae = (e) => {
40019
- pe.current && e.type !== "touchstart" || (ue && ue.removeAttribute("title"), ge.clear(), _e.clear(), g || zq && _ ? ge.start(zq ? _ : g, () => {
40106
+ pe.current && e.type !== "touchstart" || (ue && ue.removeAttribute("title"), ge.clear(), _e.clear(), g || Jq && _ ? ge.start(Jq ? _ : g, () => {
40020
40107
  Oe(e);
40021
40108
  }) : Oe(e));
40022
40109
  }, je = (e) => {
@@ -40055,15 +40142,15 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40055
40142
  };
40056
40143
  }, [ke, Ce]);
40057
40144
  let ze = be(Ne(A), j, t);
40058
- !O && O !== 0 && (Ce = !1);
40145
+ !ae && ae !== 0 && (Ce = !1);
40059
40146
  let Be = N.useRef(), Ve = (e) => {
40060
40147
  let t = A.props;
40061
- t.onMouseMove && t.onMouseMove(e), Vq = {
40148
+ t.onMouseMove && t.onMouseMove(e), Xq = {
40062
40149
  x: e.clientX,
40063
40150
  y: e.clientY
40064
40151
  }, Be.current && Be.current.update();
40065
- }, He = {}, Ue = typeof O == "string";
40066
- u ? (He.title = !Ce && Ue && !p ? O : null, He["aria-describedby"] = Ce ? M : null) : (He["aria-label"] = Ue ? O : null, He["aria-labelledby"] = Ce && !Ue ? M : null);
40152
+ }, He = {}, Ue = typeof ae == "string";
40153
+ u ? (He.title = !Ce && Ue && !p ? ae : null, He["aria-describedby"] = Ce ? M : null) : (He["aria-label"] = Ue ? ae : null, He["aria-labelledby"] = Ce && !Ue ? M : null);
40067
40154
  let We = {
40068
40155
  ...He,
40069
40156
  ...se,
@@ -40073,16 +40160,16 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40073
40160
  ref: ze,
40074
40161
  ...x ? { onMouseMove: Ve } : {}
40075
40162
  }, Ke = {};
40076
- h || (We.onTouchStart = Le, We.onTouchEnd = Re), p || (We.onMouseOver = Hq(Ae, We.onMouseOver), We.onMouseLeave = Hq(je, We.onMouseLeave), me || (Ke.onMouseOver = Ae, Ke.onMouseLeave = je)), f || (We.onFocus = Hq(Fe, We.onFocus), We.onBlur = Hq(Pe, We.onBlur), me || (Ke.onFocus = Fe, Ke.onBlur = Pe));
40163
+ h || (We.onTouchStart = Le, We.onTouchEnd = Re), p || (We.onMouseOver = Zq(Ae, We.onMouseOver), We.onMouseLeave = Zq(je, We.onMouseLeave), me || (Ke.onMouseOver = Ae, Ke.onMouseLeave = je)), f || (We.onFocus = Zq(Fe, We.onFocus), We.onBlur = Zq(Pe, We.onBlur), me || (Ke.onFocus = Fe, Ke.onBlur = Pe));
40077
40164
  let qe = {
40078
40165
  ...n,
40079
40166
  isRtl: le,
40080
40167
  arrow: i,
40081
40168
  disableInteractive: me,
40082
- placement: re,
40083
- PopperComponentProp: ie,
40169
+ placement: ne,
40170
+ PopperComponentProp: re,
40084
40171
  touch: pe.current
40085
- }, Je = typeof E.popper == "function" ? E.popper(qe) : E.popper, Ye = N.useMemo(() => {
40172
+ }, Je = typeof D.popper == "function" ? D.popper(qe) : D.popper, Ye = N.useMemo(() => {
40086
40173
  let e = [{
40087
40174
  name: "arrow",
40088
40175
  enabled: !!de,
@@ -40091,64 +40178,64 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40091
40178
  padding: 4
40092
40179
  }
40093
40180
  }];
40094
- return ae.popperOptions?.modifiers && (e = e.concat(ae.popperOptions.modifiers)), Je?.popperOptions?.modifiers && (e = e.concat(Je.popperOptions.modifiers)), {
40095
- ...ae.popperOptions,
40181
+ return ie.popperOptions?.modifiers && (e = e.concat(ie.popperOptions.modifiers)), Je?.popperOptions?.modifiers && (e = e.concat(Je.popperOptions.modifiers)), {
40182
+ ...ie.popperOptions,
40096
40183
  ...Je?.popperOptions,
40097
40184
  modifiers: e
40098
40185
  };
40099
40186
  }, [
40100
40187
  de,
40101
- ae.popperOptions,
40188
+ ie.popperOptions,
40102
40189
  Je?.popperOptions
40103
- ]), Xe = Fq(qe), Ze = typeof E.transition == "function" ? E.transition(qe) : E.transition, Qe = {
40190
+ ]), Xe = Wq(qe), Ze = typeof D.transition == "function" ? D.transition(qe) : D.transition, Qe = {
40104
40191
  slots: {
40105
40192
  popper: s.Popper,
40106
40193
  transition: s.Transition ?? oe,
40107
40194
  tooltip: s.Tooltip,
40108
40195
  arrow: s.Arrow,
40109
- ...D
40196
+ ...O
40110
40197
  },
40111
40198
  slotProps: {
40112
- arrow: E.arrow ?? c.arrow,
40199
+ arrow: D.arrow ?? c.arrow,
40113
40200
  popper: {
40114
- ...ae,
40201
+ ...ie,
40115
40202
  ...Je ?? c.popper
40116
40203
  },
40117
- tooltip: E.tooltip ?? c.tooltip,
40204
+ tooltip: D.tooltip ?? c.tooltip,
40118
40205
  transition: {
40119
40206
  ...k,
40120
40207
  ...Ze ?? c.transition
40121
40208
  }
40122
40209
  }
40123
40210
  }, [$e, et] = b("popper", {
40124
- elementType: Iq,
40211
+ elementType: Gq,
40125
40212
  externalForwardedProps: Qe,
40126
40213
  ownerState: qe,
40127
- className: d(Xe.popper, ae?.className)
40214
+ className: d(Xe.popper, ie?.className)
40128
40215
  }), [tt, nt] = b("transition", {
40129
40216
  elementType: r,
40130
40217
  externalForwardedProps: Qe,
40131
40218
  ownerState: qe
40132
40219
  }), [rt, it] = b("tooltip", {
40133
- elementType: Lq,
40220
+ elementType: Kq,
40134
40221
  className: Xe.tooltip,
40135
40222
  externalForwardedProps: Qe,
40136
40223
  ownerState: qe
40137
40224
  }), [at, ot] = b("arrow", {
40138
- elementType: Rq,
40225
+ elementType: qq,
40139
40226
  className: Xe.arrow,
40140
40227
  externalForwardedProps: Qe,
40141
40228
  ownerState: qe,
40142
40229
  ref: fe
40143
40230
  });
40144
40231
  return /*#__PURE__*/ F(N.Fragment, { children: [/*#__PURE__*/ N.cloneElement(A, We), /*#__PURE__*/ P($e, {
40145
- as: ie ?? bL,
40146
- placement: re,
40232
+ as: re ?? bL,
40233
+ placement: ne,
40147
40234
  anchorEl: x ? { getBoundingClientRect: () => ({
40148
- top: Vq.y,
40149
- left: Vq.x,
40150
- right: Vq.x,
40151
- bottom: Vq.y,
40235
+ top: Xq.y,
40236
+ left: Xq.x,
40237
+ right: Xq.x,
40238
+ bottom: Xq.y,
40152
40239
  width: 0,
40153
40240
  height: 0
40154
40241
  }) } : ue,
@@ -40165,17 +40252,17 @@ var Uq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40165
40252
  ...nt,
40166
40253
  children: /*#__PURE__*/ F(rt, {
40167
40254
  ...it,
40168
- children: [O, i ? /*#__PURE__*/ P(at, { ...ot }) : null]
40255
+ children: [ae, i ? /*#__PURE__*/ P(at, { ...ot }) : null]
40169
40256
  })
40170
40257
  })
40171
40258
  })] });
40172
40259
  });
40173
40260
  //#endregion
40174
40261
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
40175
- function Wq(e) {
40262
+ function $q(e) {
40176
40263
  return p("MuiSwitch", e);
40177
40264
  }
40178
- var Gq = k("MuiSwitch", [
40265
+ var eJ = k("MuiSwitch", [
40179
40266
  "root",
40180
40267
  "edgeStart",
40181
40268
  "edgeEnd",
@@ -40189,7 +40276,7 @@ var Gq = k("MuiSwitch", [
40189
40276
  "input",
40190
40277
  "thumb",
40191
40278
  "track"
40192
- ]), Kq = (e) => {
40279
+ ]), tJ = (e) => {
40193
40280
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = Ye({
40194
40281
  root: [
40195
40282
  "root",
@@ -40205,12 +40292,12 @@ var Gq = k("MuiSwitch", [
40205
40292
  thumb: ["thumb"],
40206
40293
  track: ["track"],
40207
40294
  input: ["input"]
40208
- }, Wq, t);
40295
+ }, $q, t);
40209
40296
  return {
40210
40297
  ...t,
40211
40298
  ...s
40212
40299
  };
40213
- }, qq = M("span", {
40300
+ }, nJ = M("span", {
40214
40301
  name: "MuiSwitch",
40215
40302
  slot: "Root",
40216
40303
  overridesResolver: (e, t) => {
@@ -40248,25 +40335,25 @@ var Gq = k("MuiSwitch", [
40248
40335
  width: 40,
40249
40336
  height: 24,
40250
40337
  padding: 7,
40251
- [`& .${Gq.thumb}`]: {
40338
+ [`& .${eJ.thumb}`]: {
40252
40339
  width: 16,
40253
40340
  height: 16
40254
40341
  },
40255
- [`& .${Gq.switchBase}`]: {
40342
+ [`& .${eJ.switchBase}`]: {
40256
40343
  padding: 4,
40257
- [`&.${Gq.checked}`]: { transform: "translateX(16px)" }
40344
+ [`&.${eJ.checked}`]: { transform: "translateX(16px)" }
40258
40345
  }
40259
40346
  }
40260
40347
  }
40261
40348
  ]
40262
- }), Jq = M(GK, {
40349
+ }), rJ = M(eq, {
40263
40350
  name: "MuiSwitch",
40264
40351
  slot: "SwitchBase",
40265
40352
  overridesResolver: (e, t) => {
40266
40353
  let { ownerState: n } = e;
40267
40354
  return [
40268
40355
  t.switchBase,
40269
- { [`& .${Gq.input}`]: t.input },
40356
+ { [`& .${eJ.input}`]: t.input },
40270
40357
  n.color !== "default" && t[`color${A(n.color)}`]
40271
40358
  ];
40272
40359
  }
@@ -40277,11 +40364,11 @@ var Gq = k("MuiSwitch", [
40277
40364
  zIndex: 1,
40278
40365
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
40279
40366
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
40280
- [`&.${Gq.checked}`]: { transform: "translateX(20px)" },
40281
- [`&.${Gq.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40282
- [`&.${Gq.checked} + .${Gq.track}`]: { opacity: .5 },
40283
- [`&.${Gq.disabled} + .${Gq.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40284
- [`& .${Gq.input}`]: {
40367
+ [`&.${eJ.checked}`]: { transform: "translateX(20px)" },
40368
+ [`&.${eJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
40369
+ [`&.${eJ.checked} + .${eJ.track}`]: { opacity: .5 },
40370
+ [`&.${eJ.disabled} + .${eJ.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
40371
+ [`& .${eJ.input}`]: {
40285
40372
  left: "-100%",
40286
40373
  width: "300%"
40287
40374
  }
@@ -40293,18 +40380,18 @@ var Gq = k("MuiSwitch", [
40293
40380
  variants: [...Object.entries(e.palette).filter(De(["light"])).map(([t]) => ({
40294
40381
  props: { color: t },
40295
40382
  style: {
40296
- [`&.${Gq.checked}`]: {
40383
+ [`&.${eJ.checked}`]: {
40297
40384
  color: (e.vars || e).palette[t].main,
40298
40385
  "&:hover": {
40299
40386
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
40300
40387
  "@media (hover: none)": { backgroundColor: "transparent" }
40301
40388
  },
40302
- [`&.${Gq.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40389
+ [`&.${eJ.disabled}`]: { color: e.vars ? e.vars.palette.Switch[`${t}DisabledColor`] : `${e.palette.mode === "light" ? e.lighten(e.palette[t].main, .62) : e.darken(e.palette[t].main, .55)}` }
40303
40390
  },
40304
- [`&.${Gq.checked} + .${Gq.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40391
+ [`&.${eJ.checked} + .${eJ.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
40305
40392
  }
40306
40393
  }))]
40307
- }))), Yq = M("span", {
40394
+ }))), iJ = M("span", {
40308
40395
  name: "MuiSwitch",
40309
40396
  slot: "Track"
40310
40397
  })(j(({ theme: e }) => ({
@@ -40317,7 +40404,7 @@ var Gq = k("MuiSwitch", [
40317
40404
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
40318
40405
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
40319
40406
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
40320
- }))), Xq = M("span", {
40407
+ }))), aJ = M("span", {
40321
40408
  name: "MuiSwitch",
40322
40409
  slot: "Thumb"
40323
40410
  })(j(({ theme: e }) => ({
@@ -40328,7 +40415,7 @@ var Gq = k("MuiSwitch", [
40328
40415
  width: 20,
40329
40416
  height: 20,
40330
40417
  borderRadius: "50%"
40331
- }))), Zq = /*#__PURE__*/ N.forwardRef(function(e, t) {
40418
+ }))), oJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40332
40419
  let n = ye({
40333
40420
  props: e,
40334
40421
  name: "MuiSwitch"
@@ -40337,29 +40424,29 @@ var Gq = k("MuiSwitch", [
40337
40424
  color: i,
40338
40425
  edge: a,
40339
40426
  size: o
40340
- }, p = Kq(f), h = l.input, g = {
40427
+ }, p = tJ(f), h = l.input, g = {
40341
40428
  slots: c,
40342
40429
  slotProps: l
40343
40430
  }, [_, v] = b("root", {
40344
40431
  className: d(p.root, r),
40345
- elementType: qq,
40432
+ elementType: nJ,
40346
40433
  externalForwardedProps: g,
40347
40434
  ownerState: f,
40348
40435
  additionalProps: { sx: s }
40349
40436
  }), [y, x] = b("thumb", {
40350
40437
  className: p.thumb,
40351
- elementType: Xq,
40438
+ elementType: aJ,
40352
40439
  externalForwardedProps: g,
40353
40440
  ownerState: f
40354
40441
  }), S = /*#__PURE__*/ P(y, { ...x }), [C, w] = b("track", {
40355
40442
  className: p.track,
40356
- elementType: Yq,
40443
+ elementType: iJ,
40357
40444
  externalForwardedProps: g,
40358
40445
  ownerState: f
40359
40446
  });
40360
40447
  return /*#__PURE__*/ F(_, {
40361
40448
  ...v,
40362
- children: [/*#__PURE__*/ P(Jq, {
40449
+ children: [/*#__PURE__*/ P(rJ, {
40363
40450
  type: "checkbox",
40364
40451
  icon: S,
40365
40452
  checkedIcon: S,
@@ -40380,15 +40467,15 @@ var Gq = k("MuiSwitch", [
40380
40467
  }
40381
40468
  }), /*#__PURE__*/ P(C, { ...w })]
40382
40469
  });
40383
- }), Qq = M(ON)(() => ({ fontSize: "max(1.25rem, 18px)" })), $q = M(MN)(() => ({ fontSize: "max(1rem, 14px)" })), eJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(vM, {
40470
+ }), sJ = M(ON)(() => ({ fontSize: "max(1.25rem, 18px)" })), cJ = M(MN)(() => ({ fontSize: "max(1rem, 14px)" })), lJ = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(vM, {
40384
40471
  open: i,
40385
40472
  disableAutoFocus: s,
40386
40473
  disableEnforceFocus: c,
40387
40474
  disableRestoreFocus: l,
40388
40475
  onClose: n,
40389
40476
  children: [
40390
- t && /* @__PURE__ */ P(Qq, { children: t }),
40391
- e && /* @__PURE__ */ P(qj, { children: /* @__PURE__ */ P($q, { children: e }) }),
40477
+ t && /* @__PURE__ */ P(sJ, { children: t }),
40478
+ e && /* @__PURE__ */ P(qj, { children: /* @__PURE__ */ P(cJ, { children: e }) }),
40392
40479
  /* @__PURE__ */ F(lM, { children: [n && /* @__PURE__ */ P(u, {
40393
40480
  onClick: n,
40394
40481
  color: "primary",
@@ -40401,13 +40488,13 @@ var Gq = k("MuiSwitch", [
40401
40488
  })] })
40402
40489
  ]
40403
40490
  });
40404
- eJ.defaultProps = {
40491
+ lJ.defaultProps = {
40405
40492
  onCloseText: "CANCEL",
40406
40493
  onConfirmText: "OK",
40407
40494
  disableAutoFocus: !1,
40408
40495
  disableEnforceFocus: !1,
40409
40496
  disableRestoreFocus: !1
40410
- }, eJ.propTypes = {
40497
+ }, lJ.propTypes = {
40411
40498
  text: U.default.oneOfType([U.default.string, U.default.object]),
40412
40499
  title: U.default.string,
40413
40500
  onClose: U.default.func,
@@ -40421,18 +40508,18 @@ eJ.defaultProps = {
40421
40508
  };
40422
40509
  //#endregion
40423
40510
  //#region ../../lib-react/config-ui/dist/radio-with-label.js
40424
- var tJ = M(cq)(() => ({ "& .MuiFormControlLabel-label": {
40511
+ var uJ = M(_q)(() => ({ "& .MuiFormControlLabel-label": {
40425
40512
  left: "-5px",
40426
40513
  position: "relative"
40427
- } })), nJ = M(jq)(() => ({ color: `${D.tertiary()} !important` })), rJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(tJ, {
40514
+ } })), dJ = M(Bq)(() => ({ color: `${O.tertiary()} !important` })), fJ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(uJ, {
40428
40515
  value: t,
40429
- control: /* @__PURE__ */ P(nJ, {
40516
+ control: /* @__PURE__ */ P(dJ, {
40430
40517
  checked: n,
40431
40518
  onChange: r
40432
40519
  }),
40433
40520
  label: e
40434
40521
  });
40435
- rJ.propTypes = {
40522
+ fJ.propTypes = {
40436
40523
  label: U.default.string,
40437
40524
  value: U.default.string,
40438
40525
  checked: U.default.bool,
@@ -40440,7 +40527,7 @@ rJ.propTypes = {
40440
40527
  };
40441
40528
  //#endregion
40442
40529
  //#region ../../lib-react/config-ui/dist/tabs/index.js
40443
- var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40530
+ var pJ = M(TN)(() => ({})), mJ = class extends pt.Component {
40444
40531
  static propTypes = {
40445
40532
  className: U.default.string,
40446
40533
  contentClassName: U.default.string,
@@ -40461,7 +40548,7 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40461
40548
  indicatorColor: "primary",
40462
40549
  value: e,
40463
40550
  onChange: this.handleChange,
40464
- children: pt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(iJ, { label: e.props.title }, t) : null)
40551
+ children: pt.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(pJ, { label: e.props.title }, t) : null)
40465
40552
  }), /* @__PURE__ */ P("div", {
40466
40553
  className: r,
40467
40554
  style: i,
@@ -40469,7 +40556,7 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40469
40556
  })]
40470
40557
  });
40471
40558
  }
40472
- }, oJ = M(cq)(({ theme: e, mini: t }) => ({
40559
+ }, hJ = M(_q)(({ theme: e, mini: t }) => ({
40473
40560
  margin: 0,
40474
40561
  marginLeft: 0,
40475
40562
  padding: 0,
@@ -40483,8 +40570,8 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40483
40570
  fontSize: e.typography.fontSize - 3
40484
40571
  }
40485
40572
  }
40486
- })), sJ = M(nq)(({ theme: e, mini: t, error: n }) => ({
40487
- color: `${D.tertiary()} !important`,
40573
+ })), gJ = M(dq)(({ theme: e, mini: t, error: n }) => ({
40574
+ color: `${O.tertiary()} !important`,
40488
40575
  ...t && {
40489
40576
  margin: 0,
40490
40577
  padding: 0,
@@ -40492,9 +40579,9 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40492
40579
  height: e.spacing(3)
40493
40580
  },
40494
40581
  ...n && { color: `${e.palette.error.main} !important` }
40495
- })), cJ = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(oJ, {
40582
+ })), _J = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(hJ, {
40496
40583
  mini: e,
40497
- control: /* @__PURE__ */ P(sJ, {
40584
+ control: /* @__PURE__ */ P(gJ, {
40498
40585
  checked: t,
40499
40586
  onChange: n,
40500
40587
  value: r,
@@ -40503,21 +40590,21 @@ var iJ = M(TN)(() => ({})), aJ = class extends pt.Component {
40503
40590
  }),
40504
40591
  label: i
40505
40592
  });
40506
- cJ.propTypes = {
40593
+ _J.propTypes = {
40507
40594
  mini: U.default.bool,
40508
40595
  checked: U.default.bool.isRequired,
40509
40596
  onChange: U.default.func.isRequired,
40510
40597
  value: U.default.string,
40511
40598
  label: U.default.string.isRequired,
40512
40599
  error: U.default.bool
40513
- }, cJ.defaultProps = {
40600
+ }, _J.defaultProps = {
40514
40601
  value: "",
40515
40602
  mini: !1,
40516
40603
  error: !1
40517
40604
  };
40518
40605
  //#endregion
40519
40606
  //#region ../../lib-react/config-ui/dist/number-text-field.js
40520
- var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({ theme: e }) => ({
40607
+ var vJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), yJ = M(aM)(({ theme: e }) => ({
40521
40608
  marginRight: e.spacing(1),
40522
40609
  "& .MuiInputLabel-root": {
40523
40610
  width: "auto",
@@ -40539,11 +40626,11 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40539
40626
  minHeight: "auto",
40540
40627
  padding: "6px 0 7px"
40541
40628
  }
40542
- })), dJ = (e, t) => {
40629
+ })), bJ = (e, t) => {
40543
40630
  if (!ot(e) && !ot(t)) return 0;
40544
40631
  if (!ot(e) && ot(t)) return t;
40545
40632
  if (ot(e)) return e;
40546
- }, fJ = class extends pt.Component {
40633
+ }, xJ = class extends pt.Component {
40547
40634
  static propTypes = {
40548
40635
  disabled: U.default.bool,
40549
40636
  className: U.default.string,
@@ -40569,13 +40656,13 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40569
40656
  this.setState({ value: t });
40570
40657
  }
40571
40658
  clamp(e, t = this.props.min, n = this.props.max) {
40572
- return ot(e) ? (ot(n) && (e = Math.min(e, n)), ot(t) && (e = Math.max(e, t)), e) : dJ(t, n);
40659
+ return ot(e) ? (ot(n) && (e = Math.min(e, n)), ot(t) && (e = Math.max(e, t)), e) : bJ(t, n);
40573
40660
  }
40574
40661
  onBlur = (e) => {
40575
40662
  let t = e.target.value, n = parseFloat(t);
40576
- lJ("rawNumber: ", n);
40663
+ vJ("rawNumber: ", n);
40577
40664
  let r = this.clamp(n);
40578
- lJ("number: ", r), r !== this.state.value && (lJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40665
+ vJ("number: ", r), r !== this.state.value && (vJ("trigger update..."), this.setState({ value: r.toString() }, () => {
40579
40666
  this.props.onChange(e, r);
40580
40667
  }));
40581
40668
  };
@@ -40595,7 +40682,7 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40595
40682
  };
40596
40683
  render() {
40597
40684
  let { className: e, label: t, disabled: n, suffix: r, min: i, max: a, inputClassName: o, disableUnderline: s, showErrorWhenOutsideRange: c, variant: l } = this.props, u = c && this.getError();
40598
- return /* @__PURE__ */ P(uJ, {
40685
+ return /* @__PURE__ */ P(yJ, {
40599
40686
  variant: s ? "filled" : l || "standard",
40600
40687
  inputRef: (e) => {
40601
40688
  this.inputRef = e;
@@ -40614,7 +40701,7 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40614
40701
  type: "number",
40615
40702
  className: e,
40616
40703
  slotProps: { input: {
40617
- endAdornment: r && /* @__PURE__ */ P(hq, {
40704
+ endAdornment: r && /* @__PURE__ */ P(wq, {
40618
40705
  position: "end",
40619
40706
  children: r
40620
40707
  }),
@@ -40630,19 +40717,19 @@ var lJ = (0, Vt.default)("@pie-lib:config-ui:number-text-field"), uJ = M(aM)(({
40630
40717
  };
40631
40718
  //#endregion
40632
40719
  //#region ../../lib-react/config-ui/dist/two-choice.js
40633
- function pJ(e) {
40720
+ function SJ(e) {
40634
40721
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
40635
40722
  }
40636
- function mJ(e, t) {
40637
- return !e || pJ(e) ? e : pJ(e.default) ? e.default : t && pJ(e[t]) ? e[t] : t && pJ(e[t]?.default) ? e[t].default : e;
40723
+ function CJ(e, t) {
40724
+ return !e || SJ(e) ? e : SJ(e.default) ? e.default : t && SJ(e[t]) ? e[t] : t && SJ(e[t]?.default) ? e[t].default : e;
40638
40725
  }
40639
- var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ = ge, _J = gJ.default, vJ = _J && typeof _J == "object" ? _J : gJ, yJ = M("div")(({ theme: e, direction: t }) => ({
40726
+ var wJ = CJ(We, "InputContainer") || CJ(DJ.InputContainer, "InputContainer"), TJ = ge, EJ = TJ.default, DJ = EJ && typeof EJ == "object" ? EJ : TJ, OJ = M("div")(({ theme: e, direction: t }) => ({
40640
40727
  display: "flex",
40641
40728
  flexWrap: "wrap",
40642
40729
  paddingLeft: 0,
40643
40730
  marginTop: e.spacing(1),
40644
40731
  ...t === "vertical" && { flexDirection: "column" }
40645
- })), bJ = class extends pt.Component {
40732
+ })), kJ = class extends pt.Component {
40646
40733
  static propTypes = {
40647
40734
  header: U.default.string.isRequired,
40648
40735
  className: U.default.string,
@@ -40659,11 +40746,11 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40659
40746
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
40660
40747
  label: e,
40661
40748
  value: e
40662
- } : e), s = n || rJ;
40663
- return /* @__PURE__ */ P(hJ, {
40749
+ } : e), s = n || fJ;
40750
+ return /* @__PURE__ */ P(wJ, {
40664
40751
  label: e,
40665
40752
  className: t,
40666
- children: /* @__PURE__ */ P(yJ, {
40753
+ children: /* @__PURE__ */ P(OJ, {
40667
40754
  direction: a,
40668
40755
  children: o.map((e, t) => /* @__PURE__ */ P(s, {
40669
40756
  value: e.value,
@@ -40674,7 +40761,7 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40674
40761
  })
40675
40762
  });
40676
40763
  }
40677
- }, xJ = U.default.shape({
40764
+ }, AJ = U.default.shape({
40678
40765
  label: U.default.string,
40679
40766
  value: U.default.string
40680
40767
  });
@@ -40683,14 +40770,14 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40683
40770
  header: U.default.string.isRequired,
40684
40771
  value: U.default.string.isRequired,
40685
40772
  onChange: U.default.func.isRequired,
40686
- one: U.default.oneOfType([xJ, U.default.string]),
40687
- two: U.default.oneOfType([xJ, U.default.string]),
40773
+ one: U.default.oneOfType([AJ, U.default.string]),
40774
+ two: U.default.oneOfType([AJ, U.default.string]),
40688
40775
  className: U.default.string,
40689
40776
  customLabel: U.default.func
40690
40777
  };
40691
40778
  render() {
40692
40779
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
40693
- return /* @__PURE__ */ P(bJ, {
40780
+ return /* @__PURE__ */ P(kJ, {
40694
40781
  customLabel: i,
40695
40782
  header: n,
40696
40783
  className: r,
@@ -40702,21 +40789,21 @@ var hJ = mJ(We, "InputContainer") || mJ(vJ.InputContainer, "InputContainer"), gJ
40702
40789
  });
40703
40790
  //#endregion
40704
40791
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
40705
- var SJ = Object.defineProperty, CJ = (e, t) => {
40792
+ var jJ = Object.defineProperty, MJ = (e, t) => {
40706
40793
  let n = {};
40707
- for (var r in e) SJ(n, r, {
40794
+ for (var r in e) jJ(n, r, {
40708
40795
  get: e[r],
40709
40796
  enumerable: !0
40710
40797
  });
40711
- return t || SJ(n, Symbol.toStringTag, { value: "Module" }), n;
40712
- }, wJ = M("div")(() => ({
40798
+ return t || jJ(n, Symbol.toStringTag, { value: "Module" }), n;
40799
+ }, NJ = M("div")(() => ({
40713
40800
  display: "flex",
40714
40801
  flexDirection: "column",
40715
40802
  position: "relative"
40716
- })), TJ = M("div")(() => ({
40803
+ })), PJ = M("div")(() => ({
40717
40804
  display: "flex",
40718
40805
  justifyContent: "space-between"
40719
- })), EJ = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), DJ = M("div")(() => ({ flex: "1" })), OJ = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), kJ = class extends pt.Component {
40806
+ })), FJ = M("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), IJ = M("div")(() => ({ flex: "1" })), LJ = M("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), RJ = class extends pt.Component {
40720
40807
  static propTypes = {
40721
40808
  mode: U.default.oneOf(["tabbed", "inline"]),
40722
40809
  secondary: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]),
@@ -40734,7 +40821,7 @@ var SJ = Object.defineProperty, CJ = (e, t) => {
40734
40821
  } catch (e) {
40735
40822
  console.log(e.toString());
40736
40823
  }
40737
- return /* @__PURE__ */ F(wJ, {
40824
+ return /* @__PURE__ */ F(NJ, {
40738
40825
  style: {
40739
40826
  minHeight: i,
40740
40827
  minWidth: a,
@@ -40742,28 +40829,28 @@ var SJ = Object.defineProperty, CJ = (e, t) => {
40742
40829
  maxWidth: s
40743
40830
  },
40744
40831
  children: [
40745
- e === "inline" && /* @__PURE__ */ F(TJ, { children: [/* @__PURE__ */ P(DJ, {
40832
+ e === "inline" && /* @__PURE__ */ F(PJ, { children: [/* @__PURE__ */ P(IJ, {
40746
40833
  className: "design-container",
40747
40834
  children: n
40748
- }), l && /* @__PURE__ */ P(OJ, {
40835
+ }), l && /* @__PURE__ */ P(LJ, {
40749
40836
  className: "settings-container",
40750
40837
  children: t
40751
40838
  })] }),
40752
- e === "tabbed" && l && /* @__PURE__ */ F(aJ, {
40839
+ e === "tabbed" && l && /* @__PURE__ */ F(mJ, {
40753
40840
  onChange: this.onTabsChange,
40754
40841
  contentClassName: "content-container",
40755
40842
  indicatorColor: "primary",
40756
- children: [/* @__PURE__ */ P(EJ, {
40843
+ children: [/* @__PURE__ */ P(FJ, {
40757
40844
  title: "Design",
40758
40845
  className: "design-container",
40759
40846
  children: n
40760
- }), /* @__PURE__ */ P(EJ, {
40847
+ }), /* @__PURE__ */ P(FJ, {
40761
40848
  title: "Settings",
40762
40849
  className: "settings-container",
40763
40850
  children: t
40764
40851
  })]
40765
40852
  }),
40766
- e === "tabbed" && !l && /* @__PURE__ */ P(EJ, {
40853
+ e === "tabbed" && !l && /* @__PURE__ */ P(FJ, {
40767
40854
  className: "design-container",
40768
40855
  children: n
40769
40856
  })
@@ -40773,18 +40860,18 @@ var SJ = Object.defineProperty, CJ = (e, t) => {
40773
40860
  };
40774
40861
  //#endregion
40775
40862
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
40776
- function AJ() {
40777
- return AJ = Object.assign ? Object.assign.bind() : function(e) {
40863
+ function zJ() {
40864
+ return zJ = Object.assign ? Object.assign.bind() : function(e) {
40778
40865
  for (var t = 1; t < arguments.length; t++) {
40779
40866
  var n = arguments[t];
40780
40867
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
40781
40868
  }
40782
40869
  return e;
40783
- }, AJ.apply(null, arguments);
40870
+ }, zJ.apply(null, arguments);
40784
40871
  }
40785
40872
  //#endregion
40786
40873
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
40787
- function jJ(e, t) {
40874
+ function BJ(e, t) {
40788
40875
  if (e == null) return {};
40789
40876
  var n = {};
40790
40877
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -40795,19 +40882,19 @@ function jJ(e, t) {
40795
40882
  }
40796
40883
  //#endregion
40797
40884
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
40798
- function MJ(e, t) {
40799
- return MJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40885
+ function VJ(e, t) {
40886
+ return VJ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
40800
40887
  return e.__proto__ = t, e;
40801
- }, MJ(e, t);
40888
+ }, VJ(e, t);
40802
40889
  }
40803
40890
  //#endregion
40804
40891
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
40805
- function NJ(e, t) {
40806
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, MJ(e, t);
40892
+ function HJ(e, t) {
40893
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, VJ(e, t);
40807
40894
  }
40808
40895
  //#endregion
40809
40896
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
40810
- var PJ = (function() {
40897
+ var UJ = (function() {
40811
40898
  if (typeof Map < "u") return Map;
40812
40899
  function e(e, t) {
40813
40900
  var n = -1;
@@ -40846,34 +40933,34 @@ var PJ = (function() {
40846
40933
  }
40847
40934
  }, t;
40848
40935
  }();
40849
- })(), FJ = typeof window < "u" && typeof document < "u" && window.document === document, IJ = (function() {
40936
+ })(), WJ = typeof window < "u" && typeof document < "u" && window.document === document, GJ = (function() {
40850
40937
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
40851
- })(), LJ = (function() {
40852
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(IJ) : function(e) {
40938
+ })(), KJ = (function() {
40939
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(GJ) : function(e) {
40853
40940
  return setTimeout(function() {
40854
40941
  return e(Date.now());
40855
40942
  }, 1e3 / 60);
40856
40943
  };
40857
- })(), RJ = 2;
40858
- function zJ(e, t) {
40944
+ })(), qJ = 2;
40945
+ function JJ(e, t) {
40859
40946
  var n = !1, r = !1, i = 0;
40860
40947
  function a() {
40861
40948
  n && (n = !1, e()), r && s();
40862
40949
  }
40863
40950
  function o() {
40864
- LJ(a);
40951
+ KJ(a);
40865
40952
  }
40866
40953
  function s() {
40867
40954
  var e = Date.now();
40868
40955
  if (n) {
40869
- if (e - i < RJ) return;
40956
+ if (e - i < qJ) return;
40870
40957
  r = !0;
40871
40958
  } else n = !0, r = !1, setTimeout(o, t);
40872
40959
  i = e;
40873
40960
  }
40874
40961
  return s;
40875
40962
  }
40876
- var BJ = 20, VJ = [
40963
+ var YJ = 20, XJ = [
40877
40964
  "top",
40878
40965
  "right",
40879
40966
  "bottom",
@@ -40882,9 +40969,9 @@ var BJ = 20, VJ = [
40882
40969
  "height",
40883
40970
  "size",
40884
40971
  "weight"
40885
- ], HJ = typeof MutationObserver < "u", UJ = function() {
40972
+ ], ZJ = typeof MutationObserver < "u", QJ = function() {
40886
40973
  function e() {
40887
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = zJ(this.refresh.bind(this), BJ);
40974
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = JJ(this.refresh.bind(this), YJ);
40888
40975
  }
40889
40976
  return e.prototype.addObserver = function(e) {
40890
40977
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -40901,23 +40988,23 @@ var BJ = 20, VJ = [
40901
40988
  return e.broadcastActive();
40902
40989
  }), e.length > 0;
40903
40990
  }, e.prototype.connect_ = function() {
40904
- !FJ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), HJ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40991
+ !WJ || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), ZJ ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
40905
40992
  attributes: !0,
40906
40993
  childList: !0,
40907
40994
  characterData: !0,
40908
40995
  subtree: !0
40909
40996
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
40910
40997
  }, e.prototype.disconnect_ = function() {
40911
- !FJ || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
40998
+ !WJ || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
40912
40999
  }, e.prototype.onTransitionEnd_ = function(e) {
40913
41000
  var t = e.propertyName, n = t === void 0 ? "" : t;
40914
- VJ.some(function(e) {
41001
+ XJ.some(function(e) {
40915
41002
  return !!~n.indexOf(e);
40916
41003
  }) && this.refresh();
40917
41004
  }, e.getInstance = function() {
40918
41005
  return this.instance_ ||= new e(), this.instance_;
40919
41006
  }, e.instance_ = null, e;
40920
- }(), WJ = (function(e, t) {
41007
+ }(), $J = (function(e, t) {
40921
41008
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
40922
41009
  var i = r[n];
40923
41010
  Object.defineProperty(e, i, {
@@ -40928,19 +41015,19 @@ var BJ = 20, VJ = [
40928
41015
  });
40929
41016
  }
40930
41017
  return e;
40931
- }), GJ = (function(e) {
40932
- return e && e.ownerDocument && e.ownerDocument.defaultView || IJ;
40933
- }), KJ = nY(0, 0, 0, 0);
40934
- function qJ(e) {
41018
+ }), eY = (function(e) {
41019
+ return e && e.ownerDocument && e.ownerDocument.defaultView || GJ;
41020
+ }), tY = dY(0, 0, 0, 0);
41021
+ function nY(e) {
40935
41022
  return parseFloat(e) || 0;
40936
41023
  }
40937
- function JJ(e) {
41024
+ function rY(e) {
40938
41025
  return [...arguments].slice(1).reduce(function(t, n) {
40939
41026
  var r = e["border-" + n + "-width"];
40940
- return t + qJ(r);
41027
+ return t + nY(r);
40941
41028
  }, 0);
40942
41029
  }
40943
- function YJ(e) {
41030
+ function iY(e) {
40944
41031
  for (var t = [
40945
41032
  "top",
40946
41033
  "right",
@@ -40948,40 +41035,40 @@ function YJ(e) {
40948
41035
  "left"
40949
41036
  ], n = {}, r = 0, i = t; r < i.length; r++) {
40950
41037
  var a = i[r], o = e["padding-" + a];
40951
- n[a] = qJ(o);
41038
+ n[a] = nY(o);
40952
41039
  }
40953
41040
  return n;
40954
41041
  }
40955
- function XJ(e) {
41042
+ function aY(e) {
40956
41043
  var t = e.getBBox();
40957
- return nY(0, 0, t.width, t.height);
41044
+ return dY(0, 0, t.width, t.height);
40958
41045
  }
40959
- function ZJ(e) {
41046
+ function oY(e) {
40960
41047
  var t = e.clientWidth, n = e.clientHeight;
40961
- if (!t && !n) return KJ;
40962
- var r = GJ(e).getComputedStyle(e), i = YJ(r), a = i.left + i.right, o = i.top + i.bottom, s = qJ(r.width), c = qJ(r.height);
40963
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= JJ(r, "left", "right") + a), Math.round(c + o) !== n && (c -= JJ(r, "top", "bottom") + o)), !$J(e)) {
41048
+ if (!t && !n) return tY;
41049
+ var r = eY(e).getComputedStyle(e), i = iY(r), a = i.left + i.right, o = i.top + i.bottom, s = nY(r.width), c = nY(r.height);
41050
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= rY(r, "left", "right") + a), Math.round(c + o) !== n && (c -= rY(r, "top", "bottom") + o)), !cY(e)) {
40964
41051
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
40965
41052
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
40966
41053
  }
40967
- return nY(i.left, i.top, s, c);
41054
+ return dY(i.left, i.top, s, c);
40968
41055
  }
40969
- var QJ = (function() {
41056
+ var sY = (function() {
40970
41057
  return typeof SVGGraphicsElement < "u" ? function(e) {
40971
- return e instanceof GJ(e).SVGGraphicsElement;
41058
+ return e instanceof eY(e).SVGGraphicsElement;
40972
41059
  } : function(e) {
40973
- return e instanceof GJ(e).SVGElement && typeof e.getBBox == "function";
41060
+ return e instanceof eY(e).SVGElement && typeof e.getBBox == "function";
40974
41061
  };
40975
41062
  })();
40976
- function $J(e) {
40977
- return e === GJ(e).document.documentElement;
41063
+ function cY(e) {
41064
+ return e === eY(e).document.documentElement;
40978
41065
  }
40979
- function eY(e) {
40980
- return FJ ? QJ(e) ? XJ(e) : ZJ(e) : KJ;
41066
+ function lY(e) {
41067
+ return WJ ? sY(e) ? aY(e) : oY(e) : tY;
40981
41068
  }
40982
- function tY(e) {
41069
+ function uY(e) {
40983
41070
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
40984
- return WJ(a, {
41071
+ return $J(a, {
40985
41072
  x: t,
40986
41073
  y: n,
40987
41074
  width: r,
@@ -40992,7 +41079,7 @@ function tY(e) {
40992
41079
  left: t
40993
41080
  }), a;
40994
41081
  }
40995
- function nY(e, t, n, r) {
41082
+ function dY(e, t, n, r) {
40996
41083
  return {
40997
41084
  x: e,
40998
41085
  y: t,
@@ -41000,42 +41087,42 @@ function nY(e, t, n, r) {
41000
41087
  height: r
41001
41088
  };
41002
41089
  }
41003
- var rY = function() {
41090
+ var fY = function() {
41004
41091
  function e(e) {
41005
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = nY(0, 0, 0, 0), this.target = e;
41092
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = dY(0, 0, 0, 0), this.target = e;
41006
41093
  }
41007
41094
  return e.prototype.isActive = function() {
41008
- var e = eY(this.target);
41095
+ var e = lY(this.target);
41009
41096
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41010
41097
  }, e.prototype.broadcastRect = function() {
41011
41098
  var e = this.contentRect_;
41012
41099
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41013
41100
  }, e;
41014
- }(), iY = function() {
41101
+ }(), pY = function() {
41015
41102
  function e(e, t) {
41016
- var n = tY(t);
41017
- WJ(this, {
41103
+ var n = uY(t);
41104
+ $J(this, {
41018
41105
  target: e,
41019
41106
  contentRect: n
41020
41107
  });
41021
41108
  }
41022
41109
  return e;
41023
- }(), aY = function() {
41110
+ }(), mY = function() {
41024
41111
  function e(e, t, n) {
41025
- if (this.activeObservations_ = [], this.observations_ = new PJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41112
+ if (this.activeObservations_ = [], this.observations_ = new UJ(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41026
41113
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41027
41114
  }
41028
41115
  return e.prototype.observe = function(e) {
41029
41116
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41030
41117
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41031
- if (!(e instanceof GJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41118
+ if (!(e instanceof eY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41032
41119
  var t = this.observations_;
41033
- t.has(e) || (t.set(e, new rY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41120
+ t.has(e) || (t.set(e, new fY(e)), this.controller_.addObserver(this), this.controller_.refresh());
41034
41121
  }
41035
41122
  }, e.prototype.unobserve = function(e) {
41036
41123
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41037
41124
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41038
- if (!(e instanceof GJ(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41125
+ if (!(e instanceof eY(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41039
41126
  var t = this.observations_;
41040
41127
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41041
41128
  }
@@ -41049,7 +41136,7 @@ var rY = function() {
41049
41136
  }, e.prototype.broadcastActive = function() {
41050
41137
  if (this.hasActive()) {
41051
41138
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41052
- return new iY(e.target, e.broadcastRect());
41139
+ return new pY(e.target, e.broadcastRect());
41053
41140
  });
41054
41141
  this.callback_.call(e, t, e), this.clearActive();
41055
41142
  }
@@ -41058,12 +41145,12 @@ var rY = function() {
41058
41145
  }, e.prototype.hasActive = function() {
41059
41146
  return this.activeObservations_.length > 0;
41060
41147
  }, e;
41061
- }(), oY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new PJ(), sY = function() {
41148
+ }(), hY = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new UJ(), gY = function() {
41062
41149
  function e(t) {
41063
41150
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41064
41151
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41065
- var n = new aY(t, UJ.getInstance(), this);
41066
- oY.set(this, n);
41152
+ var n = new mY(t, QJ.getInstance(), this);
41153
+ hY.set(this, n);
41067
41154
  }
41068
41155
  return e;
41069
41156
  }();
@@ -41072,27 +41159,27 @@ var rY = function() {
41072
41159
  "unobserve",
41073
41160
  "disconnect"
41074
41161
  ].forEach(function(e) {
41075
- sY.prototype[e] = function() {
41162
+ gY.prototype[e] = function() {
41076
41163
  var t;
41077
- return (t = oY.get(this))[e].apply(t, arguments);
41164
+ return (t = hY.get(this))[e].apply(t, arguments);
41078
41165
  };
41079
41166
  });
41080
- var cY = (function() {
41081
- return IJ.ResizeObserver === void 0 ? sY : IJ.ResizeObserver;
41082
- })(), lY = [
41167
+ var _Y = (function() {
41168
+ return GJ.ResizeObserver === void 0 ? gY : GJ.ResizeObserver;
41169
+ })(), vY = [
41083
41170
  "client",
41084
41171
  "offset",
41085
41172
  "scroll",
41086
41173
  "bounds",
41087
41174
  "margin"
41088
41175
  ];
41089
- function uY(e) {
41176
+ function yY(e) {
41090
41177
  var t = [];
41091
- return lY.forEach(function(n) {
41178
+ return vY.forEach(function(n) {
41092
41179
  e[n] && t.push(n);
41093
41180
  }), t;
41094
41181
  }
41095
- function dY(e, t) {
41182
+ function bY(e, t) {
41096
41183
  var n = {};
41097
41184
  if (t.indexOf("client") > -1 && (n.client = {
41098
41185
  top: e.clientTop,
@@ -41131,14 +41218,14 @@ function dY(e, t) {
41131
41218
  }
41132
41219
  return n;
41133
41220
  }
41134
- function fY(e) {
41221
+ function xY(e) {
41135
41222
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
41136
41223
  }
41137
- function pY(e) {
41224
+ function SY(e) {
41138
41225
  return function(t) {
41139
41226
  var n, r;
41140
41227
  return r = n = /*#__PURE__*/ function(n) {
41141
- NJ(r, n);
41228
+ HJ(r, n);
41142
41229
  function r() {
41143
41230
  var t, r = [...arguments];
41144
41231
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -41149,24 +41236,24 @@ function pY(e) {
41149
41236
  bounds: {},
41150
41237
  margin: {}
41151
41238
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
41152
- var r = dY(t._node, e || uY(t.props));
41239
+ var r = bY(t._node, e || yY(t.props));
41153
41240
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
41154
41241
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
41155
41242
  });
41156
41243
  }, t._handleRef = function(e) {
41157
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = fY(t._node);
41244
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = xY(t._node);
41158
41245
  var n = t.props.innerRef;
41159
41246
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
41160
41247
  }, t;
41161
41248
  }
41162
41249
  var i = r.prototype;
41163
41250
  return i.componentDidMount = function() {
41164
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new cY(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(dY(this._node, e || uY(this.props))));
41251
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new _Y(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(bY(this._node, e || yY(this.props))));
41165
41252
  }, i.componentWillUnmount = function() {
41166
41253
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
41167
41254
  }, i.render = function() {
41168
41255
  var e = this.props;
41169
- return e.innerRef, e.onResize, gt(t, AJ({}, jJ(e, ["innerRef", "onResize"]), {
41256
+ return e.innerRef, e.onResize, gt(t, zJ({}, BJ(e, ["innerRef", "onResize"]), {
41170
41257
  measureRef: this._handleRef,
41171
41258
  measure: this.measure,
41172
41259
  contentRect: this.state.contentRect
@@ -41183,7 +41270,7 @@ function pY(e) {
41183
41270
  }, r;
41184
41271
  };
41185
41272
  }
41186
- var mY = pY()(function(e) {
41273
+ var CY = SY()(function(e) {
41187
41274
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
41188
41275
  return i({
41189
41276
  measure: t,
@@ -41191,12 +41278,12 @@ var mY = pY()(function(e) {
41191
41278
  contentRect: r
41192
41279
  });
41193
41280
  });
41194
- mY.displayName = "Measure", mY.propTypes.children = U.default.func;
41281
+ CY.displayName = "Measure", CY.propTypes.children = U.default.func;
41195
41282
  //#endregion
41196
41283
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
41197
- var hY = M("div")(() => ({
41198
- backgroundColor: D.white(),
41199
- border: `2px solid ${D.border()}`,
41284
+ var wY = M("div")(() => ({
41285
+ backgroundColor: O.white(),
41286
+ border: `2px solid ${O.border()}`,
41200
41287
  display: "flex",
41201
41288
  flexDirection: "column",
41202
41289
  justifyContent: "flex-start",
@@ -41204,7 +41291,7 @@ var hY = M("div")(() => ({
41204
41291
  maxWidth: "300px",
41205
41292
  padding: "20px 4px 4px 20px",
41206
41293
  zIndex: 99
41207
- })), gY = class extends pt.Component {
41294
+ })), TY = class extends pt.Component {
41208
41295
  static propTypes = {
41209
41296
  className: U.default.string,
41210
41297
  children: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]).isRequired
@@ -41212,19 +41299,19 @@ var hY = M("div")(() => ({
41212
41299
  static defaultProps = {};
41213
41300
  render() {
41214
41301
  let { className: e, children: t } = this.props;
41215
- return /* @__PURE__ */ P(hY, {
41302
+ return /* @__PURE__ */ P(wY, {
41216
41303
  className: e,
41217
41304
  children: t
41218
41305
  });
41219
41306
  }
41220
- }, _Y = he({
41307
+ }, EY = he({
41221
41308
  typography: { fontFamily: "inherit" },
41222
41309
  components: { MuiButton: { styleOverrides: { contained: {
41223
41310
  backgroundColor: "#e0e0e0",
41224
41311
  color: "#000000",
41225
41312
  "&:hover": { backgroundColor: "#bdbdbd" }
41226
41313
  } } } }
41227
- }), vY = class extends pt.Component {
41314
+ }), DY = class extends pt.Component {
41228
41315
  static propTypes = {
41229
41316
  children: U.default.oneOfType([
41230
41317
  U.default.string,
@@ -41257,19 +41344,19 @@ var hY = M("div")(() => ({
41257
41344
  return /* @__PURE__ */ P(w, {
41258
41345
  injectFirst: !0,
41259
41346
  children: /* @__PURE__ */ P(je, {
41260
- theme: _Y,
41261
- children: /* @__PURE__ */ P(mY, {
41347
+ theme: EY,
41348
+ children: /* @__PURE__ */ P(CY, {
41262
41349
  bounds: !0,
41263
41350
  onResize: this.onResize,
41264
41351
  children: ({ measureRef: e }) => {
41265
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(gY, {
41352
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(TY, {
41266
41353
  className: "settings-box",
41267
41354
  children: n
41268
41355
  }) : n;
41269
41356
  return /* @__PURE__ */ F("div", {
41270
41357
  ref: e,
41271
41358
  className: "main-container extraCSSRules",
41272
- children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(kJ, {
41359
+ children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(RJ, {
41273
41360
  mode: o,
41274
41361
  secondary: s,
41275
41362
  dimensions: i,
@@ -41281,27 +41368,27 @@ var hY = M("div")(() => ({
41281
41368
  })
41282
41369
  });
41283
41370
  }
41284
- }, yY = pY("bounds")(vY), bY = /* @__PURE__ */ CJ({
41285
- ConfigLayout: () => yY,
41286
- LayoutContents: () => kJ
41287
- }), xY = M("div")(() => ({
41371
+ }, OY = SY("bounds")(DY), kY = /* @__PURE__ */ MJ({
41372
+ ConfigLayout: () => OY,
41373
+ LayoutContents: () => RJ
41374
+ }), AY = M("div")(() => ({
41288
41375
  display: "flex",
41289
41376
  width: "100%",
41290
41377
  justifyContent: "space-between"
41291
- })), SY = M(Je)(({ theme: e }) => ({
41378
+ })), jY = M(Je)(({ theme: e }) => ({
41292
41379
  color: "rgba(0, 0, 0, 0.89)",
41293
41380
  fontSize: e.typography.fontSize,
41294
41381
  paddingTop: e.spacing(2)
41295
- })), CY = M(Zq)(({ checked: e }) => ({
41296
- "&.Mui-checked .MuiSwitch-thumb": { color: `${D.tertiary()} !important` },
41297
- "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${D.tertiaryLight()} !important` },
41298
- "& .MuiSwitch-track": { backgroundColor: e ? `${D.tertiaryLight()} !important` : void 0 }
41299
- })), wY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(xY, { children: [/* @__PURE__ */ P(SY, { children: n }), /* @__PURE__ */ P(CY, {
41382
+ })), MY = M(oJ)(({ checked: e }) => ({
41383
+ "&.Mui-checked .MuiSwitch-thumb": { color: `${O.tertiary()} !important` },
41384
+ "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${O.tertiaryLight()} !important` },
41385
+ "& .MuiSwitch-track": { backgroundColor: e ? `${O.tertiaryLight()} !important` : void 0 }
41386
+ })), NY = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(AY, { children: [/* @__PURE__ */ P(jY, { children: n }), /* @__PURE__ */ P(MY, {
41300
41387
  checked: e,
41301
41388
  disabled: t,
41302
41389
  onChange: (e) => r(e.target.checked)
41303
41390
  })] });
41304
- wY.propTypes = {
41391
+ NY.propTypes = {
41305
41392
  checked: U.default.bool,
41306
41393
  disabled: U.default.bool,
41307
41394
  label: U.default.string.isRequired,
@@ -41309,20 +41396,20 @@ wY.propTypes = {
41309
41396
  };
41310
41397
  //#endregion
41311
41398
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
41312
- var TY = M(cq)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41399
+ var PY = M(_q)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
41313
41400
  color: "rgba(0, 0, 0, 0.89)",
41314
41401
  fontSize: e.typography.fontSize - 2,
41315
41402
  left: "-5px",
41316
41403
  position: "relative"
41317
- } })), EY = M(jq)(() => ({ color: `${D.tertiary()} !important` })), DY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(TY, {
41404
+ } })), FY = M(Bq)(() => ({ color: `${O.tertiary()} !important` })), IY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(PY, {
41318
41405
  value: t,
41319
- control: /* @__PURE__ */ P(EY, {
41406
+ control: /* @__PURE__ */ P(FY, {
41320
41407
  checked: n,
41321
41408
  onChange: r
41322
41409
  }),
41323
41410
  label: e
41324
41411
  });
41325
- DY.propTypes = {
41412
+ IY.propTypes = {
41326
41413
  label: U.default.string,
41327
41414
  value: U.default.string,
41328
41415
  checked: U.default.bool,
@@ -41330,26 +41417,26 @@ DY.propTypes = {
41330
41417
  };
41331
41418
  //#endregion
41332
41419
  //#region ../../lib-react/config-ui/dist/settings/panel.js
41333
- var OY = (0, Vt.default)("pie-lib:config-ui:settings:panel"), kY = {
41420
+ var LY = (0, Vt.default)("pie-lib:config-ui:settings:panel"), RY = {
41334
41421
  label: U.default.string,
41335
41422
  value: U.default.string
41336
- }, AY = {
41423
+ }, zY = {
41337
41424
  label: U.default.string,
41338
41425
  value: U.default.string,
41339
41426
  onChange: U.default.func
41340
- }, jY = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(cJ, {
41427
+ }, BY = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(_J, {
41341
41428
  checked: t,
41342
41429
  label: e,
41343
41430
  onChange: (e) => {
41344
41431
  n(e.target.checked);
41345
41432
  }
41346
41433
  });
41347
- jY.propTypes = {
41434
+ BY.propTypes = {
41348
41435
  label: U.default.string,
41349
41436
  value: U.default.bool,
41350
41437
  onChange: U.default.func
41351
41438
  };
41352
- var MY = M(bJ)(({ theme: e }) => ({
41439
+ var VY = M(kJ)(({ theme: e }) => ({
41353
41440
  marginTop: e.spacing(.5),
41354
41441
  paddingBottom: e.spacing(.5),
41355
41442
  width: "100%",
@@ -41360,29 +41447,29 @@ var MY = M(bJ)(({ theme: e }) => ({
41360
41447
  marginTop: e.spacing(2.5)
41361
41448
  },
41362
41449
  "& > div": { marginTop: e.spacing(2.5) }
41363
- })), NY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(MY, {
41450
+ })), HY = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(VY, {
41364
41451
  direction: "horizontal",
41365
- customLabel: DY,
41452
+ customLabel: IY,
41366
41453
  value: t,
41367
41454
  header: e,
41368
41455
  opts: r,
41369
41456
  onChange: n
41370
41457
  });
41371
- NY.propTypes = {
41372
- ...AY,
41373
- choices: U.default.arrayOf(U.default.shape(kY))
41458
+ HY.propTypes = {
41459
+ ...zY,
41460
+ choices: U.default.arrayOf(U.default.shape(RY))
41374
41461
  };
41375
- var PY = NY, FY = M("p")(({ theme: e }) => ({
41462
+ var UY = HY, WY = M("p")(({ theme: e }) => ({
41376
41463
  margin: 0,
41377
41464
  fontSize: e.typography.fontSize
41378
- })), IY = M(ZA)(({ theme: e }) => ({
41465
+ })), GY = M(ZA)(({ theme: e }) => ({
41379
41466
  marginTop: e.spacing(.5),
41380
41467
  border: "2px solid lightgrey",
41381
41468
  padding: `0 ${e.spacing(1)}`,
41382
41469
  borderRadius: "4px"
41383
- })), LY = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41470
+ })), KY = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
41384
41471
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
41385
- return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(FY, { children: e }), /* @__PURE__ */ P(IY, {
41472
+ return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(WY, { children: e }), /* @__PURE__ */ P(GY, {
41386
41473
  value: t || r && r[0],
41387
41474
  onChange: ({ target: e }) => n(e.value),
41388
41475
  input: /* @__PURE__ */ P(OA, { id: `dropdown-${e}` }),
@@ -41397,14 +41484,14 @@ var PY = NY, FY = M("p")(({ theme: e }) => ({
41397
41484
  }, t))
41398
41485
  })] });
41399
41486
  };
41400
- LY.propTypes = {
41401
- ...AY,
41487
+ KY.propTypes = {
41488
+ ...zY,
41402
41489
  choices: U.default.arrayOf(U.default.string)
41403
41490
  };
41404
- var RY = M(Nk)(({ theme: e }) => ({
41491
+ var qY = M(Nk)(({ theme: e }) => ({
41405
41492
  marginRight: e.spacing(3),
41406
41493
  marginTop: e.spacing(1)
41407
- })), zY = ({ label: e }) => /* @__PURE__ */ P(RY, { children: e }), BY = M(fJ)(({ theme: e }) => ({
41494
+ })), JY = ({ label: e }) => /* @__PURE__ */ P(qY, { children: e }), YY = M(xJ)(({ theme: e }) => ({
41408
41495
  width: "35%",
41409
41496
  marginRight: e.spacing(3),
41410
41497
  marginTop: e.spacing(1),
@@ -41415,7 +41502,7 @@ var RY = M(Nk)(({ theme: e }) => ({
41415
41502
  padding: `0 ${e.spacing(1)}`,
41416
41503
  backgroundColor: "transparent"
41417
41504
  }
41418
- })), VY = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(BY, {
41505
+ })), XY = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(YY, {
41419
41506
  variant: "standard",
41420
41507
  label: e || "Label",
41421
41508
  value: t,
@@ -41426,45 +41513,45 @@ var RY = M(Nk)(({ theme: e }) => ({
41426
41513
  showErrorWhenOutsideRange: !0,
41427
41514
  disableUnderline: !0
41428
41515
  });
41429
- VY.propTypes = {
41430
- ...AY,
41516
+ XY.propTypes = {
41517
+ ...zY,
41431
41518
  suffix: U.default.string,
41432
41519
  min: U.default.number,
41433
41520
  max: U.default.number,
41434
41521
  value: U.default.number
41435
- }, zY.propTypes = { ...AY };
41436
- var HY = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(wY, {
41522
+ }, JY.propTypes = { ...zY };
41523
+ var ZY = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(NY, {
41437
41524
  label: t,
41438
41525
  checked: !!n,
41439
41526
  disabled: !!e,
41440
41527
  toggle: r
41441
41528
  });
41442
- HY.propTypes = {
41443
- ...AY,
41529
+ ZY.propTypes = {
41530
+ ...zY,
41444
41531
  value: U.default.bool
41445
41532
  };
41446
- var UY = {
41447
- toggle: HY,
41448
- radio: PY,
41449
- dropdown: LY,
41450
- numberField: VY,
41451
- checkbox: jY,
41452
- textField: zY
41453
- }, WY = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), GY = M("div")(({ theme: e }) => ({
41533
+ var QY = {
41534
+ toggle: ZY,
41535
+ radio: UY,
41536
+ dropdown: KY,
41537
+ numberField: XY,
41538
+ checkbox: BY,
41539
+ textField: JY
41540
+ }, $Y = M("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), eX = M("div")(({ theme: e }) => ({
41454
41541
  color: "#495B8F",
41455
41542
  fontSize: e.typography.fontSize + 2,
41456
41543
  fontWeight: 600,
41457
41544
  marginBottom: e.spacing(1)
41458
- })), KY = M("p")(({ theme: e }) => ({
41545
+ })), tX = M("p")(({ theme: e }) => ({
41459
41546
  fontSize: e.typography.fontSize,
41460
41547
  marginBottom: 0
41461
- })), qY = (e) => {
41548
+ })), nX = (e) => {
41462
41549
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
41463
41550
  let { isConfigProperty: o, ...s } = at(e, r || n), c = at(o ? i : t, n), l = {
41464
41551
  ...s,
41465
41552
  key: n,
41466
41553
  value: c
41467
- }, u = UY[l.type];
41554
+ }, u = QY[l.type];
41468
41555
  return /* @__PURE__ */ P(u, {
41469
41556
  ...l,
41470
41557
  onChange: (e) => a(n, e, o)
@@ -41473,18 +41560,18 @@ var UY = {
41473
41560
  let n = e[t];
41474
41561
  if (!n) return null;
41475
41562
  let { type: r, label: i, fields: a, choices: s } = n;
41476
- return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(KY, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41563
+ return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(tX, { children: i }), Object.keys(a).map((n) => o(e, `${t}.${n}`, `${t}.fields.${n}`))] }, `numberField-${i}`) : r === "checkboxes" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("p", { children: i }), Object.keys(s).map((n) => o(e, `${t}.${n}`, `${t}.choices.${n}`))] }, `checkbox-${i}`) : o(e, t);
41477
41564
  };
41478
- return /* @__PURE__ */ F(WY, { children: [/* @__PURE__ */ P(GY, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41565
+ return /* @__PURE__ */ F($Y, { children: [/* @__PURE__ */ P(eX, { children: n }), Object.keys(r).map((e) => s(r, e))] });
41479
41566
  };
41480
- qY.propTypes = {
41567
+ nX.propTypes = {
41481
41568
  model: U.default.object,
41482
41569
  label: U.default.string,
41483
41570
  group: U.default.object,
41484
41571
  configuration: U.default.object,
41485
41572
  onChange: U.default.func
41486
41573
  };
41487
- var JY = class extends pt.Component {
41574
+ var rX = class extends pt.Component {
41488
41575
  static propTypes = {
41489
41576
  model: U.default.object,
41490
41577
  configuration: U.default.object,
@@ -41498,13 +41585,13 @@ var JY = class extends pt.Component {
41498
41585
  onChangeConfiguration: () => {}
41499
41586
  };
41500
41587
  change = (e, t, n = !1) => {
41501
- OY("[changeModel]", e, t);
41588
+ LY("[changeModel]", e, t);
41502
41589
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
41503
41590
  n ? (st(o, e, t), i(o, e)) : (st(a, e, t), r(a, e));
41504
41591
  };
41505
41592
  render() {
41506
41593
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
41507
- return OY("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(qY, {
41594
+ return LY("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(nX, {
41508
41595
  label: r,
41509
41596
  model: t,
41510
41597
  configuration: n,
@@ -41512,68 +41599,68 @@ var JY = class extends pt.Component {
41512
41599
  onChange: this.change
41513
41600
  }, r) : null), r] });
41514
41601
  }
41515
- }, YY = /* @__PURE__ */ CJ({
41516
- Panel: () => JY,
41517
- checkbox: () => rX,
41518
- checkboxes: () => iX,
41519
- dropdown: () => eX,
41520
- numberField: () => tX,
41521
- numberFields: () => nX,
41522
- radio: () => $Y,
41523
- textField: () => XY,
41524
- toggle: () => ZY
41525
- }), XY = (e, t = !0) => ({
41602
+ }, iX = /* @__PURE__ */ MJ({
41603
+ Panel: () => rX,
41604
+ checkbox: () => fX,
41605
+ checkboxes: () => pX,
41606
+ dropdown: () => lX,
41607
+ numberField: () => uX,
41608
+ numberFields: () => dX,
41609
+ radio: () => cX,
41610
+ textField: () => aX,
41611
+ toggle: () => oX
41612
+ }), aX = (e, t = !0) => ({
41526
41613
  label: e,
41527
41614
  type: "textField",
41528
41615
  isConfigProperty: t
41529
- }), ZY = (e, t = !1, n = !1) => ({
41616
+ }), oX = (e, t = !1, n = !1) => ({
41530
41617
  type: "toggle",
41531
41618
  label: e,
41532
41619
  isConfigProperty: t,
41533
41620
  disabled: n
41534
- }), QY = (e) => typeof e == "string" ? {
41621
+ }), sX = (e) => typeof e == "string" ? {
41535
41622
  label: e,
41536
41623
  value: e
41537
- } : e, $Y = function() {
41624
+ } : e, cX = function() {
41538
41625
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
41539
41626
  return {
41540
41627
  type: "radio",
41541
41628
  label: e,
41542
- choices: t && t.map((e) => QY(e)),
41629
+ choices: t && t.map((e) => sX(e)),
41543
41630
  isConfigProperty: n
41544
41631
  };
41545
- }, eX = (e, t, n = !1) => ({
41632
+ }, lX = (e, t, n = !1) => ({
41546
41633
  type: "dropdown",
41547
41634
  label: e,
41548
41635
  choices: t,
41549
41636
  isConfigProperty: n
41550
- }), tX = (e, t, n = !1) => ({
41637
+ }), uX = (e, t, n = !1) => ({
41551
41638
  ...t,
41552
41639
  label: e,
41553
41640
  type: "numberField",
41554
41641
  isConfigProperty: n
41555
- }), nX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41556
- t[e] = tX(t[e].label, t[e], n);
41642
+ }), dX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41643
+ t[e] = uX(t[e].label, t[e], n);
41557
41644
  }), {
41558
41645
  type: "numberFields",
41559
41646
  label: e,
41560
41647
  fields: t
41561
- }), rX = (e, t, n = !1) => ({
41648
+ }), fX = (e, t, n = !1) => ({
41562
41649
  ...t,
41563
41650
  label: e,
41564
41651
  type: "checkbox",
41565
41652
  isConfigProperty: n
41566
- }), iX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41567
- t[e] = rX(t[e].label, t[e], n);
41653
+ }), pX = (e, t, n = !1) => (Object.keys(t).map((e) => {
41654
+ t[e] = fX(t[e].label, t[e], n);
41568
41655
  }), {
41569
41656
  type: "checkboxes",
41570
41657
  label: e,
41571
41658
  choices: t
41572
- }), aX = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), oX = (e) => {
41659
+ }), mX = o(/*#__PURE__*/ P("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z" }), "Info"), hX = (e) => {
41573
41660
  let t = document.createElement("div");
41574
41661
  return t.innerHTML = e.trim(), t;
41575
- }, sX = "imes|riangle|an|heta|herefore", cX = "throot|parallel|cong|approx|eq|e|sim", lX = RegExp(`(\\t(?!${sX}))|(\\n(?!${cX}))|(\\\\t(?!${sX}))|(\\\\n(?!${cX}))`, "g"), uX = (e) => e.replace(lX, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), dX = (e) => {
41576
- let t = oX(uX(e)), n = [], r = 0;
41662
+ }, gX = "imes|riangle|an|heta|herefore", _X = "throot|parallel|cong|approx|eq|e|sim", vX = RegExp(`(\\t(?!${gX}))|(\\n(?!${_X}))|(\\\\t(?!${gX}))|(\\\\n(?!${_X}))`, "g"), yX = (e) => e.replace(vX, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), bX = (e) => {
41663
+ let t = hX(yX(e)), n = [], r = 0;
41577
41664
  return t.querySelectorAll("[data-type=\"drag_in_the_blank\"]").forEach((e) => {
41578
41665
  let t = e.dataset.value && e.dataset.value.replace(/&nbsp;/g, " ").trim();
41579
41666
  t ||= "", n.push({
@@ -41585,29 +41672,29 @@ var JY = class extends pt.Component {
41585
41672
  choices: n,
41586
41673
  correctResponse: n.reduce((e, t, n) => (e[n] = t.id !== void 0 && t.id || "", e), {})
41587
41674
  };
41588
- }, fX = /\{\{(\d+)\}\}/g, pX = (e, t, n) => {
41589
- let r = uX(e), i = 0;
41590
- return r.replace(fX, (e, r) => {
41675
+ }, xX = /\{\{(\d+)\}\}/g, SX = (e, t, n) => {
41676
+ let r = yX(e), i = 0;
41677
+ return r.replace(xX, (e, r) => {
41591
41678
  let a = n[r], o = t.find((e) => e.id === a);
41592
41679
  return (!o || !o.value) && (o = {
41593
41680
  id: "",
41594
41681
  value: ""
41595
41682
  }), `<span data-type="drag_in_the_blank" data-index="${i++}" data-id="${o.id}" data-value="${ut(o.value)}"></span>`;
41596
41683
  });
41597
- }, mX = (e) => {
41684
+ }, CX = (e) => {
41598
41685
  if (e) {
41599
- let { value: t = "" } = e, n = oX(t);
41686
+ let { value: t = "" } = e, n = hX(t);
41600
41687
  return Array.from(n.querySelectorAll("*")).forEach((e) => {
41601
41688
  e.tagName !== "IMG" && e.childNodes.length === 0 && e.remove();
41602
41689
  }), n.innerHTML.trim() === "";
41603
41690
  }
41604
41691
  return !1;
41605
- }, hX = ({ style: e }) => /* @__PURE__ */ F("span", {
41692
+ }, wX = ({ style: e }) => /* @__PURE__ */ F("span", {
41606
41693
  style: e,
41607
41694
  children: [/* @__PURE__ */ P(iw, { style: { margin: "0 -16px" } }), /* @__PURE__ */ P(iw, {})]
41608
41695
  });
41609
- hX.propTypes = { style: U.default.object };
41610
- var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(e) })(({ theme: e, error: t }) => ({
41696
+ wX.propTypes = { style: U.default.object };
41697
+ var TX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(e) })(({ theme: e, error: t }) => ({
41611
41698
  display: "inline-flex",
41612
41699
  minWidth: "178px",
41613
41700
  minHeight: "36px",
@@ -41618,21 +41705,21 @@ var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(
41618
41705
  position: "relative",
41619
41706
  padding: "8px 35px 8px 35px",
41620
41707
  cursor: "grab",
41621
- border: `1px solid ${t ? "#f44336" : D.border()}`,
41708
+ border: `1px solid ${t ? "#f44336" : O.border()}`,
41622
41709
  "& img": { display: "flex" },
41623
41710
  "& p": { margin: 0 },
41624
41711
  "& mjx-frac": { fontSize: "120% !important" }
41625
- })), _X = M(_S)(({ theme: e }) => ({
41712
+ })), EX = M(_S)(({ theme: e }) => ({
41626
41713
  position: "absolute",
41627
41714
  top: "6px",
41628
41715
  right: "0",
41629
- color: D.text(),
41716
+ color: O.text(),
41630
41717
  zIndex: 2,
41631
41718
  "&:hover": {
41632
41719
  cursor: "pointer",
41633
41720
  color: e.palette.common.black
41634
41721
  }
41635
- })), vX = (e) => {
41722
+ })), DX = (e) => {
41636
41723
  let { choice: t, onClick: n, onRemoveChoice: r, error: i, instanceId: a, disabled: o } = e, { attributes: s, listeners: c, setNodeRef: l, isDragging: u } = Pe({
41637
41724
  id: `choice-${t.id}-${a || "default"}`,
41638
41725
  data: {
@@ -41641,14 +41728,14 @@ var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(
41641
41728
  value: t,
41642
41729
  instanceId: a
41643
41730
  },
41644
- disabled: o || mX(t)
41731
+ disabled: o || CX(t)
41645
41732
  }), d = (e) => {
41646
- if (mX(t)) {
41733
+ if (CX(t)) {
41647
41734
  e.preventDefault(), alert("You need to define a value for an answer choice before it can be associated with a response area.");
41648
41735
  return;
41649
41736
  }
41650
41737
  };
41651
- return /* @__PURE__ */ F(gX, {
41738
+ return /* @__PURE__ */ F(TX, {
41652
41739
  ref: l,
41653
41740
  error: i,
41654
41741
  isDragging: u,
@@ -41657,21 +41744,21 @@ var gX = M("div", { shouldForwardProp: (e) => !["error", "isDragging"].includes(
41657
41744
  ...c,
41658
41745
  onDragStart: d,
41659
41746
  children: [
41660
- /* @__PURE__ */ P(hX, { style: {
41747
+ /* @__PURE__ */ P(wX, { style: {
41661
41748
  position: "absolute",
41662
41749
  top: "6px",
41663
41750
  left: "15px",
41664
- color: D.borderGray(),
41751
+ color: O.borderGray(),
41665
41752
  zIndex: 2
41666
41753
  } }),
41667
41754
  /* @__PURE__ */ P("span", { dangerouslySetInnerHTML: { __html: t.value } }),
41668
- /* @__PURE__ */ P(_X, { onClick: (e) => {
41755
+ /* @__PURE__ */ P(EX, { onClick: (e) => {
41669
41756
  e.preventDefault(), e.stopPropagation(), r(e);
41670
41757
  } })
41671
41758
  ]
41672
41759
  });
41673
41760
  };
41674
- vX.propTypes = {
41761
+ DX.propTypes = {
41675
41762
  choice: U.default.object.isRequired,
41676
41763
  onClick: U.default.func,
41677
41764
  onRemoveChoice: U.default.func.isRequired,
@@ -41681,22 +41768,22 @@ vX.propTypes = {
41681
41768
  };
41682
41769
  //#endregion
41683
41770
  //#region src/author/choices.tsx
41684
- var yX = M("div")(({ theme: e }) => ({
41771
+ var OX = M("div")(({ theme: e }) => ({
41685
41772
  display: "flex",
41686
41773
  flexDirection: "column",
41687
41774
  marginBottom: e.spacing(1.5)
41688
- })), bX = M(u)({ marginLeft: "auto" }), xX = M("div")(({ theme: e }) => ({
41775
+ })), kX = M(u)({ marginLeft: "auto" }), AX = M("div")(({ theme: e }) => ({
41689
41776
  alignItems: "flex-start",
41690
41777
  display: "flex",
41691
41778
  flexWrap: "wrap",
41692
41779
  justifyContent: "space-evenly",
41693
41780
  marginTop: e.spacing(1),
41694
41781
  "& > *": { margin: e.spacing(1) }
41695
- })), SX = M("div")(({ theme: e }) => ({
41782
+ })), jX = M("div")(({ theme: e }) => ({
41696
41783
  fontSize: e.typography.fontSize - 2,
41697
41784
  color: e.palette.error.main,
41698
41785
  paddingBottom: e.spacing(2)
41699
- })), CX = class extends pt.Component {
41786
+ })), MX = class extends pt.Component {
41700
41787
  static propTypes = {
41701
41788
  duplicates: U.default.bool,
41702
41789
  error: U.default.string,
@@ -41718,7 +41805,7 @@ var yX = M("div")(({ theme: e }) => ({
41718
41805
  }
41719
41806
  onChoiceChanged = (e, t, n) => {
41720
41807
  let { onChange: r, model: i } = this.props, { choices: a, correctResponse: o, alternateResponses: s } = i;
41721
- if (mX({ value: e }) && mX({ value: t })) return;
41808
+ if (CX({ value: e }) && CX({ value: t })) return;
41722
41809
  if ((a || []).find((e) => e.value === t && e.id !== n)) {
41723
41810
  e === "" && r((a || []).filter((e) => e.id !== n)), this.setState({ warning: {
41724
41811
  open: !0,
@@ -41730,7 +41817,7 @@ var yX = M("div")(({ theme: e }) => ({
41730
41817
  ...e,
41731
41818
  value: t
41732
41819
  } : e) || [];
41733
- if (!mX({ value: t })) {
41820
+ if (!CX({ value: t })) {
41734
41821
  r(c);
41735
41822
  return;
41736
41823
  }
@@ -41750,7 +41837,7 @@ var yX = M("div")(({ theme: e }) => ({
41750
41837
  };
41751
41838
  onChoiceDone = (e, t) => {
41752
41839
  let { onChange: n, model: r } = this.props, { choices: i } = r, a = (i || []).find((t) => t.id === e), o = t === void 0 ? a && a.value : t;
41753
- if (!a || !mX({ value: o })) {
41840
+ if (!a || !CX({ value: o })) {
41754
41841
  a && a.value !== o && n((i || []).map((t) => t.id === e ? {
41755
41842
  ...t,
41756
41843
  value: o
@@ -41785,22 +41872,22 @@ var yX = M("div")(({ theme: e }) => ({
41785
41872
  };
41786
41873
  render() {
41787
41874
  let { focusedEl: e, warning: t } = this.state, { duplicates: n, error: r, mathMlOptions: i = {}, maxChoices: a, model: { choices: o }, toolbarOpts: s, uploadSoundSupport: c, imageSupport: l = {}, pluginProps: u = {}, maxImageWidth: d, maxImageHeight: f, maxLength: p } = this.props, m = this.getVisibleChoices() || [];
41788
- return /* @__PURE__ */ F(yX, {
41875
+ return /* @__PURE__ */ F(OX, {
41789
41876
  ref: this.wrapperRef,
41790
41877
  children: [
41791
- /* @__PURE__ */ P(bX, {
41878
+ /* @__PURE__ */ P(kX, {
41792
41879
  variant: "contained",
41793
41880
  color: "primary",
41794
41881
  onClick: this.onAddChoice,
41795
41882
  disabled: a && o && a === o.length,
41796
41883
  children: "Add Choice"
41797
41884
  }),
41798
- /* @__PURE__ */ P(xX, { children: m.map((t, a) => !t || !t.id ? null : e === t.id ? /* @__PURE__ */ P("div", {
41885
+ /* @__PURE__ */ P(AX, { children: m.map((t, a) => !t || !t.id ? null : e === t.id ? /* @__PURE__ */ P("div", {
41799
41886
  style: {
41800
41887
  minWidth: "100%",
41801
41888
  zIndex: "100"
41802
41889
  },
41803
- children: /* @__PURE__ */ P(FK, {
41890
+ children: /* @__PURE__ */ P(WK, {
41804
41891
  ref: (e) => this.focusedNodeRef = e,
41805
41892
  autoFocus: !0,
41806
41893
  imageSupport: l,
@@ -41825,15 +41912,15 @@ var yX = M("div")(({ theme: e }) => ({
41825
41912
  maxImageWidth: d,
41826
41913
  charactersLimit: p
41827
41914
  })
41828
- }, a) : /* @__PURE__ */ P(vX, {
41915
+ }, a) : /* @__PURE__ */ P(DX, {
41829
41916
  duplicates: n,
41830
41917
  choice: t,
41831
41918
  error: r,
41832
41919
  onClick: () => this.onChoiceFocus(t.id),
41833
41920
  onRemoveChoice: () => this.onChoiceRemove(t.id)
41834
41921
  }, a)) }),
41835
- r && /* @__PURE__ */ P(SX, { children: r }),
41836
- /* @__PURE__ */ P(eJ, {
41922
+ r && /* @__PURE__ */ P(jX, { children: r }),
41923
+ /* @__PURE__ */ P(lJ, {
41837
41924
  open: t.open,
41838
41925
  title: "Warning",
41839
41926
  text: t.text,
@@ -41842,19 +41929,19 @@ var yX = M("div")(({ theme: e }) => ({
41842
41929
  ]
41843
41930
  });
41844
41931
  }
41845
- }, wX = (e) => {
41932
+ }, NX = (e) => {
41846
41933
  let { maxResponseAreas: t, minChoices: n, maxChoices: r } = e;
41847
41934
  return n ||= 2, "Validation requirements:" + ("\nThe tokens should not be empty and should be unique.\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + ` defined.\nThere should be at least ${n} ` + (r ? `and at most ${r} ` : "") + "tokens defined.");
41848
41935
  };
41849
41936
  //#endregion
41850
41937
  //#region src/author/main.tsx
41851
- function TX(e) {
41938
+ function PX(e) {
41852
41939
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41853
41940
  }
41854
- function EX(e, t) {
41855
- return !e || TX(e) ? e : TX(e.default) ? e.default : t && TX(e[t]) ? e[t] : t && TX(e[t]?.default) ? e[t].default : e;
41941
+ function FX(e, t) {
41942
+ return !e || PX(e) ? e : PX(e.default) ? e.default : t && PX(e[t]) ? e[t] : t && PX(e[t]?.default) ? e[t].default : e;
41856
41943
  }
41857
- var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX = ge, kX = OX.default, AX = kX && typeof kX == "object" ? kX : OX, jX = class extends pt.Component {
41944
+ var IX = FX(We, "InputContainer") || FX(zX.InputContainer, "InputContainer"), LX = ge, RX = LX.default, zX = RX && typeof RX == "object" ? RX : LX, BX = class extends pt.Component {
41858
41945
  containerRef = pt.createRef();
41859
41946
  componentDidMount() {
41860
41947
  setTimeout(() => {
@@ -41872,28 +41959,28 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41872
41959
  children: this.props.children
41873
41960
  });
41874
41961
  }
41875
- }, { dropdown: MX, toggle: NX, Panel: PX } = YY, FX = M(DX)(({ theme: e }) => ({
41962
+ }, { dropdown: VX, toggle: HX, Panel: UX } = iX, WX = M(IX)(({ theme: e }) => ({
41876
41963
  width: "100%",
41877
41964
  paddingTop: e.spacing(2),
41878
41965
  marginBottom: e.spacing(2)
41879
- })), IX = M("div")(({ theme: e }) => ({
41966
+ })), GX = M("div")(({ theme: e }) => ({
41880
41967
  minHeight: "235px",
41881
41968
  paddingTop: e.spacing(1),
41882
41969
  paddingBottom: e.spacing(2),
41883
41970
  width: "100%",
41884
41971
  "& [data-slate-editor=\"true\"]": { minHeight: "235px" }
41885
- })), LX = M(Nk)(({ theme: e }) => ({ fontSize: e.typography.fontSize + 2 })), RX = M(Uq)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
41972
+ })), KX = M(Nk)(({ theme: e }) => ({ fontSize: e.typography.fontSize + 2 })), qX = M(Qq)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
41886
41973
  fontSize: e.typography.fontSize - 2,
41887
41974
  whiteSpace: "pre",
41888
41975
  maxWidth: "500px"
41889
- } })), zX = M("div")(({ theme: e }) => ({
41976
+ } })), JX = M("div")(({ theme: e }) => ({
41890
41977
  fontSize: e.typography.fontSize - 2,
41891
41978
  color: e.palette.error.main,
41892
41979
  paddingTop: e.spacing(1)
41893
- })), BX = M("div")({
41980
+ })), YX = M("div")({
41894
41981
  display: "flex",
41895
41982
  alignItems: "center"
41896
- }), VX = class extends pt.Component {
41983
+ }), XX = class extends pt.Component {
41897
41984
  static propTypes = {
41898
41985
  configuration: U.default.object.isRequired,
41899
41986
  model: U.default.object.isRequired,
@@ -41941,7 +42028,7 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41941
42028
  });
41942
42029
  };
41943
42030
  onResponsesChanged = (e) => {
41944
- let { model: { correctResponse: t, markup: n } } = this.props, r = pX(n, e, t);
42031
+ let { model: { correctResponse: t, markup: n } } = this.props, r = SX(n, e, t);
41945
42032
  this.props.onModelChanged({
41946
42033
  ...this.props.model,
41947
42034
  slateMarkup: r,
@@ -41949,24 +42036,24 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41949
42036
  });
41950
42037
  };
41951
42038
  render() {
41952
- let { model: e, configuration: t, onConfigurationChanged: n, imageSupport: r, uploadSoundSupport: i } = this.props, { addChoice: a = {}, baseInputConfiguration: o = {}, contentDimensions: s = {}, duplicates: c = {}, prompt: l = {}, partialScoring: u = {}, lockChoiceOrder: d = {}, rationale: f = {}, teacherInstructions: p = {}, choicesPosition: m = {}, spellCheck: h = {}, settingsPanelDisabled: g, maxChoices: _, maxResponseAreas: v, maxImageWidth: y = {}, maxImageHeight: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {}, maxLength: ee = {} } = t || {}, { rationaleEnabled: T, promptEnabled: te, teacherInstructionsEnabled: ne, spellCheckEnabled: re, toolbarEditorPosition: ie, errors: ae, extraCSSRules: E } = e || {}, { choicesError: D, correctResponseError: O, prompt: oe, rationale: k, responseAreasError: se, teacherInstructions: A } = ae || {}, ce = wX(t), le = y && y.prompt, ue = b && b.prompt, j = { position: ie === "top" ? "top" : "bottom" }, de = {
41953
- partialScoring: u.settings && NX(u.label),
41954
- duplicates: c.settings && NX(c.label),
41955
- lockChoiceOrder: d.settings && NX(d.label),
41956
- choicesPosition: m.settings && MX(m.label, [
42039
+ let { model: e, configuration: t, onConfigurationChanged: n, imageSupport: r, uploadSoundSupport: i } = this.props, { addChoice: a = {}, baseInputConfiguration: o = {}, contentDimensions: s = {}, duplicates: c = {}, prompt: l = {}, partialScoring: u = {}, lockChoiceOrder: d = {}, rationale: f = {}, teacherInstructions: p = {}, choicesPosition: m = {}, spellCheck: h = {}, settingsPanelDisabled: g, maxChoices: _, maxResponseAreas: v, maxImageWidth: y = {}, maxImageHeight: b = {}, withRubric: x = {}, mathMlOptions: S = {}, language: C = {}, languageChoices: w = {}, maxLength: ee = {} } = t || {}, { rationaleEnabled: T, promptEnabled: te, teacherInstructionsEnabled: E, spellCheckEnabled: ne, toolbarEditorPosition: re, errors: ie, extraCSSRules: D } = e || {}, { choicesError: O, correctResponseError: ae, prompt: oe, rationale: k, responseAreasError: se, teacherInstructions: A } = ie || {}, ce = NX(t), le = y && y.prompt, ue = b && b.prompt, j = { position: re === "top" ? "top" : "bottom" }, de = {
42040
+ partialScoring: u.settings && HX(u.label),
42041
+ duplicates: c.settings && HX(c.label),
42042
+ lockChoiceOrder: d.settings && HX(d.label),
42043
+ choicesPosition: m.settings && VX(m.label, [
41957
42044
  "above",
41958
42045
  "below",
41959
42046
  "left",
41960
42047
  "right"
41961
42048
  ]),
41962
- "language.enabled": C.settings && NX(C.label, !0),
41963
- language: C.settings && C.enabled && MX(w.label, w.options)
42049
+ "language.enabled": C.settings && HX(C.label, !0),
42050
+ language: C.settings && C.enabled && VX(w.label, w.options)
41964
42051
  }, fe = {
41965
- teacherInstructionsEnabled: p.settings && NX(p.label),
41966
- rationaleEnabled: f.settings && NX(f.label),
41967
- spellCheckEnabled: h.settings && NX(h.label),
41968
- promptEnabled: l.settings && NX(l.label),
41969
- rubricEnabled: x?.settings && NX(x?.label)
42052
+ teacherInstructionsEnabled: p.settings && HX(p.label),
42053
+ rationaleEnabled: f.settings && HX(f.label),
42054
+ spellCheckEnabled: h.settings && HX(h.label),
42055
+ promptEnabled: l.settings && HX(l.label),
42056
+ rubricEnabled: x?.settings && HX(x?.label)
41970
42057
  }, pe = (e) => Object.assign({ ...o }, e || {});
41971
42058
  return /* @__PURE__ */ F(Be, {
41972
42059
  onDragEnd: ({ active: e, over: t }) => {
@@ -41992,11 +42079,11 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
41992
42079
  let { active: t } = e;
41993
42080
  t?.data?.current && this.setState({ activeDragItem: t.data.current });
41994
42081
  },
41995
- children: [/* @__PURE__ */ F(bY.ConfigLayout, {
41996
- extraCSSRules: E,
42082
+ children: [/* @__PURE__ */ F(kY.ConfigLayout, {
42083
+ extraCSSRules: D,
41997
42084
  dimensions: s,
41998
42085
  hideSettings: g,
41999
- settings: /* @__PURE__ */ P(PX, {
42086
+ settings: /* @__PURE__ */ P(UX, {
42000
42087
  model: e,
42001
42088
  configuration: t,
42002
42089
  onChangeModel: (e) => this.onModelChange(e),
@@ -42007,9 +42094,9 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42007
42094
  }
42008
42095
  }),
42009
42096
  children: [
42010
- ne && /* @__PURE__ */ F(FX, {
42097
+ E && /* @__PURE__ */ F(WX, {
42011
42098
  label: p.label,
42012
- children: [/* @__PURE__ */ P(FK, {
42099
+ children: [/* @__PURE__ */ P(WK, {
42013
42100
  markup: e.teacherInstructions || "",
42014
42101
  onChange: this.onTeacherInstructionsChanged,
42015
42102
  imageSupport: r,
@@ -42017,17 +42104,17 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42017
42104
  error: A,
42018
42105
  toolbarOpts: j,
42019
42106
  pluginProps: pe(p?.inputConfiguration),
42020
- spellCheck: re,
42107
+ spellCheck: ne,
42021
42108
  maxImageWidth: y && y.teacherInstructions || le,
42022
42109
  maxImageHeight: b && b.teacherInstructions || ue,
42023
42110
  uploadSoundSupport: i,
42024
42111
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42025
42112
  mathMlOptions: S
42026
- }), A && /* @__PURE__ */ P(zX, { children: A })]
42113
+ }), A && /* @__PURE__ */ P(JX, { children: A })]
42027
42114
  }),
42028
- te && /* @__PURE__ */ F(FX, {
42115
+ te && /* @__PURE__ */ F(WX, {
42029
42116
  label: l.label,
42030
- children: [/* @__PURE__ */ P(FK, {
42117
+ children: [/* @__PURE__ */ P(WK, {
42031
42118
  markup: e.prompt,
42032
42119
  onChange: this.onPromptChanged,
42033
42120
  imageSupport: r,
@@ -42036,31 +42123,31 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42036
42123
  error: oe,
42037
42124
  toolbarOpts: j,
42038
42125
  pluginProps: pe(l?.inputConfiguration),
42039
- spellCheck: re,
42126
+ spellCheck: ne,
42040
42127
  maxImageWidth: le,
42041
42128
  maxImageHeight: ue,
42042
42129
  uploadSoundSupport: i,
42043
42130
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42044
42131
  mathMlOptions: S
42045
- }), oe && /* @__PURE__ */ P(zX, { children: oe })]
42132
+ }), oe && /* @__PURE__ */ P(JX, { children: oe })]
42046
42133
  }),
42047
- /* @__PURE__ */ F(BX, { children: [/* @__PURE__ */ P(LX, {
42134
+ /* @__PURE__ */ F(YX, { children: [/* @__PURE__ */ P(KX, {
42048
42135
  component: "div",
42049
42136
  children: "Define Template, Choices, and Correct Responses"
42050
- }), /* @__PURE__ */ P(RX, {
42137
+ }), /* @__PURE__ */ P(qX, {
42051
42138
  disableFocusListener: !0,
42052
42139
  disableTouchListener: !0,
42053
42140
  placement: "right",
42054
42141
  title: ce,
42055
- children: /* @__PURE__ */ P(aX, {
42142
+ children: /* @__PURE__ */ P(mX, {
42056
42143
  fontSize: "small",
42057
42144
  color: "primary",
42058
42145
  style: { marginLeft: "5px" }
42059
42146
  })
42060
42147
  })] }),
42061
- /* @__PURE__ */ P(IX, {
42148
+ /* @__PURE__ */ P(GX, {
42062
42149
  ref: this.markupRef,
42063
- children: /* @__PURE__ */ P(FK, {
42150
+ children: /* @__PURE__ */ P(WK, {
42064
42151
  activePlugins: Ut,
42065
42152
  responseAreaProps: {
42066
42153
  type: "drag-in-the-blank",
@@ -42074,21 +42161,21 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42074
42161
  disableImageAlignmentButtons: !0,
42075
42162
  nonEmpty: !1,
42076
42163
  disableUnderline: !0,
42077
- error: se || O,
42164
+ error: se || ae,
42078
42165
  toolbarOpts: j,
42079
- spellCheck: re,
42166
+ spellCheck: ne,
42080
42167
  uploadSoundSupport: i,
42081
42168
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42082
42169
  mathMlOptions: S
42083
42170
  })
42084
42171
  }),
42085
- se && /* @__PURE__ */ P(zX, { children: se }),
42086
- O && /* @__PURE__ */ P(zX, { children: O }),
42087
- /* @__PURE__ */ P(CX, {
42172
+ se && /* @__PURE__ */ P(JX, { children: se }),
42173
+ ae && /* @__PURE__ */ P(JX, { children: ae }),
42174
+ /* @__PURE__ */ P(MX, {
42088
42175
  model: e,
42089
42176
  imageSupport: r,
42090
42177
  duplicates: e.duplicates,
42091
- error: D,
42178
+ error: O,
42092
42179
  onChange: this.onResponsesChanged,
42093
42180
  toolbarOpts: j,
42094
42181
  maxChoices: _,
@@ -42099,35 +42186,35 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42099
42186
  maxImageHeight: b && b.choice || ue,
42100
42187
  maxLength: ee
42101
42188
  }),
42102
- T && /* @__PURE__ */ F(FX, {
42189
+ T && /* @__PURE__ */ F(WX, {
42103
42190
  label: f.label,
42104
- children: [/* @__PURE__ */ P(FK, {
42191
+ children: [/* @__PURE__ */ P(WK, {
42105
42192
  markup: e.rationale || "",
42106
42193
  onChange: this.onRationaleChanged,
42107
42194
  imageSupport: r,
42108
42195
  error: k,
42109
42196
  toolbarOpts: j,
42110
42197
  pluginProps: pe(f?.inputConfiguration),
42111
- spellCheck: re,
42198
+ spellCheck: ne,
42112
42199
  maxImageWidth: y && y.rationale || le,
42113
42200
  maxImageHeight: b && b.rationale || ue,
42114
42201
  uploadSoundSupport: i,
42115
42202
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42116
42203
  mathMlOptions: S
42117
- }), k && /* @__PURE__ */ P(zX, { children: k })]
42204
+ }), k && /* @__PURE__ */ P(JX, { children: k })]
42118
42205
  })
42119
42206
  ]
42120
- }), /* @__PURE__ */ P(Me, { children: /* @__PURE__ */ P(jX, { children: (() => {
42207
+ }), /* @__PURE__ */ P(Me, { children: /* @__PURE__ */ P(BX, { children: (() => {
42121
42208
  let { activeDragItem: e } = this.state, { model: t } = this.props;
42122
42209
  if (!e) return null;
42123
42210
  if ((e.type === "drag-in-the-blank-choice" || e.type === "drag-in-the-blank-placed-choice") && e.value) {
42124
42211
  let n = t.choices?.find((t) => t.id === e.value.id);
42125
- return n ? /* @__PURE__ */ P(vX, { choice: n }) : null;
42212
+ return n ? /* @__PURE__ */ P(DX, { choice: n }) : null;
42126
42213
  }
42127
42214
  })() }) })]
42128
42215
  });
42129
42216
  }
42130
- }, HX = {
42217
+ }, ZX = {
42131
42218
  model: {
42132
42219
  choices: [],
42133
42220
  choicesPosition: "below",
@@ -42246,12 +42333,12 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42246
42333
  },
42247
42334
  maxLength: 200
42248
42335
  }
42249
- }, UX = (0, Vt.default)("multiple-choice:configure"), WX = class e extends HTMLElement {
42336
+ }, QX = (0, Vt.default)("multiple-choice:configure"), $X = class e extends HTMLElement {
42250
42337
  static prepareModel = (e = {}) => {
42251
42338
  let t = {
42252
- ...HX.model,
42339
+ ...ZX.model,
42253
42340
  ...e
42254
- }, n = e.slateMarkup || pX(t.markup, t.choices, t.correctResponse), r = dX(n);
42341
+ }, n = e.slateMarkup || SX(t.markup, t.choices, t.correctResponse), r = bX(n);
42255
42342
  return {
42256
42343
  ...t,
42257
42344
  slateMarkup: n,
@@ -42260,17 +42347,17 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42260
42347
  };
42261
42348
  };
42262
42349
  constructor() {
42263
- super(), this._root = null, this._model = e.prepareModel(), this._configuration = HX.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42350
+ super(), this._root = null, this._model = e.prepareModel(), this._configuration = ZX.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
42264
42351
  }
42265
42352
  set model(t) {
42266
42353
  let n = {
42267
42354
  ...t,
42268
- markup: `<div>${t.markup || HX.model.markup}</div>`
42355
+ markup: `<div>${t.markup || ZX.model.markup}</div>`
42269
42356
  };
42270
42357
  this._model = e.prepareModel(n), this._render();
42271
42358
  }
42272
42359
  set configuration(e) {
42273
- let t = rt(e, HX.configuration);
42360
+ let t = rt(e, ZX.configuration);
42274
42361
  this._configuration = t, t?.language?.enabled ? t?.languageChoices?.options?.length && (this._model.language = t?.languageChoices.options[0].value) : t.language.settings && this._model.language ? (this._configuration.language.enabled = !0, (!this._configuration.languageChoices.options || !this._configuration.languageChoices.options.length) && (this._configuration.languageChoices.options = []), this._configuration.languageChoices.options.find((e) => e.value === this._model.language) || this._configuration.languageChoices.options.push({
42275
42362
  value: this._model.language,
42276
42363
  label: this._model.language
@@ -42281,7 +42368,7 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42281
42368
  }
42282
42369
  dispatchModelUpdated(e) {
42283
42370
  let t = !!e;
42284
- this.dispatchEvent(new IK(this._model, t));
42371
+ this.dispatchEvent(new GK(this._model, t));
42285
42372
  }
42286
42373
  onModelChanged(t, n) {
42287
42374
  this._model = e.prepareModel(t), this._render(), this.dispatchModelUpdated(n);
@@ -42290,20 +42377,20 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42290
42377
  this._configuration = e, this._render();
42291
42378
  }
42292
42379
  insertImage(e) {
42293
- this.dispatchEvent(new RK(e));
42380
+ this.dispatchEvent(new qK(e));
42294
42381
  }
42295
42382
  onDeleteImage(e, t) {
42296
- this.dispatchEvent(new LK(e, t));
42383
+ this.dispatchEvent(new KK(e, t));
42297
42384
  }
42298
42385
  insertSound(e) {
42299
- this.dispatchEvent(new BK(e));
42386
+ this.dispatchEvent(new YK(e));
42300
42387
  }
42301
42388
  onDeleteSound(e, t) {
42302
- this.dispatchEvent(new zK(e, t));
42389
+ this.dispatchEvent(new JK(e, t));
42303
42390
  }
42304
42391
  _render() {
42305
- UX("_render");
42306
- let e = pt.createElement(VX, {
42392
+ QX("_render");
42393
+ let e = pt.createElement(XX, {
42307
42394
  model: this._model,
42308
42395
  configuration: this._configuration,
42309
42396
  onModelChanged: this.onModelChanged,
@@ -42330,6 +42417,6 @@ var DX = EX(We, "InputContainer") || EX(AX.InputContainer, "InputContainer"), OX
42330
42417
  }
42331
42418
  };
42332
42419
  //#endregion
42333
- export { WX as default };
42420
+ export { $X as default };
42334
42421
 
42335
42422
  //# sourceMappingURL=index.js.map