@pie-element/ebsr 14.2.2-next.28 → 14.2.2-next.31

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.
@@ -16,7 +16,7 @@
16
16
  (document.head || document.documentElement).appendChild(style);
17
17
  }
18
18
  })([["cb0f0518b022d739", (url) => "@font-face{font-family:Symbola;src:local(Symbola Regular),local(Symbola),url(\"" + url(() => new URL("../assets/Symbola-4c507403.woff2", import.meta.url)) + "\")format(\"woff2\")}.mq-editable-field{display:inline-block}.mq-editable-field .mq-cursor{z-index:1;border-left:1px solid #000;margin-left:-1px;padding:0;display:inline-block;position:relative}.mq-editable-field .mq-cursor.mq-blink{visibility:hidden}.mq-editable-field,.mq-math-mode .mq-editable-field{border:1px solid gray}.mq-editable-field.mq-focused,.mq-math-mode .mq-editable-field.mq-focused{border-color:#709ac0;border-radius:1px;box-shadow:0 0 1px 2px #8bd,inset 0 0 2px #6ae}.mq-math-mode .mq-editable-field{margin:1px}.mq-editable-field .mq-latex-command-input{color:inherit;border:1px solid gray;margin-left:2px;margin-right:1px;padding-right:1px;font-family:Courier New,monospace}.mq-editable-field .mq-latex-command-input.mq-empty{background:0 0}.mq-editable-field .mq-latex-command-input.mq-hasCursor{border-color:activeborder}.mq-editable-field.mq-empty:after,.mq-editable-field.mq-text-mode:after,.mq-math-mode .mq-empty:after,.mq-editable-field .mq-cursor:only-child:after,.mq-editable-field .mq-textarea+.mq-cursor:last-child:after{visibility:hidden;content:\"c\"}.mq-editable-field .mq-text-mode .mq-cursor:only-child:after{content:\"\"}.mq-editable-field.mq-text-mode{overflow:auto hidden}.mq-root-block,.mq-math-mode .mq-root-block{box-sizing:border-box;white-space:nowrap;vertical-align:middle;width:100%;padding:2px;display:inline-block;overflow:hidden}.mq-math-mode{font-variant:normal;font-size:115%;font-style:normal;font-weight:400;line-height:1;display:inline-block}.mq-math-mode .mq-non-leaf,.mq-math-mode .mq-scaled{display:inline-block}.mq-math-mode var,.mq-math-mode .mq-text-mode,.mq-math-mode .mq-nonSymbola{font-family:Times New Roman,Symbola,serif;line-height:.9}.mq-math-mode *{font-size:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;box-sizing:border-box;border-color:#000;margin:0;padding:0}.mq-math-mode .mq-empty,.mq-math-mode.mq-empty{background:0 0}.mq-math-mode .mq-text-mode{white-space:pre;display:inline-block}.mq-math-mode .mq-text-mode.mq-hasCursor{min-width:1ex;margin:0 -.1em;padding:0 .1em;box-shadow:inset 0 .1em .2em #a9a9a9}.mq-math-mode .mq-font{font:1em Times New Roman,Symbola,serif}.mq-math-mode .mq-font *{font-family:inherit;font-style:inherit}.mq-math-mode b,.mq-math-mode b.mq-font{font-weight:bolder}.mq-math-mode var,.mq-math-mode i,.mq-math-mode i.mq-font{font-style:italic}.mq-math-mode var.mq-f{margin-left:.1em;margin-right:.2em}.mq-math-mode .mq-roman var.mq-f{margin:0}.mq-math-mode big{font-size:200%}.mq-math-mode .mq-int>big{vertical-align:-.16em;display:inline-block;transform:scaleX(.7)}.mq-math-mode .mq-int>.mq-supsub{vertical-align:-1.1em;padding-right:.2em;font-size:80%}.mq-math-mode .mq-int>.mq-supsub>.mq-sup>.mq-sup-inner{vertical-align:1.3em}.mq-math-mode .mq-int>.mq-supsub>.mq-sub{margin-left:-.35em}.mq-math-mode .mq-roman{font-style:normal}.mq-math-mode .mq-sans-serif{font-family:sans-serif,Symbola,serif}.mq-math-mode .mq-monospace{font-family:monospace,Symbola,serif}.mq-math-mode .mq-overleftrightarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overleftrightarrow .mq-overleftrightarrow-inner .mq-overleftrightarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overline .mq-overline-inner{text-align:center;border-top:.14em solid #4d4d4d;margin-left:.1em;padding-top:.2em;padding-right:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-right,.mq-math-mode .mq-overline .mq-overline-inner .mq-overline-inner-left{display:none}.mq-math-mode .mq-longdiv{padding-top:.2em}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border{border-top-right-radius:100em;border-bottom-right-radius:100em;width:2px;max-width:2px;margin-right:-.12em;padding-top:.2em;font-size:1.4em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner{text-align:center;border-top:1px solid gray;border-radius:0 0 0 10px;min-width:1em;margin-left:-.2em;margin-right:.15em;padding-top:.19em;padding-left:.44em;font-size:1em;display:inline}.mq-math-mode .mq-longdiv .mq-longdiv-inner .mq-empty{min-width:1.5em;display:inline-block}.mq-math-mode .mq-underline{border-bottom:1px solid #000;margin-bottom:1px}.mq-math-mode .mq-underline.mq-empty{min-width:1em}.mq-math-mode .mq-overarc{-moz-border-radius-topright:50% .3em;-moz-border-radius-topleft:50% .3em;border-top:1px solid #000;border-top-left-radius:50% .3em;border-top-right-radius:50% .3em;margin-top:1px;padding-top:.15em}.mq-math-mode .mq-overarrow{margin-top:.35em;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner{text-align:center;border-top:.14em solid #4d4d4d;min-width:1em;margin:0 .1em;padding-top:.35em;display:inline-block;position:relative}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty{min-width:1em;margin-top:.1em;display:inline-block}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-right{text-align:right;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:block;position:absolute;top:-.562em;right:-.4em}.mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-overarrow-inner-left{text-align:left;font-family:LearnosityIconsRegular;font-size:.75em;line-height:1em;display:none;position:absolute;top:-.562em;left:-.4em}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-right{display:none}.mq-math-mode .mq-overarrow.mq-arrow-left .mq-overarrow-inner .mq-overarrow-inner-left{display:block}.mq-math-mode .mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-math-mode .mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-math-mode .mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-math-mode .mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-xarrow{text-align:center;vertical-align:.9em;padding:0 .2em;font-size:70%;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-over{border-bottom:1px solid #000;padding:.1em .1em .2em;display:block;position:relative}.mq-math-mode .mq-xarrow .mq-xarrow-under{float:left;margin-bottom:.2em;padding:0 .1em .2em;position:relative;top:.2em}.mq-math-mode .mq-xarrow .mq-xarrow-over:before{content:\"➤\";height:1em;font-size:.6em;display:block;position:absolute;bottom:-.62em;right:-.3em}.mq-math-mode .mq-xarrow.mq-arrow-left .mq-xarrow-over:before{filter:FlipH;-ms-filter:\"FlipH\";left:-.3em;right:auto;transform:scaleX(-1)}.mq-math-mode .mq-binary-operator{padding:0 .2em;display:inline-block}.mq-math-mode .mq-supsub{text-align:left;vertical-align:-.5em;font-size:90%}.mq-math-mode .mq-supsub.mq-sup-only{vertical-align:.5em}.mq-math-mode .mq-supsub.mq-sup-only .mq-sup{vertical-align:text-bottom;display:inline-block}.mq-math-mode .mq-supsub .mq-sup{display:block}.mq-math-mode .mq-supsub .mq-sub{float:left;display:block}.mq-math-mode .mq-supsub .mq-binary-operator{padding:0 .1em}.mq-math-mode .mq-supsub .mq-fraction{font-size:70%}.mq-math-mode sup.mq-nthroot{vertical-align:.8em;min-width:.5em;margin-left:.2em;margin-right:-.6em;font-size:80%}.mq-math-mode .mq-paren{vertical-align:top;transform-origin:50% .06em;padding:0 .1em}.mq-math-mode .mq-paren.mq-ghost{color:silver}.mq-math-mode .mq-paren+span{margin-top:.1em;margin-bottom:.1em}.mq-math-mode .mq-array{vertical-align:middle;text-align:center}.mq-math-mode .mq-array>span{display:block}.mq-math-mode .mq-operator-name{font-family:Symbola,Times New Roman,serif;font-style:normal;line-height:.9}.mq-math-mode var.mq-operator-name.mq-first{padding-left:.2em}.mq-math-mode var.mq-operator-name.mq-last,.mq-math-mode .mq-supsub.mq-after-operator-name{padding-right:.2em}.mq-math-mode .mq-fraction{text-align:center;vertical-align:-.4em;padding:0 .2em;font-size:90%}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator{display:-moz-groupbox}.mq-math-mode x:-moz-any-link{display:-moz-groupbox}.mq-math-mode .mq-fraction,.mq-math-mode .mq-large-operator,.mq-math-mode x:default{display:inline-block}.mq-math-mode x:-moz-any-link{display:inline-block}.mq-math-mode .mq-underset.mq-tilde-vector .mq-under{line-height:.6em}.mq-math-mode .mq-numerator,.mq-math-mode .mq-denominator,.mq-math-mode .mq-dot-recurring,.mq-math-mode .mq-over,.mq-math-mode .mq-under{display:block}.mq-math-mode .mq-numerator,.mq-math-mode .mq-over{margin-bottom:.2em;padding:0 .1em}.mq-math-mode .mq-denominator{float:right;border-top:1px solid;width:100%;padding:.3em .1em .1em}.mq-math-mode .mq-dot-recurring{text-align:center;height:.6em}.mq-math-mode .mq-overunder{text-align:center;position:relative;top:.01em}.mq-math-mode .mq-overunder .mq-font{font-family:inherit}.mq-math-mode .mq-overunder.mq-underset{vertical-align:text-top}.mq-math-mode .mq-overunder.mq-underset .mq-under,.mq-math-mode .mq-overunder.mq-overset .mq-over{font-size:.7em;display:block}.mq-math-mode .mq-sqrt-prefix{vertical-align:top;transform-origin:top;padding-top:0;position:relative;top:.1em}.mq-math-mode .mq-sqrt-stem{border-top:1px solid;margin-top:1px;margin-right:.1em;padding-top:1px;padding-left:.15em;padding-right:.2em}.mq-math-mode .mq-diacritic-above{text-align:center;line-height:.4em;display:block}.mq-math-mode .mq-diacritic-stem{text-align:center;display:block}.mq-math-mode .mq-hat-prefix{text-align:center;margin-bottom:-.7em;line-height:.95em;display:block;transform:scaleX(1.5)}.mq-math-mode .mq-hat-stem{display:block}.mq-math-mode .mq-large-operator{vertical-align:-.2em;text-align:center;vertical-align:middle;padding:.2em}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator big,.mq-math-mode .mq-large-operator .mq-to{display:block}.mq-math-mode .mq-large-operator .mq-from,.mq-math-mode .mq-large-operator .mq-to{font-size:80%}.mq-math-mode .mq-large-operator .mq-from{float:right;width:100%}.mq-math-mode .mq-lim{text-align:center}.mq-math-mode .mq-lim span{display:block}.mq-math-mode .mq-lim .mq-approaches{float:right;width:100%;font-size:80%}.mq-math-mode .mq-lim .mq-approaches span>span{display:inline}.mq-math-mode .mq-matrix{vertical-align:middle;margin-left:.1em;margin-right:.1em}.mq-math-mode .mq-matrix table{border-spacing:3px;border-collapse:separate;border-bottom:none;width:auto}.mq-math-mode .mq-matrix table.mq-rows-1{vertical-align:middle;margin-bottom:1px}.mq-math-mode .mq-matrix td{vertical-align:baseline;border:1px dotted #fff;width:auto;padding:.1em .3em}.mq-math-mode .mq-matrix td.mq-empty{border:1px dotted #000}.mq-math-mode .mq-abs{border-left:1px solid #000;border-right:1px solid #000;margin-left:.1em;margin-right:.1em;padding-left:.2em;padding-right:.2em}.mq-math-mode .mq-lrnplaceholder{margin-left:.05em;margin-right:.05em}.mq-math-mode .mq-parallelogram{margin-top:-.5em;line-height:1em;position:relative;overflow:hidden}.mq-math-mode .mq-parallelogram .mq-parallelogram-inner{font-size:2em;position:relative;top:.23em}.mq-math-mode,.mq-math-mode .mq-editable-field{cursor:text;font-family:Symbola,Times New Roman,serif}.mq-math-mode .mq-longdiv .mq-longdiv-curve-border,.mq-math-mode .mq-editable-field .mq-longdiv .mq-longdiv-curve-border{font-size:1.33em}.mq-overarrow{text-align:center;border-top:1px solid #000;min-width:.5em;margin-top:1px;padding-top:.2em}.mq-overarrow:before{content:\"➤\";text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-.34em}.mq-overarrow.mq-arrow-left:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both{vertical-align:text-bottom}.mq-overarrow.mq-arrow-both.mq-empty{min-height:1.23em}.mq-overarrow.mq-arrow-both.mq-empty:after{top:-.34em}.mq-overarrow.mq-arrow-both:before{filter:FlipH;-ms-filter:\"FlipH\";transform:scaleX(-1)}.mq-overarrow.mq-arrow-both:after{content:\"➤\";visibility:visible;text-align:right;font-size:.5em;line-height:0;display:block;position:relative;top:-2.3em}.mq-math-mode .mq-selection,.mq-editable-field .mq-selection,.mq-math-mode .mq-selection .mq-non-leaf,.mq-editable-field .mq-selection .mq-non-leaf,.mq-math-mode .mq-selection .mq-scaled,.mq-editable-field .mq-selection .mq-scaled{color:highlighttext;border-color:highlighttext;background:highlight!important}.mq-math-mode .mq-selection .mq-matrixed,.mq-editable-field .mq-selection .mq-matrixed{background:#39f!important}.mq-math-mode .mq-selection .mq-matrixed-container,.mq-editable-field .mq-selection .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#3399FF\")!important}.mq-math-mode .mq-selection.mq-blur,.mq-editable-field .mq-selection.mq-blur,.mq-math-mode .mq-selection.mq-blur .mq-non-leaf,.mq-editable-field .mq-selection.mq-blur .mq-non-leaf,.mq-math-mode .mq-selection.mq-blur .mq-scaled,.mq-editable-field .mq-selection.mq-blur .mq-scaled,.mq-math-mode .mq-selection.mq-blur .mq-matrixed,.mq-editable-field .mq-selection.mq-blur .mq-matrixed{color:#000;border-color:#000;background:#d4d4d4!important}.mq-math-mode .mq-selection.mq-blur .mq-matrixed-container,.mq-editable-field .mq-selection.mq-blur .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"#D4D4D4\")!important}.mq-editable-field .mq-textarea,.mq-math-mode .mq-textarea{-webkit-user-select:text;user-select:text;position:relative}.mq-editable-field .mq-textarea>textarea,.mq-math-mode .mq-textarea>textarea{opacity:0;overflow:hidden}.mq-editable-field .mq-textarea *,.mq-math-mode .mq-textarea *,.mq-editable-field .mq-selectable,.mq-math-mode .mq-selectable{-webkit-user-select:text;user-select:text;clip:rect(1em 1em 1em 1em);resize:none;box-sizing:content-box;width:1px;height:1px;position:absolute;transform:scale(0)}.mq-math-mode .mq-matrixed{background:#fff;display:inline-block}.mq-math-mode .mq-matrixed-container{filter:progid:DXImageTransform.Microsoft.Chroma(color=\"white\");margin-top:-.1em}.mq-math-mode .mq-matrix table{border-spacing:2px}button .mq-math-mode .mq-matrix table.mq-rows-2 td,button .mq-math-mode .mq-matrix table.mq-rows-3 td{width:.9em;font-size:.3em}button .mq-math-mode .mq-matrix table.mq-rows-2{margin-bottom:-2px}button .mq-math-mode .mq-matrix table.mq-rows-1{margin-bottom:3px}button .mq-math-mode .mq-matrix table.mq-rows-1 td{width:1.1em;margin-bottom:3px;font-size:.6em}button .mq-math-mode .mq-matrix .matrix-edit-content-row{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-row p{font-size:.7em}button .mq-math-mode .mq-matrix .matrix-edit-content-col{text-align:center;vertical-align:middle;display:inline-block}button .mq-math-mode .mq-matrix .matrix-edit-content-col p{padding:0 .15em;font-size:.7em}button .mq-math-mode .mq-matrix .mq-paren{padding:0;display:inline-block;transform:scale(1.13,1.77)}button .matrix-edit .mq-empty{width:.8em;margin:.1em;padding:.1em;font-size:.4em}\n"]]);
19
- import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, H as p, Ht as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as x, Mt as S, Nt as C, O as w, Ot as ee, P as T, Pt as te, Q as E, R as D, Rt as O, S as k, St as A, T as ne, Tt as re, U as ie, Ut as ae, V as oe, Vt as se, W as j, X as ce, Y as le, Z as ue, a as de, at as fe, b as pe, bt as me, c as he, ct as ge, d as _e, dt as ve, et as ye, f as be, ft as xe, gt as Se, ht as Ce, i as we, it as Te, j as Ee, jt as M, k as De, kt as Oe, l as ke, lt as Ae, m as je, mt as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as Le, q as Re, r as ze, rt as Be, s as Ve, st as He, t as Ue, tt as We, u as Ge, ut as Ke, w as qe, wt as Je, x as Ye, xt as N, y as Xe, z as Ze, zt as Qe } from "../private-tags-WVEkENd1.js";
19
+ import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, Et as l, F as u, Ft as d, G as f, H as p, Ht as m, I as h, It as g, J as _, K as v, L as y, Lt as b, M as x, Mt as S, Nt as C, O as w, Ot as ee, P as T, Pt as te, Q as E, R as D, Rt as O, S as k, St as A, T as ne, Tt as re, U as ie, Ut as ae, V as oe, Vt as se, W as j, X as ce, Y as le, Z as ue, a as de, at as fe, b as pe, bt as me, c as he, ct as ge, d as _e, dt as ve, et as ye, f as be, ft as xe, gt as Se, ht as Ce, i as we, it as Te, j as Ee, jt as M, k as De, kt as Oe, l as ke, lt as Ae, m as je, mt as Me, nt as Ne, o as Pe, ot as Fe, p as Ie, pt as Le, q as Re, r as ze, rt as Be, s as Ve, st as He, t as Ue, tt as We, u as Ge, ut as Ke, w as qe, wt as Je, x as Ye, xt as N, y as Xe, z as Ze, zt as Qe } from "../private-tags-UqCDULLo.js";
20
20
  import { a as $e, c as et, d as tt, f as nt, h as rt, i as it, l as at, m as ot, n as st, o as ct, p as lt, r as ut, s as dt, t as ft, u as pt } from "../dist-CHbLnyuX.js";
21
21
  import * as P from "react";
22
22
  import mt, { Component as ht, createContext as gt, createElement as _t, createRef as vt, forwardRef as yt, memo as bt, useCallback as xt, useContext as St, useDebugValue as Ct, useEffect as wt, useLayoutEffect as Tt, useMemo as Et, useRef as Dt, useState as Ot, version as kt } from "react";
@@ -14896,13 +14896,13 @@ var Hb = N("span")(({ theme: e }) => ({
14896
14896
  "& mjx-frac": { fontSize: "120% !important" }
14897
14897
  }));
14898
14898
  function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a, selected: o }) {
14899
- let [s, c] = Ot(null), l = Dt(null), d = (e) => {
14899
+ let [s, c] = Ot(null), l = Dt(null), u = (e) => {
14900
14900
  l.current && (l.current.contains(e.target) ? l.current.classList.add("selected") : l.current.classList.remove("selected"));
14901
14901
  };
14902
- wt(() => (document.addEventListener("click", d), () => {
14903
- document.removeEventListener("click", d);
14902
+ wt(() => (document.addEventListener("click", u), () => {
14903
+ document.removeEventListener("click", u);
14904
14904
  }), []), wt(() => {
14905
- l.current && typeof u == "function" && u(l.current);
14905
+ l.current && typeof T == "function" && T(l.current);
14906
14906
  }, [
14907
14907
  a?.value,
14908
14908
  r,
@@ -14916,7 +14916,7 @@ function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
14916
14916
  });
14917
14917
  } else !r && s && c(null);
14918
14918
  }, [r, s]);
14919
- let f = i && r ? i.value.value : a.value || "\xA0", p = n ? "\xA0" : f, m = p !== "\xA0", h = i && r, g = o ? `2px solid ${O.primaryDark()}` : h ? `1px solid ${O.defaults.BORDER_DARK}` : `1px solid ${O.defaults.BORDER_LIGHT}`;
14919
+ let d = i && r ? i.value.value : a.value || "\xA0", f = n ? "\xA0" : d, p = f !== "\xA0", m = i && r, h = o ? `2px solid ${O.primaryDark()}` : m ? `1px solid ${O.defaults.BORDER_DARK}` : `1px solid ${O.defaults.BORDER_LIGHT}`;
14920
14920
  return /* @__PURE__ */ I("div", {
14921
14921
  ref: l,
14922
14922
  className: o ? "selected" : void 0,
@@ -14924,8 +14924,8 @@ function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
14924
14924
  display: "inline-flex",
14925
14925
  minWidth: "178px",
14926
14926
  minHeight: "36px",
14927
- background: h ? `${O.defaults.BORDER_LIGHT}` : `${O.defaults.WHITE}`,
14928
- border: g,
14927
+ background: m ? `${O.defaults.BORDER_LIGHT}` : `${O.defaults.WHITE}`,
14928
+ border: h,
14929
14929
  boxSizing: "border-box",
14930
14930
  borderRadius: "3px",
14931
14931
  overflow: "hidden",
@@ -14938,7 +14938,7 @@ function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
14938
14938
  "data-key": e.index,
14939
14939
  contentEditable: !1,
14940
14940
  children: [
14941
- m && /* @__PURE__ */ F(Sy, {
14941
+ p && /* @__PURE__ */ F(Sy, {
14942
14942
  style: {
14943
14943
  position: "absolute",
14944
14944
  top: "6px",
@@ -14947,7 +14947,7 @@ function Ub({ n: e, children: t, isDragging: n, isOver: r, dragItem: i, value: a
14947
14947
  },
14948
14948
  contentEditable: !1
14949
14949
  }),
14950
- /* @__PURE__ */ F("span", { dangerouslySetInnerHTML: { __html: p } }),
14950
+ /* @__PURE__ */ F("span", { dangerouslySetInnerHTML: { __html: f } }),
14951
14951
  t
14952
14952
  ]
14953
14953
  });
@@ -15089,47 +15089,47 @@ qb.propTypes = {
15089
15089
  //#endregion
15090
15090
  //#region ../../lib-react/editable-html-tip-tap/dist/components/respArea/InlineDropdown.js
15091
15091
  var Jb = (e) => {
15092
- let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value: s, error: c } = o, l = s || "<div>&nbsp</div>", d = r(), f = Dt(null), p = Dt(null), m = Dt(!1), h = Dt(null), g = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [_, v] = Ot(!1), [y, b] = Ot({
15092
+ let { editor: t, node: n, getPos: r, options: i, selected: a } = e, { attrs: o } = n, { value: s, error: c } = o, l = s || "<div>&nbsp</div>", u = r(), d = Dt(null), f = Dt(null), p = Dt(!1), m = Dt(null), h = () => t._holdInlineDropdownToolbarIndex != null && String(t._holdInlineDropdownToolbarIndex) === String(n.attrs.index), [g, _] = Ot(!1), [v, y] = Ot({
15093
15093
  top: 0,
15094
15094
  left: 0
15095
- }), x = () => {
15096
- g() || (v(!1), i.onInlineDropdownToolbarClose?.(t));
15097
- }, S = i.respAreaToolbar([n, d], t, x), C = () => {
15098
- let { tr: e } = t.state, n = e.doc.nodeAt(d);
15095
+ }), b = () => {
15096
+ h() || (_(!1), i.onInlineDropdownToolbarClose?.(t));
15097
+ }, x = i.respAreaToolbar([n, u], t, b), S = () => {
15098
+ let { tr: e } = t.state, n = e.doc.nodeAt(u);
15099
15099
  if (!n) return;
15100
15100
  let { selection: r } = e;
15101
- r.from === d && r.to === d + n.nodeSize || (e.setSelection(V.create(e.doc, d)), t.view.dispatch(e));
15102
- }, w = () => {
15103
- m.current || (i.onToolbarCloseRequest ? (m.current = !0, i.onToolbarCloseRequest([n, d], t, () => {
15104
- m.current = !1, delete t._holdInlineDropdownToolbarIndex, x();
15101
+ r.from === u && r.to === u + n.nodeSize || (e.setSelection(V.create(e.doc, u)), t.view.dispatch(e));
15102
+ }, C = () => {
15103
+ p.current || (i.onToolbarCloseRequest ? (p.current = !0, i.onToolbarCloseRequest([n, u], t, () => {
15104
+ p.current = !1, delete t._holdInlineDropdownToolbarIndex, b();
15105
15105
  }, () => {
15106
- m.current = !1, delete t._holdInlineDropdownToolbarIndex, v(!0), setTimeout(C, 0);
15107
- })) : x());
15106
+ p.current = !1, delete t._holdInlineDropdownToolbarIndex, _(!0), setTimeout(S, 0);
15107
+ })) : b());
15108
15108
  };
15109
15109
  wt(() => {
15110
15110
  let { selection: e } = t.state, r = e.from + n.nodeSize === e.to;
15111
- a ? r && v(!0) : _ && w();
15111
+ a ? r && _(!0) : g && C();
15112
15112
  }, [
15113
15113
  t,
15114
15114
  n,
15115
15115
  a
15116
15116
  ]);
15117
- let ee = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
15117
+ let w = (e) => e.clientX > document.documentElement.clientWidth || e.clientY > document.documentElement.clientHeight || e.target === document.documentElement;
15118
15118
  return wt(() => {
15119
- h.current && typeof u == "function" && u(h.current);
15119
+ m.current && typeof T == "function" && T(m.current);
15120
15120
  }, [s]), wt(() => {
15121
15121
  let e = document.body.getBoundingClientRect(), { from: n } = t.state.selection, r = t.view.coordsAtPos(n);
15122
- b({
15122
+ y({
15123
15123
  top: r.top + Math.abs(e.top) + 40,
15124
15124
  left: r.left
15125
15125
  });
15126
15126
  let i = (e) => {
15127
- if (ee(e)) return;
15127
+ if (w(e)) return;
15128
15128
  let n = e.target.closest("[data-toolbar-for]");
15129
- !e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !== p.current?.instanceId) && !t._toolbarOpened && f.current && !f.current.contains(e.target) && !e.target.closest("[data-inline-node]") && w();
15129
+ !e.target.closest("[data-inline-dropdown-toolbar]") && (!n || n.dataset.toolbarFor !== f.current?.instanceId) && !t._toolbarOpened && d.current && !d.current.contains(e.target) && !e.target.closest("[data-inline-node]") && C();
15130
15130
  };
15131
- return _ ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
15132
- }, [_, n]), /* @__PURE__ */ I(Xv, {
15131
+ return g ? document.addEventListener("mousedown", i) : document.removeEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
15132
+ }, [g, n]), /* @__PURE__ */ I(Xv, {
15133
15133
  className: "inline-dropdown",
15134
15134
  "data-selected": a,
15135
15135
  style: {
@@ -15138,7 +15138,7 @@ var Jb = (e) => {
15138
15138
  cursor: "pointer"
15139
15139
  },
15140
15140
  children: [/* @__PURE__ */ I("div", {
15141
- ref: h,
15141
+ ref: m,
15142
15142
  style: {
15143
15143
  display: "inline-flex",
15144
15144
  minWidth: "178px",
@@ -15151,7 +15151,7 @@ var Jb = (e) => {
15151
15151
  position: "relative",
15152
15152
  alignItems: "center"
15153
15153
  },
15154
- onClick: () => v(!0),
15154
+ onClick: () => _(!0),
15155
15155
  children: [/* @__PURE__ */ F("div", {
15156
15156
  style: {
15157
15157
  flex: 1,
@@ -15175,10 +15175,10 @@ var Jb = (e) => {
15175
15175
  right: "5px"
15176
15176
  }
15177
15177
  })]
15178
- }), _ && /* @__PURE__ */ I(mt.Fragment, { children: [jt.createPortal(/* @__PURE__ */ F("div", {
15179
- ref: f,
15180
- children: /* @__PURE__ */ F(S, { editorCallback: (e) => {
15181
- p.current = e;
15178
+ }), g && /* @__PURE__ */ I(mt.Fragment, { children: [jt.createPortal(/* @__PURE__ */ F("div", {
15179
+ ref: d,
15180
+ children: /* @__PURE__ */ F(x, { editorCallback: (e) => {
15181
+ f.current = e;
15182
15182
  } })
15183
15183
  }), t?._tiptapContainerEl || document.body), t._tiptapContainerEl && jt.createPortal(/* @__PURE__ */ F(A_, {
15184
15184
  deletable: !0,
@@ -15191,7 +15191,7 @@ var Jb = (e) => {
15191
15191
  },
15192
15192
  onDelete: () => {
15193
15193
  let { tr: e } = t.state;
15194
- e.delete(d, d + n.nodeSize), j_(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), v(!1), t.commands.focus();
15194
+ e.delete(u, u + n.nodeSize), j_(t, !1), delete t._holdInlineDropdownToolbarIndex, t.view.dispatch(e), _(!1), t.commands.focus();
15195
15195
  },
15196
15196
  showDone: !1
15197
15197
  }), t._tiptapContainerEl)] })]
@@ -21561,7 +21561,12 @@ var ED = (e, t) => {
21561
21561
  };
21562
21562
  }
21563
21563
  componentDidMount() {
21564
- this.input && this.props.autoFocus && setTimeout(() => this.input.focus(), 0);
21564
+ this.input && this.props.autoFocus && (this.focusTimeout = setTimeout(() => {
21565
+ this.focusTimeout = void 0, this.input?.focus();
21566
+ }, 0));
21567
+ }
21568
+ componentWillUnmount() {
21569
+ this.focusTimeout && clearTimeout(this.focusTimeout);
21565
21570
  }
21566
21571
  onClick = (e) => {
21567
21572
  let { noDecimal: t, noLatexHandling: n, onChange: r } = this.props, i = GD(e);
@@ -22097,7 +22102,7 @@ var YD = JD, { commonMqFontStyles: XD, longdivStyles: ZD, supsubStyles: QD } = A
22097
22102
  "data-latex": "",
22098
22103
  "data-raw": e.latex
22099
22104
  },
22100
- T(e.latex, e.wrapper)
22105
+ u(e.latex, e.wrapper)
22101
22106
  ];
22102
22107
  },
22103
22108
  addNodeView() {
@@ -22159,15 +22164,16 @@ var YD = JD, { commonMqFontStyles: XD, longdivStyles: ZD, supsubStyles: QD } = A
22159
22164
  t !== null && cancelAnimationFrame(t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
22160
22165
  };
22161
22166
  }, [r, s]), wt(() => {
22162
- let e = (e) => {
22163
- let n = e?.target, i = (document.querySelectorAll?.("[id^=\"equation-editor-select\"][id*=\"listbox\"], [aria-labelledby=\"equation-editor-label\"][role=\"listbox\"]") || []).length > 0, a = !!(n?.id && n.id.includes("equation-editor-select")) || !!n?.closest?.("[id*=\"equation-editor-select\"]"), o = !!n?.closest?.(`.math-node-${d.current}`);
22164
- if (l.current && !l.current.contains(n) && !n?.closest?.("[data-inline-node]") && !i && !a && !o) {
22167
+ let e = performance.now(), n = (n) => {
22168
+ if (n?.timeStamp < e) return;
22169
+ let i = n?.target, a = (document.querySelectorAll?.("[id^=\"equation-editor-select\"][id*=\"listbox\"], [aria-labelledby=\"equation-editor-label\"][role=\"listbox\"]") || []).length > 0, o = !!(i?.id && i.id.includes("equation-editor-select")) || !!i?.closest?.("[id*=\"equation-editor-select\"]"), s = !!i?.closest?.(`.math-node-${d.current}`);
22170
+ if (l.current && !l.current.contains(i) && !i?.closest?.("[data-inline-node]") && !a && !o && !s) {
22165
22171
  c(!1);
22166
- let e = !!r?.view?.dom?.contains(n);
22172
+ let e = !!r?.view?.dom?.contains(i);
22167
22173
  S(t.attrs.latex, { moveCursorAfterNode: !e });
22168
22174
  }
22169
22175
  };
22170
- return s ? document.addEventListener("click", e) : document.removeEventListener("click", e), () => document.removeEventListener("click", e);
22176
+ return s ? document.addEventListener("click", n) : document.removeEventListener("click", n), () => document.removeEventListener("click", n);
22171
22177
  }, [
22172
22178
  r,
22173
22179
  s,