@pie-element/inline-dropdown 10.1.2-next.7 → 10.1.2-next.9

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, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, Ft as m, G as h, H as g, I as _, It as v, J as y, K as b, L as x, Lt as S, M 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 D, R as O, Rt as ie, St as ae, T as oe, Tt as k, U as se, V as ce, W as le, X as ue, Y as de, Z as fe, _ as pe, _t as me, a as he, at as ge, b as _e, bt as A, c as ve, ct as ye, et as be, ft as xe, g as Se, gt as Ce, h as we, ht as Te, i as Ee, it as De, j as Oe, jt as ke, kt as Ae, l as je, lt as Me, mt as Ne, n as Pe, nt as Fe, ot as Ie, pt as j, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as M, v as Ge, vt as Ke, w as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as Qe, z as $e } from "../Close-_y0oVYUk.js";
2
+ import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, Ft as m, G as h, H as g, I as _, It as v, J as y, K as b, L as x, Lt as S, M 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 D, R as O, Rt as ie, St as ae, T as oe, Tt as k, U as se, V as ce, W as le, X as ue, Y as de, Z as fe, _ as pe, _t as me, a as he, at as ge, b as _e, bt as A, c as ve, ct as ye, et as be, ft as xe, g as Se, gt as Ce, h as we, ht as Te, i as Ee, it as De, j as Oe, jt as ke, kt as Ae, l as je, lt as Me, mt as Ne, n as Pe, nt as Fe, ot as Ie, pt as j, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, tt as Ue, u as We, ut as M, v as Ge, vt as Ke, w as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as Qe, z as $e } from "../Close-DvuMD5vl.js";
3
3
  import { _ as et, a as tt, c as nt, d as rt, f as it, g as at, h as ot, i as st, m as ct, n as lt, o as ut, p as dt, r as ft, t as pt, u as mt, v as ht, y as gt } from "../dist-BJd6t-uW.js";
4
4
  import * as N from "react";
5
5
  import _t, { Component as vt, createContext as yt, createElement as bt, createRef as xt, forwardRef as St, memo as Ct, useCallback as wt, useContext as Tt, useDebugValue as Et, useEffect as Dt, useLayoutEffect as Ot, useMemo as kt, useRef as At, useState as jt, version as Mt } from "react";
@@ -38839,8 +38839,8 @@ vg.create({
38839
38839
  })) ?? null };
38840
38840
  }
38841
38841
  });
38842
- var _q = "placeholder", vq = new wo("tiptap__placeholder"), yq = 200;
38843
- function bq(e) {
38842
+ var _q = "placeholder", vq = new wo("tiptap__placeholder");
38843
+ function yq(e) {
38844
38844
  let { editor: t, placeholder: n, dataAttribute: r, pos: i, node: a, isEmptyDoc: o, hasAnchor: s, classes: { emptyNode: c, emptyEditor: l } } = e, u = [c];
38845
38845
  return o && u.push(l), xf.node(i, i + a.nodeSize, {
38846
38846
  class: u.join(" "),
@@ -38852,156 +38852,198 @@ function bq(e) {
38852
38852
  }) : n
38853
38853
  });
38854
38854
  }
38855
- function xq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38855
+ function bq(e, t) {
38856
+ return typeof e == "function" ? e(t) : e;
38857
+ }
38858
+ function xq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i, from: a, to: o }) {
38859
+ let { anchor: s } = i, c = [], l = e.isEmpty;
38860
+ return r.nodesBetween(a, o, (r, i) => {
38861
+ let a = s >= i && s <= i + r.nodeSize, o = !r.isLeaf && Eh(r);
38862
+ return r.type.isTextblock && (a || !t.showOnlyCurrent) && o && c.push(yq({
38863
+ editor: e,
38864
+ isEmptyDoc: l,
38865
+ dataAttribute: n,
38866
+ hasAnchor: a,
38867
+ placeholder: t.placeholder,
38868
+ classes: {
38869
+ emptyEditor: t.emptyEditorClass,
38870
+ emptyNode: bq(t.emptyNodeClass, {
38871
+ editor: e,
38872
+ node: r,
38873
+ pos: i,
38874
+ hasAnchor: a
38875
+ })
38876
+ },
38877
+ node: r,
38878
+ pos: i
38879
+ })), t.includeChildren;
38880
+ }), c;
38881
+ }
38882
+ function Sq({ editor: e, options: t, dataAttribute: n, doc: r, selection: i }) {
38856
38883
  if (!(e.isEditable || !t.showOnlyWhenEditable)) return null;
38857
- let { anchor: a } = i, o = [], s = e.isEmpty, c = {
38858
- emptyEditor: t.emptyEditorClass,
38859
- emptyNode: t.emptyNodeClass
38860
- };
38884
+ let { anchor: a } = i, o = [], s = e.isEmpty;
38861
38885
  if (t.showOnlyCurrent && !t.includeChildren) {
38862
- let i = r.resolve(a), l = i.depth > 0 ? i.node(1) : i.nodeAfter, u = i.depth > 0 ? i.before(1) : a;
38863
- if (l && l.type.isTextblock && Eh(l)) {
38864
- let r = a >= u && a <= u + l.nodeSize;
38865
- o.push(bq({
38886
+ let i = r.resolve(a), c = i.depth > 0 ? i.node(1) : i.nodeAfter, l = i.depth > 0 ? i.before(1) : a;
38887
+ if (c && c.type.isTextblock && Eh(c)) {
38888
+ let r = a >= l && a <= l + c.nodeSize;
38889
+ o.push(yq({
38866
38890
  editor: e,
38867
38891
  isEmptyDoc: s,
38868
38892
  dataAttribute: n,
38869
38893
  hasAnchor: r,
38870
38894
  placeholder: t.placeholder,
38871
- classes: c,
38872
- node: l,
38873
- pos: u
38895
+ classes: {
38896
+ emptyEditor: t.emptyEditorClass,
38897
+ emptyNode: bq(t.emptyNodeClass, {
38898
+ editor: e,
38899
+ node: c,
38900
+ pos: l,
38901
+ hasAnchor: r
38902
+ })
38903
+ },
38904
+ node: c,
38905
+ pos: l
38874
38906
  }));
38875
38907
  }
38876
- } else {
38877
- let i = vq.getState(e.state), l = i?.topPos ?? 0, u = i?.bottomPos ?? r.content.size;
38878
- r.nodesBetween(l, u, (r, i) => {
38879
- let l = a >= i && a <= i + r.nodeSize, u = !r.isLeaf && Eh(r);
38880
- return r.type.isTextblock && (l || !t.showOnlyCurrent) && u && o.push(bq({
38881
- editor: e,
38882
- isEmptyDoc: s,
38883
- dataAttribute: n,
38884
- hasAnchor: l,
38885
- placeholder: t.placeholder,
38886
- classes: c,
38887
- node: r,
38888
- pos: i
38889
- })), t.includeChildren;
38890
- });
38891
- }
38908
+ } else o.push(...xq({
38909
+ editor: e,
38910
+ options: t,
38911
+ dataAttribute: n,
38912
+ doc: r,
38913
+ selection: i,
38914
+ from: 0,
38915
+ to: r.content.size
38916
+ }));
38892
38917
  return wf.create(r, o);
38893
38918
  }
38894
- function Sq(e) {
38895
- return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
38919
+ function Cq(e, t) {
38920
+ let n = e.resolve(t);
38921
+ if (n.depth === 0) {
38922
+ let e = n.nodeAfter ?? n.nodeBefore;
38923
+ if (!e) return {
38924
+ from: t,
38925
+ to: t
38926
+ };
38927
+ let r = n.nodeAfter ? t : t - e.nodeSize;
38928
+ return {
38929
+ from: r,
38930
+ to: r + e.nodeSize
38931
+ };
38932
+ }
38933
+ let r = n.before(1);
38934
+ return {
38935
+ from: r,
38936
+ to: r + n.node(1).nodeSize
38937
+ };
38896
38938
  }
38897
- function Cq(e) {
38898
- let t = getComputedStyle(e), n = `${t.overflow} ${t.overflowY} ${t.overflowX}`;
38899
- return /auto|scroll|overlay/.test(n);
38939
+ function wq(e, t) {
38940
+ return {
38941
+ from: Math.max(0, t.from - 1),
38942
+ to: Math.min(e.content.size, t.to - 1)
38943
+ };
38900
38944
  }
38901
- function wq(e) {
38902
- let t = e;
38903
- for (; t;) {
38904
- if (Cq(t)) return t;
38905
- let e = t.parentElement;
38906
- if (!e) {
38907
- let e = t.getRootNode();
38908
- if (e instanceof ShadowRoot) {
38909
- t = e.host;
38910
- continue;
38911
- }
38912
- return window;
38913
- }
38914
- t = e;
38945
+ function Tq(e, t, n) {
38946
+ let r = [];
38947
+ return e.forEach((e, i) => {
38948
+ let a = i, o = a + e.nodeSize, s = a + 1, c = o + 1;
38949
+ s < n && c > t && r.push({
38950
+ from: a,
38951
+ to: o
38952
+ });
38953
+ }), r;
38954
+ }
38955
+ function Eq(e) {
38956
+ if (e.length === 0) return [];
38957
+ let t = [...e].sort((e, t) => e.from - t.from), n = [{ ...t[0] }];
38958
+ for (let e = 1; e < t.length; e += 1) {
38959
+ let r = n[n.length - 1], i = t[e];
38960
+ i.from <= r.to ? r.to = Math.max(r.to, i.to) : n.push({ ...i });
38915
38961
  }
38916
- return window;
38962
+ return n;
38917
38963
  }
38918
- function Tq(e) {
38919
- return e === window ? {
38920
- top: 0,
38921
- bottom: window.innerHeight
38922
- } : e.getBoundingClientRect();
38964
+ function Dq(e, t) {
38965
+ let n = Tq(e, t.from, t.to);
38966
+ return n.push(wq(e, Cq(e, t.from))), t.to > t.from ? n.push(wq(e, Cq(e, Math.min(t.to, e.content.size + 1) - 1))) : t.from < e.content.size + 1 && n.push(wq(e, Cq(e, Math.min(t.from + 1, e.content.size)))), n;
38923
38967
  }
38924
- function Eq({ doc: e, view: t, scrollContainer: n }) {
38925
- let r = t.dom.getBoundingClientRect(), i = n ? Tq(n) : {
38926
- top: 0,
38927
- bottom: window.innerHeight
38928
- }, a = Math.max(r.top, i.top) - yq, o = Math.min(r.bottom, i.bottom) + yq;
38929
- if (a >= o) return {
38930
- top: 0,
38931
- bottom: e.content.size
38932
- };
38933
- let s = getComputedStyle(t.dom).direction === "rtl" ? Math.max(r.right - 2, r.left + 2) : r.left + 2, c = t.posAtCoords({
38934
- left: s,
38935
- top: a + 2
38936
- }), l = t.posAtCoords({
38937
- left: s,
38938
- top: o - 2
38939
- });
38940
- return {
38941
- top: c ? c.pos : 0,
38942
- bottom: l ? l.pos : e.content.size
38943
- };
38968
+ function Oq(e, t, n) {
38969
+ let r = [];
38970
+ if (e.docChanged) {
38971
+ let t = hh(e);
38972
+ for (let e of t) r.push(...Dq(n.doc, e.newRange));
38973
+ }
38974
+ return e.selectionSet && (r.push(wq(n.doc, Cq(n.doc, e.mapping.map(t.selection.anchor)))), r.push(wq(n.doc, Cq(n.doc, n.selection.anchor)))), Eq(r);
38944
38975
  }
38945
- var Dq = {
38946
- init() {
38947
- return {
38948
- topPos: null,
38949
- bottomPos: null
38950
- };
38951
- },
38952
- apply(e, t) {
38953
- let n = e.getMeta(vq);
38954
- return n?.positions ? {
38955
- topPos: n.positions.top,
38956
- bottomPos: n.positions.bottom
38957
- } : e.docChanged ? {
38958
- topPos: t.topPos === null ? null : e.mapping.map(t.topPos),
38959
- bottomPos: t.bottomPos === null ? null : e.mapping.map(t.bottomPos)
38960
- } : t;
38976
+ function kq(e, t, n) {
38977
+ let r = Math.max(0, Math.min(e, n.content.size));
38978
+ return {
38979
+ from: r,
38980
+ to: Math.max(r, Math.min(t, n.content.size))
38981
+ };
38982
+ }
38983
+ function Aq({ decorations: e, ranges: t, editor: n, options: r, dataAttribute: i, doc: a, selection: o }) {
38984
+ let s = e;
38985
+ for (let e of t) {
38986
+ let { from: t, to: c } = kq(e.from, e.to, a), l = s.find(t, c).filter((e) => e.from >= t && e.to <= c);
38987
+ l.length && (s = s.remove(l));
38988
+ let u = xq({
38989
+ editor: n,
38990
+ options: r,
38991
+ dataAttribute: i,
38992
+ doc: a,
38993
+ selection: o,
38994
+ from: t,
38995
+ to: c
38996
+ });
38997
+ u.length && (s = s.add(a, u));
38961
38998
  }
38962
- };
38963
- function Oq(e) {
38964
- let t = wq(e.dom), n = () => {
38965
- let n = Eq({
38966
- view: e,
38967
- doc: e.state.doc,
38968
- scrollContainer: t
38969
- }), r = vq.getState(e.state);
38970
- if (r?.topPos === n.top && r?.bottomPos === n.bottom) return;
38971
- let i = e.state.tr.setMeta(vq, { positions: n });
38972
- e.dispatch(i);
38973
- }, r = null, i = 0, a = () => {
38974
- r === null && (r = requestAnimationFrame(() => {
38975
- r = null;
38976
- let e = performance.now();
38977
- e - i >= 150 ? (i = e, n()) : a();
38978
- }));
38979
- };
38980
- return t.addEventListener("scroll", a, { passive: !0 }), n(), {
38981
- update(t, n) {
38982
- e.state.doc.content.size !== n.doc.content.size && a();
38999
+ return s;
39000
+ }
39001
+ function jq({ editor: e, options: t, dataAttribute: n }) {
39002
+ return {
39003
+ init(r, i) {
39004
+ return Sq({
39005
+ editor: e,
39006
+ options: t,
39007
+ dataAttribute: n,
39008
+ doc: i.doc,
39009
+ selection: i.selection
39010
+ }) ?? wf.empty;
38983
39011
  },
38984
- destroy: () => {
38985
- r !== null && cancelAnimationFrame(r), t.removeEventListener("scroll", a);
39012
+ apply(r, i, a, o) {
39013
+ return !r.docChanged && !r.selectionSet ? i : Aq({
39014
+ decorations: i.map(r.mapping, r.doc),
39015
+ ranges: Oq(r, a, o),
39016
+ editor: e,
39017
+ options: t,
39018
+ dataAttribute: n,
39019
+ doc: o.doc,
39020
+ selection: o.selection
39021
+ });
38986
39022
  }
38987
39023
  };
38988
39024
  }
38989
- function kq({ editor: e, options: t }) {
38990
- let n = t.dataAttribute ? `data-${Sq(t.dataAttribute)}` : `data-${_q}`;
39025
+ function Mq(e) {
39026
+ return e.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
39027
+ }
39028
+ function Nq({ editor: e, options: t }) {
39029
+ let n = t.dataAttribute ? `data-${Mq(t.dataAttribute)}` : `data-${_q}`, r = t.showOnlyCurrent && !t.includeChildren;
38991
39030
  return new V({
38992
39031
  key: vq,
38993
- state: Dq,
38994
- view: Oq,
38995
- props: { decorations: ({ doc: r, selection: i }) => xq({
39032
+ ...r ? {} : { state: jq({
39033
+ editor: e,
39034
+ options: t,
39035
+ dataAttribute: n
39036
+ }) },
39037
+ props: { decorations: r ? ({ doc: r, selection: i }) => Sq({
38996
39038
  editor: e,
38997
39039
  options: t,
38998
39040
  dataAttribute: n,
38999
39041
  doc: r,
39000
39042
  selection: i
39001
- }) }
39043
+ }) : (n) => t.showOnlyWhenEditable && !e.isEditable ? wf.empty : vq.getState(n) ?? wf.empty }
39002
39044
  });
39003
39045
  }
39004
- var Aq = vg.create({
39046
+ var Pq = vg.create({
39005
39047
  name: "placeholder",
39006
39048
  addOptions() {
39007
39049
  return {
@@ -39015,12 +39057,25 @@ var Aq = vg.create({
39015
39057
  };
39016
39058
  },
39017
39059
  addProseMirrorPlugins() {
39018
- return [kq({
39060
+ return [Nq({
39019
39061
  editor: this.editor,
39020
39062
  options: this.options
39021
39063
  })];
39022
39064
  }
39023
39065
  });
39066
+ function Fq(e, t) {
39067
+ return !e.selection.empty && !Dh(e.selection) && t.isEditable;
39068
+ }
39069
+ function Iq(e, t) {
39070
+ return Fq(e, t) && !t.isFocused && !t.view.dragging;
39071
+ }
39072
+ function Lq() {
39073
+ var e;
39074
+ (e = window.getSelection()) == null || e.removeAllRanges();
39075
+ }
39076
+ function Rq(e) {
39077
+ e.focus();
39078
+ }
39024
39079
  vg.create({
39025
39080
  name: "selection",
39026
39081
  addOptions() {
@@ -39030,13 +39085,25 @@ vg.create({
39030
39085
  let { editor: e, options: t } = this;
39031
39086
  return [new V({
39032
39087
  key: new wo("selection"),
39033
- props: { decorations(n) {
39034
- return n.selection.empty || e.isFocused || !e.isEditable || Dh(n.selection) || e.view.dragging ? null : wf.create(n.doc, [xf.inline(n.selection.from, n.selection.to, { class: t.className })]);
39035
- } }
39088
+ props: {
39089
+ decorations(n) {
39090
+ return Iq(n, e) ? wf.create(n.doc, [xf.inline(n.selection.from, n.selection.to, { class: t.className })]) : null;
39091
+ },
39092
+ handleDOMEvents: {
39093
+ blur(t) {
39094
+ return Fq(t.state, e) && Lq(), !1;
39095
+ },
39096
+ focus(t) {
39097
+ return Fq(t.state, e) && requestAnimationFrame(() => {
39098
+ !e.isDestroyed && t.hasFocus() && Rq(t);
39099
+ }), !1;
39100
+ }
39101
+ }
39102
+ }
39036
39103
  })];
39037
39104
  }
39038
39105
  });
39039
- function jq({ types: e, node: t }) {
39106
+ function zq({ types: e, node: t }) {
39040
39107
  return t && Array.isArray(e) && e.includes(t.type) || t?.type === e;
39041
39108
  }
39042
39109
  vg.create({
@@ -39058,7 +39125,7 @@ vg.create({
39058
39125
  state: {
39059
39126
  init: (e, t) => {
39060
39127
  let r = t.tr.doc.lastChild;
39061
- return !jq({
39128
+ return !zq({
39062
39129
  node: r,
39063
39130
  types: n
39064
39131
  });
@@ -39066,7 +39133,7 @@ vg.create({
39066
39133
  apply: (e, t) => {
39067
39134
  if (!e.docChanged || e.getMeta("__uniqueIDTransaction")) return t;
39068
39135
  let r = e.doc.lastChild;
39069
- return !jq({
39136
+ return !zq({
39070
39137
  node: r,
39071
39138
  types: n
39072
39139
  });
@@ -39101,7 +39168,7 @@ vg.create({
39101
39168
  };
39102
39169
  }
39103
39170
  });
39104
- var Mq = ug.create({
39171
+ var Bq = ug.create({
39105
39172
  name: "superscript",
39106
39173
  addOptions() {
39107
39174
  return { HTMLAttributes: {} };
@@ -39131,7 +39198,7 @@ var Mq = ug.create({
39131
39198
  addKeyboardShortcuts() {
39132
39199
  return { "Mod-.": () => this.editor.commands.toggleSuperscript() };
39133
39200
  }
39134
- }), Nq = ug.create({
39201
+ }), Vq = ug.create({
39135
39202
  name: "subscript",
39136
39203
  addOptions() {
39137
39204
  return { HTMLAttributes: {} };
@@ -39161,7 +39228,7 @@ var Mq = ug.create({
39161
39228
  addKeyboardShortcuts() {
39162
39229
  return { "Mod-,": () => this.editor.commands.toggleSubscript() };
39163
39230
  }
39164
- }), Pq = vg.create({
39231
+ }), Hq = vg.create({
39165
39232
  name: "textAlign",
39166
39233
  addOptions() {
39167
39234
  return {
@@ -39203,7 +39270,7 @@ var Mq = ug.create({
39203
39270
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
39204
39271
  };
39205
39272
  }
39206
- }), Fq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Iq = Jg.create({
39273
+ }), Uq = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Wq = Jg.create({
39207
39274
  name: "image",
39208
39275
  addOptions() {
39209
39276
  return {
@@ -39246,34 +39313,55 @@ var Mq = ug.create({
39246
39313
  },
39247
39314
  addNodeView() {
39248
39315
  if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
39249
- let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize;
39250
- return ({ node: i, getPos: a, HTMLAttributes: o, editor: s }) => {
39251
- let c = document.createElement("img");
39252
- Object.entries(o).forEach(([e, t]) => {
39316
+ let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
39317
+ "src",
39318
+ "width",
39319
+ "height"
39320
+ ]);
39321
+ return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
39322
+ let l = document.createElement("img");
39323
+ l.draggable = !1;
39324
+ let u = Qm(this.options.HTMLAttributes, s);
39325
+ Object.entries(u).forEach(([e, t]) => {
39253
39326
  if (t != null) switch (e) {
39327
+ case "src":
39254
39328
  case "width":
39255
39329
  case "height": break;
39256
- default:
39257
- c.setAttribute(e, t);
39258
- break;
39330
+ default: l.setAttribute(e, t);
39259
39331
  }
39260
- }), c.src = o.src;
39261
- let l = new Lg({
39262
- element: c,
39263
- editor: s,
39264
- node: i,
39265
- getPos: a,
39332
+ }), u.src !== null && (l.src = u.src);
39333
+ let d = { ...s }, f = (e) => {
39334
+ if (typeof e == "string" && e !== "") {
39335
+ l.getAttribute("src") !== e && (l.src = e);
39336
+ return;
39337
+ }
39338
+ l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
39339
+ };
39340
+ f(s.src);
39341
+ let p = new Lg({
39342
+ element: l,
39343
+ editor: c,
39344
+ node: a,
39345
+ getPos: o,
39266
39346
  onResize: (e, t) => {
39267
- c.style.width = `${e}px`, c.style.height = `${t}px`;
39347
+ l.style.width = `${e}px`, l.style.height = `${t}px`;
39268
39348
  },
39269
39349
  onCommit: (e, t) => {
39270
- let n = a();
39350
+ let n = o();
39271
39351
  n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
39272
39352
  width: e,
39273
39353
  height: t
39274
39354
  }).run();
39275
39355
  },
39276
- onUpdate: (e, t, n) => e.type === i.type,
39356
+ onUpdate: (e) => {
39357
+ if (e.type !== a.type) return !1;
39358
+ let t = $m(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
39359
+ return Object.keys(d).forEach((e) => {
39360
+ !i.has(e) && !(e in t) && l.removeAttribute(e);
39361
+ }), Object.entries(t).forEach(([e, t]) => {
39362
+ i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
39363
+ }), f(t.src), d = t, !0;
39364
+ },
39277
39365
  options: {
39278
39366
  directions: e,
39279
39367
  min: {
@@ -39282,10 +39370,10 @@ var Mq = ug.create({
39282
39370
  },
39283
39371
  preserveAspectRatio: r === !0
39284
39372
  }
39285
- }), u = l.dom;
39286
- return u.style.visibility = "hidden", u.style.pointerEvents = "none", c.onload = () => {
39287
- u.style.visibility = "", u.style.pointerEvents = "";
39288
- }, l;
39373
+ }), m = p.dom, h = () => {
39374
+ m.style.visibility = "", m.style.pointerEvents = "";
39375
+ };
39376
+ return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
39289
39377
  };
39290
39378
  },
39291
39379
  addCommands() {
@@ -39296,7 +39384,7 @@ var Mq = ug.create({
39296
39384
  },
39297
39385
  addInputRules() {
39298
39386
  return [Pg({
39299
- find: Fq,
39387
+ find: Uq,
39300
39388
  type: this.type,
39301
39389
  getAttributes: (e) => {
39302
39390
  let [, , t, n, r] = e;
@@ -39308,17 +39396,17 @@ var Mq = ug.create({
39308
39396
  }
39309
39397
  })];
39310
39398
  }
39311
- }), Lq = Aq, Rq = {
39399
+ }), Gq = Pq, Kq = {
39312
39400
  position: "bottom",
39313
39401
  alignment: "left",
39314
39402
  alwaysVisible: !1,
39315
39403
  showDone: !0,
39316
39404
  doneOn: "blur"
39317
- }, zq = {
39405
+ }, qq = {
39318
39406
  options: {},
39319
39407
  respAreaToolbar: () => {},
39320
39408
  onHandleAreaChange: () => {}
39321
- }, Bq = [
39409
+ }, Jq = [
39322
39410
  "bold",
39323
39411
  "italic",
39324
39412
  "underline",
@@ -39340,7 +39428,7 @@ var Mq = ug.create({
39340
39428
  "h3",
39341
39429
  "undo",
39342
39430
  "redo"
39343
- ], Vq = {
39431
+ ], Yq = {
39344
39432
  "--white": "#fff",
39345
39433
  "--black": "#2e2b29",
39346
39434
  "--black-contrast": "#110f0e",
@@ -39359,14 +39447,18 @@ var Mq = ug.create({
39359
39447
  "--red": "#ff5c33",
39360
39448
  "--red-light": "#ffebe5",
39361
39449
  "--shadow": "0px 12px 33px 0px rgba(0, 0, 0, .06),\n 0px 3.618px 9.949px 0px rgba(0, 0, 0, .04)"
39362
- }, Hq = (e) => {
39450
+ }, Xq = (e) => ({
39451
+ spellcheck: e ? "true" : "false",
39452
+ autocorrect: e ? "on" : "off",
39453
+ autocapitalize: e ? "on" : "off"
39454
+ }), Zq = (e) => {
39363
39455
  let { showParagraphs: t, separateParagraphs: n } = e.pluginProps || {}, [r, i] = jt([]), [a, o] = jt(!1), { toolbarOpts: s } = e, c = wt((e) => {
39364
39456
  i((t) => {
39365
39457
  let n = t.filter((t) => t.pos !== e);
39366
39458
  return n.length === 0 && o(!1), n;
39367
39459
  });
39368
39460
  }, [i]), l = {
39369
- ...Rq,
39461
+ ...Kq,
39370
39462
  ...s
39371
39463
  }, u = wt((t) => {
39372
39464
  let n = t.getHTML();
@@ -39377,13 +39469,13 @@ var Mq = ug.create({
39377
39469
  e.onDone,
39378
39470
  l.doneOn
39379
39471
  ]), d = kt(() => ({
39380
- ...zq,
39472
+ ...qq,
39381
39473
  ...e.responseAreaProps,
39382
39474
  onInlineDropdownToolbarClose: u
39383
39475
  }), [e.responseAreaProps, u]), f = kt(() => {
39384
39476
  let { customPlugins: t, ...n } = e.pluginProps || {};
39385
39477
  t ||= [];
39386
- let r = (e.activePlugins || Bq)?.filter((e) => {
39478
+ let r = (e.activePlugins || Jq)?.filter((e) => {
39387
39479
  let t = mr[e] || e, r = n[t] || {};
39388
39480
  return !r || !r.disabled;
39389
39481
  });
@@ -39401,103 +39493,112 @@ var Mq = ug.create({
39401
39493
  setKeypadInteraction: {},
39402
39494
  media: {}
39403
39495
  });
39404
- }, [e, d.type]), p = aT({
39405
- extensions: [
39406
- Pq.configure({
39407
- types: [
39408
- "heading",
39409
- "paragraph",
39410
- "div",
39411
- "headingParagraph",
39412
- "h1",
39413
- "h2",
39414
- "h3",
39415
- "h4",
39416
- "h5",
39417
- "h6",
39418
- "td",
39419
- "th"
39420
- ],
39421
- alignments: [
39422
- "left",
39423
- "right",
39424
- "center",
39425
- "justify"
39426
- ]
39427
- }),
39428
- hq,
39429
- gq.configure({ limit: e.charactersLimit || 1e6 }),
39430
- aq.configure({ trailingNode: {
39496
+ }, [e, d.type]), p = [
39497
+ Hq.configure({
39498
+ types: [
39499
+ "heading",
39500
+ "paragraph",
39501
+ "div",
39502
+ "headingParagraph",
39503
+ "h1",
39504
+ "h2",
39505
+ "h3",
39506
+ "h4",
39507
+ "h5",
39508
+ "h6",
39509
+ "td",
39510
+ "th"
39511
+ ],
39512
+ alignments: [
39513
+ "left",
39514
+ "right",
39515
+ "center",
39516
+ "justify"
39517
+ ]
39518
+ }),
39519
+ hq,
39520
+ gq.configure({ limit: e.charactersLimit || 1e6 }),
39521
+ aq.configure({
39522
+ trailingNode: {
39431
39523
  node: "paragraph",
39432
39524
  notAfter: ["paragraph", "div"]
39433
- } }),
39434
- oI,
39435
- EC,
39436
- sI,
39437
- DC,
39438
- OC,
39439
- Lq.configure({
39440
- placeholder: e.placeholder,
39441
- showOnlyWhenEditable: !0,
39442
- showOnlyCurrent: !1,
39443
- includeChildren: !0
39444
- }),
39445
- SC,
39446
- oC,
39447
- TC,
39448
- wC,
39449
- VA.configure(d),
39450
- HA.configure(d),
39451
- WA.configure(d),
39452
- GA.configure(d),
39453
- UA.configure(d),
39454
- qM.configure({
39455
- toolbarOpts: l,
39456
- math: e.pluginProps?.math || {}
39457
- }),
39458
- Nq,
39459
- Mq,
39460
- Iq,
39461
- aP.configure({
39462
- toolbarOpts: l,
39463
- imageHandling: {
39464
- disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39465
- onDone: (t) => e.onDone?.(t.getHTML()),
39466
- onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39467
- let { src: n } = t.attrs;
39468
- e.imageSupport.delete(n, (e) => {
39469
- c(t.pos);
39470
- });
39471
- }),
39472
- insertImageRequested: e.imageSupport && ((t, n, r) => {
39473
- let [o, s] = n, l = (n) => {
39474
- let r;
39475
- a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39476
- };
39477
- t._insertingImage = !0, i((e) => [...e, o]), (() => {
39478
- let n = r(l), i = rt(() => {
39479
- let e = () => window.removeEventListener("focus", i);
39480
- if (!t._insertingImage) {
39481
- e();
39482
- return;
39483
- }
39484
- c(s), t._insertingImage = !1, e();
39485
- }, 500);
39486
- window.addEventListener("focus", i), e.imageSupport.add(n);
39487
- })();
39488
- }),
39489
- maxImageWidth: e.maxImageWidth,
39490
- maxImageHeight: e.maxImageHeight
39491
- },
39492
- limit: 3
39493
- }),
39494
- cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39495
- TF.configure({ extraCSSRules: e.extraCSSRules })
39496
- ],
39525
+ },
39526
+ link: {
39527
+ autolink: !1,
39528
+ linkOnPaste: !1
39529
+ }
39530
+ }),
39531
+ oI,
39532
+ EC,
39533
+ sI,
39534
+ DC,
39535
+ OC,
39536
+ Gq.configure({
39537
+ placeholder: e.placeholder,
39538
+ showOnlyWhenEditable: !0,
39539
+ showOnlyCurrent: !1,
39540
+ includeChildren: !0
39541
+ }),
39542
+ SC,
39543
+ oC,
39544
+ TC,
39545
+ wC,
39546
+ VA.configure(d),
39547
+ HA.configure(d),
39548
+ WA.configure(d),
39549
+ GA.configure(d),
39550
+ UA.configure(d),
39551
+ qM.configure({
39552
+ toolbarOpts: l,
39553
+ math: e.pluginProps?.math || {}
39554
+ }),
39555
+ Vq,
39556
+ Bq,
39557
+ Wq,
39558
+ aP.configure({
39559
+ toolbarOpts: l,
39560
+ imageHandling: {
39561
+ disableImageAlignmentButtons: e.disableImageAlignmentButtons,
39562
+ onDone: (t) => e.onDone?.(t.getHTML()),
39563
+ onDelete: e.imageSupport && e.imageSupport.delete && ((t) => {
39564
+ let { src: n } = t.attrs;
39565
+ e.imageSupport.delete(n, (e) => {
39566
+ c(t.pos);
39567
+ });
39568
+ }),
39569
+ insertImageRequested: e.imageSupport && ((t, n, r) => {
39570
+ let [o, s] = n, l = (n) => {
39571
+ let r;
39572
+ a && n && (r = e.onChange), c(s), r?.(t.getHTML());
39573
+ };
39574
+ t._insertingImage = !0, i((e) => [...e, o]), (() => {
39575
+ let n = r(l), i = rt(() => {
39576
+ let e = () => window.removeEventListener("focus", i);
39577
+ if (!t._insertingImage) {
39578
+ e();
39579
+ return;
39580
+ }
39581
+ c(s), t._insertingImage = !1, e();
39582
+ }, 500);
39583
+ window.addEventListener("focus", i), e.imageSupport.add(n);
39584
+ })();
39585
+ }),
39586
+ maxImageWidth: e.maxImageWidth,
39587
+ maxImageHeight: e.maxImageHeight
39588
+ },
39589
+ limit: 3
39590
+ }),
39591
+ cF.configure({ uploadSoundSupport: e.uploadSoundSupport }),
39592
+ TF.configure({ extraCSSRules: e.extraCSSRules })
39593
+ ], m = e.spellCheck !== !1, h = aT({
39594
+ extensions: p,
39497
39595
  immediatelyRender: !1,
39498
- editorProps: { handleKeyDown(t, n) {
39499
- return e.onKeyDown ? e.onKeyDown(n) : !1;
39500
- } },
39596
+ editorProps: {
39597
+ attributes: Xq(m),
39598
+ handleKeyDown(t, n) {
39599
+ return e.onKeyDown ? e.onKeyDown(n) : !1;
39600
+ }
39601
+ },
39501
39602
  editable: !e.disabled,
39502
39603
  content: yr(e.markup),
39503
39604
  onUpdate: ({ editor: t, transaction: n }) => {
@@ -39508,22 +39609,29 @@ var Mq = ug.create({
39508
39609
  }
39509
39610
  }, [e.charactersLimit]);
39510
39611
  Dt(() => {
39511
- e.editorRef && e.editorRef(p);
39512
- }, [e.editorRef, p]), Dt(() => {
39513
- p?.setEditable(!e.disabled);
39514
- }, [e.disabled, p]), Dt(() => {
39515
- if (!p) return;
39612
+ e.editorRef && e.editorRef(h);
39613
+ }, [e.editorRef, h]), Dt(() => {
39614
+ h?.setEditable(!e.disabled);
39615
+ }, [e.disabled, h]), Dt(() => {
39616
+ if (!h) return;
39617
+ let e = h.options?.editorProps, t = Xq(m);
39618
+ e?.attributes?.spellcheck !== t.spellcheck && h.setOptions({ editorProps: {
39619
+ ...e,
39620
+ attributes: t
39621
+ } });
39622
+ }, [m, h]), Dt(() => {
39623
+ if (!h) return;
39516
39624
  let t = yr(e.markup);
39517
- t !== p.getHTML() && p.commands.setContent(t, { emitUpdate: !1 });
39518
- }, [e.markup, p]), Dt(() => {
39519
- Object.entries(Vq).forEach(([e, t]) => {
39625
+ t !== h.getHTML() && h.commands.setContent(t, { emitUpdate: !1 });
39626
+ }, [e.markup, h]), Dt(() => {
39627
+ Object.entries(Yq).forEach(([e, t]) => {
39520
39628
  document.documentElement.style.setProperty(e, t);
39521
39629
  });
39522
39630
  }, []);
39523
- let m = tT({
39524
- editor: p,
39631
+ let g = tT({
39632
+ editor: h,
39525
39633
  selector: (e) => ({ isFocused: e.editor?.isFocused })
39526
- }), h = kt(() => {
39634
+ }), _ = kt(() => {
39527
39635
  let { minWidth: t, width: n, maxWidth: r, minHeight: i, height: a, maxHeight: o } = e;
39528
39636
  return {
39529
39637
  width: cI(n),
@@ -39538,20 +39646,20 @@ var Mq = ug.create({
39538
39646
  ...e,
39539
39647
  activePlugins: f,
39540
39648
  toolbarOpts: l,
39541
- editorState: m,
39542
- editor: p,
39543
- children: p && /* @__PURE__ */ P(Uq, {
39649
+ editorState: g,
39650
+ editor: h,
39651
+ children: h && /* @__PURE__ */ P(Qq, {
39544
39652
  style: {
39545
- minHeight: h.minHeight,
39546
- height: h.height,
39547
- maxHeight: h.maxHeight
39653
+ minHeight: _.minHeight,
39654
+ height: _.height,
39655
+ maxHeight: _.maxHeight
39548
39656
  },
39549
39657
  showParagraph: t && !t.disabled,
39550
39658
  separateParagraph: n && !n.disabled,
39551
- editor: p
39659
+ editor: h
39552
39660
  })
39553
39661
  });
39554
- }, Uq = j(Qw, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39662
+ }, Qq = j(Qw, { shouldForwardProp: (e) => !["showParagraph", "separateParagraph"].includes(e) })(({ showParagraph: e, separateParagraph: t }) => ({
39555
39663
  display: "flex",
39556
39664
  outline: "none !important",
39557
39665
  "& .ProseMirror": {
@@ -39579,17 +39687,17 @@ var Mq = ug.create({
39579
39687
  } },
39580
39688
  ...t && { "& > p:has(+ p)": { marginBottom: "1em" } }
39581
39689
  }
39582
- })), Wq = "_holdInlineDropdownToolbarIndex", Gq = (e, t) => {
39690
+ })), $q = "_holdInlineDropdownToolbarIndex", eJ = (e, t) => {
39583
39691
  let n = null;
39584
39692
  return e.state.doc.descendants((e, r) => e.type?.name === "inline_dropdown" && String(e.attrs?.index) === String(t) ? (n = r, !1) : !0), n;
39585
- }, Kq = (e) => {
39586
- delete e[Wq];
39587
- }, qq = (e, t, n) => {
39588
- let r = Gq(e, t) ?? n;
39589
- if (r == null) return Kq(e), !1;
39693
+ }, tJ = (e) => {
39694
+ delete e[$q];
39695
+ }, nJ = (e, t, n) => {
39696
+ let r = eJ(e, t) ?? n;
39697
+ if (r == null) return tJ(e), !1;
39590
39698
  let { tr: i } = e.state, a = i.doc.nodeAt(r);
39591
- return a ? (i.delete(r, r + a.nodeSize), e.view.dispatch(i), Kq(e), !0) : (Kq(e), !1);
39592
- }, Jq = Hq, Yq = class e extends CustomEvent {
39699
+ return a ? (i.delete(r, r + a.nodeSize), e.view.dispatch(i), tJ(e), !0) : (tJ(e), !1);
39700
+ }, rJ = Zq, iJ = class e extends CustomEvent {
39593
39701
  static {
39594
39702
  this.TYPE = "model.updated";
39595
39703
  }
@@ -39602,7 +39710,7 @@ var Mq = ug.create({
39602
39710
  }
39603
39711
  }), this.update = t, this.reset = n;
39604
39712
  }
39605
- }, Xq = class e extends CustomEvent {
39713
+ }, aJ = class e extends CustomEvent {
39606
39714
  static {
39607
39715
  this.TYPE = "delete.image";
39608
39716
  }
@@ -39615,7 +39723,7 @@ var Mq = ug.create({
39615
39723
  }
39616
39724
  }), this.src = t, this.done = n;
39617
39725
  }
39618
- }, Zq = class e extends CustomEvent {
39726
+ }, oJ = class e extends CustomEvent {
39619
39727
  static {
39620
39728
  this.TYPE = "insert.image";
39621
39729
  }
@@ -39625,7 +39733,7 @@ var Mq = ug.create({
39625
39733
  detail: t
39626
39734
  }), this.handler = t;
39627
39735
  }
39628
- }, Qq = class e extends CustomEvent {
39736
+ }, sJ = class e extends CustomEvent {
39629
39737
  static {
39630
39738
  this.TYPE = "delete.sound";
39631
39739
  }
@@ -39638,7 +39746,7 @@ var Mq = ug.create({
39638
39746
  }
39639
39747
  }), this.src = t, this.done = n;
39640
39748
  }
39641
- }, $q = class e extends CustomEvent {
39749
+ }, cJ = class e extends CustomEvent {
39642
39750
  static {
39643
39751
  this.TYPE = "insert.sound";
39644
39752
  }
@@ -39648,13 +39756,13 @@ var Mq = ug.create({
39648
39756
  detail: t
39649
39757
  }), this.handler = t;
39650
39758
  }
39651
- }, eJ = /*#__PURE__*/ N.createContext({});
39759
+ }, lJ = /*#__PURE__*/ N.createContext({});
39652
39760
  //#endregion
39653
39761
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Accordion/accordionClasses.js
39654
- function tJ(e) {
39762
+ function uJ(e) {
39655
39763
  return k("MuiAccordion", e);
39656
39764
  }
39657
- var nJ = Je("MuiAccordion", [
39765
+ var dJ = Je("MuiAccordion", [
39658
39766
  "root",
39659
39767
  "heading",
39660
39768
  "rounded",
@@ -39662,7 +39770,7 @@ var nJ = Je("MuiAccordion", [
39662
39770
  "disabled",
39663
39771
  "gutters",
39664
39772
  "region"
39665
- ]), rJ = (e) => {
39773
+ ]), fJ = (e) => {
39666
39774
  let { classes: t, square: n, expanded: r, disabled: i, disableGutters: a } = e;
39667
39775
  return A({
39668
39776
  root: [
@@ -39674,14 +39782,14 @@ var nJ = Je("MuiAccordion", [
39674
39782
  ],
39675
39783
  heading: ["heading"],
39676
39784
  region: ["region"]
39677
- }, tJ, t);
39678
- }, iJ = j($e, {
39785
+ }, uJ, t);
39786
+ }, pJ = j($e, {
39679
39787
  name: "MuiAccordion",
39680
39788
  slot: "Root",
39681
39789
  overridesResolver: (e, t) => {
39682
39790
  let { ownerState: n } = e;
39683
39791
  return [
39684
- { [`& .${nJ.region}`]: t.region },
39792
+ { [`& .${dJ.region}`]: t.region },
39685
39793
  t.root,
39686
39794
  !n.square && t.rounded,
39687
39795
  !n.disableGutters && t.gutters
@@ -39705,13 +39813,13 @@ var nJ = Je("MuiAccordion", [
39705
39813
  transition: e.transitions.create(["opacity", "background-color"], t)
39706
39814
  },
39707
39815
  "&:first-of-type": { "&::before": { display: "none" } },
39708
- [`&.${nJ.expanded}`]: {
39816
+ [`&.${dJ.expanded}`]: {
39709
39817
  "&::before": { opacity: 0 },
39710
39818
  "&:first-of-type": { marginTop: 0 },
39711
39819
  "&:last-of-type": { marginBottom: 0 },
39712
39820
  "& + &": { "&::before": { display: "none" } }
39713
39821
  },
39714
- [`&.${nJ.disabled}`]: { backgroundColor: (e.vars || e).palette.action.disabledBackground }
39822
+ [`&.${dJ.disabled}`]: { backgroundColor: (e.vars || e).palette.action.disabledBackground }
39715
39823
  };
39716
39824
  }), b(({ theme: e }) => ({ variants: [{
39717
39825
  props: (e) => !e.square,
@@ -39732,14 +39840,14 @@ var nJ = Je("MuiAccordion", [
39732
39840
  }
39733
39841
  }, {
39734
39842
  props: (e) => !e.disableGutters,
39735
- style: { [`&.${nJ.expanded}`]: { margin: "16px 0" } }
39736
- }] }))), aJ = j("h3", {
39843
+ style: { [`&.${dJ.expanded}`]: { margin: "16px 0" } }
39844
+ }] }))), mJ = j("h3", {
39737
39845
  name: "MuiAccordion",
39738
39846
  slot: "Heading"
39739
- })({ all: "unset" }), oJ = j("div", {
39847
+ })({ all: "unset" }), hJ = j("div", {
39740
39848
  name: "MuiAccordion",
39741
39849
  slot: "Region"
39742
- })({}), sJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39850
+ })({}), gJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39743
39851
  let n = ye({
39744
39852
  props: e,
39745
39853
  name: "MuiAccordion"
@@ -39769,7 +39877,7 @@ var nJ = Je("MuiAccordion", [
39769
39877
  disabled: s,
39770
39878
  disableGutters: c,
39771
39879
  expanded: v
39772
- }, ee = rJ(w), T = {
39880
+ }, ee = fJ(w), T = {
39773
39881
  slots: {
39774
39882
  transition: m,
39775
39883
  ...d
@@ -39779,7 +39887,7 @@ var nJ = Je("MuiAccordion", [
39779
39887
  ...p
39780
39888
  }
39781
39889
  }, [te, E] = h("root", {
39782
- elementType: iJ,
39890
+ elementType: pJ,
39783
39891
  externalForwardedProps: {
39784
39892
  ...T,
39785
39893
  ..._
@@ -39789,7 +39897,7 @@ var nJ = Je("MuiAccordion", [
39789
39897
  ownerState: w,
39790
39898
  ref: t
39791
39899
  }), [ne, re] = h("heading", {
39792
- elementType: aJ,
39900
+ elementType: mJ,
39793
39901
  externalForwardedProps: T,
39794
39902
  className: ee.heading,
39795
39903
  ownerState: w
@@ -39798,7 +39906,7 @@ var nJ = Je("MuiAccordion", [
39798
39906
  externalForwardedProps: T,
39799
39907
  ownerState: w
39800
39908
  }), [ie, ae] = h("region", {
39801
- elementType: oJ,
39909
+ elementType: hJ,
39802
39910
  externalForwardedProps: T,
39803
39911
  ownerState: w,
39804
39912
  className: ee.region,
@@ -39812,7 +39920,7 @@ var nJ = Je("MuiAccordion", [
39812
39920
  ...E,
39813
39921
  children: [/*#__PURE__*/ P(ne, {
39814
39922
  ...re,
39815
- children: /*#__PURE__*/ P(eJ.Provider, {
39923
+ children: /*#__PURE__*/ P(lJ.Provider, {
39816
39924
  value: C,
39817
39925
  children: x
39818
39926
  })
@@ -39829,25 +39937,25 @@ var nJ = Je("MuiAccordion", [
39829
39937
  });
39830
39938
  //#endregion
39831
39939
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/AccordionDetails/accordionDetailsClasses.js
39832
- function cJ(e) {
39940
+ function _J(e) {
39833
39941
  return k("MuiAccordionDetails", e);
39834
39942
  }
39835
39943
  Je("MuiAccordionDetails", ["root"]);
39836
39944
  //#endregion
39837
39945
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/AccordionDetails/AccordionDetails.js
39838
- var lJ = (e) => {
39946
+ var vJ = (e) => {
39839
39947
  let { classes: t } = e;
39840
- return A({ root: ["root"] }, cJ, t);
39841
- }, uJ = j("div", {
39948
+ return A({ root: ["root"] }, _J, t);
39949
+ }, yJ = j("div", {
39842
39950
  name: "MuiAccordionDetails",
39843
39951
  slot: "Root"
39844
- })(b(({ theme: e }) => ({ padding: e.spacing(1, 2, 2) }))), dJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39952
+ })(b(({ theme: e }) => ({ padding: e.spacing(1, 2, 2) }))), bJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39845
39953
  let n = ye({
39846
39954
  props: e,
39847
39955
  name: "MuiAccordionDetails"
39848
39956
  }), { className: r, ...i } = n, a = n;
39849
- return /*#__PURE__*/ P(uJ, {
39850
- className: f(lJ(a).root, r),
39957
+ return /*#__PURE__*/ P(yJ, {
39958
+ className: f(vJ(a).root, r),
39851
39959
  ref: t,
39852
39960
  ownerState: a,
39853
39961
  ...i
@@ -39855,10 +39963,10 @@ var lJ = (e) => {
39855
39963
  });
39856
39964
  //#endregion
39857
39965
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/AccordionSummary/accordionSummaryClasses.js
39858
- function fJ(e) {
39966
+ function xJ(e) {
39859
39967
  return k("MuiAccordionSummary", e);
39860
39968
  }
39861
- var pJ = Je("MuiAccordionSummary", [
39969
+ var SJ = Je("MuiAccordionSummary", [
39862
39970
  "root",
39863
39971
  "expanded",
39864
39972
  "focusVisible",
@@ -39867,7 +39975,7 @@ var pJ = Je("MuiAccordionSummary", [
39867
39975
  "contentGutters",
39868
39976
  "content",
39869
39977
  "expandIconWrapper"
39870
- ]), mJ = (e) => {
39978
+ ]), CJ = (e) => {
39871
39979
  let { classes: t, expanded: n, disabled: r, disableGutters: i } = e;
39872
39980
  return A({
39873
39981
  root: [
@@ -39883,8 +39991,8 @@ var pJ = Je("MuiAccordionSummary", [
39883
39991
  !i && "contentGutters"
39884
39992
  ],
39885
39993
  expandIconWrapper: ["expandIconWrapper", n && "expanded"]
39886
- }, fJ, t);
39887
- }, hJ = j(l, {
39994
+ }, xJ, t);
39995
+ }, wJ = j(l, {
39888
39996
  name: "MuiAccordionSummary",
39889
39997
  slot: "Root"
39890
39998
  })(b(({ theme: e }) => {
@@ -39895,15 +40003,15 @@ var pJ = Je("MuiAccordionSummary", [
39895
40003
  minHeight: 48,
39896
40004
  padding: e.spacing(0, 2),
39897
40005
  transition: e.transitions.create(["min-height", "background-color"], t),
39898
- [`&.${pJ.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
39899
- [`&.${pJ.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
39900
- [`&:hover:not(.${pJ.disabled})`]: { cursor: "pointer" },
40006
+ [`&.${SJ.focusVisible}`]: { backgroundColor: (e.vars || e).palette.action.focus },
40007
+ [`&.${SJ.disabled}`]: { opacity: (e.vars || e).palette.action.disabledOpacity },
40008
+ [`&:hover:not(.${SJ.disabled})`]: { cursor: "pointer" },
39901
40009
  variants: [{
39902
40010
  props: (e) => !e.disableGutters,
39903
- style: { [`&.${pJ.expanded}`]: { minHeight: 64 } }
40011
+ style: { [`&.${SJ.expanded}`]: { minHeight: 64 } }
39904
40012
  }]
39905
40013
  };
39906
- })), gJ = j("span", {
40014
+ })), TJ = j("span", {
39907
40015
  name: "MuiAccordionSummary",
39908
40016
  slot: "Content"
39909
40017
  })(b(({ theme: e }) => ({
@@ -39915,10 +40023,10 @@ var pJ = Je("MuiAccordionSummary", [
39915
40023
  props: (e) => !e.disableGutters,
39916
40024
  style: {
39917
40025
  transition: e.transitions.create(["margin"], { duration: e.transitions.duration.shortest }),
39918
- [`&.${pJ.expanded}`]: { margin: "20px 0" }
40026
+ [`&.${SJ.expanded}`]: { margin: "20px 0" }
39919
40027
  }
39920
40028
  }]
39921
- }))), _J = j("span", {
40029
+ }))), EJ = j("span", {
39922
40030
  name: "MuiAccordionSummary",
39923
40031
  slot: "ExpandIconWrapper"
39924
40032
  })(b(({ theme: e }) => ({
@@ -39926,26 +40034,26 @@ var pJ = Je("MuiAccordionSummary", [
39926
40034
  color: (e.vars || e).palette.action.active,
39927
40035
  transform: "rotate(0deg)",
39928
40036
  transition: e.transitions.create("transform", { duration: e.transitions.duration.shortest }),
39929
- [`&.${pJ.expanded}`]: { transform: "rotate(180deg)" }
39930
- }))), vJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40037
+ [`&.${SJ.expanded}`]: { transform: "rotate(180deg)" }
40038
+ }))), DJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
39931
40039
  let n = ye({
39932
40040
  props: e,
39933
40041
  name: "MuiAccordionSummary"
39934
- }), { children: r, className: i, expandIcon: a, focusVisibleClassName: o, onClick: s, slots: c, slotProps: l, ...u } = n, { disabled: d = !1, disableGutters: p, expanded: m, toggle: g } = N.useContext(eJ), _ = (e) => {
40042
+ }), { children: r, className: i, expandIcon: a, focusVisibleClassName: o, onClick: s, slots: c, slotProps: l, ...u } = n, { disabled: d = !1, disableGutters: p, expanded: m, toggle: g } = N.useContext(lJ), _ = (e) => {
39935
40043
  g && g(e), s && s(e);
39936
40044
  }, v = {
39937
40045
  ...n,
39938
40046
  expanded: m,
39939
40047
  disabled: d,
39940
40048
  disableGutters: p
39941
- }, y = mJ(v), b = {
40049
+ }, y = CJ(v), b = {
39942
40050
  slots: c,
39943
40051
  slotProps: l
39944
40052
  }, [x, S] = h("root", {
39945
40053
  ref: t,
39946
40054
  shouldForwardComponentProp: !0,
39947
40055
  className: f(y.root, i),
39948
- elementType: hJ,
40056
+ elementType: wJ,
39949
40057
  externalForwardedProps: {
39950
40058
  ...b,
39951
40059
  ...u
@@ -39966,12 +40074,12 @@ var pJ = Je("MuiAccordionSummary", [
39966
40074
  })
39967
40075
  }), [C, w] = h("content", {
39968
40076
  className: y.content,
39969
- elementType: gJ,
40077
+ elementType: TJ,
39970
40078
  externalForwardedProps: b,
39971
40079
  ownerState: v
39972
40080
  }), [ee, T] = h("expandIconWrapper", {
39973
40081
  className: y.expandIconWrapper,
39974
- elementType: _J,
40082
+ elementType: EJ,
39975
40083
  externalForwardedProps: b,
39976
40084
  ownerState: v
39977
40085
  });
@@ -39988,7 +40096,7 @@ var pJ = Je("MuiAccordionSummary", [
39988
40096
  });
39989
40097
  //#endregion
39990
40098
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/switchBaseClasses.js
39991
- function yJ(e) {
40099
+ function OJ(e) {
39992
40100
  return k("PrivateSwitchBase", e);
39993
40101
  }
39994
40102
  Je("PrivateSwitchBase", [
@@ -40001,7 +40109,7 @@ Je("PrivateSwitchBase", [
40001
40109
  ]);
40002
40110
  //#endregion
40003
40111
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/internal/SwitchBase.js
40004
- var bJ = (e) => {
40112
+ var kJ = (e) => {
40005
40113
  let { classes: t, checked: n, disabled: r, edge: i } = e;
40006
40114
  return A({
40007
40115
  root: [
@@ -40011,8 +40119,8 @@ var bJ = (e) => {
40011
40119
  i && `edge${O(i)}`
40012
40120
  ],
40013
40121
  input: ["input"]
40014
- }, yJ, t);
40015
- }, xJ = j(l, { name: "MuiSwitchBase" })({
40122
+ }, OJ, t);
40123
+ }, AJ = j(l, { name: "MuiSwitchBase" })({
40016
40124
  padding: 9,
40017
40125
  borderRadius: "50%",
40018
40126
  variants: [
@@ -40039,7 +40147,7 @@ var bJ = (e) => {
40039
40147
  style: { marginRight: -12 }
40040
40148
  }
40041
40149
  ]
40042
- }), SJ = j("input", {
40150
+ }), jJ = j("input", {
40043
40151
  name: "MuiSwitchBase",
40044
40152
  shouldForwardProp: Ne
40045
40153
  })({
@@ -40053,7 +40161,7 @@ var bJ = (e) => {
40053
40161
  margin: 0,
40054
40162
  padding: 0,
40055
40163
  zIndex: 1
40056
- }), CJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40164
+ }), MJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40057
40165
  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: g, onFocus: _, readOnly: v, required: y = !1, tabIndex: b, type: x, value: S, slots: C = {}, slotProps: w = {}, ...ee } = e, [T, te] = Wt({
40058
40166
  controlled: r,
40059
40167
  default: !!a,
@@ -40075,7 +40183,7 @@ var bJ = (e) => {
40075
40183
  disabled: O,
40076
40184
  disableFocusRipple: s,
40077
40185
  edge: c
40078
- }, oe = bJ(ae), k = {
40186
+ }, oe = kJ(ae), k = {
40079
40187
  slots: C,
40080
40188
  slotProps: {
40081
40189
  input: d,
@@ -40083,7 +40191,7 @@ var bJ = (e) => {
40083
40191
  }
40084
40192
  }, [se, ce] = h("root", {
40085
40193
  ref: t,
40086
- elementType: xJ,
40194
+ elementType: AJ,
40087
40195
  className: oe.root,
40088
40196
  shouldForwardComponentProp: !0,
40089
40197
  externalForwardedProps: {
@@ -40109,7 +40217,7 @@ var bJ = (e) => {
40109
40217
  }
40110
40218
  }), [le, ue] = h("input", {
40111
40219
  ref: f,
40112
- elementType: SJ,
40220
+ elementType: jJ,
40113
40221
  className: oe.input,
40114
40222
  externalForwardedProps: k,
40115
40223
  getSlotProps: (e) => ({
@@ -40137,13 +40245,13 @@ var bJ = (e) => {
40137
40245
  ...ce,
40138
40246
  children: [/*#__PURE__*/ P(le, { ...ue }), T ? i : l]
40139
40247
  });
40140
- }), wJ = x(/*#__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"), TJ = x(/*#__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"), EJ = x(/*#__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");
40248
+ }), NJ = x(/*#__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"), PJ = x(/*#__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"), FJ = x(/*#__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");
40141
40249
  //#endregion
40142
40250
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js
40143
- function DJ(e) {
40251
+ function IJ(e) {
40144
40252
  return k("MuiCheckbox", e);
40145
40253
  }
40146
- var OJ = Je("MuiCheckbox", [
40254
+ var LJ = Je("MuiCheckbox", [
40147
40255
  "root",
40148
40256
  "checked",
40149
40257
  "disabled",
@@ -40152,18 +40260,18 @@ var OJ = Je("MuiCheckbox", [
40152
40260
  "colorSecondary",
40153
40261
  "sizeSmall",
40154
40262
  "sizeMedium"
40155
- ]), kJ = (e) => {
40263
+ ]), RJ = (e) => {
40156
40264
  let { classes: t, indeterminate: n, color: r, size: i } = e, a = A({ root: [
40157
40265
  "root",
40158
40266
  n && "indeterminate",
40159
40267
  `color${O(r)}`,
40160
40268
  `size${O(i)}`
40161
- ] }, DJ, t);
40269
+ ] }, IJ, t);
40162
40270
  return {
40163
40271
  ...t,
40164
40272
  ...a
40165
40273
  };
40166
- }, AJ = j(CJ, {
40274
+ }, zJ = j(MJ, {
40167
40275
  shouldForwardProp: (e) => Ne(e) || e === "classes",
40168
40276
  name: "MuiCheckbox",
40169
40277
  slot: "Root",
@@ -40196,8 +40304,8 @@ var OJ = Je("MuiCheckbox", [
40196
40304
  ...Object.entries(e.palette).filter(d()).map(([t]) => ({
40197
40305
  props: { color: t },
40198
40306
  style: {
40199
- [`&.${OJ.checked}, &.${OJ.indeterminate}`]: { color: (e.vars || e).palette[t].main },
40200
- [`&.${OJ.disabled}`]: { color: (e.vars || e).palette.action.disabled }
40307
+ [`&.${LJ.checked}, &.${LJ.indeterminate}`]: { color: (e.vars || e).palette[t].main },
40308
+ [`&.${LJ.disabled}`]: { color: (e.vars || e).palette.action.disabled }
40201
40309
  }
40202
40310
  })),
40203
40311
  {
@@ -40205,19 +40313,19 @@ var OJ = Je("MuiCheckbox", [
40205
40313
  style: { "&:hover": { "@media (hover: none)": { backgroundColor: "transparent" } } }
40206
40314
  }
40207
40315
  ]
40208
- }))), jJ = /*#__PURE__*/ P(TJ, {}), MJ = /*#__PURE__*/ P(wJ, {}), NJ = /*#__PURE__*/ P(EJ, {}), PJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40316
+ }))), BJ = /*#__PURE__*/ P(PJ, {}), VJ = /*#__PURE__*/ P(NJ, {}), HJ = /*#__PURE__*/ P(FJ, {}), UJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40209
40317
  let n = ye({
40210
40318
  props: e,
40211
40319
  name: "MuiCheckbox"
40212
- }), { checkedIcon: r = jJ, color: i = "primary", icon: a = MJ, indeterminate: o = !1, indeterminateIcon: s = NJ, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: p = {}, slotProps: m = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
40320
+ }), { checkedIcon: r = BJ, color: i = "primary", icon: a = VJ, indeterminate: o = !1, indeterminateIcon: s = HJ, inputProps: c, size: l = "medium", disableRipple: u = !1, className: d, slots: p = {}, slotProps: m = {}, ...g } = n, _ = o ? s : a, v = o ? s : r, y = {
40213
40321
  ...n,
40214
40322
  disableRipple: u,
40215
40323
  color: i,
40216
40324
  indeterminate: o,
40217
40325
  size: l
40218
- }, b = kJ(y), x = m.input ?? c, [S, w] = h("root", {
40326
+ }, b = RJ(y), x = m.input ?? c, [S, w] = h("root", {
40219
40327
  ref: t,
40220
- elementType: AJ,
40328
+ elementType: zJ,
40221
40329
  className: f(b.root, d),
40222
40330
  shouldForwardComponentProp: !0,
40223
40331
  externalForwardedProps: {
@@ -40245,10 +40353,10 @@ var OJ = Je("MuiCheckbox", [
40245
40353
  });
40246
40354
  //#endregion
40247
40355
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js
40248
- function FJ(e) {
40356
+ function WJ(e) {
40249
40357
  return k("MuiFormControlLabel", e);
40250
40358
  }
40251
- var IJ = Je("MuiFormControlLabel", [
40359
+ var GJ = Je("MuiFormControlLabel", [
40252
40360
  "root",
40253
40361
  "labelPlacementStart",
40254
40362
  "labelPlacementTop",
@@ -40258,7 +40366,7 @@ var IJ = Je("MuiFormControlLabel", [
40258
40366
  "error",
40259
40367
  "required",
40260
40368
  "asterisk"
40261
- ]), LJ = (e) => {
40369
+ ]), KJ = (e) => {
40262
40370
  let { classes: t, disabled: n, labelPlacement: r, error: i, required: a } = e;
40263
40371
  return A({
40264
40372
  root: [
@@ -40270,14 +40378,14 @@ var IJ = Je("MuiFormControlLabel", [
40270
40378
  ],
40271
40379
  label: ["label", n && "disabled"],
40272
40380
  asterisk: ["asterisk", i && "error"]
40273
- }, FJ, t);
40274
- }, RJ = j("label", {
40381
+ }, WJ, t);
40382
+ }, qJ = j("label", {
40275
40383
  name: "MuiFormControlLabel",
40276
40384
  slot: "Root",
40277
40385
  overridesResolver: (e, t) => {
40278
40386
  let { ownerState: n } = e;
40279
40387
  return [
40280
- { [`& .${IJ.label}`]: t.label },
40388
+ { [`& .${GJ.label}`]: t.label },
40281
40389
  t.root,
40282
40390
  t[`labelPlacement${O(n.labelPlacement)}`]
40283
40391
  ];
@@ -40290,8 +40398,8 @@ var IJ = Je("MuiFormControlLabel", [
40290
40398
  WebkitTapHighlightColor: "transparent",
40291
40399
  marginLeft: -11,
40292
40400
  marginRight: 16,
40293
- [`&.${IJ.disabled}`]: { cursor: "default" },
40294
- [`& .${IJ.label}`]: { [`&.${IJ.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
40401
+ [`&.${GJ.disabled}`]: { cursor: "default" },
40402
+ [`& .${GJ.label}`]: { [`&.${GJ.disabled}`]: { color: (e.vars || e).palette.text.disabled } },
40295
40403
  variants: [
40296
40404
  {
40297
40405
  props: { labelPlacement: "start" },
@@ -40313,10 +40421,10 @@ var IJ = Je("MuiFormControlLabel", [
40313
40421
  style: { marginLeft: 16 }
40314
40422
  }
40315
40423
  ]
40316
- }))), zJ = j("span", {
40424
+ }))), JJ = j("span", {
40317
40425
  name: "MuiFormControlLabel",
40318
40426
  slot: "Asterisk"
40319
- })(b(({ theme: e }) => ({ [`&.${IJ.error}`]: { color: (e.vars || e).palette.error.main } }))), BJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40427
+ })(b(({ theme: e }) => ({ [`&.${GJ.error}`]: { color: (e.vars || e).palette.error.main } }))), YJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40320
40428
  let n = ye({
40321
40429
  props: e,
40322
40430
  name: "MuiFormControlLabel"
@@ -40343,7 +40451,7 @@ var IJ = Je("MuiFormControlLabel", [
40343
40451
  labelPlacement: d,
40344
40452
  required: C,
40345
40453
  error: ee.error
40346
- }, te = LJ(T), [E, ne] = h("typography", {
40454
+ }, te = KJ(T), [E, ne] = h("typography", {
40347
40455
  elementType: $A,
40348
40456
  externalForwardedProps: {
40349
40457
  slots: _,
@@ -40359,12 +40467,12 @@ var IJ = Je("MuiFormControlLabel", [
40359
40467
  ...ne,
40360
40468
  className: f(te.label, ne?.className),
40361
40469
  children: re
40362
- })), /*#__PURE__*/ F(RJ, {
40470
+ })), /*#__PURE__*/ F(qJ, {
40363
40471
  className: f(te.root, i),
40364
40472
  ownerState: T,
40365
40473
  ref: t,
40366
40474
  ...b,
40367
- children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [re, /*#__PURE__*/ F(zJ, {
40475
+ children: [/*#__PURE__*/ N.cloneElement(o, w), C ? /*#__PURE__*/ F("div", { children: [re, /*#__PURE__*/ F(JJ, {
40368
40476
  ownerState: T,
40369
40477
  "aria-hidden": !0,
40370
40478
  className: te.asterisk,
@@ -40374,10 +40482,10 @@ var IJ = Je("MuiFormControlLabel", [
40374
40482
  });
40375
40483
  //#endregion
40376
40484
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js
40377
- function VJ(e) {
40485
+ function XJ(e) {
40378
40486
  return k("MuiInputAdornment", e);
40379
40487
  }
40380
- var HJ = Je("MuiInputAdornment", [
40488
+ var ZJ = Je("MuiInputAdornment", [
40381
40489
  "root",
40382
40490
  "filled",
40383
40491
  "standard",
@@ -40387,7 +40495,7 @@ var HJ = Je("MuiInputAdornment", [
40387
40495
  "disablePointerEvents",
40388
40496
  "hiddenLabel",
40389
40497
  "sizeSmall"
40390
- ]), UJ, WJ = (e, t) => {
40498
+ ]), QJ, $J = (e, t) => {
40391
40499
  let { ownerState: n } = e;
40392
40500
  return [
40393
40501
  t.root,
@@ -40395,7 +40503,7 @@ var HJ = Je("MuiInputAdornment", [
40395
40503
  n.disablePointerEvents === !0 && t.disablePointerEvents,
40396
40504
  t[n.variant]
40397
40505
  ];
40398
- }, GJ = (e) => {
40506
+ }, eY = (e) => {
40399
40507
  let { classes: t, disablePointerEvents: n, hiddenLabel: r, position: i, size: a, variant: o } = e;
40400
40508
  return A({ root: [
40401
40509
  "root",
@@ -40404,11 +40512,11 @@ var HJ = Je("MuiInputAdornment", [
40404
40512
  o,
40405
40513
  r && "hiddenLabel",
40406
40514
  a && `size${O(a)}`
40407
- ] }, VJ, t);
40408
- }, KJ = j("div", {
40515
+ ] }, XJ, t);
40516
+ }, tY = j("div", {
40409
40517
  name: "MuiInputAdornment",
40410
40518
  slot: "Root",
40411
- overridesResolver: WJ
40519
+ overridesResolver: $J
40412
40520
  })(b(({ theme: e }) => ({
40413
40521
  display: "flex",
40414
40522
  maxHeight: "2em",
@@ -40418,7 +40526,7 @@ var HJ = Je("MuiInputAdornment", [
40418
40526
  variants: [
40419
40527
  {
40420
40528
  props: { variant: "filled" },
40421
- style: { [`&.${HJ.positionStart}&:not(.${HJ.hiddenLabel})`]: { marginTop: 16 } }
40529
+ style: { [`&.${ZJ.positionStart}&:not(.${ZJ.hiddenLabel})`]: { marginTop: 16 } }
40422
40530
  },
40423
40531
  {
40424
40532
  props: { position: "start" },
@@ -40433,7 +40541,7 @@ var HJ = Je("MuiInputAdornment", [
40433
40541
  style: { pointerEvents: "none" }
40434
40542
  }
40435
40543
  ]
40436
- }))), qJ = /*#__PURE__*/ N.forwardRef(function(e, t) {
40544
+ }))), nY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40437
40545
  let n = ye({
40438
40546
  props: e,
40439
40547
  name: "MuiInputAdornment"
@@ -40446,10 +40554,10 @@ var HJ = Je("MuiInputAdornment", [
40446
40554
  disablePointerEvents: o,
40447
40555
  position: c,
40448
40556
  variant: p
40449
- }, h = GJ(m);
40557
+ }, h = eY(m);
40450
40558
  return /*#__PURE__*/ P(_e.Provider, {
40451
40559
  value: null,
40452
- children: /*#__PURE__*/ P(KJ, {
40560
+ children: /*#__PURE__*/ P(tY, {
40453
40561
  as: a,
40454
40562
  ownerState: m,
40455
40563
  className: f(h.root, i),
@@ -40458,20 +40566,20 @@ var HJ = Je("MuiInputAdornment", [
40458
40566
  children: typeof r == "string" && !s ? /*#__PURE__*/ P($A, {
40459
40567
  color: "textSecondary",
40460
40568
  children: r
40461
- }) : /*#__PURE__*/ F(N.Fragment, { children: [c === "start" ? UJ ||= /*#__PURE__*/ P("span", {
40569
+ }) : /*#__PURE__*/ F(N.Fragment, { children: [c === "start" ? QJ ||= /*#__PURE__*/ P("span", {
40462
40570
  className: "notranslate",
40463
40571
  "aria-hidden": !0,
40464
40572
  children: "​"
40465
40573
  }) : null, r] })
40466
40574
  })
40467
40575
  });
40468
- }), JJ = x(/*#__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"), YJ = x(/*#__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"), XJ = j("span", {
40576
+ }), rY = x(/*#__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"), iY = x(/*#__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"), aY = j("span", {
40469
40577
  name: "MuiRadioButtonIcon",
40470
40578
  shouldForwardProp: Ne
40471
40579
  })({
40472
40580
  position: "relative",
40473
40581
  display: "flex"
40474
- }), ZJ = j(JJ, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), QJ = j(YJ, { name: "MuiRadioButtonIcon" })(b(({ theme: e }) => ({
40582
+ }), oY = j(rY, { name: "MuiRadioButtonIcon" })({ transform: "scale(1)" }), sY = j(iY, { name: "MuiRadioButtonIcon" })(b(({ theme: e }) => ({
40475
40583
  left: 0,
40476
40584
  position: "absolute",
40477
40585
  transform: "scale(0)",
@@ -40490,19 +40598,19 @@ var HJ = Je("MuiInputAdornment", [
40490
40598
  }
40491
40599
  }]
40492
40600
  })));
40493
- function $J(e) {
40601
+ function cY(e) {
40494
40602
  let { checked: t = !1, classes: n = {}, fontSize: r } = e, i = {
40495
40603
  ...e,
40496
40604
  checked: t
40497
40605
  };
40498
- return /*#__PURE__*/ F(XJ, {
40606
+ return /*#__PURE__*/ F(aY, {
40499
40607
  className: n.root,
40500
40608
  ownerState: i,
40501
- children: [/*#__PURE__*/ P(ZJ, {
40609
+ children: [/*#__PURE__*/ P(oY, {
40502
40610
  fontSize: r,
40503
40611
  className: n.background,
40504
40612
  ownerState: i
40505
- }), /*#__PURE__*/ P(QJ, {
40613
+ }), /*#__PURE__*/ P(sY, {
40506
40614
  fontSize: r,
40507
40615
  className: n.dot,
40508
40616
  ownerState: i
@@ -40511,25 +40619,25 @@ function $J(e) {
40511
40619
  }
40512
40620
  //#endregion
40513
40621
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js
40514
- var eY = /*#__PURE__*/ N.createContext(void 0);
40622
+ var lY = /*#__PURE__*/ N.createContext(void 0);
40515
40623
  //#endregion
40516
40624
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js
40517
- function tY() {
40518
- return N.useContext(eY);
40625
+ function uY() {
40626
+ return N.useContext(lY);
40519
40627
  }
40520
40628
  //#endregion
40521
40629
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Radio/radioClasses.js
40522
- function nY(e) {
40630
+ function dY(e) {
40523
40631
  return k("MuiRadio", e);
40524
40632
  }
40525
- var rY = Je("MuiRadio", [
40633
+ var fY = Je("MuiRadio", [
40526
40634
  "root",
40527
40635
  "checked",
40528
40636
  "disabled",
40529
40637
  "colorPrimary",
40530
40638
  "colorSecondary",
40531
40639
  "sizeSmall"
40532
- ]), iY = (e) => {
40640
+ ]), pY = (e) => {
40533
40641
  let { classes: t, color: n, size: r } = e, i = { root: [
40534
40642
  "root",
40535
40643
  `color${O(n)}`,
@@ -40537,9 +40645,9 @@ var rY = Je("MuiRadio", [
40537
40645
  ] };
40538
40646
  return {
40539
40647
  ...t,
40540
- ...A(i, nY, t)
40648
+ ...A(i, dY, t)
40541
40649
  };
40542
- }, aY = j(CJ, {
40650
+ }, mY = j(MJ, {
40543
40651
  shouldForwardProp: (e) => Ne(e) || e === "classes",
40544
40652
  name: "MuiRadio",
40545
40653
  slot: "Root",
@@ -40553,7 +40661,7 @@ var rY = Je("MuiRadio", [
40553
40661
  }
40554
40662
  })(b(({ theme: e }) => ({
40555
40663
  color: (e.vars || e).palette.text.secondary,
40556
- [`&.${rY.disabled}`]: { color: (e.vars || e).palette.action.disabled },
40664
+ [`&.${fY.disabled}`]: { color: (e.vars || e).palette.action.disabled },
40557
40665
  variants: [
40558
40666
  {
40559
40667
  props: {
@@ -40576,7 +40684,7 @@ var rY = Je("MuiRadio", [
40576
40684
  color: t,
40577
40685
  disabled: !1
40578
40686
  },
40579
- style: { [`&.${rY.checked}`]: { color: (e.vars || e).palette[t].main } }
40687
+ style: { [`&.${fY.checked}`]: { color: (e.vars || e).palette[t].main } }
40580
40688
  })),
40581
40689
  {
40582
40690
  props: { disableRipple: !1 },
@@ -40584,14 +40692,14 @@ var rY = Je("MuiRadio", [
40584
40692
  }
40585
40693
  ]
40586
40694
  })));
40587
- function oY(e, t) {
40695
+ function hY(e, t) {
40588
40696
  return typeof t == "object" && t ? e === t : String(e) === String(t);
40589
40697
  }
40590
- var sY = /*#__PURE__*/ P($J, { checked: !0 }), cY = /*#__PURE__*/ P($J, {}), lY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40698
+ var gY = /*#__PURE__*/ P(cY, { checked: !0 }), _Y = /*#__PURE__*/ P(cY, {}), vY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40591
40699
  let n = ye({
40592
40700
  props: e,
40593
40701
  name: "MuiRadio"
40594
- }), { checked: r, checkedIcon: i = sY, color: a = "primary", icon: o = cY, name: s, onChange: c, size: l = "medium", className: u, disabled: d, disableRipple: p = !1, slots: m = {}, slotProps: g = {}, inputProps: _, ...v } = n, y = Ze(), b = d;
40702
+ }), { checked: r, checkedIcon: i = gY, color: a = "primary", icon: o = _Y, name: s, onChange: c, size: l = "medium", className: u, disabled: d, disableRipple: p = !1, slots: m = {}, slotProps: g = {}, inputProps: _, ...v } = n, y = Ze(), b = d;
40595
40703
  y && b === void 0 && (b = y.disabled), b ??= !1;
40596
40704
  let x = {
40597
40705
  ...n,
@@ -40599,11 +40707,11 @@ var sY = /*#__PURE__*/ P($J, { checked: !0 }), cY = /*#__PURE__*/ P($J, {}), lY
40599
40707
  disableRipple: p,
40600
40708
  color: a,
40601
40709
  size: l
40602
- }, S = iY(x), C = tY(), w = r, ee = Ht(c, C && C.onChange), T = s;
40603
- C && (w === void 0 && (w = oY(C.value, n.value)), T === void 0 && (T = C.name));
40710
+ }, S = pY(x), C = uY(), w = r, ee = Ht(c, C && C.onChange), T = s;
40711
+ C && (w === void 0 && (w = hY(C.value, n.value)), T === void 0 && (T = C.name));
40604
40712
  let te = g.input ?? _, [E, ne] = h("root", {
40605
40713
  ref: t,
40606
- elementType: aY,
40714
+ elementType: mY,
40607
40715
  className: f(S.root, u),
40608
40716
  shouldForwardComponentProp: !0,
40609
40717
  externalForwardedProps: {
@@ -40636,10 +40744,10 @@ var sY = /*#__PURE__*/ P($J, { checked: !0 }), cY = /*#__PURE__*/ P($J, {}), lY
40636
40744
  });
40637
40745
  //#endregion
40638
40746
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js
40639
- function uY(e) {
40747
+ function yY(e) {
40640
40748
  return k("MuiTooltip", e);
40641
40749
  }
40642
- var dY = Je("MuiTooltip", [
40750
+ var bY = Je("MuiTooltip", [
40643
40751
  "popper",
40644
40752
  "popperInteractive",
40645
40753
  "popperArrow",
@@ -40655,10 +40763,10 @@ var dY = Je("MuiTooltip", [
40655
40763
  ]);
40656
40764
  //#endregion
40657
40765
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Tooltip/Tooltip.js
40658
- function fY(e) {
40766
+ function xY(e) {
40659
40767
  return Math.round(e * 1e5) / 1e5;
40660
40768
  }
40661
- var pY = (e) => {
40769
+ var SY = (e) => {
40662
40770
  let { classes: t, disableInteractive: n, arrow: r, touch: i, placement: a } = e;
40663
40771
  return A({
40664
40772
  popper: [
@@ -40673,8 +40781,8 @@ var pY = (e) => {
40673
40781
  `tooltipPlacement${O(a.split("-")[0])}`
40674
40782
  ],
40675
40783
  arrow: ["arrow"]
40676
- }, uY, t);
40677
- }, mY = j(kR, {
40784
+ }, yY, t);
40785
+ }, CY = j(kR, {
40678
40786
  name: "MuiTooltip",
40679
40787
  slot: "Popper",
40680
40788
  overridesResolver: (e, t) => {
@@ -40701,22 +40809,22 @@ var pY = (e) => {
40701
40809
  {
40702
40810
  props: ({ ownerState: e }) => e.arrow,
40703
40811
  style: {
40704
- [`&[data-popper-placement*="bottom"] .${dY.arrow}`]: {
40812
+ [`&[data-popper-placement*="bottom"] .${bY.arrow}`]: {
40705
40813
  top: 0,
40706
40814
  marginTop: "-0.71em",
40707
40815
  "&::before": { transformOrigin: "0 100%" }
40708
40816
  },
40709
- [`&[data-popper-placement*="top"] .${dY.arrow}`]: {
40817
+ [`&[data-popper-placement*="top"] .${bY.arrow}`]: {
40710
40818
  bottom: 0,
40711
40819
  marginBottom: "-0.71em",
40712
40820
  "&::before": { transformOrigin: "100% 0" }
40713
40821
  },
40714
- [`&[data-popper-placement*="right"] .${dY.arrow}`]: {
40822
+ [`&[data-popper-placement*="right"] .${bY.arrow}`]: {
40715
40823
  height: "1em",
40716
40824
  width: "0.71em",
40717
40825
  "&::before": { transformOrigin: "100% 100%" }
40718
40826
  },
40719
- [`&[data-popper-placement*="left"] .${dY.arrow}`]: {
40827
+ [`&[data-popper-placement*="left"] .${bY.arrow}`]: {
40720
40828
  height: "1em",
40721
40829
  width: "0.71em",
40722
40830
  "&::before": { transformOrigin: "0 0" }
@@ -40725,34 +40833,34 @@ var pY = (e) => {
40725
40833
  },
40726
40834
  {
40727
40835
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
40728
- style: { [`&[data-popper-placement*="right"] .${dY.arrow}`]: {
40836
+ style: { [`&[data-popper-placement*="right"] .${bY.arrow}`]: {
40729
40837
  left: 0,
40730
40838
  marginLeft: "-0.71em"
40731
40839
  } }
40732
40840
  },
40733
40841
  {
40734
40842
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
40735
- style: { [`&[data-popper-placement*="right"] .${dY.arrow}`]: {
40843
+ style: { [`&[data-popper-placement*="right"] .${bY.arrow}`]: {
40736
40844
  right: 0,
40737
40845
  marginRight: "-0.71em"
40738
40846
  } }
40739
40847
  },
40740
40848
  {
40741
40849
  props: ({ ownerState: e }) => e.arrow && !e.isRtl,
40742
- style: { [`&[data-popper-placement*="left"] .${dY.arrow}`]: {
40850
+ style: { [`&[data-popper-placement*="left"] .${bY.arrow}`]: {
40743
40851
  right: 0,
40744
40852
  marginRight: "-0.71em"
40745
40853
  } }
40746
40854
  },
40747
40855
  {
40748
40856
  props: ({ ownerState: e }) => e.arrow && !!e.isRtl,
40749
- style: { [`&[data-popper-placement*="left"] .${dY.arrow}`]: {
40857
+ style: { [`&[data-popper-placement*="left"] .${bY.arrow}`]: {
40750
40858
  left: 0,
40751
40859
  marginLeft: "-0.71em"
40752
40860
  } }
40753
40861
  }
40754
40862
  ]
40755
- }))), hY = j("div", {
40863
+ }))), wY = j("div", {
40756
40864
  name: "MuiTooltip",
40757
40865
  slot: "Tooltip",
40758
40866
  overridesResolver: (e, t) => {
@@ -40775,13 +40883,13 @@ var pY = (e) => {
40775
40883
  margin: 2,
40776
40884
  wordWrap: "break-word",
40777
40885
  fontWeight: e.typography.fontWeightMedium,
40778
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
40779
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
40780
- [`.${dY.popper}[data-popper-placement*="top"] &`]: {
40886
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { transformOrigin: "right center" },
40887
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { transformOrigin: "left center" },
40888
+ [`.${bY.popper}[data-popper-placement*="top"] &`]: {
40781
40889
  transformOrigin: "center bottom",
40782
40890
  marginBottom: "14px"
40783
40891
  },
40784
- [`.${dY.popper}[data-popper-placement*="bottom"] &`]: {
40892
+ [`.${bY.popper}[data-popper-placement*="bottom"] &`]: {
40785
40893
  transformOrigin: "center top",
40786
40894
  marginTop: "14px"
40787
40895
  },
@@ -40798,48 +40906,48 @@ var pY = (e) => {
40798
40906
  style: {
40799
40907
  padding: "8px 16px",
40800
40908
  fontSize: e.typography.pxToRem(14),
40801
- lineHeight: `${fY(16 / 14)}em`,
40909
+ lineHeight: `${xY(16 / 14)}em`,
40802
40910
  fontWeight: e.typography.fontWeightRegular
40803
40911
  }
40804
40912
  },
40805
40913
  {
40806
40914
  props: ({ ownerState: e }) => !e.isRtl,
40807
40915
  style: {
40808
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
40809
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
40916
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginRight: "14px" },
40917
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "14px" }
40810
40918
  }
40811
40919
  },
40812
40920
  {
40813
40921
  props: ({ ownerState: e }) => !e.isRtl && e.touch,
40814
40922
  style: {
40815
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
40816
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
40923
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginRight: "24px" },
40924
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginLeft: "24px" }
40817
40925
  }
40818
40926
  },
40819
40927
  {
40820
40928
  props: ({ ownerState: e }) => !!e.isRtl,
40821
40929
  style: {
40822
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
40823
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
40930
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "14px" },
40931
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginRight: "14px" }
40824
40932
  }
40825
40933
  },
40826
40934
  {
40827
40935
  props: ({ ownerState: e }) => !!e.isRtl && e.touch,
40828
40936
  style: {
40829
- [`.${dY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
40830
- [`.${dY.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
40937
+ [`.${bY.popper}[data-popper-placement*="left"] &`]: { marginLeft: "24px" },
40938
+ [`.${bY.popper}[data-popper-placement*="right"] &`]: { marginRight: "24px" }
40831
40939
  }
40832
40940
  },
40833
40941
  {
40834
40942
  props: ({ ownerState: e }) => e.touch,
40835
- style: { [`.${dY.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
40943
+ style: { [`.${bY.popper}[data-popper-placement*="top"] &`]: { marginBottom: "24px" } }
40836
40944
  },
40837
40945
  {
40838
40946
  props: ({ ownerState: e }) => e.touch,
40839
- style: { [`.${dY.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
40947
+ style: { [`.${bY.popper}[data-popper-placement*="bottom"] &`]: { marginTop: "24px" } }
40840
40948
  }
40841
40949
  ]
40842
- }))), gY = j("span", {
40950
+ }))), TY = j("span", {
40843
40951
  name: "MuiTooltip",
40844
40952
  slot: "Arrow"
40845
40953
  })(b(({ theme: e }) => ({
@@ -40858,16 +40966,16 @@ var pY = (e) => {
40858
40966
  backgroundColor: "currentColor",
40859
40967
  transform: "rotate(45deg)"
40860
40968
  }
40861
- }))), _Y = !1, vY = new be(), yY = {
40969
+ }))), EY = !1, DY = new be(), OY = {
40862
40970
  x: 0,
40863
40971
  y: 0
40864
40972
  };
40865
- function bY(e, t) {
40973
+ function kY(e, t) {
40866
40974
  return (n, ...r) => {
40867
40975
  t && t(n, ...r), e(n, ...r);
40868
40976
  };
40869
40977
  }
40870
- var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40978
+ var AY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40871
40979
  let n = ye({
40872
40980
  props: e,
40873
40981
  name: "MuiTooltip"
@@ -40881,15 +40989,15 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40881
40989
  });
40882
40990
  N.useEffect(() => Ae, [Ae]);
40883
40991
  let je = (e) => {
40884
- vY.clear(), _Y = !0, Ee(!0), w && !De && w(e);
40992
+ DY.clear(), EY = !0, Ee(!0), w && !De && w(e);
40885
40993
  }, Me = ee((e) => {
40886
- vY.start(800 + x, () => {
40887
- _Y = !1;
40994
+ DY.start(800 + x, () => {
40995
+ EY = !1;
40888
40996
  }), Ee(!1), C && De && C(e), be.start(de.transitions.duration.shortest, () => {
40889
40997
  A.current = !1;
40890
40998
  });
40891
40999
  }), Ne = (e) => {
40892
- A.current && e.type !== "touchstart" || (me && me.removeAttribute("title"), xe.clear(), Se.clear(), g || _Y && _ ? xe.start(_Y ? _ : g, () => {
41000
+ A.current && e.type !== "touchstart" || (me && me.removeAttribute("title"), xe.clear(), Se.clear(), g || EY && _ ? xe.start(EY ? _ : g, () => {
40893
41001
  je(e);
40894
41002
  }) : je(e));
40895
41003
  }, Pe = (e) => {
@@ -40931,7 +41039,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40931
41039
  !oe && oe !== 0 && (De = !1);
40932
41040
  let Ve = N.useRef(), He = (e) => {
40933
41041
  let t = le.props;
40934
- t.onMouseMove && t.onMouseMove(e), yY = {
41042
+ t.onMouseMove && t.onMouseMove(e), OY = {
40935
41043
  x: e.clientX,
40936
41044
  y: e.clientY
40937
41045
  }, Ve.current && Ve.current.update();
@@ -40946,7 +41054,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40946
41054
  ref: Be,
40947
41055
  ...y ? { onMouseMove: He } : {}
40948
41056
  }, Ke = {};
40949
- m || (Ge.onTouchStart = Re, Ge.onTouchEnd = ze), d || (Ge.onMouseOver = bY(Ne, Ge.onMouseOver), Ge.onMouseLeave = bY(Pe, Ge.onMouseLeave), ve || (Ke.onMouseOver = Ne, Ke.onMouseLeave = Pe)), u || (Ge.onFocus = bY(j, Ge.onFocus), Ge.onBlur = bY(Ie, Ge.onBlur), ve || (Ke.onFocus = j, Ke.onBlur = Ie));
41057
+ m || (Ge.onTouchStart = Re, Ge.onTouchEnd = ze), d || (Ge.onMouseOver = kY(Ne, Ge.onMouseOver), Ge.onMouseLeave = kY(Pe, Ge.onMouseLeave), ve || (Ke.onMouseOver = Ne, Ke.onMouseLeave = Pe)), u || (Ge.onFocus = kY(j, Ge.onFocus), Ge.onBlur = kY(Ie, Ge.onBlur), ve || (Ke.onFocus = j, Ke.onBlur = Ie));
40950
41058
  let qe = {
40951
41059
  ...n,
40952
41060
  isRtl: pe,
@@ -40973,7 +41081,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40973
41081
  ge,
40974
41082
  D.popperOptions,
40975
41083
  Je?.popperOptions
40976
- ]), Xe = pY(qe), Ze = typeof O.transition == "function" ? O.transition(qe) : O.transition, Qe = {
41084
+ ]), Xe = SY(qe), Ze = typeof O.transition == "function" ? O.transition(qe) : O.transition, Qe = {
40977
41085
  slots: {
40978
41086
  popper: s.Popper,
40979
41087
  transition: s.Transition ?? k,
@@ -40994,7 +41102,7 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
40994
41102
  }
40995
41103
  }
40996
41104
  }, [$e, et] = h("popper", {
40997
- elementType: mY,
41105
+ elementType: CY,
40998
41106
  externalForwardedProps: Qe,
40999
41107
  ownerState: qe,
41000
41108
  className: f(Xe.popper, D?.className)
@@ -41003,12 +41111,12 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41003
41111
  externalForwardedProps: Qe,
41004
41112
  ownerState: qe
41005
41113
  }), [rt, it] = h("tooltip", {
41006
- elementType: hY,
41114
+ elementType: wY,
41007
41115
  className: Xe.tooltip,
41008
41116
  externalForwardedProps: Qe,
41009
41117
  ownerState: qe
41010
41118
  }), [at, ot] = h("arrow", {
41011
- elementType: gY,
41119
+ elementType: TY,
41012
41120
  className: Xe.arrow,
41013
41121
  externalForwardedProps: Qe,
41014
41122
  ownerState: qe,
@@ -41018,10 +41126,10 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41018
41126
  as: re ?? kR,
41019
41127
  placement: E,
41020
41128
  anchorEl: y ? { getBoundingClientRect: () => ({
41021
- top: yY.y,
41022
- left: yY.x,
41023
- right: yY.x,
41024
- bottom: yY.y,
41129
+ top: OY.y,
41130
+ left: OY.x,
41131
+ right: OY.x,
41132
+ bottom: OY.y,
41025
41133
  width: 0,
41026
41134
  height: 0
41027
41135
  }) } : me,
@@ -41045,10 +41153,10 @@ var xY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41045
41153
  });
41046
41154
  //#endregion
41047
41155
  //#region ../../../node_modules/.bun/@mui+material@7.3.11+eb26afe407ed7030/node_modules/@mui/material/esm/Switch/switchClasses.js
41048
- function SY(e) {
41156
+ function jY(e) {
41049
41157
  return k("MuiSwitch", e);
41050
41158
  }
41051
- var CY = Je("MuiSwitch", [
41159
+ var MY = Je("MuiSwitch", [
41052
41160
  "root",
41053
41161
  "edgeStart",
41054
41162
  "edgeEnd",
@@ -41062,7 +41170,7 @@ var CY = Je("MuiSwitch", [
41062
41170
  "input",
41063
41171
  "thumb",
41064
41172
  "track"
41065
- ]), wY = (e) => {
41173
+ ]), NY = (e) => {
41066
41174
  let { classes: t, edge: n, size: r, color: i, checked: a, disabled: o } = e, s = A({
41067
41175
  root: [
41068
41176
  "root",
@@ -41078,12 +41186,12 @@ var CY = Je("MuiSwitch", [
41078
41186
  thumb: ["thumb"],
41079
41187
  track: ["track"],
41080
41188
  input: ["input"]
41081
- }, SY, t);
41189
+ }, jY, t);
41082
41190
  return {
41083
41191
  ...t,
41084
41192
  ...s
41085
41193
  };
41086
- }, TY = j("span", {
41194
+ }, PY = j("span", {
41087
41195
  name: "MuiSwitch",
41088
41196
  slot: "Root",
41089
41197
  overridesResolver: (e, t) => {
@@ -41121,25 +41229,25 @@ var CY = Je("MuiSwitch", [
41121
41229
  width: 40,
41122
41230
  height: 24,
41123
41231
  padding: 7,
41124
- [`& .${CY.thumb}`]: {
41232
+ [`& .${MY.thumb}`]: {
41125
41233
  width: 16,
41126
41234
  height: 16
41127
41235
  },
41128
- [`& .${CY.switchBase}`]: {
41236
+ [`& .${MY.switchBase}`]: {
41129
41237
  padding: 4,
41130
- [`&.${CY.checked}`]: { transform: "translateX(16px)" }
41238
+ [`&.${MY.checked}`]: { transform: "translateX(16px)" }
41131
41239
  }
41132
41240
  }
41133
41241
  }
41134
41242
  ]
41135
- }), EY = j(CJ, {
41243
+ }), FY = j(MJ, {
41136
41244
  name: "MuiSwitch",
41137
41245
  slot: "SwitchBase",
41138
41246
  overridesResolver: (e, t) => {
41139
41247
  let { ownerState: n } = e;
41140
41248
  return [
41141
41249
  t.switchBase,
41142
- { [`& .${CY.input}`]: t.input },
41250
+ { [`& .${MY.input}`]: t.input },
41143
41251
  n.color !== "default" && t[`color${O(n.color)}`]
41144
41252
  ];
41145
41253
  }
@@ -41150,11 +41258,11 @@ var CY = Je("MuiSwitch", [
41150
41258
  zIndex: 1,
41151
41259
  color: e.vars ? e.vars.palette.Switch.defaultColor : `${e.palette.mode === "light" ? e.palette.common.white : e.palette.grey[300]}`,
41152
41260
  transition: e.transitions.create(["left", "transform"], { duration: e.transitions.duration.shortest }),
41153
- [`&.${CY.checked}`]: { transform: "translateX(20px)" },
41154
- [`&.${CY.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
41155
- [`&.${CY.checked} + .${CY.track}`]: { opacity: .5 },
41156
- [`&.${CY.disabled} + .${CY.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
41157
- [`& .${CY.input}`]: {
41261
+ [`&.${MY.checked}`]: { transform: "translateX(20px)" },
41262
+ [`&.${MY.disabled}`]: { color: e.vars ? e.vars.palette.Switch.defaultDisabledColor : `${e.palette.mode === "light" ? e.palette.grey[100] : e.palette.grey[600]}` },
41263
+ [`&.${MY.checked} + .${MY.track}`]: { opacity: .5 },
41264
+ [`&.${MY.disabled} + .${MY.track}`]: { opacity: e.vars ? e.vars.opacity.switchTrackDisabled : `${e.palette.mode === "light" ? .12 : .2}` },
41265
+ [`& .${MY.input}`]: {
41158
41266
  left: "-100%",
41159
41267
  width: "300%"
41160
41268
  }
@@ -41166,18 +41274,18 @@ var CY = Je("MuiSwitch", [
41166
41274
  variants: [...Object.entries(e.palette).filter(d(["light"])).map(([t]) => ({
41167
41275
  props: { color: t },
41168
41276
  style: {
41169
- [`&.${CY.checked}`]: {
41277
+ [`&.${MY.checked}`]: {
41170
41278
  color: (e.vars || e).palette[t].main,
41171
41279
  "&:hover": {
41172
41280
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.hoverOpacity),
41173
41281
  "@media (hover: none)": { backgroundColor: "transparent" }
41174
41282
  },
41175
- [`&.${CY.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)}` }
41283
+ [`&.${MY.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)}` }
41176
41284
  },
41177
- [`&.${CY.checked} + .${CY.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
41285
+ [`&.${MY.checked} + .${MY.track}`]: { backgroundColor: (e.vars || e).palette[t].main }
41178
41286
  }
41179
41287
  }))]
41180
- }))), DY = j("span", {
41288
+ }))), IY = j("span", {
41181
41289
  name: "MuiSwitch",
41182
41290
  slot: "Track"
41183
41291
  })(b(({ theme: e }) => ({
@@ -41190,7 +41298,7 @@ var CY = Je("MuiSwitch", [
41190
41298
  transition: e.transitions.create(["opacity", "background-color"], { duration: e.transitions.duration.shortest }),
41191
41299
  backgroundColor: e.vars ? e.vars.palette.common.onBackground : `${e.palette.mode === "light" ? e.palette.common.black : e.palette.common.white}`,
41192
41300
  opacity: e.vars ? e.vars.opacity.switchTrack : `${e.palette.mode === "light" ? .38 : .3}`
41193
- }))), OY = j("span", {
41301
+ }))), LY = j("span", {
41194
41302
  name: "MuiSwitch",
41195
41303
  slot: "Thumb"
41196
41304
  })(b(({ theme: e }) => ({
@@ -41201,7 +41309,7 @@ var CY = Je("MuiSwitch", [
41201
41309
  width: 20,
41202
41310
  height: 20,
41203
41311
  borderRadius: "50%"
41204
- }))), kY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41312
+ }))), RY = /*#__PURE__*/ N.forwardRef(function(e, t) {
41205
41313
  let n = ye({
41206
41314
  props: e,
41207
41315
  name: "MuiSwitch"
@@ -41210,29 +41318,29 @@ var CY = Je("MuiSwitch", [
41210
41318
  color: i,
41211
41319
  edge: a,
41212
41320
  size: o
41213
- }, p = wY(d), m = l.input, g = {
41321
+ }, p = NY(d), m = l.input, g = {
41214
41322
  slots: c,
41215
41323
  slotProps: l
41216
41324
  }, [_, v] = h("root", {
41217
41325
  className: f(p.root, r),
41218
- elementType: TY,
41326
+ elementType: PY,
41219
41327
  externalForwardedProps: g,
41220
41328
  ownerState: d,
41221
41329
  additionalProps: { sx: s }
41222
41330
  }), [y, b] = h("thumb", {
41223
41331
  className: p.thumb,
41224
- elementType: OY,
41332
+ elementType: LY,
41225
41333
  externalForwardedProps: g,
41226
41334
  ownerState: d
41227
41335
  }), x = /*#__PURE__*/ P(y, { ...b }), [S, w] = h("track", {
41228
41336
  className: p.track,
41229
- elementType: DY,
41337
+ elementType: IY,
41230
41338
  externalForwardedProps: g,
41231
41339
  ownerState: d
41232
41340
  });
41233
41341
  return /*#__PURE__*/ F(_, {
41234
41342
  ...v,
41235
- children: [/*#__PURE__*/ P(EY, {
41343
+ children: [/*#__PURE__*/ P(FY, {
41236
41344
  type: "checkbox",
41237
41345
  icon: x,
41238
41346
  checkedIcon: x,
@@ -41253,15 +41361,15 @@ var CY = Je("MuiSwitch", [
41253
41361
  }
41254
41362
  }), /*#__PURE__*/ P(S, { ...w })]
41255
41363
  });
41256
- }), AY = j(LP)(() => ({ fontSize: "max(1.25rem, 18px)" })), jY = j(VP)(() => ({ fontSize: "max(1rem, 14px)" })), MY = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(DN, {
41364
+ }), zY = j(LP)(() => ({ fontSize: "max(1.25rem, 18px)" })), BY = j(VP)(() => ({ fontSize: "max(1rem, 14px)" })), VY = ({ text: e, title: t, onClose: n, onConfirm: r, open: i, onCloseText: a, onConfirmText: o, disableAutoFocus: s, disableEnforceFocus: c, disableRestoreFocus: l }) => /* @__PURE__ */ F(DN, {
41257
41365
  open: i,
41258
41366
  disableAutoFocus: s,
41259
41367
  disableEnforceFocus: c,
41260
41368
  disableRestoreFocus: l,
41261
41369
  onClose: n,
41262
41370
  children: [
41263
- t && /* @__PURE__ */ P(AY, { children: t }),
41264
- e && /* @__PURE__ */ P(nN, { children: /* @__PURE__ */ P(jY, { children: e }) }),
41371
+ t && /* @__PURE__ */ P(zY, { children: t }),
41372
+ e && /* @__PURE__ */ P(nN, { children: /* @__PURE__ */ P(BY, { children: e }) }),
41265
41373
  /* @__PURE__ */ F(vN, { children: [n && /* @__PURE__ */ P(qe, {
41266
41374
  onClick: n,
41267
41375
  color: "primary",
@@ -41274,13 +41382,13 @@ var CY = Je("MuiSwitch", [
41274
41382
  })] })
41275
41383
  ]
41276
41384
  });
41277
- MY.defaultProps = {
41385
+ VY.defaultProps = {
41278
41386
  onCloseText: "CANCEL",
41279
41387
  onConfirmText: "OK",
41280
41388
  disableAutoFocus: !1,
41281
41389
  disableEnforceFocus: !1,
41282
41390
  disableRestoreFocus: !1
41283
- }, MY.propTypes = {
41391
+ }, VY.propTypes = {
41284
41392
  text: U.default.oneOfType([U.default.string, U.default.object]),
41285
41393
  title: U.default.string,
41286
41394
  onClose: U.default.func,
@@ -41294,18 +41402,18 @@ MY.defaultProps = {
41294
41402
  };
41295
41403
  //#endregion
41296
41404
  //#region ../../lib-react/config-ui/dist/radio-with-label.js
41297
- var NY = j(BJ)(() => ({ "& .MuiFormControlLabel-label": {
41405
+ var HY = j(YJ)(() => ({ "& .MuiFormControlLabel-label": {
41298
41406
  left: "-5px",
41299
41407
  position: "relative"
41300
- } })), PY = j(lY)(() => ({ color: `${M.tertiary()} !important` })), FY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(NY, {
41408
+ } })), UY = j(vY)(() => ({ color: `${M.tertiary()} !important` })), WY = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(HY, {
41301
41409
  value: t,
41302
- control: /* @__PURE__ */ P(PY, {
41410
+ control: /* @__PURE__ */ P(UY, {
41303
41411
  checked: n,
41304
41412
  onChange: r
41305
41413
  }),
41306
41414
  label: e
41307
41415
  });
41308
- FY.propTypes = {
41416
+ WY.propTypes = {
41309
41417
  label: U.default.string,
41310
41418
  value: U.default.string,
41311
41419
  checked: U.default.bool,
@@ -41313,7 +41421,7 @@ FY.propTypes = {
41313
41421
  };
41314
41422
  //#endregion
41315
41423
  //#region ../../../node_modules/.bun/@mui+icons-material@7.3.11+44ccb211c00abd9d/node_modules/@mui/icons-material/esm/ExpandMore.js
41316
- var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), LY = j(PP)(() => ({})), RY = class extends _t.Component {
41424
+ var GY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }), "ExpandMore"), KY = j(PP)(() => ({})), qY = class extends _t.Component {
41317
41425
  static propTypes = {
41318
41426
  className: U.default.string,
41319
41427
  contentClassName: U.default.string,
@@ -41334,7 +41442,7 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41334
41442
  indicatorColor: "primary",
41335
41443
  value: e,
41336
41444
  onChange: this.handleChange,
41337
- children: _t.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(LY, { label: e.props.title }, t) : null)
41445
+ children: _t.Children.map(t, (e, t) => e && e.props.title ? /* @__PURE__ */ P(KY, { label: e.props.title }, t) : null)
41338
41446
  }), /* @__PURE__ */ P("div", {
41339
41447
  className: r,
41340
41448
  style: i,
@@ -41342,7 +41450,7 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41342
41450
  })]
41343
41451
  });
41344
41452
  }
41345
- }, zY = j(BJ)(({ theme: e, mini: t }) => ({
41453
+ }, JY = j(YJ)(({ theme: e, mini: t }) => ({
41346
41454
  margin: 0,
41347
41455
  marginLeft: 0,
41348
41456
  padding: 0,
@@ -41356,7 +41464,7 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41356
41464
  fontSize: e.typography.fontSize - 3
41357
41465
  }
41358
41466
  }
41359
- })), BY = j(PJ)(({ theme: e, mini: t, error: n }) => ({
41467
+ })), YY = j(UJ)(({ theme: e, mini: t, error: n }) => ({
41360
41468
  color: `${M.tertiary()} !important`,
41361
41469
  ...t && {
41362
41470
  margin: 0,
@@ -41365,9 +41473,9 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41365
41473
  height: e.spacing(3)
41366
41474
  },
41367
41475
  ...n && { color: `${e.palette.error.main} !important` }
41368
- })), VY = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(zY, {
41476
+ })), XY = ({ mini: e, checked: t, onChange: n, value: r, label: i, error: a }) => /* @__PURE__ */ P(JY, {
41369
41477
  mini: e,
41370
- control: /* @__PURE__ */ P(BY, {
41478
+ control: /* @__PURE__ */ P(YY, {
41371
41479
  checked: t,
41372
41480
  onChange: n,
41373
41481
  value: r,
@@ -41376,21 +41484,21 @@ var IY = x(/*#__PURE__*/ P("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6
41376
41484
  }),
41377
41485
  label: i
41378
41486
  });
41379
- VY.propTypes = {
41487
+ XY.propTypes = {
41380
41488
  mini: U.default.bool,
41381
41489
  checked: U.default.bool.isRequired,
41382
41490
  onChange: U.default.func.isRequired,
41383
41491
  value: U.default.string,
41384
41492
  label: U.default.string.isRequired,
41385
41493
  error: U.default.bool
41386
- }, VY.defaultProps = {
41494
+ }, XY.defaultProps = {
41387
41495
  value: "",
41388
41496
  mini: !1,
41389
41497
  error: !1
41390
41498
  };
41391
41499
  //#endregion
41392
41500
  //#region ../../lib-react/config-ui/dist/number-text-field.js
41393
- var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({ theme: e }) => ({
41501
+ var ZY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), QY = j(mN)(({ theme: e }) => ({
41394
41502
  marginRight: e.spacing(1),
41395
41503
  "& .MuiInputLabel-root": {
41396
41504
  width: "auto",
@@ -41412,11 +41520,11 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41412
41520
  minHeight: "auto",
41413
41521
  padding: "6px 0 7px"
41414
41522
  }
41415
- })), WY = (e, t) => {
41523
+ })), $Y = (e, t) => {
41416
41524
  if (!tt(e) && !tt(t)) return 0;
41417
41525
  if (!tt(e) && tt(t)) return t;
41418
41526
  if (tt(e)) return e;
41419
- }, GY = class extends _t.Component {
41527
+ }, eX = class extends _t.Component {
41420
41528
  static propTypes = {
41421
41529
  disabled: U.default.bool,
41422
41530
  className: U.default.string,
@@ -41442,13 +41550,13 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41442
41550
  this.setState({ value: t });
41443
41551
  }
41444
41552
  clamp(e, t = this.props.min, n = this.props.max) {
41445
- return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : WY(t, n);
41553
+ return tt(e) ? (tt(n) && (e = Math.min(e, n)), tt(t) && (e = Math.max(e, t)), e) : $Y(t, n);
41446
41554
  }
41447
41555
  onBlur = (e) => {
41448
41556
  let t = e.target.value, n = parseFloat(t);
41449
- HY("rawNumber: ", n);
41557
+ ZY("rawNumber: ", n);
41450
41558
  let r = this.clamp(n);
41451
- HY("number: ", r), r !== this.state.value && (HY("trigger update..."), this.setState({ value: r.toString() }, () => {
41559
+ ZY("number: ", r), r !== this.state.value && (ZY("trigger update..."), this.setState({ value: r.toString() }, () => {
41452
41560
  this.props.onChange(e, r);
41453
41561
  }));
41454
41562
  };
@@ -41468,7 +41576,7 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41468
41576
  };
41469
41577
  render() {
41470
41578
  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();
41471
- return /* @__PURE__ */ P(UY, {
41579
+ return /* @__PURE__ */ P(QY, {
41472
41580
  variant: s ? "filled" : l || "standard",
41473
41581
  inputRef: (e) => {
41474
41582
  this.inputRef = e;
@@ -41487,7 +41595,7 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41487
41595
  type: "number",
41488
41596
  className: e,
41489
41597
  slotProps: { input: {
41490
- endAdornment: r && /* @__PURE__ */ P(qJ, {
41598
+ endAdornment: r && /* @__PURE__ */ P(nY, {
41491
41599
  position: "end",
41492
41600
  children: r
41493
41601
  }),
@@ -41500,22 +41608,22 @@ var HY = (0, Gt.default)("@pie-lib:config-ui:number-text-field"), UY = j(mN)(({
41500
41608
  margin: "normal"
41501
41609
  });
41502
41610
  }
41503
- }, KY = x(/*#__PURE__*/ P("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
41611
+ }, tX = x(/*#__PURE__*/ P("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z" }), "Add");
41504
41612
  //#endregion
41505
41613
  //#region ../../lib-react/config-ui/dist/two-choice.js
41506
- function qY(e) {
41614
+ function nX(e) {
41507
41615
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
41508
41616
  }
41509
- function JY(e, t) {
41510
- return !e || qY(e) ? e : qY(e.default) ? e.default : t && qY(e[t]) ? e[t] : t && qY(e[t]?.default) ? e[t].default : e;
41617
+ function rX(e, t) {
41618
+ return !e || nX(e) ? e : nX(e.default) ? e.default : t && nX(e[t]) ? e[t] : t && nX(e[t]?.default) ? e[t].default : e;
41511
41619
  }
41512
- var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY = he, ZY = XY.default, QY = ZY && typeof ZY == "object" ? ZY : XY, $Y = j("div")(({ theme: e, direction: t }) => ({
41620
+ var iX = rX(we, "InputContainer") || rX(sX.InputContainer, "InputContainer"), aX = he, oX = aX.default, sX = oX && typeof oX == "object" ? oX : aX, cX = j("div")(({ theme: e, direction: t }) => ({
41513
41621
  display: "flex",
41514
41622
  flexWrap: "wrap",
41515
41623
  paddingLeft: 0,
41516
41624
  marginTop: e.spacing(1),
41517
41625
  ...t === "vertical" && { flexDirection: "column" }
41518
- })), eX = class extends _t.Component {
41626
+ })), lX = class extends _t.Component {
41519
41627
  static propTypes = {
41520
41628
  header: U.default.string.isRequired,
41521
41629
  className: U.default.string,
@@ -41532,11 +41640,11 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41532
41640
  let { header: e, className: t, customLabel: n, opts: r, value: i, direction: a } = this.props, o = r.map((e) => typeof e == "string" ? {
41533
41641
  label: e,
41534
41642
  value: e
41535
- } : e), s = n || FY;
41536
- return /* @__PURE__ */ P(YY, {
41643
+ } : e), s = n || WY;
41644
+ return /* @__PURE__ */ P(iX, {
41537
41645
  label: e,
41538
41646
  className: t,
41539
- children: /* @__PURE__ */ P($Y, {
41647
+ children: /* @__PURE__ */ P(cX, {
41540
41648
  direction: a,
41541
41649
  children: o.map((e, t) => /* @__PURE__ */ P(s, {
41542
41650
  value: e.value,
@@ -41547,7 +41655,7 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41547
41655
  })
41548
41656
  });
41549
41657
  }
41550
- }, tX = U.default.shape({
41658
+ }, uX = U.default.shape({
41551
41659
  label: U.default.string,
41552
41660
  value: U.default.string
41553
41661
  });
@@ -41556,14 +41664,14 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41556
41664
  header: U.default.string.isRequired,
41557
41665
  value: U.default.string.isRequired,
41558
41666
  onChange: U.default.func.isRequired,
41559
- one: U.default.oneOfType([tX, U.default.string]),
41560
- two: U.default.oneOfType([tX, U.default.string]),
41667
+ one: U.default.oneOfType([uX, U.default.string]),
41668
+ two: U.default.oneOfType([uX, U.default.string]),
41561
41669
  className: U.default.string,
41562
41670
  customLabel: U.default.func
41563
41671
  };
41564
41672
  render() {
41565
41673
  let { one: e, two: t, header: n, className: r, customLabel: i, value: a, onChange: o } = this.props;
41566
- return /* @__PURE__ */ P(eX, {
41674
+ return /* @__PURE__ */ P(lX, {
41567
41675
  customLabel: i,
41568
41676
  header: n,
41569
41677
  className: r,
@@ -41575,21 +41683,21 @@ var YY = JY(we, "InputContainer") || JY(QY.InputContainer, "InputContainer"), XY
41575
41683
  });
41576
41684
  //#endregion
41577
41685
  //#region ../../lib-react/config-ui/dist/_virtual/_rolldown/runtime.js
41578
- var nX = Object.defineProperty, rX = (e, t) => {
41686
+ var dX = Object.defineProperty, fX = (e, t) => {
41579
41687
  let n = {};
41580
- for (var r in e) nX(n, r, {
41688
+ for (var r in e) dX(n, r, {
41581
41689
  get: e[r],
41582
41690
  enumerable: !0
41583
41691
  });
41584
- return t || nX(n, Symbol.toStringTag, { value: "Module" }), n;
41585
- }, iX = j("div")(() => ({
41692
+ return t || dX(n, Symbol.toStringTag, { value: "Module" }), n;
41693
+ }, pX = j("div")(() => ({
41586
41694
  display: "flex",
41587
41695
  flexDirection: "column",
41588
41696
  position: "relative"
41589
- })), aX = j("div")(() => ({
41697
+ })), mX = j("div")(() => ({
41590
41698
  display: "flex",
41591
41699
  justifyContent: "space-between"
41592
- })), oX = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), sX = j("div")(() => ({ flex: "1" })), cX = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), lX = class extends _t.Component {
41700
+ })), hX = j("div")(({ theme: e }) => ({ padding: `${e.spacing(2)} 0` })), gX = j("div")(() => ({ flex: "1" })), _X = j("div")(({ theme: e }) => ({ marginLeft: e.spacing(2) })), vX = class extends _t.Component {
41593
41701
  static propTypes = {
41594
41702
  mode: U.default.oneOf(["tabbed", "inline"]),
41595
41703
  secondary: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]),
@@ -41607,7 +41715,7 @@ var nX = Object.defineProperty, rX = (e, t) => {
41607
41715
  } catch (e) {
41608
41716
  console.log(e.toString());
41609
41717
  }
41610
- return /* @__PURE__ */ F(iX, {
41718
+ return /* @__PURE__ */ F(pX, {
41611
41719
  style: {
41612
41720
  minHeight: i,
41613
41721
  minWidth: a,
@@ -41615,28 +41723,28 @@ var nX = Object.defineProperty, rX = (e, t) => {
41615
41723
  maxWidth: s
41616
41724
  },
41617
41725
  children: [
41618
- e === "inline" && /* @__PURE__ */ F(aX, { children: [/* @__PURE__ */ P(sX, {
41726
+ e === "inline" && /* @__PURE__ */ F(mX, { children: [/* @__PURE__ */ P(gX, {
41619
41727
  className: "design-container",
41620
41728
  children: n
41621
- }), l && /* @__PURE__ */ P(cX, {
41729
+ }), l && /* @__PURE__ */ P(_X, {
41622
41730
  className: "settings-container",
41623
41731
  children: t
41624
41732
  })] }),
41625
- e === "tabbed" && l && /* @__PURE__ */ F(RY, {
41733
+ e === "tabbed" && l && /* @__PURE__ */ F(qY, {
41626
41734
  onChange: this.onTabsChange,
41627
41735
  contentClassName: "content-container",
41628
41736
  indicatorColor: "primary",
41629
- children: [/* @__PURE__ */ P(oX, {
41737
+ children: [/* @__PURE__ */ P(hX, {
41630
41738
  title: "Design",
41631
41739
  className: "design-container",
41632
41740
  children: n
41633
- }), /* @__PURE__ */ P(oX, {
41741
+ }), /* @__PURE__ */ P(hX, {
41634
41742
  title: "Settings",
41635
41743
  className: "settings-container",
41636
41744
  children: t
41637
41745
  })]
41638
41746
  }),
41639
- e === "tabbed" && !l && /* @__PURE__ */ P(oX, {
41747
+ e === "tabbed" && !l && /* @__PURE__ */ P(hX, {
41640
41748
  className: "design-container",
41641
41749
  children: n
41642
41750
  })
@@ -41646,18 +41754,18 @@ var nX = Object.defineProperty, rX = (e, t) => {
41646
41754
  };
41647
41755
  //#endregion
41648
41756
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
41649
- function uX() {
41650
- return uX = Object.assign ? Object.assign.bind() : function(e) {
41757
+ function yX() {
41758
+ return yX = Object.assign ? Object.assign.bind() : function(e) {
41651
41759
  for (var t = 1; t < arguments.length; t++) {
41652
41760
  var n = arguments[t];
41653
41761
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
41654
41762
  }
41655
41763
  return e;
41656
- }, uX.apply(null, arguments);
41764
+ }, yX.apply(null, arguments);
41657
41765
  }
41658
41766
  //#endregion
41659
41767
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
41660
- function dX(e, t) {
41768
+ function bX(e, t) {
41661
41769
  if (e == null) return {};
41662
41770
  var n = {};
41663
41771
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -41668,19 +41776,19 @@ function dX(e, t) {
41668
41776
  }
41669
41777
  //#endregion
41670
41778
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
41671
- function fX(e, t) {
41672
- return fX = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41779
+ function xX(e, t) {
41780
+ return xX = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
41673
41781
  return e.__proto__ = t, e;
41674
- }, fX(e, t);
41782
+ }, xX(e, t);
41675
41783
  }
41676
41784
  //#endregion
41677
41785
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/@babel_runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
41678
- function pX(e, t) {
41679
- e.prototype = Object.create(t.prototype), e.prototype.constructor = e, fX(e, t);
41786
+ function SX(e, t) {
41787
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, xX(e, t);
41680
41788
  }
41681
41789
  //#endregion
41682
41790
  //#region ../../lib-react/config-ui/dist/node_modules/.bun/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
41683
- var mX = (function() {
41791
+ var CX = (function() {
41684
41792
  if (typeof Map < "u") return Map;
41685
41793
  function e(e, t) {
41686
41794
  var n = -1;
@@ -41719,34 +41827,34 @@ var mX = (function() {
41719
41827
  }
41720
41828
  }, t;
41721
41829
  }();
41722
- })(), hX = typeof window < "u" && typeof document < "u" && window.document === document, gX = (function() {
41830
+ })(), wX = typeof window < "u" && typeof document < "u" && window.document === document, TX = (function() {
41723
41831
  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")();
41724
- })(), _X = (function() {
41725
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(gX) : function(e) {
41832
+ })(), EX = (function() {
41833
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(TX) : function(e) {
41726
41834
  return setTimeout(function() {
41727
41835
  return e(Date.now());
41728
41836
  }, 1e3 / 60);
41729
41837
  };
41730
- })(), vX = 2;
41731
- function yX(e, t) {
41838
+ })(), DX = 2;
41839
+ function OX(e, t) {
41732
41840
  var n = !1, r = !1, i = 0;
41733
41841
  function a() {
41734
41842
  n && (n = !1, e()), r && s();
41735
41843
  }
41736
41844
  function o() {
41737
- _X(a);
41845
+ EX(a);
41738
41846
  }
41739
41847
  function s() {
41740
41848
  var e = Date.now();
41741
41849
  if (n) {
41742
- if (e - i < vX) return;
41850
+ if (e - i < DX) return;
41743
41851
  r = !0;
41744
41852
  } else n = !0, r = !1, setTimeout(o, t);
41745
41853
  i = e;
41746
41854
  }
41747
41855
  return s;
41748
41856
  }
41749
- var bX = 20, xX = [
41857
+ var kX = 20, AX = [
41750
41858
  "top",
41751
41859
  "right",
41752
41860
  "bottom",
@@ -41755,9 +41863,9 @@ var bX = 20, xX = [
41755
41863
  "height",
41756
41864
  "size",
41757
41865
  "weight"
41758
- ], SX = typeof MutationObserver < "u", CX = function() {
41866
+ ], jX = typeof MutationObserver < "u", MX = function() {
41759
41867
  function e() {
41760
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = yX(this.refresh.bind(this), bX);
41868
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = OX(this.refresh.bind(this), kX);
41761
41869
  }
41762
41870
  return e.prototype.addObserver = function(e) {
41763
41871
  ~this.observers_.indexOf(e) || this.observers_.push(e), this.connected_ || this.connect_();
@@ -41774,23 +41882,23 @@ var bX = 20, xX = [
41774
41882
  return e.broadcastActive();
41775
41883
  }), e.length > 0;
41776
41884
  }, e.prototype.connect_ = function() {
41777
- !hX || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), SX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41885
+ !wX || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), jX ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
41778
41886
  attributes: !0,
41779
41887
  childList: !0,
41780
41888
  characterData: !0,
41781
41889
  subtree: !0
41782
41890
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
41783
41891
  }, e.prototype.disconnect_ = function() {
41784
- !hX || !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);
41892
+ !wX || !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);
41785
41893
  }, e.prototype.onTransitionEnd_ = function(e) {
41786
41894
  var t = e.propertyName, n = t === void 0 ? "" : t;
41787
- xX.some(function(e) {
41895
+ AX.some(function(e) {
41788
41896
  return !!~n.indexOf(e);
41789
41897
  }) && this.refresh();
41790
41898
  }, e.getInstance = function() {
41791
41899
  return this.instance_ ||= new e(), this.instance_;
41792
41900
  }, e.instance_ = null, e;
41793
- }(), wX = (function(e, t) {
41901
+ }(), NX = (function(e, t) {
41794
41902
  for (var n = 0, r = Object.keys(t); n < r.length; n++) {
41795
41903
  var i = r[n];
41796
41904
  Object.defineProperty(e, i, {
@@ -41801,19 +41909,19 @@ var bX = 20, xX = [
41801
41909
  });
41802
41910
  }
41803
41911
  return e;
41804
- }), TX = (function(e) {
41805
- return e && e.ownerDocument && e.ownerDocument.defaultView || gX;
41806
- }), EX = IX(0, 0, 0, 0);
41807
- function DX(e) {
41912
+ }), PX = (function(e) {
41913
+ return e && e.ownerDocument && e.ownerDocument.defaultView || TX;
41914
+ }), FX = GX(0, 0, 0, 0);
41915
+ function IX(e) {
41808
41916
  return parseFloat(e) || 0;
41809
41917
  }
41810
- function OX(e) {
41918
+ function LX(e) {
41811
41919
  return [...arguments].slice(1).reduce(function(t, n) {
41812
41920
  var r = e["border-" + n + "-width"];
41813
- return t + DX(r);
41921
+ return t + IX(r);
41814
41922
  }, 0);
41815
41923
  }
41816
- function kX(e) {
41924
+ function RX(e) {
41817
41925
  for (var t = [
41818
41926
  "top",
41819
41927
  "right",
@@ -41821,40 +41929,40 @@ function kX(e) {
41821
41929
  "left"
41822
41930
  ], n = {}, r = 0, i = t; r < i.length; r++) {
41823
41931
  var a = i[r], o = e["padding-" + a];
41824
- n[a] = DX(o);
41932
+ n[a] = IX(o);
41825
41933
  }
41826
41934
  return n;
41827
41935
  }
41828
- function AX(e) {
41936
+ function zX(e) {
41829
41937
  var t = e.getBBox();
41830
- return IX(0, 0, t.width, t.height);
41938
+ return GX(0, 0, t.width, t.height);
41831
41939
  }
41832
- function jX(e) {
41940
+ function BX(e) {
41833
41941
  var t = e.clientWidth, n = e.clientHeight;
41834
- if (!t && !n) return EX;
41835
- var r = TX(e).getComputedStyle(e), i = kX(r), a = i.left + i.right, o = i.top + i.bottom, s = DX(r.width), c = DX(r.height);
41836
- if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= OX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= OX(r, "top", "bottom") + o)), !NX(e)) {
41942
+ if (!t && !n) return FX;
41943
+ var r = PX(e).getComputedStyle(e), i = RX(r), a = i.left + i.right, o = i.top + i.bottom, s = IX(r.width), c = IX(r.height);
41944
+ if (r.boxSizing === "border-box" && (Math.round(s + a) !== t && (s -= LX(r, "left", "right") + a), Math.round(c + o) !== n && (c -= LX(r, "top", "bottom") + o)), !HX(e)) {
41837
41945
  var l = Math.round(s + a) - t, u = Math.round(c + o) - n;
41838
41946
  Math.abs(l) !== 1 && (s -= l), Math.abs(u) !== 1 && (c -= u);
41839
41947
  }
41840
- return IX(i.left, i.top, s, c);
41948
+ return GX(i.left, i.top, s, c);
41841
41949
  }
41842
- var MX = (function() {
41950
+ var VX = (function() {
41843
41951
  return typeof SVGGraphicsElement < "u" ? function(e) {
41844
- return e instanceof TX(e).SVGGraphicsElement;
41952
+ return e instanceof PX(e).SVGGraphicsElement;
41845
41953
  } : function(e) {
41846
- return e instanceof TX(e).SVGElement && typeof e.getBBox == "function";
41954
+ return e instanceof PX(e).SVGElement && typeof e.getBBox == "function";
41847
41955
  };
41848
41956
  })();
41849
- function NX(e) {
41850
- return e === TX(e).document.documentElement;
41957
+ function HX(e) {
41958
+ return e === PX(e).document.documentElement;
41851
41959
  }
41852
- function PX(e) {
41853
- return hX ? MX(e) ? AX(e) : jX(e) : EX;
41960
+ function UX(e) {
41961
+ return wX ? VX(e) ? zX(e) : BX(e) : FX;
41854
41962
  }
41855
- function FX(e) {
41963
+ function WX(e) {
41856
41964
  var t = e.x, n = e.y, r = e.width, i = e.height, a = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
41857
- return wX(a, {
41965
+ return NX(a, {
41858
41966
  x: t,
41859
41967
  y: n,
41860
41968
  width: r,
@@ -41865,7 +41973,7 @@ function FX(e) {
41865
41973
  left: t
41866
41974
  }), a;
41867
41975
  }
41868
- function IX(e, t, n, r) {
41976
+ function GX(e, t, n, r) {
41869
41977
  return {
41870
41978
  x: e,
41871
41979
  y: t,
@@ -41873,42 +41981,42 @@ function IX(e, t, n, r) {
41873
41981
  height: r
41874
41982
  };
41875
41983
  }
41876
- var LX = function() {
41984
+ var KX = function() {
41877
41985
  function e(e) {
41878
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = IX(0, 0, 0, 0), this.target = e;
41986
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = GX(0, 0, 0, 0), this.target = e;
41879
41987
  }
41880
41988
  return e.prototype.isActive = function() {
41881
- var e = PX(this.target);
41989
+ var e = UX(this.target);
41882
41990
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
41883
41991
  }, e.prototype.broadcastRect = function() {
41884
41992
  var e = this.contentRect_;
41885
41993
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
41886
41994
  }, e;
41887
- }(), RX = function() {
41995
+ }(), qX = function() {
41888
41996
  function e(e, t) {
41889
- var n = FX(t);
41890
- wX(this, {
41997
+ var n = WX(t);
41998
+ NX(this, {
41891
41999
  target: e,
41892
42000
  contentRect: n
41893
42001
  });
41894
42002
  }
41895
42003
  return e;
41896
- }(), zX = function() {
42004
+ }(), JX = function() {
41897
42005
  function e(e, t, n) {
41898
- if (this.activeObservations_ = [], this.observations_ = new mX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
42006
+ if (this.activeObservations_ = [], this.observations_ = new CX(), typeof e != "function") throw TypeError("The callback provided as parameter 1 is not a function.");
41899
42007
  this.callback_ = e, this.controller_ = t, this.callbackCtx_ = n;
41900
42008
  }
41901
42009
  return e.prototype.observe = function(e) {
41902
42010
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41903
42011
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41904
- if (!(e instanceof TX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
42012
+ if (!(e instanceof PX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41905
42013
  var t = this.observations_;
41906
- t.has(e) || (t.set(e, new LX(e)), this.controller_.addObserver(this), this.controller_.refresh());
42014
+ t.has(e) || (t.set(e, new KX(e)), this.controller_.addObserver(this), this.controller_.refresh());
41907
42015
  }
41908
42016
  }, e.prototype.unobserve = function(e) {
41909
42017
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41910
42018
  if (!(typeof Element > "u" || !(Element instanceof Object))) {
41911
- if (!(e instanceof TX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
42019
+ if (!(e instanceof PX(e).Element)) throw TypeError("parameter 1 is not of type \"Element\".");
41912
42020
  var t = this.observations_;
41913
42021
  t.has(e) && (t.delete(e), t.size || this.controller_.removeObserver(this));
41914
42022
  }
@@ -41922,7 +42030,7 @@ var LX = function() {
41922
42030
  }, e.prototype.broadcastActive = function() {
41923
42031
  if (this.hasActive()) {
41924
42032
  var e = this.callbackCtx_, t = this.activeObservations_.map(function(e) {
41925
- return new RX(e.target, e.broadcastRect());
42033
+ return new qX(e.target, e.broadcastRect());
41926
42034
  });
41927
42035
  this.callback_.call(e, t, e), this.clearActive();
41928
42036
  }
@@ -41931,12 +42039,12 @@ var LX = function() {
41931
42039
  }, e.prototype.hasActive = function() {
41932
42040
  return this.activeObservations_.length > 0;
41933
42041
  }, e;
41934
- }(), BX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new mX(), VX = function() {
42042
+ }(), YX = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new CX(), XX = function() {
41935
42043
  function e(t) {
41936
42044
  if (!(this instanceof e)) throw TypeError("Cannot call a class as a function.");
41937
42045
  if (!arguments.length) throw TypeError("1 argument required, but only 0 present.");
41938
- var n = new zX(t, CX.getInstance(), this);
41939
- BX.set(this, n);
42046
+ var n = new JX(t, MX.getInstance(), this);
42047
+ YX.set(this, n);
41940
42048
  }
41941
42049
  return e;
41942
42050
  }();
@@ -41945,27 +42053,27 @@ var LX = function() {
41945
42053
  "unobserve",
41946
42054
  "disconnect"
41947
42055
  ].forEach(function(e) {
41948
- VX.prototype[e] = function() {
42056
+ XX.prototype[e] = function() {
41949
42057
  var t;
41950
- return (t = BX.get(this))[e].apply(t, arguments);
42058
+ return (t = YX.get(this))[e].apply(t, arguments);
41951
42059
  };
41952
42060
  });
41953
- var HX = (function() {
41954
- return gX.ResizeObserver === void 0 ? VX : gX.ResizeObserver;
41955
- })(), UX = [
42061
+ var ZX = (function() {
42062
+ return TX.ResizeObserver === void 0 ? XX : TX.ResizeObserver;
42063
+ })(), QX = [
41956
42064
  "client",
41957
42065
  "offset",
41958
42066
  "scroll",
41959
42067
  "bounds",
41960
42068
  "margin"
41961
42069
  ];
41962
- function WX(e) {
42070
+ function $X(e) {
41963
42071
  var t = [];
41964
- return UX.forEach(function(n) {
42072
+ return QX.forEach(function(n) {
41965
42073
  e[n] && t.push(n);
41966
42074
  }), t;
41967
42075
  }
41968
- function GX(e, t) {
42076
+ function eZ(e, t) {
41969
42077
  var n = {};
41970
42078
  if (t.indexOf("client") > -1 && (n.client = {
41971
42079
  top: e.clientTop,
@@ -42004,14 +42112,14 @@ function GX(e, t) {
42004
42112
  }
42005
42113
  return n;
42006
42114
  }
42007
- function KX(e) {
42115
+ function tZ(e) {
42008
42116
  return e && e.ownerDocument && e.ownerDocument.defaultView || window;
42009
42117
  }
42010
- function qX(e) {
42118
+ function nZ(e) {
42011
42119
  return function(t) {
42012
42120
  var n, r;
42013
42121
  return r = n = /*#__PURE__*/ function(n) {
42014
- pX(r, n);
42122
+ SX(r, n);
42015
42123
  function r() {
42016
42124
  var t, r = [...arguments];
42017
42125
  return t = n.call.apply(n, [this].concat(r)) || this, t.state = { contentRect: {
@@ -42022,24 +42130,24 @@ function qX(e) {
42022
42130
  bounds: {},
42023
42131
  margin: {}
42024
42132
  } }, t._animationFrameID = null, t._resizeObserver = null, t._node = null, t._window = null, t.measure = function(n) {
42025
- var r = GX(t._node, e || WX(t.props));
42133
+ var r = eZ(t._node, e || $X(t.props));
42026
42134
  n && (r.entry = n[0].contentRect), t._animationFrameID = t._window.requestAnimationFrame(function() {
42027
42135
  t._resizeObserver !== null && (t.setState({ contentRect: r }), typeof t.props.onResize == "function" && t.props.onResize(r));
42028
42136
  });
42029
42137
  }, t._handleRef = function(e) {
42030
- t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = KX(t._node);
42138
+ t._resizeObserver !== null && t._node !== null && t._resizeObserver.unobserve(t._node), t._node = e, t._window = tZ(t._node);
42031
42139
  var n = t.props.innerRef;
42032
42140
  n && (typeof n == "function" ? n(t._node) : n.current = t._node), t._resizeObserver !== null && t._node !== null && t._resizeObserver.observe(t._node);
42033
42141
  }, t;
42034
42142
  }
42035
42143
  var i = r.prototype;
42036
42144
  return i.componentDidMount = function() {
42037
- this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new HX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(GX(this._node, e || WX(this.props))));
42145
+ this._resizeObserver = this._window !== null && this._window.ResizeObserver ? new this._window.ResizeObserver(this.measure) : new ZX(this.measure), this._node !== null && (this._resizeObserver.observe(this._node), typeof this.props.onResize == "function" && this.props.onResize(eZ(this._node, e || $X(this.props))));
42038
42146
  }, i.componentWillUnmount = function() {
42039
42147
  this._window !== null && this._window.cancelAnimationFrame(this._animationFrameID), this._resizeObserver !== null && (this._resizeObserver.disconnect(), this._resizeObserver = null);
42040
42148
  }, i.render = function() {
42041
42149
  var e = this.props;
42042
- return e.innerRef, e.onResize, bt(t, uX({}, dX(e, ["innerRef", "onResize"]), {
42150
+ return e.innerRef, e.onResize, bt(t, yX({}, bX(e, ["innerRef", "onResize"]), {
42043
42151
  measureRef: this._handleRef,
42044
42152
  measure: this.measure,
42045
42153
  contentRect: this.state.contentRect
@@ -42056,7 +42164,7 @@ function qX(e) {
42056
42164
  }, r;
42057
42165
  };
42058
42166
  }
42059
- var JX = qX()(function(e) {
42167
+ var rZ = nZ()(function(e) {
42060
42168
  var t = e.measure, n = e.measureRef, r = e.contentRect, i = e.children;
42061
42169
  return i({
42062
42170
  measure: t,
@@ -42064,10 +42172,10 @@ var JX = qX()(function(e) {
42064
42172
  contentRect: r
42065
42173
  });
42066
42174
  });
42067
- JX.displayName = "Measure", JX.propTypes.children = U.default.func;
42175
+ rZ.displayName = "Measure", rZ.propTypes.children = U.default.func;
42068
42176
  //#endregion
42069
42177
  //#region ../../lib-react/config-ui/dist/layout/settings-box.js
42070
- var YX = j("div")(() => ({
42178
+ var iZ = j("div")(() => ({
42071
42179
  backgroundColor: M.white(),
42072
42180
  border: `2px solid ${M.border()}`,
42073
42181
  display: "flex",
@@ -42077,7 +42185,7 @@ var YX = j("div")(() => ({
42077
42185
  maxWidth: "300px",
42078
42186
  padding: "20px 4px 4px 20px",
42079
42187
  zIndex: 99
42080
- })), XX = class extends _t.Component {
42188
+ })), aZ = class extends _t.Component {
42081
42189
  static propTypes = {
42082
42190
  className: U.default.string,
42083
42191
  children: U.default.oneOfType([U.default.arrayOf(U.default.node), U.default.node]).isRequired
@@ -42085,19 +42193,19 @@ var YX = j("div")(() => ({
42085
42193
  static defaultProps = {};
42086
42194
  render() {
42087
42195
  let { className: e, children: t } = this.props;
42088
- return /* @__PURE__ */ P(YX, {
42196
+ return /* @__PURE__ */ P(iZ, {
42089
42197
  className: e,
42090
42198
  children: t
42091
42199
  });
42092
42200
  }
42093
- }, ZX = Ke({
42201
+ }, oZ = Ke({
42094
42202
  typography: { fontFamily: "inherit" },
42095
42203
  components: { MuiButton: { styleOverrides: { contained: {
42096
42204
  backgroundColor: "#e0e0e0",
42097
42205
  color: "#000000",
42098
42206
  "&:hover": { backgroundColor: "#bdbdbd" }
42099
42207
  } } } }
42100
- }), QX = class extends _t.Component {
42208
+ }), sZ = class extends _t.Component {
42101
42209
  static propTypes = {
42102
42210
  children: U.default.oneOfType([
42103
42211
  U.default.string,
@@ -42130,19 +42238,19 @@ var YX = j("div")(() => ({
42130
42238
  return /* @__PURE__ */ P(ke, {
42131
42239
  injectFirst: !0,
42132
42240
  children: /* @__PURE__ */ P(xe, {
42133
- theme: ZX,
42134
- children: /* @__PURE__ */ P(JX, {
42241
+ theme: oZ,
42242
+ children: /* @__PURE__ */ P(rZ, {
42135
42243
  bounds: !0,
42136
42244
  onResize: this.onResize,
42137
42245
  children: ({ measureRef: e }) => {
42138
- let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(XX, {
42246
+ let { children: t, settings: n, hideSettings: r, dimensions: i, extraCSSRules: a } = this.props, { layoutMode: o } = this.state, s = r ? null : o === "inline" ? /* @__PURE__ */ P(aZ, {
42139
42247
  className: "settings-box",
42140
42248
  children: n
42141
42249
  }) : n;
42142
42250
  return /* @__PURE__ */ F("div", {
42143
42251
  ref: e,
42144
42252
  className: "main-container extraCSSRules",
42145
- children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(lX, {
42253
+ children: [a?.rules ? /* @__PURE__ */ P("style", { dangerouslySetInnerHTML: { __html: `.extraCSSRules { ${a.rules} }` } }) : null, /* @__PURE__ */ P(vX, {
42146
42254
  mode: o,
42147
42255
  secondary: s,
42148
42256
  dimensions: i,
@@ -42154,27 +42262,27 @@ var YX = j("div")(() => ({
42154
42262
  })
42155
42263
  });
42156
42264
  }
42157
- }, $X = qX("bounds")(QX), eZ = /* @__PURE__ */ rX({
42158
- ConfigLayout: () => $X,
42159
- LayoutContents: () => lX
42160
- }), tZ = j("div")(() => ({
42265
+ }, cZ = nZ("bounds")(sZ), lZ = /* @__PURE__ */ fX({
42266
+ ConfigLayout: () => cZ,
42267
+ LayoutContents: () => vX
42268
+ }), uZ = j("div")(() => ({
42161
42269
  display: "flex",
42162
42270
  width: "100%",
42163
42271
  justifyContent: "space-between"
42164
- })), nZ = j(Ge)(({ theme: e }) => ({
42272
+ })), dZ = j(Ge)(({ theme: e }) => ({
42165
42273
  color: "rgba(0, 0, 0, 0.89)",
42166
42274
  fontSize: e.typography.fontSize,
42167
42275
  paddingTop: e.spacing(2)
42168
- })), rZ = j(kY)(({ checked: e }) => ({
42276
+ })), fZ = j(RY)(({ checked: e }) => ({
42169
42277
  "&.Mui-checked .MuiSwitch-thumb": { color: `${M.tertiary()} !important` },
42170
42278
  "&.Mui-checked .MuiSwitch-track": { backgroundColor: `${M.tertiaryLight()} !important` },
42171
42279
  "& .MuiSwitch-track": { backgroundColor: e ? `${M.tertiaryLight()} !important` : void 0 }
42172
- })), iZ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(tZ, { children: [/* @__PURE__ */ P(nZ, { children: n }), /* @__PURE__ */ P(rZ, {
42280
+ })), pZ = ({ checked: e, disabled: t, label: n, toggle: r }) => /* @__PURE__ */ F(uZ, { children: [/* @__PURE__ */ P(dZ, { children: n }), /* @__PURE__ */ P(fZ, {
42173
42281
  checked: e,
42174
42282
  disabled: t,
42175
42283
  onChange: (e) => r(e.target.checked)
42176
42284
  })] });
42177
- iZ.propTypes = {
42285
+ pZ.propTypes = {
42178
42286
  checked: U.default.bool,
42179
42287
  disabled: U.default.bool,
42180
42288
  label: U.default.string.isRequired,
@@ -42182,20 +42290,20 @@ iZ.propTypes = {
42182
42290
  };
42183
42291
  //#endregion
42184
42292
  //#region ../../lib-react/config-ui/dist/settings/settings-radio-label.js
42185
- var aZ = j(BJ)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
42293
+ var mZ = j(YJ)(({ theme: e }) => ({ "& .MuiFormControlLabel-label": {
42186
42294
  color: "rgba(0, 0, 0, 0.89)",
42187
42295
  fontSize: e.typography.fontSize - 2,
42188
42296
  left: "-5px",
42189
42297
  position: "relative"
42190
- } })), oZ = j(lY)(() => ({ color: `${M.tertiary()} !important` })), sZ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(aZ, {
42298
+ } })), hZ = j(vY)(() => ({ color: `${M.tertiary()} !important` })), gZ = ({ label: e, value: t, checked: n, onChange: r }) => /* @__PURE__ */ P(mZ, {
42191
42299
  value: t,
42192
- control: /* @__PURE__ */ P(oZ, {
42300
+ control: /* @__PURE__ */ P(hZ, {
42193
42301
  checked: n,
42194
42302
  onChange: r
42195
42303
  }),
42196
42304
  label: e
42197
42305
  });
42198
- sZ.propTypes = {
42306
+ gZ.propTypes = {
42199
42307
  label: U.default.string,
42200
42308
  value: U.default.string,
42201
42309
  checked: U.default.bool,
@@ -42203,26 +42311,26 @@ sZ.propTypes = {
42203
42311
  };
42204
42312
  //#endregion
42205
42313
  //#region ../../lib-react/config-ui/dist/settings/panel.js
42206
- var cZ = (0, Gt.default)("pie-lib:config-ui:settings:panel"), lZ = {
42314
+ var _Z = (0, Gt.default)("pie-lib:config-ui:settings:panel"), vZ = {
42207
42315
  label: U.default.string,
42208
42316
  value: U.default.string
42209
- }, uZ = {
42317
+ }, yZ = {
42210
42318
  label: U.default.string,
42211
42319
  value: U.default.string,
42212
42320
  onChange: U.default.func
42213
- }, dZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(VY, {
42321
+ }, bZ = ({ label: e, value: t, onChange: n }) => /* @__PURE__ */ P(XY, {
42214
42322
  checked: t,
42215
42323
  label: e,
42216
42324
  onChange: (e) => {
42217
42325
  n(e.target.checked);
42218
42326
  }
42219
42327
  });
42220
- dZ.propTypes = {
42328
+ bZ.propTypes = {
42221
42329
  label: U.default.string,
42222
42330
  value: U.default.bool,
42223
42331
  onChange: U.default.func
42224
42332
  };
42225
- var fZ = j(eX)(({ theme: e }) => ({
42333
+ var xZ = j(lX)(({ theme: e }) => ({
42226
42334
  marginTop: e.spacing(.5),
42227
42335
  paddingBottom: e.spacing(.5),
42228
42336
  width: "100%",
@@ -42233,29 +42341,29 @@ var fZ = j(eX)(({ theme: e }) => ({
42233
42341
  marginTop: e.spacing(2.5)
42234
42342
  },
42235
42343
  "& > div": { marginTop: e.spacing(2.5) }
42236
- })), pZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(fZ, {
42344
+ })), SZ = ({ label: e, value: t, onChange: n, choices: r }) => /* @__PURE__ */ P(xZ, {
42237
42345
  direction: "horizontal",
42238
- customLabel: sZ,
42346
+ customLabel: gZ,
42239
42347
  value: t,
42240
42348
  header: e,
42241
42349
  opts: r,
42242
42350
  onChange: n
42243
42351
  });
42244
- pZ.propTypes = {
42245
- ...uZ,
42246
- choices: U.default.arrayOf(U.default.shape(lZ))
42352
+ SZ.propTypes = {
42353
+ ...yZ,
42354
+ choices: U.default.arrayOf(U.default.shape(vZ))
42247
42355
  };
42248
- var mZ = pZ, hZ = j("p")(({ theme: e }) => ({
42356
+ var CZ = SZ, wZ = j("p")(({ theme: e }) => ({
42249
42357
  margin: 0,
42250
42358
  fontSize: e.typography.fontSize
42251
- })), gZ = j(dM)(({ theme: e }) => ({
42359
+ })), TZ = j(dM)(({ theme: e }) => ({
42252
42360
  marginTop: e.spacing(.5),
42253
42361
  border: "2px solid lightgrey",
42254
42362
  padding: `0 ${e.spacing(1)}`,
42255
42363
  borderRadius: "4px"
42256
- })), _Z = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
42364
+ })), EZ = ({ label: e, value: t, onChange: n, choices: r = [] }) => {
42257
42365
  let i = (e) => typeof e == "string" ? e : e.label, a = (e) => typeof e == "string" ? e : e.value;
42258
- return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(hZ, { children: e }), /* @__PURE__ */ P(gZ, {
42366
+ return /* @__PURE__ */ F("div", { children: [e && /* @__PURE__ */ P(wZ, { children: e }), /* @__PURE__ */ P(TZ, {
42259
42367
  value: t || r && r[0],
42260
42368
  onChange: ({ target: e }) => n(e.value),
42261
42369
  input: /* @__PURE__ */ P(Hj, { id: `dropdown-${e}` }),
@@ -42270,14 +42378,14 @@ var mZ = pZ, hZ = j("p")(({ theme: e }) => ({
42270
42378
  }, t))
42271
42379
  })] });
42272
42380
  };
42273
- _Z.propTypes = {
42274
- ...uZ,
42381
+ EZ.propTypes = {
42382
+ ...yZ,
42275
42383
  choices: U.default.arrayOf(U.default.string)
42276
42384
  };
42277
- var vZ = j($A)(({ theme: e }) => ({
42385
+ var DZ = j($A)(({ theme: e }) => ({
42278
42386
  marginRight: e.spacing(3),
42279
42387
  marginTop: e.spacing(1)
42280
- })), yZ = ({ label: e }) => /* @__PURE__ */ P(vZ, { children: e }), bZ = j(GY)(({ theme: e }) => ({
42388
+ })), OZ = ({ label: e }) => /* @__PURE__ */ P(DZ, { children: e }), kZ = j(eX)(({ theme: e }) => ({
42281
42389
  width: "35%",
42282
42390
  marginRight: e.spacing(3),
42283
42391
  marginTop: e.spacing(1),
@@ -42288,7 +42396,7 @@ var vZ = j($A)(({ theme: e }) => ({
42288
42396
  padding: `0 ${e.spacing(1)}`,
42289
42397
  backgroundColor: "transparent"
42290
42398
  }
42291
- })), xZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(bZ, {
42399
+ })), AZ = ({ label: e, value: t, onChange: n = () => {}, suffix: r, min: i, max: a }) => /* @__PURE__ */ P(kZ, {
42292
42400
  variant: "standard",
42293
42401
  label: e || "Label",
42294
42402
  value: t,
@@ -42299,45 +42407,45 @@ var vZ = j($A)(({ theme: e }) => ({
42299
42407
  showErrorWhenOutsideRange: !0,
42300
42408
  disableUnderline: !0
42301
42409
  });
42302
- xZ.propTypes = {
42303
- ...uZ,
42410
+ AZ.propTypes = {
42411
+ ...yZ,
42304
42412
  suffix: U.default.string,
42305
42413
  min: U.default.number,
42306
42414
  max: U.default.number,
42307
42415
  value: U.default.number
42308
- }, yZ.propTypes = { ...uZ };
42309
- var SZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(iZ, {
42416
+ }, OZ.propTypes = { ...yZ };
42417
+ var jZ = ({ disabled: e, label: t, value: n, onChange: r }) => /* @__PURE__ */ P(pZ, {
42310
42418
  label: t,
42311
42419
  checked: !!n,
42312
42420
  disabled: !!e,
42313
42421
  toggle: r
42314
42422
  });
42315
- SZ.propTypes = {
42316
- ...uZ,
42423
+ jZ.propTypes = {
42424
+ ...yZ,
42317
42425
  value: U.default.bool
42318
42426
  };
42319
- var CZ = {
42320
- toggle: SZ,
42321
- radio: mZ,
42322
- dropdown: _Z,
42323
- numberField: xZ,
42324
- checkbox: dZ,
42325
- textField: yZ
42326
- }, wZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), TZ = j("div")(({ theme: e }) => ({
42427
+ var MZ = {
42428
+ toggle: jZ,
42429
+ radio: CZ,
42430
+ dropdown: EZ,
42431
+ numberField: AZ,
42432
+ checkbox: bZ,
42433
+ textField: OZ
42434
+ }, NZ = j("div")(({ theme: e }) => ({ margin: `0 0 ${e.spacing(2)} 0` })), PZ = j("div")(({ theme: e }) => ({
42327
42435
  color: "#495B8F",
42328
42436
  fontSize: e.typography.fontSize + 2,
42329
42437
  fontWeight: 600,
42330
42438
  marginBottom: e.spacing(1)
42331
- })), EZ = j("p")(({ theme: e }) => ({
42439
+ })), FZ = j("p")(({ theme: e }) => ({
42332
42440
  fontSize: e.typography.fontSize,
42333
42441
  marginBottom: 0
42334
- })), DZ = (e) => {
42442
+ })), IZ = (e) => {
42335
42443
  let { model: t, label: n, group: r, configuration: i, onChange: a } = e, o = (e, n, r) => {
42336
42444
  let { isConfigProperty: o, ...s } = et(e, r || n), c = et(o ? i : t, n), l = {
42337
42445
  ...s,
42338
42446
  key: n,
42339
42447
  value: c
42340
- }, u = CZ[l.type];
42448
+ }, u = MZ[l.type];
42341
42449
  return /* @__PURE__ */ P(u, {
42342
42450
  ...l,
42343
42451
  onChange: (e) => a(n, e, o)
@@ -42346,18 +42454,18 @@ var CZ = {
42346
42454
  let n = e[t];
42347
42455
  if (!n) return null;
42348
42456
  let { type: r, label: i, fields: a, choices: s } = n;
42349
- return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(EZ, { 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);
42457
+ return r === "numberFields" ? /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P(FZ, { 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);
42350
42458
  };
42351
- return /* @__PURE__ */ F(wZ, { children: [/* @__PURE__ */ P(TZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
42459
+ return /* @__PURE__ */ F(NZ, { children: [/* @__PURE__ */ P(PZ, { children: n }), Object.keys(r).map((e) => s(r, e))] });
42352
42460
  };
42353
- DZ.propTypes = {
42461
+ IZ.propTypes = {
42354
42462
  model: U.default.object,
42355
42463
  label: U.default.string,
42356
42464
  group: U.default.object,
42357
42465
  configuration: U.default.object,
42358
42466
  onChange: U.default.func
42359
42467
  };
42360
- var OZ = class extends _t.Component {
42468
+ var LZ = class extends _t.Component {
42361
42469
  static propTypes = {
42362
42470
  model: U.default.object,
42363
42471
  configuration: U.default.object,
@@ -42371,13 +42479,13 @@ var OZ = class extends _t.Component {
42371
42479
  onChangeConfiguration: () => {}
42372
42480
  };
42373
42481
  change = (e, t, n = !1) => {
42374
- cZ("[changeModel]", e, t);
42482
+ _Z("[changeModel]", e, t);
42375
42483
  let { onChangeModel: r, onChangeConfiguration: i } = this.props, a = { ...this.props.model }, o = { ...this.props.configuration };
42376
42484
  n ? (lt(o, e, t), i(o, e)) : (lt(a, e, t), r(a, e));
42377
42485
  };
42378
42486
  render() {
42379
42487
  let { groups: e, model: t, configuration: n, modal: r } = this.props;
42380
- return cZ("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(DZ, {
42488
+ return _Z("render:", t), /* @__PURE__ */ F("div", { children: [Object.keys(e || {}).map((r) => Object.entries(e[r]).some(([, e]) => !!e) ? /* @__PURE__ */ P(IZ, {
42381
42489
  label: r,
42382
42490
  model: t,
42383
42491
  configuration: n,
@@ -42385,59 +42493,59 @@ var OZ = class extends _t.Component {
42385
42493
  onChange: this.change
42386
42494
  }, r) : null), r] });
42387
42495
  }
42388
- }, kZ = /* @__PURE__ */ rX({
42389
- Panel: () => OZ,
42390
- checkbox: () => LZ,
42391
- checkboxes: () => RZ,
42392
- dropdown: () => PZ,
42393
- numberField: () => FZ,
42394
- numberFields: () => IZ,
42395
- radio: () => NZ,
42396
- textField: () => AZ,
42397
- toggle: () => jZ
42398
- }), AZ = (e, t = !0) => ({
42496
+ }, RZ = /* @__PURE__ */ fX({
42497
+ Panel: () => LZ,
42498
+ checkbox: () => KZ,
42499
+ checkboxes: () => qZ,
42500
+ dropdown: () => UZ,
42501
+ numberField: () => WZ,
42502
+ numberFields: () => GZ,
42503
+ radio: () => HZ,
42504
+ textField: () => zZ,
42505
+ toggle: () => BZ
42506
+ }), zZ = (e, t = !0) => ({
42399
42507
  label: e,
42400
42508
  type: "textField",
42401
42509
  isConfigProperty: t
42402
- }), jZ = (e, t = !1, n = !1) => ({
42510
+ }), BZ = (e, t = !1, n = !1) => ({
42403
42511
  type: "toggle",
42404
42512
  label: e,
42405
42513
  isConfigProperty: t,
42406
42514
  disabled: n
42407
- }), MZ = (e) => typeof e == "string" ? {
42515
+ }), VZ = (e) => typeof e == "string" ? {
42408
42516
  label: e,
42409
42517
  value: e
42410
- } : e, NZ = function() {
42518
+ } : e, HZ = function() {
42411
42519
  let [e, t, n = !1] = Array.prototype.slice.call(arguments);
42412
42520
  return {
42413
42521
  type: "radio",
42414
42522
  label: e,
42415
- choices: t && t.map((e) => MZ(e)),
42523
+ choices: t && t.map((e) => VZ(e)),
42416
42524
  isConfigProperty: n
42417
42525
  };
42418
- }, PZ = (e, t, n = !1) => ({
42526
+ }, UZ = (e, t, n = !1) => ({
42419
42527
  type: "dropdown",
42420
42528
  label: e,
42421
42529
  choices: t,
42422
42530
  isConfigProperty: n
42423
- }), FZ = (e, t, n = !1) => ({
42531
+ }), WZ = (e, t, n = !1) => ({
42424
42532
  ...t,
42425
42533
  label: e,
42426
42534
  type: "numberField",
42427
42535
  isConfigProperty: n
42428
- }), IZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42429
- t[e] = FZ(t[e].label, t[e], n);
42536
+ }), GZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42537
+ t[e] = WZ(t[e].label, t[e], n);
42430
42538
  }), {
42431
42539
  type: "numberFields",
42432
42540
  label: e,
42433
42541
  fields: t
42434
- }), LZ = (e, t, n = !1) => ({
42542
+ }), KZ = (e, t, n = !1) => ({
42435
42543
  ...t,
42436
42544
  label: e,
42437
42545
  type: "checkbox",
42438
42546
  isConfigProperty: n
42439
- }), RZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42440
- t[e] = LZ(t[e].label, t[e], n);
42547
+ }), qZ = (e, t, n = !1) => (Object.keys(t).map((e) => {
42548
+ t[e] = KZ(t[e].label, t[e], n);
42441
42549
  }), {
42442
42550
  type: "checkboxes",
42443
42551
  label: e,
@@ -42445,26 +42553,26 @@ var OZ = class extends _t.Component {
42445
42553
  });
42446
42554
  //#endregion
42447
42555
  //#region ../../lib-react/config-ui/dist/index.js
42448
- function zZ(e) {
42556
+ function JZ(e) {
42449
42557
  return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
42450
42558
  }
42451
- function BZ(e, t) {
42452
- return !e || zZ(e) ? e : zZ(e.default) ? e.default : t && zZ(e[t]) ? e[t] : t && zZ(e[t]?.default) ? e[t].default : e;
42559
+ function YZ(e, t) {
42560
+ return !e || JZ(e) ? e : JZ(e.default) ? e.default : t && JZ(e[t]) ? e[t] : t && JZ(e[t]?.default) ? e[t].default : e;
42453
42561
  }
42454
- var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ = he, UZ = HZ.default, WZ = UZ && typeof UZ == "object" ? UZ : HZ, GZ = x(/*#__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"), KZ = (e) => {
42562
+ var XZ = YZ(we, "InputContainer") || YZ($Z.InputContainer, "InputContainer"), ZZ = he, QZ = ZZ.default, $Z = QZ && typeof QZ == "object" ? QZ : ZZ, eQ = x(/*#__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"), tQ = (e) => {
42455
42563
  let { maxResponseAreas: t, maxResponseAreaChoices: n } = e;
42456
42564
  return "Validation requirements:" + ("\nThere should be at least 1 " + (t ? `and at most ${t} ` : "") + "response area" + (t ? "s" : "") + " defined." + (n ? `\nThere should be at most ${n} choices defined per response area.` : ""));
42457
- }, qZ = (e = {}, t = {}) => ({
42565
+ }, nQ = (e = {}, t = {}) => ({
42458
42566
  ...t,
42459
42567
  ...e
42460
- }), JZ = x(/*#__PURE__*/ P("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z" }), "Edit"), YZ = j("div")(() => ({
42568
+ }), rQ = x(/*#__PURE__*/ P("path", { d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z" }), "Edit"), iQ = j("div")(() => ({
42461
42569
  display: "flex",
42462
42570
  alignItems: "flex-start",
42463
42571
  position: "relative",
42464
42572
  background: M.white(),
42465
42573
  borderBottom: `1px solid ${M.border()}`,
42466
42574
  "&:last-child": { borderRadius: "0 0 4px 4px" }
42467
- })), XZ = j("div")(({ theme: e }) => ({
42575
+ })), aQ = j("div")(({ theme: e }) => ({
42468
42576
  display: "flex",
42469
42577
  justifyContent: "center",
42470
42578
  color: e.palette.common.white,
@@ -42477,20 +42585,20 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42477
42585
  top: e.spacing(2),
42478
42586
  left: e.spacing(1),
42479
42587
  zIndex: 3
42480
- })), ZZ = j("div")(({ theme: e, correct: t }) => ({
42588
+ })), oQ = j("div")(({ theme: e, correct: t }) => ({
42481
42589
  flex: 1,
42482
42590
  padding: e.spacing(.75),
42483
42591
  paddingLeft: e.spacing(3.5),
42484
42592
  ...t && { background: M.correctSecondary() },
42485
42593
  "& p": { margin: 0 }
42486
- })), QZ = j("div")(({ theme: e }) => ({
42594
+ })), sQ = j("div")(({ theme: e }) => ({
42487
42595
  margin: e.spacing(.5),
42488
42596
  display: "flex"
42489
- })), $Z = j(FC)(({ theme: e }) => ({
42597
+ })), cQ = j(FC)(({ theme: e }) => ({
42490
42598
  fontSize: e.typography.fontSize,
42491
42599
  padding: e.spacing(.5),
42492
42600
  color: e.palette.common.black
42493
- })), eQ = class extends _t.Component {
42601
+ })), lQ = class extends _t.Component {
42494
42602
  static propTypes = {
42495
42603
  correct: U.default.bool.isRequired,
42496
42604
  onClick: U.default.func.isRequired,
@@ -42508,22 +42616,22 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42508
42616
  };
42509
42617
  render() {
42510
42618
  let { correct: e, onClick: t, value: n } = this.props;
42511
- return /* @__PURE__ */ F(YZ, { children: [
42512
- e && /* @__PURE__ */ P(XZ, {
42619
+ return /* @__PURE__ */ F(iQ, { children: [
42620
+ e && /* @__PURE__ */ P(aQ, {
42513
42621
  onClick: t,
42514
42622
  children: /* @__PURE__ */ P(Ee, { fontSize: "inherit" })
42515
42623
  }),
42516
- /* @__PURE__ */ P(ZZ, {
42624
+ /* @__PURE__ */ P(oQ, {
42517
42625
  correct: e,
42518
42626
  onClick: t,
42519
42627
  dangerouslySetInnerHTML: { __html: n }
42520
42628
  }),
42521
- /* @__PURE__ */ F(QZ, { children: [/* @__PURE__ */ P($Z, {
42629
+ /* @__PURE__ */ F(sQ, { children: [/* @__PURE__ */ P(cQ, {
42522
42630
  onClick: this.onEditClick,
42523
42631
  size: "small",
42524
42632
  "aria-label": "Edit",
42525
- children: /* @__PURE__ */ P(JZ, { fontSize: "inherit" })
42526
- }), /* @__PURE__ */ P($Z, {
42633
+ children: /* @__PURE__ */ P(rQ, { fontSize: "inherit" })
42634
+ }), /* @__PURE__ */ P(cQ, {
42527
42635
  onClick: this.onRemoveClick,
42528
42636
  size: "small",
42529
42637
  "aria-label": "Remove",
@@ -42531,18 +42639,18 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42531
42639
  })] })
42532
42640
  ] });
42533
42641
  }
42534
- }, tQ = (e) => {
42642
+ }, uQ = (e) => {
42535
42643
  let t = document.createElement("div");
42536
42644
  return t.innerHTML = (e || "").trim(), t;
42537
- }, nQ = j("div")(({ theme: e }) => ({
42645
+ }, dQ = j("div")(({ theme: e }) => ({
42538
42646
  boxShadow: e.shadows[2],
42539
42647
  borderRadius: "4px",
42540
42648
  width: "400px"
42541
- })), rQ = j(Jq)(({ theme: e }) => ({
42649
+ })), fQ = j(rJ)(({ theme: e }) => ({
42542
42650
  borderRadius: "4px",
42543
42651
  backgroundColor: e.palette.common.white,
42544
42652
  "& [data-slate-editor=\"true\"]": { minHeight: "initial !important" }
42545
- })), iQ = j(FC)(({ theme: e }) => ({
42653
+ })), pQ = j(FC)(({ theme: e }) => ({
42546
42654
  fontSize: e.typography.fontSize + 2,
42547
42655
  padding: e.spacing(.5),
42548
42656
  color: e.palette.common.black,
@@ -42550,14 +42658,14 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42550
42658
  top: "50%",
42551
42659
  right: e.spacing(2),
42552
42660
  transform: "translate(0, -50%)"
42553
- })), aQ = j("div")({
42661
+ })), mQ = j("div")({
42554
42662
  display: "flex",
42555
42663
  flexDirection: "column",
42556
42664
  "& > div:last-child": { border: "none" }
42557
- }), oQ = j("div")(({ theme: e }) => ({
42665
+ }), hQ = j("div")(({ theme: e }) => ({
42558
42666
  padding: e.spacing(.5),
42559
42667
  position: "relative"
42560
- })), sQ = class extends _t.Component {
42668
+ })), gQ = class extends _t.Component {
42561
42669
  static propTypes = {
42562
42670
  node: U.default.object,
42563
42671
  pos: U.default.number,
@@ -42607,7 +42715,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42607
42715
  t.isDone = !0, e.view.dispatch(t);
42608
42716
  };
42609
42717
  onDone = (e) => {
42610
- let { choices: t, node: n, editor: r, onAddChoice: i, onToolbarDone: a } = this.props, { editedChoiceIndex: o } = this.state, s = tQ(e).textContent.trim();
42718
+ let { choices: t, node: n, editor: r, onAddChoice: i, onToolbarDone: a } = this.props, { editedChoiceIndex: o } = this.state, s = uQ(e).textContent.trim();
42611
42719
  o >= 0 && t?.[o]?.correct && r.commands.updateAttributes("inline_dropdown", { value: e }), ut(s) || (i(n.attrs.index, e, o), r.commands.refreshResponseArea()), this.setState({ editedChoiceIndex: -1 });
42612
42720
  };
42613
42721
  onSelectChoice = (e, t) => {
@@ -42648,7 +42756,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42648
42756
  };
42649
42757
  render() {
42650
42758
  let { choices: e, spellCheck: t, uploadSoundSupport: n, mathMlOptions: r = {}, baseInputConfiguration: i = {}, responseAreaInputConfiguration: a = {} } = this.props, { respAreaMarkup: o, toolbarStyle: s, editedChoiceIndex: c } = this.state;
42651
- return s ? /* @__PURE__ */ F(nQ, {
42759
+ return s ? /* @__PURE__ */ F(dQ, {
42652
42760
  "data-inline-dropdown-toolbar": "",
42653
42761
  style: {
42654
42762
  ...s,
@@ -42656,7 +42764,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42656
42764
  zIndex: 999
42657
42765
  },
42658
42766
  onMouseDown: this.onClickInside,
42659
- children: [/* @__PURE__ */ F(oQ, { children: [/* @__PURE__ */ P(rQ, {
42767
+ children: [/* @__PURE__ */ F(hQ, { children: [/* @__PURE__ */ P(fQ, {
42660
42768
  editorRef: (e) => {
42661
42769
  e && (this.editorRef = e, this.props.editorCallback?.(e));
42662
42770
  },
@@ -42686,16 +42794,16 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42686
42794
  e.relatedTarget && (this.preventDone = t || n, (t || n) && (this.clickedInside = !0)), this.onBlur();
42687
42795
  },
42688
42796
  placeholder: "Add Choice",
42689
- pluginProps: qZ(a?.inputConfiguration, i),
42797
+ pluginProps: nQ(a?.inputConfiguration, i),
42690
42798
  spellCheck: t,
42691
42799
  uploadSoundSupport: n,
42692
42800
  mathMlOptions: r
42693
- }), /* @__PURE__ */ P(iQ, {
42801
+ }), /* @__PURE__ */ P(pQ, {
42694
42802
  onClick: () => c >= 0 ? this.finishEditing() : this.onAddChoice(),
42695
42803
  size: "small",
42696
42804
  "aria-label": "Add",
42697
- children: P(c >= 0 ? Ee : KY, { fontSize: "inherit" })
42698
- })] }), e && /* @__PURE__ */ P(aQ, { children: e.map(({ label: e, correct: t }, n) => /* @__PURE__ */ P(eQ, {
42805
+ children: P(c >= 0 ? Ee : tX, { fontSize: "inherit" })
42806
+ })] }), e && /* @__PURE__ */ P(mQ, { children: e.map(({ label: e, correct: t }, n) => /* @__PURE__ */ P(lQ, {
42699
42807
  onClick: () => this.onSelectChoice(e, n),
42700
42808
  onRemoveChoice: () => this.onRemoveChoice(e, n),
42701
42809
  onEditChoice: () => this.onEditChoice(e, n),
@@ -42704,11 +42812,11 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42704
42812
  }, n)) })]
42705
42813
  }) : null;
42706
42814
  }
42707
- }, cQ = j("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2.5) })), lQ = j("div")(({ theme: e }) => ({
42815
+ }, _Q = j("div")(({ theme: e }) => ({ paddingBottom: e.spacing(2.5) })), vQ = j("div")(({ theme: e }) => ({
42708
42816
  fontSize: e.typography.fontSize - 2,
42709
42817
  color: e.palette.error.main,
42710
42818
  paddingTop: e.spacing(1)
42711
- })), uQ = class extends _t.Component {
42819
+ })), yQ = class extends _t.Component {
42712
42820
  static propTypes = {
42713
42821
  editableHtmlProps: U.default.object.isRequired,
42714
42822
  responseAreasError: U.default.string,
@@ -42719,24 +42827,24 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42719
42827
  }
42720
42828
  render() {
42721
42829
  let { editableHtmlProps: e, responseAreasError: t, responseAreaChoicesError: n } = this.props;
42722
- return /* @__PURE__ */ F(cQ, { children: [
42723
- /* @__PURE__ */ P(Jq, { ...e }),
42724
- t && /* @__PURE__ */ P(lQ, { children: t }),
42725
- n && /* @__PURE__ */ P(lQ, { children: n })
42830
+ return /* @__PURE__ */ F(_Q, { children: [
42831
+ /* @__PURE__ */ P(rJ, { ...e }),
42832
+ t && /* @__PURE__ */ P(vQ, { children: t }),
42833
+ n && /* @__PURE__ */ P(vQ, { children: n })
42726
42834
  ] });
42727
42835
  }
42728
- }, { toggle: dQ, Panel: fQ, dropdown: pQ } = kZ, mQ = j(VZ)(({ theme: e }) => ({
42836
+ }, { toggle: bQ, Panel: xQ, dropdown: SQ } = RZ, CQ = j(XZ)(({ theme: e }) => ({
42729
42837
  width: "100%",
42730
42838
  paddingTop: e.spacing(2),
42731
42839
  marginBottom: e.spacing(2)
42732
- })), hQ = j(VZ)(({ theme: e }) => ({
42840
+ })), wQ = j(XZ)(({ theme: e }) => ({
42733
42841
  width: "100%",
42734
42842
  paddingTop: e.spacing(.5),
42735
42843
  marginBottom: e.spacing(2)
42736
- })), gQ = j($A)(({ theme: e }) => ({
42844
+ })), TQ = j($A)(({ theme: e }) => ({
42737
42845
  fontSize: e.typography.fontSize + 2,
42738
42846
  marginRight: e.spacing(1)
42739
- })), _Q = j("span")(({ theme: e }) => ({
42847
+ })), EQ = j("span")(({ theme: e }) => ({
42740
42848
  display: "flex",
42741
42849
  alignItems: "center",
42742
42850
  whiteSpace: "break-spaces",
@@ -42744,26 +42852,26 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42744
42852
  padding: 0,
42745
42853
  fontSize: e.typography.fontSize - 2,
42746
42854
  lineHeight: 1
42747
- })), vQ = j("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), yQ = j(dJ)({
42855
+ })), DQ = j("div")(({ theme: e }) => ({ marginBottom: e.spacing(2.5) })), OQ = j(bJ)({
42748
42856
  display: "block",
42749
42857
  paddingTop: 0,
42750
42858
  paddingBottom: 0
42751
- }), bQ = j("div")(({ theme: e }) => ({
42859
+ }), kQ = j("div")(({ theme: e }) => ({
42752
42860
  display: "flex",
42753
42861
  alignItems: "center",
42754
42862
  marginBottom: e.spacing(1)
42755
- })), xQ = j(xY)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
42863
+ })), AQ = j(AY)(({ theme: e }) => ({ "& .MuiTooltip-tooltip": {
42756
42864
  fontSize: e.typography.fontSize - 2,
42757
42865
  whiteSpace: "pre",
42758
42866
  maxWidth: "500px"
42759
- } })), SQ = j("div")(({ theme: e }) => ({
42867
+ } })), jQ = j("div")(({ theme: e }) => ({
42760
42868
  fontSize: e.typography.fontSize - 2,
42761
42869
  color: e.palette.error.main,
42762
42870
  paddingTop: e.spacing(1)
42763
- })), CQ = (e) => {
42871
+ })), MQ = (e) => {
42764
42872
  let t = document.createElement("div");
42765
42873
  return t.innerHTML = (e || "").trim(), t;
42766
- }, wQ = class extends _t.Component {
42874
+ }, NQ = class extends _t.Component {
42767
42875
  static propTypes = {
42768
42876
  configuration: U.default.object.isRequired,
42769
42877
  model: U.default.object.isRequired,
@@ -42832,11 +42940,11 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42832
42940
  return;
42833
42941
  }
42834
42942
  n._holdInlineDropdownToolbarIndex = o, this.onCheck(() => {
42835
- delete n._holdInlineDropdownToolbarIndex, qq(n, o, t), r();
42943
+ delete n._holdInlineDropdownToolbarIndex, nJ(n, o, t), r();
42836
42944
  }, i);
42837
42945
  };
42838
42946
  onChange = (e) => {
42839
- let { respAreaChoices: t } = this.state, n = CQ(e), r = n.querySelectorAll("[data-type=\"inline_dropdown\"]"), i = {};
42947
+ let { respAreaChoices: t } = this.state, n = MQ(e), r = n.querySelectorAll("[data-type=\"inline_dropdown\"]"), i = {};
42840
42948
  r.forEach((e) => {
42841
42949
  i[e.dataset.index] = e.dataset.value || "";
42842
42950
  });
@@ -42889,18 +42997,18 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42889
42997
  })), this.onModelChange({ choices: it(n) });
42890
42998
  };
42891
42999
  render() {
42892
- let { warning: e } = this.state, { model: t, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, choiceRationale: s = {}, contentDimensions: c = {}, lockChoiceOrder: l = {}, maxResponseAreas: u, maxImageWidth: d = {}, maxImageHeight: f = {}, partialScoring: p = {}, prompt: m = {}, rationale: h = {}, settingsPanelDisabled: g, spellCheck: _ = {}, teacherInstructions: v = {}, template: y = {}, withRubric: b = {}, mathMlOptions: x = {}, language: S = {}, languageChoices: C = {}, responseAreaInputConfiguration: w = {} } = n || {}, { choiceRationaleEnabled: ee, choices: T, errors: te, extraCSSRules: E, promptEnabled: ne, rationaleEnabled: re, spellCheckEnabled: D, teacherInstructionsEnabled: O, toolbarEditorPosition: ie } = t || {}, { prompt: ae, rationale: oe, responseAreasError: k, responseAreaChoicesError: se, teacherInstructions: ce } = te || {}, le = d && d.prompt, ue = f && f.prompt, de = () => (Object.keys(T) || []).map((e, t) => /* @__PURE__ */ P(vQ, { children: /* @__PURE__ */ F(sJ, {
43000
+ let { warning: e } = this.state, { model: t, configuration: n, onConfigurationChanged: r, imageSupport: i, uploadSoundSupport: a } = this.props, { baseInputConfiguration: o = {}, choiceRationale: s = {}, contentDimensions: c = {}, lockChoiceOrder: l = {}, maxResponseAreas: u, maxImageWidth: d = {}, maxImageHeight: f = {}, partialScoring: p = {}, prompt: m = {}, rationale: h = {}, settingsPanelDisabled: g, spellCheck: _ = {}, teacherInstructions: v = {}, template: y = {}, withRubric: b = {}, mathMlOptions: x = {}, language: S = {}, languageChoices: C = {}, responseAreaInputConfiguration: w = {} } = n || {}, { choiceRationaleEnabled: ee, choices: T, errors: te, extraCSSRules: E, promptEnabled: ne, rationaleEnabled: re, spellCheckEnabled: D, teacherInstructionsEnabled: O, toolbarEditorPosition: ie } = t || {}, { prompt: ae, rationale: oe, responseAreasError: k, responseAreaChoicesError: se, teacherInstructions: ce } = te || {}, le = d && d.prompt, ue = f && f.prompt, de = () => (Object.keys(T) || []).map((e, t) => /* @__PURE__ */ P(DQ, { children: /* @__PURE__ */ F(gJ, {
42893
43001
  slotProps: { transition: { timeout: {
42894
43002
  enter: 225,
42895
43003
  exit: 195
42896
43004
  } } },
42897
- children: [/* @__PURE__ */ P(vJ, {
42898
- expandIcon: /* @__PURE__ */ P(IY, {}),
42899
- children: /* @__PURE__ */ P(gQ, {
43005
+ children: [/* @__PURE__ */ P(DJ, {
43006
+ expandIcon: /* @__PURE__ */ P(GY, {}),
43007
+ children: /* @__PURE__ */ P(TQ, {
42900
43008
  component: "div",
42901
43009
  children: `Rationale for response area #${t + 1}`
42902
43010
  })
42903
- }), /* @__PURE__ */ P(yQ, { children: (T[e] || []).map((t) => /* @__PURE__ */ F(_t.Fragment, { children: [/* @__PURE__ */ P(_Q, { dangerouslySetInnerHTML: { __html: `${h.label} for ${t.label} (${t.correct ? "correct" : "incorrect"})` } }), /* @__PURE__ */ P(hQ, { children: /* @__PURE__ */ P(Jq, {
43011
+ }), /* @__PURE__ */ P(OQ, { children: (T[e] || []).map((t) => /* @__PURE__ */ F(_t.Fragment, { children: [/* @__PURE__ */ P(EQ, { dangerouslySetInnerHTML: { __html: `${h.label} for ${t.label} (${t.correct ? "correct" : "incorrect"})` } }), /* @__PURE__ */ P(wQ, { children: /* @__PURE__ */ P(rJ, {
42904
43012
  markup: t.rationale || "",
42905
43013
  spellCheck: D,
42906
43014
  pluginProps: ge(h?.inputConfiguration),
@@ -42914,30 +43022,30 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42914
43022
  uploadSoundSupport: a,
42915
43023
  mathMlOptions: x
42916
43024
  }) })] }, t.label)) })]
42917
- }) }, e)), fe = { position: ie === "top" ? "top" : "bottom" }, pe = KZ(n), me = {
42918
- partialScoring: p.settings && dQ(p.label),
42919
- lockChoiceOrder: l.settings && dQ(l.label),
42920
- "language.enabled": S.settings && dQ(S.label, !0),
42921
- language: S.settings && S.enabled && pQ(C.label, C.options)
43025
+ }) }, e)), fe = { position: ie === "top" ? "top" : "bottom" }, pe = tQ(n), me = {
43026
+ partialScoring: p.settings && bQ(p.label),
43027
+ lockChoiceOrder: l.settings && bQ(l.label),
43028
+ "language.enabled": S.settings && bQ(S.label, !0),
43029
+ language: S.settings && S.enabled && SQ(C.label, C.options)
42922
43030
  }, he = {
42923
- teacherInstructionsEnabled: v.settings && dQ(v.label),
42924
- rationaleEnabled: h.settings && dQ(h.label),
42925
- choiceRationaleEnabled: s.settings && dQ(s.label),
42926
- promptEnabled: m.settings && dQ(m.label),
42927
- spellCheckEnabled: _.settings && dQ(_.label),
42928
- rubricEnabled: b?.settings && dQ(b?.label)
43031
+ teacherInstructionsEnabled: v.settings && bQ(v.label),
43032
+ rationaleEnabled: h.settings && bQ(h.label),
43033
+ choiceRationaleEnabled: s.settings && bQ(s.label),
43034
+ promptEnabled: m.settings && bQ(m.label),
43035
+ spellCheckEnabled: _.settings && bQ(_.label),
43036
+ rubricEnabled: b?.settings && bQ(b?.label)
42929
43037
  }, ge = (e = {}) => ({
42930
43038
  ...o,
42931
43039
  ...e
42932
43040
  });
42933
- return /* @__PURE__ */ F(eZ.ConfigLayout, {
43041
+ return /* @__PURE__ */ F(lZ.ConfigLayout, {
42934
43042
  extraCSSRules: {
42935
43043
  names: ["red", "blue"],
42936
43044
  rules: "\n .red {\n color: red !important;\n }\n\n .blue {\n color: blue !important;\n }\n "
42937
43045
  },
42938
43046
  dimensions: c,
42939
43047
  hideSettings: g,
42940
- settings: /* @__PURE__ */ P(fQ, {
43048
+ settings: /* @__PURE__ */ P(xQ, {
42941
43049
  model: t,
42942
43050
  configuration: n,
42943
43051
  onChangeModel: (e) => this.onModelChange(e),
@@ -42948,9 +43056,9 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42948
43056
  }
42949
43057
  }),
42950
43058
  children: [
42951
- O && /* @__PURE__ */ F(mQ, {
43059
+ O && /* @__PURE__ */ F(CQ, {
42952
43060
  label: v.label,
42953
- children: [/* @__PURE__ */ P(Jq, {
43061
+ children: [/* @__PURE__ */ P(rJ, {
42954
43062
  markup: t.teacherInstructions || "",
42955
43063
  onChange: this.onTeacherInstructionsChanged,
42956
43064
  imageSupport: i,
@@ -42964,11 +43072,11 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42964
43072
  uploadSoundSupport: a,
42965
43073
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42966
43074
  mathMlOptions: x
42967
- }), ce && /* @__PURE__ */ P(SQ, { children: ce })]
43075
+ }), ce && /* @__PURE__ */ P(jQ, { children: ce })]
42968
43076
  }),
42969
- ne && /* @__PURE__ */ F(mQ, {
43077
+ ne && /* @__PURE__ */ F(CQ, {
42970
43078
  label: m.label,
42971
- children: [/* @__PURE__ */ P(Jq, {
43079
+ children: [/* @__PURE__ */ P(rJ, {
42972
43080
  markup: t.prompt,
42973
43081
  onChange: this.onPromptChanged,
42974
43082
  imageSupport: i,
@@ -42983,22 +43091,22 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
42983
43091
  uploadSoundSupport: a,
42984
43092
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
42985
43093
  mathMlOptions: x
42986
- }), ae && /* @__PURE__ */ P(SQ, { children: ae })]
43094
+ }), ae && /* @__PURE__ */ P(jQ, { children: ae })]
42987
43095
  }),
42988
- /* @__PURE__ */ F(bQ, { children: [/* @__PURE__ */ P(gQ, {
43096
+ /* @__PURE__ */ F(kQ, { children: [/* @__PURE__ */ P(TQ, {
42989
43097
  component: "div",
42990
43098
  children: "Define Template, Choices, and Correct Responses"
42991
- }), /* @__PURE__ */ P(xQ, {
43099
+ }), /* @__PURE__ */ P(AQ, {
42992
43100
  disableFocusListener: !0,
42993
43101
  disableTouchListener: !0,
42994
43102
  placement: "right",
42995
43103
  title: pe,
42996
- children: /* @__PURE__ */ P(GZ, {
43104
+ children: /* @__PURE__ */ P(eQ, {
42997
43105
  fontSize: "small",
42998
43106
  color: "primary"
42999
43107
  })
43000
43108
  })] }),
43001
- /* @__PURE__ */ P(uQ, {
43109
+ /* @__PURE__ */ P(yQ, {
43002
43110
  responseAreasError: k,
43003
43111
  responseAreaChoicesError: se,
43004
43112
  editableHtmlProps: {
@@ -43018,7 +43126,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43018
43126
  },
43019
43127
  respAreaToolbar: (e, t, n) => {
43020
43128
  let [r, i] = e, { respAreaChoices: s } = this.state;
43021
- return (e) => /* @__PURE__ */ P(sQ, {
43129
+ return (e) => /* @__PURE__ */ P(gQ, {
43022
43130
  ...e,
43023
43131
  onAddChoice: this.onAddChoice,
43024
43132
  onRemoveChoice: (e) => this.onRemoveChoice(r.attrs.index, e),
@@ -43050,9 +43158,9 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43050
43158
  }
43051
43159
  }),
43052
43160
  ee && de(),
43053
- re && /* @__PURE__ */ F(mQ, {
43161
+ re && /* @__PURE__ */ F(CQ, {
43054
43162
  label: h.label,
43055
- children: [/* @__PURE__ */ P(Jq, {
43163
+ children: [/* @__PURE__ */ P(rJ, {
43056
43164
  markup: t.rationale || "",
43057
43165
  onChange: this.onRationaleChanged,
43058
43166
  imageSupport: i,
@@ -43065,9 +43173,9 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43065
43173
  uploadSoundSupport: a,
43066
43174
  languageCharactersProps: [{ language: "spanish" }, { language: "special" }],
43067
43175
  mathMlOptions: x
43068
- }), oe && /* @__PURE__ */ P(SQ, { children: oe })]
43176
+ }), oe && /* @__PURE__ */ P(jQ, { children: oe })]
43069
43177
  }),
43070
- /* @__PURE__ */ P(MY, {
43178
+ /* @__PURE__ */ P(VY, {
43071
43179
  open: e.open,
43072
43180
  title: "Warning",
43073
43181
  text: e.text,
@@ -43080,7 +43188,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43080
43188
  ]
43081
43189
  });
43082
43190
  }
43083
- }, TQ = {
43191
+ }, PQ = {
43084
43192
  model: {
43085
43193
  alternateResponse: {},
43086
43194
  choiceRationaleEnabled: !0,
@@ -43206,16 +43314,16 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43206
43314
  options: []
43207
43315
  }
43208
43316
  }
43209
- }, EQ = "imes|riangle|an|heta|herefore", DQ = "throot|parallel|cong|approx|eq|e|sim", OQ = RegExp(`(\\t(?!${EQ}))|(\\n(?!${DQ}))|(\\\\t(?!${EQ}))|(\\\\n(?!${DQ}))`, "g"), kQ = (e) => e.replace(OQ, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), AQ = (e) => {
43317
+ }, FQ = "imes|riangle|an|heta|herefore", IQ = "throot|parallel|cong|approx|eq|e|sim", LQ = RegExp(`(\\t(?!${FQ}))|(\\n(?!${IQ}))|(\\\\t(?!${FQ}))|(\\\\n(?!${IQ}))`, "g"), RQ = (e) => e.replace(LQ, "").replace(/\\"/g, "\"").replace(/\\\//g, "/"), zQ = (e) => {
43210
43318
  let t = document.createElement("div");
43211
43319
  return t.innerHTML = e.trim(), t;
43212
- }, jQ = (e) => {
43213
- let t = AQ(kQ(e));
43320
+ }, BQ = (e) => {
43321
+ let t = zQ(RQ(e));
43214
43322
  return t.querySelectorAll("[data-type=\"inline_dropdown\"]").forEach((e) => {
43215
43323
  e.replaceWith(`{{${e.dataset.index}}}`);
43216
43324
  }), t.innerHTML;
43217
- }, MQ = /\{\{(\d+)\}\}/g, NQ = (e, t) => {
43218
- let n = kQ(e), r = (e) => {
43325
+ }, VQ = /\{\{(\d+)\}\}/g, HQ = (e, t) => {
43326
+ let n = RQ(e), r = (e) => {
43219
43327
  let n = t[e] && t[e].find((e) => e.correct);
43220
43328
  return (!n || !n.value) && (n = {
43221
43329
  id: "",
@@ -43223,13 +43331,13 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43223
43331
  label: ""
43224
43332
  }), `<span data-type="inline_dropdown" data-index="${e}" data-value="${mt(n.label)}"></span>`;
43225
43333
  };
43226
- return n.replace(MQ, (e, t) => r(t));
43227
- }, PQ = (0, Gt.default)("multiple-choice:configure"), FQ = class e extends HTMLElement {
43334
+ return n.replace(VQ, (e, t) => r(t));
43335
+ }, UQ = (0, Gt.default)("multiple-choice:configure"), WQ = class e extends HTMLElement {
43228
43336
  static prepareModel = (e = {}) => {
43229
43337
  let t = {
43230
- ...TQ.model,
43338
+ ...PQ.model,
43231
43339
  ...e
43232
- }, n = e.slateMarkup || NQ(t.markup, t.choices), r = jQ(n);
43340
+ }, n = e.slateMarkup || HQ(t.markup, t.choices), r = BQ(n);
43233
43341
  return {
43234
43342
  ...t,
43235
43343
  slateMarkup: n,
@@ -43237,13 +43345,13 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43237
43345
  };
43238
43346
  };
43239
43347
  constructor() {
43240
- super(), this._root = null, this._model = e.prepareModel(), this._configuration = TQ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
43348
+ super(), this._root = null, this._model = e.prepareModel(), this._configuration = PQ.configuration, this.onModelChanged = this.onModelChanged.bind(this), this.onConfigurationChanged = this.onConfigurationChanged.bind(this);
43241
43349
  }
43242
43350
  set model(t) {
43243
43351
  this._model = e.prepareModel(t), this._render();
43244
43352
  }
43245
43353
  set configuration(e) {
43246
- this._configuration = ot(e, TQ.configuration), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.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({
43354
+ this._configuration = ot(e, PQ.configuration), e.language?.enabled ? e.languageChoices?.options?.length && (this._model.language = e.languageChoices.options[0].value) : e.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({
43247
43355
  value: this._model.language,
43248
43356
  label: this._model.language
43249
43357
  })) : delete this._model.language, this._render();
@@ -43253,7 +43361,7 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43253
43361
  }
43254
43362
  dispatchModelUpdated(e) {
43255
43363
  let t = !!e;
43256
- this.dispatchEvent(new Yq(this._model, t));
43364
+ this.dispatchEvent(new iJ(this._model, t));
43257
43365
  }
43258
43366
  onModelChanged(t, n) {
43259
43367
  this._model = e.prepareModel(t), this._render(), this.dispatchModelUpdated(n);
@@ -43262,20 +43370,20 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43262
43370
  this._configuration = e, this._render();
43263
43371
  }
43264
43372
  insertImage(e) {
43265
- this.dispatchEvent(new Zq(e));
43373
+ this.dispatchEvent(new oJ(e));
43266
43374
  }
43267
43375
  onDeleteImage(e, t) {
43268
- this.dispatchEvent(new Xq(e, t));
43376
+ this.dispatchEvent(new aJ(e, t));
43269
43377
  }
43270
43378
  insertSound(e) {
43271
- this.dispatchEvent(new $q(e));
43379
+ this.dispatchEvent(new cJ(e));
43272
43380
  }
43273
43381
  onDeleteSound(e, t) {
43274
- this.dispatchEvent(new Qq(e, t));
43382
+ this.dispatchEvent(new sJ(e, t));
43275
43383
  }
43276
43384
  _render() {
43277
- PQ("_render");
43278
- let e = _t.createElement(wQ, {
43385
+ UQ("_render");
43386
+ let e = _t.createElement(NQ, {
43279
43387
  model: this._model,
43280
43388
  configuration: this._configuration,
43281
43389
  onModelChanged: this.onModelChanged,
@@ -43300,6 +43408,6 @@ var VZ = BZ(we, "InputContainer") || BZ(WZ.InputContainer, "InputContainer"), HZ
43300
43408
  }
43301
43409
  };
43302
43410
  //#endregion
43303
- export { FQ as default };
43411
+ export { WQ as default };
43304
43412
 
43305
43413
  //# sourceMappingURL=index.js.map