athif-custom-package 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,56 +1,865 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require("react"),t=require("react-dom"),n=require("@ckeditor/ckeditor5-react"),r=require("ckeditor5");require("ckeditor5/ckeditor5.css"),require("mathlive");let i=require("react/jsx-runtime");var a=[{id:`All`,name:`All`},{id:`Symbol`,name:`Symbol`,ranges:[[8704,8959],[9728,9983],[8592,8703],[9984,10175]]},{id:`Punctuation`,name:`Punctuation`,ranges:[[33,47],[58,64],[91,96],[123,126],[8208,8231],[8240,8286],[11776,11903]]},{id:`Letter`,name:`Letter`,ranges:[[65,90],[97,122],[880,1023],[1024,1279]]},{id:`Mark`,name:`Mark`,ranges:[[768,879],[8400,8447]]},{id:`Number`,name:`Number`,ranges:[[48,57],[8528,8591],[8304,8351]]},{id:`Phonetic`,name:`Phonetic`,ranges:[[592,687],[7424,7551]]},{id:`Other`,name:`Other`,ranges:[[8352,8399],[8448,8527],[9632,9727]]}],o=(()=>{let e=[];return a.slice(1).forEach(t=>{t.ranges.forEach(n=>{for(let r=n[0];r<=n[1];r++)r>=127&&r<=159||e.push({code:r.toString(16).toUpperCase().padStart(4,`0`),char:String.fromCodePoint(r),category:t.id})})}),e})();function s({isOpen:t,onClose:n,onInsert:r,position:s,contained:c=!1}){let[l,u]=(0,e.useState)(``),[d,f]=(0,e.useState)(`All`);(0,e.useEffect)(()=>{t&&(u(``),f(`All`))},[t]);let p=(0,e.useMemo)(()=>{let e=o;if(d!==`All`&&(e=e.filter(e=>e.category===d)),l.trim()){let t=l.trim().toUpperCase();e=e.filter(e=>e.code.includes(t))}return e},[d,l]),m=(0,e.useMemo)(()=>{if(d!==`All`&&!l.trim())return{[d]:p};let e={};return p.forEach(t=>{e[t.category]||(e[t.category]=[]),e[t.category].push(t)}),e},[p,d,l]),h=e=>{e.key===`Escape`&&n()};if((0,e.useEffect)(()=>(t&&window.addEventListener(`keydown`,h),()=>window.removeEventListener(`keydown`,h)),[t]),!t)return null;let g={top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`};if(s){let e=s.x,t=s.y;c||(e-=120,e<10&&(e=10),e+230>window.innerWidth&&(e=window.innerWidth-240),t+200>window.innerHeight&&(t=window.innerHeight-210)),g={top:`${t}px`,left:`${e}px`}}return(0,i.jsx)(`div`,{className:`scm-overlay${c?` scm-overlay--contained`:``}`,onMouseDown:e=>{e.stopPropagation(),n()},children:(0,i.jsxs)(`div`,{className:`scm-modal`,style:g,onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsxs)(`div`,{className:`scm-toolbar`,children:[(0,i.jsx)(`input`,{type:`text`,placeholder:`Code`,value:l,onChange:e=>u(e.target.value),className:`scm-code-input`}),(0,i.jsx)(`select`,{value:d,onChange:e=>f(e.target.value),className:`scm-category-select`,children:a.map(e=>(0,i.jsx)(`option`,{value:e.id,children:e.name},e.id))})]}),(0,i.jsx)(`div`,{className:`scm-body`,children:(0,i.jsxs)(`div`,{className:`scm-grid-container`,children:[Object.entries(m).map(([e,t])=>(0,i.jsx)(`div`,{className:`scm-category-group`,children:(0,i.jsx)(`div`,{className:`scm-char-grid`,children:t.map(e=>(0,i.jsx)(`button`,{className:`scm-char-btn`,onClick:()=>{r(e.char),n()},title:`U+${e.code}`,children:e.char},e.code))})},e)),p.length===0&&(0,i.jsx)(`div`,{className:`scm-no-results`,children:`No characters found.`})]})})]})})}window.__ckMathWidgets=window.__ckMathWidgets||new Map,window.__ckMathWidgetClickHandler=null;function c(e){if(!e)return null;let t=typeof e.composedPath==`function`?e.composedPath():[e];for(let e of t)if(e instanceof HTMLElement&&(e.classList?.contains(`ck-math-widget`)||e.dataset?.mathId||e.classList?.contains(`ck-widget`)&&e.querySelector?.(`.ck-math-widget-inner`)))return e;return e instanceof Element?e.closest?.(`.ck-math-widget, [data-math-id]`):null}function l(e){if(!e)return``;let t=e.getAttribute(`data-latex`);if(t)return t;let n=e.querySelector(`math-field`);return n?n.getValue?n.getValue():n.value||``:``}function u(e){if(!e)return`ltr`;let t=e.getAttribute(`data-dir`);if(t===`rtl`||t===`ltr`)return t;let n=e.querySelector(`math-field`);return(n?.getAttribute(`dir`)||n?.style?.direction)===`rtl`?`rtl`:`ltr`}function d(e,t){if(!e||!t)return!1;try{return e.model.createPositionBefore(t),!0}catch{return!1}}function f(e,t){if(!e||!t)return null;let n=e.model.document.selection.getSelectedElement();if(n?.name===`mathInline`)return n;let r=t.getAttribute(`data-math-id`);if(r){let t=window.__ckMathWidgets.get(r);if(d(e,t))return t}let i=e.editing.view.domConverter.mapDomToView(t);if(i){let t=e.editing.mapper.toModelElement(i);if(t?.name===`mathInline`)return t}let a=l(t);if(!a)return null;let o=e.model.document.getRoot();for(let{item:t}of e.model.createRangeIn(o))if(t.is?.(`element`,`mathInline`)&&t.getAttribute(`latex`)===a)return t;return null}function p(e,t,n,r){if(!e||e._mathWidgetOpening)return;e._mathWidgetOpening=!0,queueMicrotask(()=>{e._mathWidgetOpening=!1});let i=d(e,t)?t:f(e,r),a=i?.getAttribute(`latex`)||n||l(r),o=i?.getAttribute(`dir`)===`rtl`||u(r)===`rtl`?`rtl`:`ltr`;a&&(i&&e.model.change(e=>{e.setSelection(i,`on`)}),(e.mathWidgetClickHandler||window.__ckMathWidgetClickHandler)?.(i,a,o))}function m(e,t){if(!t||t._ckMathClickBound)return;t._ckMathClickBound=!0;let n=n=>{n.button===0&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation?.(),p(e,null,l(t),t))};t.addEventListener(`mousedown`,n,!0),t.addEventListener(`click`,n,!0)}var h=[{label:`√(□)`,items:[{label:`√`,insert:`\\sqrt{#0}`,title:`Square Root`},{label:`√□`,insert:`\\sqrt{#0}`,title:`Root with Placeholder`},{label:`ⁿ√`,insert:`\\sqrt[#?]{#0}`,title:`Nth Root`},{label:`□/□`,insert:`\\frac{#0}{#?}`,title:`Fraction`},{type:`sep`,cols:2},{label:`()`,insert:`\\left(#0\\right)`,title:`Parentheses`},{label:`[]`,insert:`\\left[#0\\right]`,title:`Square Brackets`},{label:`||`,insert:`\\left|#0\\right|`,title:`Absolute Value`},{type:`sep`,cols:2},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`±`,insert:`\\pm`},{type:`sep`,cols:4},{label:`≥`,insert:`\\geq`},{label:`≤`,insert:`\\leq`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`≠`,insert:`\\neq`},{label:`∈`,insert:`\\in`},{label:`≈`,insert:`\\approx`},{label:`∞`,insert:`\\infty`},{type:`sep`,cols:2},{label:`α`,insert:`\\alpha`},{label:`β`,insert:`\\beta`},{label:`π`,insert:`\\pi`},{type:`sep`,cols:1},{label:`↶`,action:`UNDO`,title:`Undo`},{label:`↷`,action:`REDO`,title:`Redo`},{type:`sep`,cols:2},{label:`B`,action:`BOLD`,cls:`template`,title:`Bold`},{label:`〖Ω〗`,title:`Insert Special Character`,action:`SPECIAL_CHARS`},{label:`🅰️`,action:`TEXT_COLOR`,title:`Text Color`},{type:`sep`,cols:1},{label:`T₁`,insert:`#0_{#?}`,title:`Subscript`},{label:`T¹`,insert:`#0^{#?}`,title:`Superscript`},{type:`sep`,cols:1},{type:`dropdown`,label:`Font...`,width:`92px`},{type:`dropdown`,label:`Size`,width:`86px`}]},{label:`±×÷`,items:[{label:`±`,insert:`\\pm`},{label:`∓`,insert:`\\mp`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`\\`,insert:`\\backslash`},{label:`﹨`,insert:`﹨`},{label:`≠`,insert:`\\neq`},{label:`≤`,insert:`\\leq`},{label:`≥`,insert:`\\geq`},{label:`≈`,insert:`\\approx`},{label:`≅`,insert:`\\cong`},{label:`∝`,insert:`\\propto`},{label:`≡`,insert:`\\equiv`},{label:`sim`,insert:`\\sim`},{label:`∞`,insert:`\\infty`},{label:`∑`,insert:`\\sum`},{label:`∏`,insert:`\\prod`},{label:`∫`,insert:`\\int`},{label:`∮`,insert:`\\oint`},{label:`∂`,insert:`\\partial`},{label:`∇`,insert:`\\nabla`},{label:`⊕`,insert:`\\oplus`},{label:`⊗`,insert:`\\otimes`},{label:`⊙`,insert:`\\odot`},{label:`∈`,insert:`\\in`},{label:`∉`,insert:`\\notin`},{label:`⊂`,insert:`\\subset`},{label:`∪`,insert:`\\cup`},{label:`∩`,insert:`\\cap`},{label:`∅`,insert:`\\emptyset`},{label:`√`,insert:`\\sqrt{#0}`},{label:`∛`,insert:`\\sqrt[3]{#0}`},{label:`□±□`,insert:`#? \\pm #?`},{label:`□≠□`,insert:`#? \\neq #?`},{label:`□≈□`,insert:`#? \\approx #?`}]},{label:`□/□`,isTemplate:!0,items:[{label:`a/b`,insert:`\\frac{#0}{#?}`,title:`Fraction`,icon:`fraction-template-image`},{label:`□/□`,insert:`{#0}/{#?}`,title:`Bevelled Fraction`,cls:`green-template black-glyph-template`},{label:`a/b`,insert:`{\\scriptstyle \\frac{#0}{#?}}`,title:`Small Fraction`,icon:`fraction-template-image`,cls:`small-template`},{label:`□/□`,insert:`{\\scriptstyle {#0}/{#?}}`,title:`Small Bevelled Fraction`,cls:`green-template small-template black-placeholder-glyph`},{type:`sep`,cols:4},{label:`√x`,insert:`\\sqrt{#0}`,title:`Square Root`,icon:`sqrt-template-image`},{label:`ⁿ√x`,insert:`\\sqrt[#?]{#0}`,title:`Nth Root`,icon:`nth-root-template-image`},{type:`sep`,cols:2},{label:`xⁿ`,insert:`#0^{#?}`,title:`Superscript`,icon:`superscript-template-image`},{label:`ˡ□`,insert:`{}^{#?}#?`,cls:`template`,directInsert:!0,title:`Left Superscript`,icon:`left-sup-template-image`},{label:`□^□_□`,insert:`#?^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Right Superscript and Subscript`,icon:`right-sup-sub-template-image`},{label:`ˡₗ□`,insert:`{}^{#?}_{#?}#?`,cls:`template`,directInsert:!0,title:`Left Superscript and Subscript`,icon:`left-sup-sub-template-image`},{label:`xₙ`,insert:`#0_{#?}`,title:`Subscript`,icon:`subscript-template-image`},{label:`ₗ□`,insert:`{}_{#?}#?`,cls:`template`,directInsert:!0,title:`Left Subscript`,icon:`left-sub-template-image`},{type:`sep`,cols:3},{label:`□
2
- □`,insert:`\\overset{#?}{#?}`,cls:`template`,directInsert:!0,title:`Overset`,icon:`overset-template-image`},{label:`□
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require("react"),t=require("react-dom"),n=require("@ckeditor/ckeditor5-react"),r=require("ckeditor5");require("ckeditor5/ckeditor5.css"),require("mathlive");let i=require("react/jsx-runtime");var a=[{id:`All`,name:`All`},{id:`Symbol`,name:`Symbol`,ranges:[[8704,8959],[9728,9983],[8592,8703],[9984,10175]]},{id:`Punctuation`,name:`Punctuation`,ranges:[[33,47],[58,64],[91,96],[123,126],[8208,8231],[8240,8286],[11776,11903]]},{id:`Letter`,name:`Letter`,ranges:[[65,90],[97,122],[880,1023],[1024,1279]]},{id:`Mark`,name:`Mark`,ranges:[[768,879],[8400,8447]]},{id:`Number`,name:`Number`,ranges:[[48,57],[8528,8591],[8304,8351]]},{id:`Phonetic`,name:`Phonetic`,ranges:[[592,687],[7424,7551]]},{id:`Other`,name:`Other`,ranges:[[8352,8399],[8448,8527],[9632,9727]]}],o=(()=>{let e=[];return a.slice(1).forEach(t=>{t.ranges.forEach(n=>{for(let r=n[0];r<=n[1];r++)r>=127&&r<=159||e.push({code:r.toString(16).toUpperCase().padStart(4,`0`),char:String.fromCodePoint(r),category:t.id})})}),e})();function s({isOpen:t,onClose:n,onInsert:r,position:s,contained:c=!1}){let[l,u]=(0,e.useState)(``),[d,f]=(0,e.useState)(`All`);(0,e.useEffect)(()=>{t&&(u(``),f(`All`))},[t]);let p=(0,e.useMemo)(()=>{let e=o;if(d!==`All`&&(e=e.filter(e=>e.category===d)),l.trim()){let t=l.trim().toUpperCase();e=e.filter(e=>e.code.includes(t))}return e},[d,l]),m=(0,e.useMemo)(()=>{if(d!==`All`&&!l.trim())return{[d]:p};let e={};return p.forEach(t=>{e[t.category]||(e[t.category]=[]),e[t.category].push(t)}),e},[p,d,l]),h=e=>{e.key===`Escape`&&n()};if((0,e.useEffect)(()=>(t&&window.addEventListener(`keydown`,h),()=>window.removeEventListener(`keydown`,h)),[t]),!t)return null;let g={top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`};if(s){let e=s.x,t=s.y;c||(e-=120,e<10&&(e=10),e+230>window.innerWidth&&(e=window.innerWidth-240),t+200>window.innerHeight&&(t=window.innerHeight-210)),g={top:`${t}px`,left:`${e}px`}}return(0,i.jsx)(`div`,{className:`scm-overlay${c?` scm-overlay--contained`:``}`,onMouseDown:e=>{e.stopPropagation(),n()},children:(0,i.jsxs)(`div`,{className:`scm-modal`,style:g,onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsxs)(`div`,{className:`scm-toolbar`,children:[(0,i.jsx)(`input`,{type:`text`,placeholder:`Code`,value:l,onChange:e=>u(e.target.value),className:`scm-code-input`}),(0,i.jsx)(`select`,{value:d,onChange:e=>f(e.target.value),className:`scm-category-select`,children:a.map(e=>(0,i.jsx)(`option`,{value:e.id,children:e.name},e.id))})]}),(0,i.jsx)(`div`,{className:`scm-body`,children:(0,i.jsxs)(`div`,{className:`scm-grid-container`,children:[Object.entries(m).map(([e,t])=>(0,i.jsx)(`div`,{className:`scm-category-group`,children:(0,i.jsx)(`div`,{className:`scm-char-grid`,children:t.map(e=>(0,i.jsx)(`button`,{className:`scm-char-btn`,onClick:()=>{r(e.char),n()},title:`U+${e.code}`,children:e.char},e.code))})},e)),p.length===0&&(0,i.jsx)(`div`,{className:`scm-no-results`,children:`No characters found.`})]})})]})})}window.__ckMathWidgets=window.__ckMathWidgets||new Map,window.__ckMathWidgetClickHandler=null;var c={preserveMathStyle:!0,insertStyle:{variant:`double-struck`,variantStyle:`up`,fontFamily:`none`,fontSeries:`m`,fontShape:`n`}};function l(e){return`\\htmlStyle{font-family:"Cambria Math","STIX Two Math","Times New Roman",serif;font-weight:400;font-style:normal;}{\\text{${e}}}`}function u(e){if(!e)return null;let t=typeof e.composedPath==`function`?e.composedPath():[e];for(let e of t)if(e instanceof HTMLElement&&(e.classList?.contains(`ck-math-widget`)||e.dataset?.mathId||e.classList?.contains(`ck-widget`)&&e.querySelector?.(`.ck-math-widget-inner`)))return e;return e instanceof Element?e.closest?.(`.ck-math-widget, [data-math-id]`):null}function d(e){if(!e)return``;let t=e.getAttribute(`data-latex`);if(t)return t;let n=e.querySelector(`math-field`);return n?n.getValue?n.getValue():n.value||``:``}function f(e){if(!e)return`ltr`;let t=e.getAttribute(`data-dir`);if(t===`rtl`||t===`ltr`)return t;let n=e.querySelector(`math-field`);return(n?.getAttribute(`dir`)||n?.style?.direction)===`rtl`?`rtl`:`ltr`}function p(e,t){if(!e||!t)return!1;try{return e.model.createPositionBefore(t),!0}catch{return!1}}function m(e,t){if(!e||!t)return null;let n=e.model.document.selection.getSelectedElement();if(n?.name===`mathInline`)return n;let r=t.getAttribute(`data-math-id`);if(r){let t=window.__ckMathWidgets.get(r);if(p(e,t))return t}let i=e.editing.view.domConverter.mapDomToView(t);if(i){let t=e.editing.mapper.toModelElement(i);if(t?.name===`mathInline`)return t}let a=d(t);if(!a)return null;let o=e.model.document.getRoot();for(let{item:t}of e.model.createRangeIn(o))if(t.is?.(`element`,`mathInline`)&&t.getAttribute(`latex`)===a)return t;return null}function h(e,t,n,r){if(!e||e._mathWidgetOpening)return;e._mathWidgetOpening=!0,queueMicrotask(()=>{e._mathWidgetOpening=!1});let i=p(e,t)?t:m(e,r),a=i?.getAttribute(`latex`)||n||d(r),o=i?.getAttribute(`dir`)===`rtl`||f(r)===`rtl`?`rtl`:`ltr`;a&&(i&&e.model.change(e=>{e.setSelection(i,`on`)}),(e.mathWidgetClickHandler||window.__ckMathWidgetClickHandler)?.(i,a,o))}function g(e,t){if(!t||t._ckMathClickBound)return;t._ckMathClickBound=!0;let n=n=>{n.button===0&&(n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation?.(),h(e,null,d(t),t))};t.addEventListener(`mousedown`,n,!0),t.addEventListener(`click`,n,!0)}var ee=`\\begin{bmatrix} #? \\\\ #? \\end{bmatrix}`,_=`\\begin{pmatrix} #? \\\\ #? \\end{pmatrix}`;function v(e,t,n=`\\\\`){return Array.from({length:e},()=>Array.from({length:t},()=>`#?`).join(` & `)).join(` ${n} `)}function y(e,t,n){let r=v(t,n,`\\\\`);return`\\begin{`+e+`} `+r+` \\end{`+e+`}`}var b=[{label:`√(□)`,items:[{label:`√`,insert:`\\sqrt{#0}`,title:`Square Root`},{label:`√□`,insert:`\\sqrt{#0}`,title:`Root with Placeholder`},{label:`ⁿ√`,insert:`{}^{#?}\\!\\sqrt{#0}`,title:`Nth Root`},{label:`□/□`,insert:`\\frac{#0}{#?}`,title:`Fraction`},{type:`sep`,cols:2},{label:`()`,insert:`\\left(#0\\right)`,title:`Parentheses`},{label:`[]`,insert:`\\left[#0\\right]`,title:`Square Brackets`},{label:`||`,insert:`\\left|#0\\right|`,title:`Absolute Value`},{type:`sep`,cols:2},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`±`,insert:`\\pm`},{type:`sep`,cols:4},{label:`≥`,insert:`\\geq`},{label:`≤`,insert:`\\leq`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`≠`,insert:`\\neq`},{label:`∈`,insert:`\\in`},{label:`≈`,insert:`\\approx`},{label:`∞`,insert:`\\infty`},{type:`sep`,cols:2},{label:`α`,insert:`\\alpha`},{label:`β`,insert:`\\beta`},{label:`π`,insert:`\\pi`},{type:`sep`,cols:1},{label:`↶`,action:`UNDO`,title:`Undo`},{label:`↷`,action:`REDO`,title:`Redo`},{type:`sep`,cols:2},{label:`B`,action:`BOLD`,cls:`template`,title:`Bold`},{label:`〖Ω〗`,title:`Insert Special Character`,action:`SPECIAL_CHARS`},{label:`🅰️`,action:`TEXT_COLOR`,title:`Text Color`},{type:`sep`,cols:1},{label:`T₁`,insert:`#0_{#?}`,title:`Subscript`},{label:`T¹`,insert:`#0^{#?}`,title:`Superscript`},{type:`sep`,cols:1},{type:`dropdown`,label:`Font...`,width:`92px`},{type:`dropdown`,label:`Size`,width:`86px`}]},{label:`±×÷`,items:[{label:`±`,insert:`\\pm`},{label:`∓`,insert:`\\mp`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`\\`,insert:`\\backslash`},{label:`﹨`,insert:`﹨`},{label:`≠`,insert:`\\neq`},{label:`≤`,insert:`\\leq`},{label:`≥`,insert:`\\geq`},{label:`≈`,insert:`\\approx`},{label:`≅`,insert:`\\cong`},{label:`∝`,insert:`\\propto`},{label:`≡`,insert:`\\equiv`},{label:`sim`,insert:`\\sim`},{label:`∞`,insert:`\\infty`},{label:`∑`,insert:`\\sum`},{label:`∏`,insert:`\\prod`},{label:`∫`,insert:`\\int`},{label:`∮`,insert:`\\oint`},{label:`∂`,insert:`\\partial`},{label:`∇`,insert:`\\nabla`},{label:`⊕`,insert:`\\oplus`},{label:`⊗`,insert:`\\otimes`},{label:`⊙`,insert:`\\odot`},{label:`∈`,insert:`\\in`},{label:`∉`,insert:`\\notin`},{label:`⊂`,insert:`\\subset`},{label:`∪`,insert:`\\cup`},{label:`∩`,insert:`\\cap`},{label:`∅`,insert:`\\emptyset`},{label:`√`,insert:`\\sqrt{#0}`},{label:`∛`,insert:`\\sqrt[3]{#0}`},{label:`□±□`,insert:`#? \\pm #?`},{label:`□≠□`,insert:`#? \\neq #?`},{label:`□≈□`,insert:`#? \\approx #?`}]},{label:`□/□`,isTemplate:!0,items:[{label:`a/b`,insert:`\\frac{#0}{#?}`,title:`Fraction`,icon:`fraction-template-image`},{label:`□/□`,insert:`\\htmlStyle{display:inline-block;position:relative;top:-0.28em;padding:0 0.06em;min-width:0.54em;line-height:1;text-align:center;}{#0}\\htmlStyle{display:inline-block;position:relative;top:0.02em;font-size:1.3em;line-height:0.9;padding:0;color:#111;}{/}\\htmlStyle{display:inline-block;position:relative;top:0.28em;padding:0 0.06em;min-width:0.54em;line-height:1;text-align:center;}{#?}`,title:`Bevelled Fraction`,cls:`green-template black-glyph-template`,icon:`bevelled-fraction-offset-template-image`},{label:`a/b`,insert:`\\htmlStyle{font-size:0.68em;}{\\frac{#0}{#?}}`,title:`Small Fraction`,icon:`small-fraction-template-image`},{label:`□/□`,insert:`\\htmlStyle{display:inline-block;position:relative;top:-0.18em;padding:0 0.03em;min-width:0.38em;line-height:1;font-size:0.78em;text-align:center;}{#0}\\htmlStyle{display:inline-block;position:relative;top:0.01em;font-size:1.05em;line-height:0.9;padding:0;color:#111;}{/}\\htmlStyle{display:inline-block;position:relative;top:0.18em;padding:0 0.03em;min-width:0.38em;line-height:1;font-size:0.78em;text-align:center;}{#?}`,title:`Small Bevelled Fraction`,cls:`green-template black-placeholder-glyph`,icon:`small-bevelled-fraction-template-image`},{type:`sep`,cols:4},{label:`√x`,insert:`\\sqrt{#0}`,title:`Square Root`,icon:`sqrt-template-image`},{label:`ⁿ√x`,insert:`{}^{#?}\\!\\sqrt{#0}`,title:`Nth Root`,icon:`nth-root-template-image`,focusFirstPlaceholder:!0},{type:`sep`,cols:2},{label:`xⁿ`,insert:`#0^{#?}`,title:`Superscript`,icon:`superscript-template-image`},{label:`ˡ□`,insert:`{}^{#?}#?`,cls:`template`,directInsert:!0,title:`Left Superscript`,icon:`left-sup-template-image`},{label:`□^□_□`,insert:`#?^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Right Superscript and Subscript`,icon:`right-sup-sub-template-image`},{label:`ˡₗ□`,insert:`{}^{#?}_{#?}#?`,cls:`template`,directInsert:!0,title:`Left Superscript and Subscript`,icon:`left-sup-sub-template-image`},{label:`xₙ`,insert:`#0_{#?}`,title:`Subscript`,icon:`subscript-template-image`},{label:`ₗ□`,insert:`{}_{#?}#?`,cls:`template`,directInsert:!0,title:`Left Subscript`,icon:`left-sub-template-image`},{type:`sep`,cols:3},{label:`□
2
+ □`,insert:`\\overset{\\raisebox{0pt}{$#1$}}{\\raisebox{-1pt}{$#2$}}`,cls:`template`,directInsert:!0,title:`Overset`,icon:`overset-template-image`},{label:`□
3
3
 
4
- □`,insert:`\\overset{#?}{\\underset{#?}{#?}}`,cls:`template`,directInsert:!0,title:`Over and Under`,icon:`over-under-template-image`},{label:`□
5
- □`,insert:`\\underset{#?}{#?}`,cls:`template`,directInsert:!0,title:`Underset`,icon:`underset-template-image`},{type:`sep`,cols:2},{label:`□⏟□`,insert:`\\underbrace{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Underbrace`,icon:`underbrace-template-image`},{label:`□⏞□`,insert:`\\overbrace{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Overbrace`,icon:`overbrace-template-image`},{type:`sep`,cols:4},{label:`□
4
+ □`,insert:`\\overset{\\raisebox{0.5pt}{#1}}{\\underset{\\raisebox{-2pt}{#3}}{#2}}`,cls:`template`,directInsert:!0,title:`Over and Under`,icon:`over-under-template-image`},{label:`□
5
+ □`,insert:`\\underset{#1 \\rule{0pt}{9pt}}{#2}`,cls:`template`,directInsert:!0,title:`Underset`,icon:`underset-template-image`},{type:`sep`,cols:2},{label:`□⏟□`,insert:`\\underbrace{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Underbrace`,icon:`underbrace-template-image`},{label:`□⏞□`,insert:`\\overbrace{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Overbrace`,icon:`overbrace-template-image`},{type:`sep`,cols:4},{label:`□
6
6
 
7
- □`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\overset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}}`,cls:`template`,directInsert:!0,title:`Operator With Upper and Lower Limits`,icon:`operator-limits-both-template-image`},{label:`▯
8
- □`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{type:`sep`,cols:3},{label:`hphantom`,insert:`\\hphantom{0}`,cls:`template`,directInsert:!0,title:`Horizontal Phantom Space`,icon:`hphantom-space-template-image`},{label:`negative-space`,insert:`\\!`,cls:`template`,directInsert:!0,title:`Negative Thin Space`,icon:`negative-thin-space-template-image`},{label:`thin-space`,insert:`\\,`,cls:`template`,directInsert:!0,title:`Thin Space`,icon:`thin-space-template-image`}]},{label:`sin/cos`,items:[{label:`sin`,insert:`\\sin`},{label:`cos`,insert:`\\cos`},{label:`tan`,insert:`\\tan`},{label:`cot`,insert:`\\cot`},{label:`sec`,insert:`\\sec`},{label:`csc`,insert:`\\csc`},{label:`sin(x)`,insert:`\\sin\\left(#0\\right)`},{label:`cos(x)`,insert:`\\cos\\left(#0\\right)`},{label:`tan(x)`,insert:`\\tan\\left(#0\\right)`},{label:`sin⁻¹`,insert:`\\sin^{-1}`},{label:`cos⁻¹`,insert:`\\cos^{-1}`},{label:`tan⁻¹`,insert:`\\tan^{-1}`},{label:`sin²x`,insert:`\\sin^{2}\\left(#0\\right)`},{label:`cos²x`,insert:`\\cos^{2}\\left(#0\\right)`},{label:`tan²x`,insert:`\\tan^{2}\\left(#0\\right)`},{label:`sinh`,insert:`\\sinh`},{label:`cosh`,insert:`\\cosh`},{label:`tanh`,insert:`\\tanh`},{label:`log`,insert:`\\log`},{label:`ln`,insert:`\\ln`},{label:`exp`,insert:`\\exp`}]},{label:`→`,items:[{label:`→`,insert:`\\rightarrow`},{label:`←`,insert:`\\leftarrow`},{label:`↔`,insert:`\\leftrightarrow`},{label:`⇒`,insert:`\\Rightarrow`},{label:`⇐`,insert:`\\Leftarrow`},{label:`⇔`,insert:`\\Leftrightarrow`},{label:`↤`,insert:`\\mapsfrom`},{label:`↦`,insert:`\\mapsto`},{label:`|`,action:`ARROW_PICKER`,title:`More Arrows`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool`},{type:`sep`,cols:3},{label:`⋮`,insert:`\\vdots`,title:`Vertical ellipsis`},{label:`⋰`,insert:`⋰`,title:`Up-right diagonal ellipsis`},{label:`…`,insert:`\\ldots`,title:`Horizontal ellipsis`},{label:`⋱`,insert:`\\ddots`,title:`Down-right diagonal ellipsis`},{label:`⋯`,insert:`\\cdots`,title:`Midline ellipsis`},{type:`sep`,cols:3},{label:`-`,insert:`-`,title:`Short dash`},{label:`–`,insert:`–`,title:`Dash`},{label:`—`,insert:`—`,title:`Long dash`},{type:`sep`,cols:3},{label:`A→`,insert:`\\xrightarrow{#0}`,title:`Arrow with label above`,icon:`arrow-label-right-above`},{label:`A←`,insert:`\\xleftarrow{#0}`,title:`Left arrow with label above`,icon:`arrow-label-left-above`},{label:`→A`,insert:`\\xrightarrow[#?]{}`,title:`Arrow with label below`,icon:`arrow-label-right-below`},{label:`←A`,insert:`\\xleftarrow[#?]{}`,title:`Left arrow with label below`,icon:`arrow-label-left-below`},{label:`A→B`,insert:`\\xrightarrow[#?]{#0}`,title:`Arrow with labels above and below`,icon:`arrow-label-right-above-below`},{label:`A←B`,insert:`\\xleftarrow[#?]{#0}`,title:`Left arrow with labels above and below`,icon:`arrow-label-left-above-below`},{label:`|`,action:`ARROW_LABEL_PICKER`,title:`More Labelled Arrows`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool arrow-label-picker-tool`},{type:`sep`,cols:2},{label:`x⇀`,insert:`\\overrightharpoon{#0}`,title:`Vector accent`,icon:`accent-harpoon-right`},{label:`x↔`,insert:`\\overleftrightarrow{#0}`,title:`Left-right arrow accent`,icon:`accent-arrow-both`},{label:`x→`,insert:`\\overrightarrow{#0}`,title:`Arrow accent`,icon:`accent-arrow-right`},{label:`x̄`,insert:`\\overline{#0}`,title:`Bar accent`,icon:`accent-bar`}]},{label:`∫ ∯`,isTemplate:!0,items:[{label:`∫`,insert:`\\int`},{label:`∬`,insert:`\\iint`},{label:`∭`,insert:`\\iiint`},{label:`∮`,insert:`\\oint`},{label:`∯`,insert:`\\oiint`},{label:`∰`,insert:`\\oiiint`},{label:`∫dx`,insert:`\\int #0 \\, d#?`,icon:`integral-with-differential`},{label:`∫ₐᵇ`,insert:`\\int_{#?}^{#?} #0 \\, d#?`,icon:`integral-with-limits-differential`},{label:`∫∫dA`,insert:`\\iint_{#?} #0 \\, dA`,title:`Double Integral with Area Element`,icon:`double-integral-area-template-image`},{label:`∮C`,insert:`\\oint_{#?} #0 \\, d#?`},{label:`∫∫∫dV`,insert:`\\iiint_{#?} #0 \\, dV`},{label:`∫_C`,insert:`\\int_{C} #0 \\, d#?`},{label:`∮_C`,insert:`\\oint_{C} #0 \\, d#?`},{label:`∫∫_D`,insert:`\\iint_{D} #0 \\, dA`},{label:`F(b)-F(a)`,insert:`\\left[#0\\right]_{#?}^{#?}`,title:`Evaluated Expression`,icon:`evaluated-expression-template-image`},{label:`u-sub`,insert:`\\int #0 \\, du`}]},{label:`d/dx`,isTemplate:!0,items:[{label:`d/dx`,insert:`\\frac{d}{dx}`},{label:`dy/dx`,insert:`\\frac{dy}{dx}`},{label:`df/dx`,insert:`\\frac{df}{dx}`},{label:`d/dt`,insert:`\\frac{d}{dt}`},{label:`dy/dt`,insert:`\\frac{dy}{dt}`},{label:`d²y/dx²`,insert:`\\frac{d^{2}y}{dx^{2}}`},{label:`d²y/dt²`,insert:`\\frac{d^{2}y}{dt^{2}}`},{label:`dⁿy/dxⁿ`,insert:`\\frac{d^{#?}#0}{dx^{#?}}`},{label:`∂/∂x`,insert:`\\frac{\\partial}{\\partial x}`},{label:`∂f/∂x`,insert:`\\frac{\\partial #0}{\\partial x}`},{label:`∂²f/∂x²`,insert:`\\frac{\\partial^{2} #0}{\\partial x^{2}}`},{label:`∂²f/∂y²`,insert:`\\frac{\\partial^{2} #0}{\\partial y^{2}}`},{label:`∂²f/∂x∂y`,insert:`\\frac{\\partial^{2} #0}{\\partial x \\partial y}`},{label:`f'(x)`,insert:`#0^{\\prime}(#?)`},{label:`f''(x)`,insert:`#0^{\\prime\\prime}(#?)`},{label:`f'''(x)`,insert:`#0^{\\prime\\prime\\prime}(#?)`},{label:`y'`,insert:`y^{\\prime}`},{label:`y''`,insert:`y^{\\prime\\prime}`},{label:`ẋ`,insert:`\\dot{#0}`},{label:`ẍ`,insert:`\\ddot{#0}`},{label:`∇f`,insert:`\\nabla #0`},{label:`∇²f`,insert:`\\nabla^{2} #0`}]},{label:`log/ln`,isTemplate:!0,items:[{label:`log`,insert:`\\log`},{label:`ln`,insert:`\\ln`},{label:`log₁₀`,insert:`\\log_{10}`},{label:`log₂`,insert:`\\log_{2}`},{label:`logₐ`,insert:`\\log_{#?}`},{label:`logₐ(x)`,insert:`\\log_{#?}\\left(#0\\right)`},{label:`log₁₀(x)`,insert:`\\log_{10}\\left(#0\\right)`},{label:`ln(x)`,insert:`\\ln\\left(#0\\right)`},{label:`log|x|`,insert:`\\log\\left|#0\\right|`},{label:`eˣ`,insert:`e^{#0}`,title:`e to the Power`,icon:`exp-e-template-image`},{label:`eⁱˣ`,insert:`e^{i #0}`},{label:`10ˣ`,insert:`10^{#0}`},{label:`2ˣ`,insert:`2^{#0}`},{label:`aˣ`,insert:`#?^{#0}`,title:`Base to the Power`,icon:`exp-generic-template-image`},{label:`log(ab)`,insert:`\\log\\left(#0 \\cdot #?\\right)`},{label:`log(a/b)`,insert:`\\log\\left(\\frac{#0}{#?}\\right)`},{label:`log(aⁿ)`,insert:`\\log\\left(#0^{#?}\\right)`}]},{label:`π,e`,items:[{label:`e`,insert:`e`},{label:`i`,insert:`i`},{label:`π`,insert:`\\pi`},{label:`ℝ`,insert:`\\mathbb{R}`},{label:`ℤ`,insert:`\\mathbb{Z}`},{label:`ℕ`,insert:`\\mathbb{N}`},{label:`ℚ`,insert:`\\mathbb{Q}`},{label:`ℂ`,insert:`\\mathbb{C}`},{label:`∅`,insert:`\\emptyset`},{label:`ℵ₀`,insert:`\\aleph_0`},{label:`ξ`,insert:`\\xi`},{label:`ρ`,insert:`\\rho`},{label:`σ`,insert:`\\sigma`},{label:`τ`,insert:`\\tau`},{label:`υ`,insert:`\\upsilon`},{label:`φ`,insert:`\\varphi`},{label:`χ`,insert:`\\chi`},{label:`ψ`,insert:`\\psi`},{label:`ω`,insert:`\\omega`},{label:`Γ`,insert:`\\Gamma`},{label:`Δ`,insert:`\\Delta`},{label:`Θ`,insert:`\\Theta`},{label:`Λ`,insert:`\\Lambda`},{label:`Ξ`,insert:`\\Xi`},{label:`Σ`,insert:`\\Sigma`},{label:`Φ`,insert:`\\Phi`},{label:`Ψ`,insert:`\\Psi`},{label:`Ω`,insert:`\\Omega`},{label:`θᵢ`,insert:`\\theta_{#?}`},{label:`λₙ`,insert:`\\lambda_{#?}`},{label:`μₓ`,insert:`\\mu_{#?}`},{label:`σ²`,insert:`\\sigma^{2}`},{label:`Δx`,insert:`\\Delta #?`}]},{label:`∈∪∩`,items:[{label:`Ω`,title:`Insert Special Character`,action:`SPECIAL_CHARS`},{label:`⊆`,insert:`\\subseteq`},{label:`⊇`,insert:`\\supseteq`},{label:`﹨`,insert:`﹨`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`∅`,insert:`\\emptyset`},{label:`□⊂□`,insert:`#? \\subset #?`},{label:`□⊆□`,insert:`#? \\subseteq #?`},{label:`□∈□`,insert:`#? \\in #?`},{label:`□∉□`,insert:`#? \\notin #?`},{label:`□∪□`,insert:`#? \\cup #?`},{label:`□∩□`,insert:`#? \\cap #?`}]},{label:`∀∃`,items:[{label:`∀`,insert:`\\forall`},{label:`∃`,insert:`\\exists`},{label:`¬`,insert:`\\neg`},{label:`∧`,insert:`\\land`},{label:`∨`,insert:`\\lor`},{label:`□⇒□`,insert:`#? \\Rightarrow #?`},{label:`□⇔□`,insert:`#? \\Leftrightarrow #?`},{label:`□∧□`,insert:`#? \\land #?`},{label:`□∨□`,insert:`#? \\lor #?`},{label:`¬□`,insert:`\\neg #?`}]},{label:(0,i.jsx)(i.Fragment,{children:`⎡□ □⎤`}),isMatrix:!0,items:[{label:`□`,insert:`matrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-grid-template-image`},{label:`[]`,insert:`bmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-brackets-template-image`},{label:`||`,insert:`vmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-bars-template-image`},{label:`()`,insert:`pmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-parens-template-image`},{type:`sep`,cols:2},{label:`□ \\ □ \\ □`,insert:`\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ □ □`,insert:`\\begin{matrix} #? & #? & #? \\end{matrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ \\ □`,insert:`\\begin{bmatrix} #? \\\\ #? \\end{bmatrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ & □`,insert:`\\begin{bmatrix} #? & #? \\end{bmatrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{type:`sep`,cols:2},{label:`□ \\ □`,insert:`\\begin{pmatrix} #? \\\\ #? \\end{pmatrix}`,cls:`template matrix-roomy-template matrix-extra-tall-template`,directInsert:!0},{label:`□ & □`,insert:`\\begin{pmatrix} #? & #? \\end{pmatrix}`,cls:`template matrix-roomy-template matrix-extra-tall-template`,directInsert:!0},{type:`sep`,cols:2},{label:`cases`,insert:`\\begin{cases} #? \\\\ #? \\end{cases}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`cases-template-image`,title:`Cases`},{label:`rcases`,insert:`\\begin{rcases} #? \\\\ #? \\end{rcases}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`rcases-template-image`,title:`Right Cases`},{label:`cases-2x2`,insert:`\\begin{cases} #? & #? \\\\ #? & #? \\end{cases}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`cases-two-by-two-template-image`,title:`Cases 2x2`},{label:`aligned`,insert:`\\begin{aligned} #? &= #? \\\\ #? &= #? \\end{aligned}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`aligned-equals-template-image`,title:`Aligned Equations`},{type:`sep`,cols:2},{label:`⋮`,insert:`\\vdots`,title:`Vertical ellipsis`,icon:`vertical-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋯`,insert:`\\cdots`,title:`Midline ellipsis`,icon:`midline-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋰`,insert:`⋰`,title:`Up-right diagonal ellipsis`,icon:`upright-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋱`,insert:`\\ddots`,title:`Down-right diagonal ellipsis`,icon:`downright-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{type:`sep`,cols:2},{label:`sum-array`,insert:`\\frac{\\begin{array}{r}#?\\\\+\\,#?\\end{array}}{\\quad#?}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`sum-array-template-image`,title:`Column Addition`},{label:`division`,insert:`\\overset{#?}{\\overline{#?\\big)#?}}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`division-layout-template-image`,title:`Division Layout`},_(`arithmeticLayoutExtras`,`More Arithmetic Layouts`)]}],g={operatorExtras:[{label:`\\`,insert:`\\backslash`,title:`Slash`,icon:`slash-operator-template-image`},{label:`﹨`,insert:`﹨`,title:`Reverse Solidus`},{label:`∓`,insert:`\\mp`,title:`Minus or Plus`,icon:`minus-plus-operator-template-image`}],primeExtras:[{label:`‴`,insert:`'''`,cls:`prime-symbol-tool`},{label:`⁗`,insert:`''''`,cls:`prime-symbol-tool`},{label:`‵`,insert:`‵`,cls:`prime-symbol-tool`,title:`Reversed Prime`}],notEqualExtras:[{label:`≠`,insert:`\\neq`,title:`Not Equal`,icon:`not-equal-template-image`},{label:`≉`,insert:`\\not\\approx`,title:`Not Approximately Equal`,icon:`not-approx-equal-template-image`},{label:`≁`,insert:`\\nsim`,title:`Not Similar`,icon:`not-similar-template-image`},{label:`≢`,insert:`\\not\\equiv`,title:`Not Identical`,icon:`not-identical-template-image`}],comparisonExtras:[{label:`≫`,insert:`\\gg`,title:`Much Greater Than`,icon:`much-greater-than-template-image`},{label:`≪`,insert:`\\ll`,title:`Much Less Than`,icon:`much-less-than-template-image`},{label:`⪇`,insert:`\\lneqq`,title:`Less Than But Not Equal`},{label:`≻`,insert:`\\succ`,title:`Succeeds`,icon:`succeeds-template-image`},{label:`⪈`,insert:`\\gneqq`,title:`Greater Than But Not Equal`,icon:`greater-than-not-equal-template-image`},{label:`∝`,insert:`\\propto`,title:`Proportional To`,icon:`proportional-to-template-image`},{label:`⊲`,insert:`\\lhd`,title:`Normal Subgroup`,icon:`normal-subgroup-template-image`},{label:`≺`,insert:`\\prec`,title:`Precedes`,icon:`precedes-template-image`},{label:`▷`,insert:`\\rhd`,title:`Contains Normal Subgroup`,icon:`contains-normal-subgroup-template-image`}],setExtras:[{label:`∉`,insert:`\\notin`,title:`Not Element Of`,icon:`not-element-of-template-image`},{label:`∌`,insert:`\\not\\ni`,title:`Not Contains Member`,icon:`not-contains-member-template-image`},{label:`⊆`,insert:`\\subseteq`,title:`Subset Equal`,icon:`subset-equal-template-image`},{label:`⊇`,insert:`\\supseteq`,title:`Superset Equal`,icon:`superset-equal-template-image`},{label:`⊏`,insert:`\\sqsubset`,title:`Square Subset`,icon:`square-subset-template-image`},{label:`⊐`,insert:`\\sqsupset`,title:`Square Superset`,icon:`square-superset-template-image`},{label:`⊑`,insert:`\\sqsubseteq`,title:`Square Subset Equal`,icon:`square-subset-equal-template-image`},{label:`⊒`,insert:`\\sqsupseteq`,title:`Square Superset Equal`,icon:`square-superset-equal-template-image`},{label:`⊓`,insert:`\\sqcap`,title:`Square Cap`,icon:`square-cap-template-image`},{label:`⊔`,insert:`\\sqcup`,title:`Square Cup`,icon:`square-cup-template-image`}],logicExtras:[{label:`∴`,insert:`\\therefore`,title:`Therefore`,icon:`therefore-template-image`},{label:`∵`,insert:`\\because`,title:`Because`,icon:`because-template-image`}],geometryExtras:[{label:`∦`,insert:`\\nparallel`,title:`Not Parallel`,icon:`not-parallel-template-image`},{label:`∡`,insert:`\\measuredangle`,title:`Measured Angle`,icon:`measured-angle-template-image`},{label:`∢`,insert:`\\sphericalangle`,title:`Spherical Angle`,icon:`spherical-angle-template-image`},{label:`⋄`,insert:`\\diamond`,title:`Diamond`,icon:`diamond-template-image`}],shapeExtras:[{label:`▭`,insert:`▭`,title:`Rectangle`,icon:`rectangle-template-image`},{label:`▱`,insert:`\\parallelogram`,title:`Parallelogram`,icon:`parallelogram-template-image`}],circledExtras:[{label:`⊖`,insert:`\\ominus`,title:`Circled Minus`,icon:`circled-minus-template-image`},{label:`⊛`,insert:`\\circledast`,title:`Circled Asterisk`,icon:`circled-asterisk-template-image`},{label:`⊘`,insert:`⨸`,title:`Circled Divide`,icon:`circled-divide-template-image`},{label:`•`,insert:`^{\\bullet}`,title:`Raised Bullet`,icon:`raised-bullet-template-image`}],tripleIntegralExtras:[{label:`∭`,insert:`\\iiint`,title:`Triple Integral`,icon:`triple-integral-template-image`},{label:`∰`,insert:`\\oiiint`,title:`Triple Contour Integral`,icon:`triple-contour-integral-template-image`}],trigFunctionExtras:[{label:`sin⁻¹(□)`,insert:`\\sin^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`csc(□)`,insert:`\\csc\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos⁻¹(□)`,insert:`\\cos^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`sec(□)`,insert:`\\sec\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan⁻¹(□)`,insert:`\\tan^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cot(□)`,insert:`\\cot\\left(#0\\right)`,cls:`green-placeholder-glyph`}],bracketDelimiterExtras:[{label:`⌊□⌋`,insert:`\\left\\lfloor #0 \\right\\rfloor`,cls:`green-placeholder-glyph`},{label:`⌈□⌉`,insert:`\\left\\lceil #0 \\right\\rceil`,cls:`green-placeholder-glyph`},{label:`⟨□|□⟩`,insert:`\\left\\langle #0 \\middle| #? \\right\\rangle`,cls:`green-placeholder-glyph`}],enclosureFrameExtras:[{label:`¯
9
- ▯|`,insert:`\\overline{\\left.#?\\right|}`,cls:`template`,directInsert:!0,title:`Overline with Right Bar`,icon:`overline-right-bar-template-image`},{label:`▢
10
- ▯`,insert:`\\enclose{roundedbox}{#?}`,cls:`template`,directInsert:!0,title:`Rounded Boxed`,icon:`boxed-rounded-template-image`}],strikeDecorationExtras:[{label:`│
11
- ▯`,insert:`\\enclose{verticalstrike}{#?}`,cls:`template`,directInsert:!0,title:`Vertical Strike`,icon:`vertical-strike-template-image`},{label:`)
12
- ¯`,insert:`\\overline{\\left)#?\\right.}`,cls:`template`,directInsert:!0,title:`Overline with Curved Left Boundary`,icon:`overline-left-curve-template-image`},{label:`?
13
- ?`,insert:`\\enclose{verticalstrike}{\\htmlStyle{text-decoration:line-through;text-decoration-skip-ink:none;}{#0}}`,cls:`template`,directInsert:!0,title:`Vertical and Horizontal Strike`,icon:`crosshair-strike-template-image`}],arithmeticLayoutExtras:[{label:`diff-array`,insert:`\\frac{\\begin{array}{r}#?\\\\-\\,#?\\end{array}}{\\quad#?}`,directInsert:!0,icon:`difference-array-template-image`,title:`Column Subtraction`},{label:`stack-line`,insert:`\\frac{\\begin{array}{c}#?\\\\#?\\end{array}}{#?}`,cls:`template`,directInsert:!0,icon:`stack-line-template-image`,title:`Stacked Line Layout`},{label:`product-array`,insert:`\\frac{\\begin{array}{r}#?\\\\\\times\\,#?\\end{array}}{\\quad#?}`,cls:`template`,directInsert:!0,icon:`product-array-template-image`,title:`Column Multiplication`},{label:`mixed-fraction`,insert:`#?\\frac{#?}{#?}`,cls:`template`,directInsert:!0,icon:`mixed-fraction-template-image`,title:`Mixed Fraction`},{label:`array-cc`,insert:`\\left.\\begin{array}{c}#?\\\\#?\\end{array}\\right|\\frac{#?}{#?}`,cls:`template`,directInsert:!0,icon:`array-cc-template-image`,title:`Split Column With Fraction`},{label:`division-remainder`,insert:`\\begin{array}{r} \\overset{#?}{\\overline{#?\\big)#?}} \\\\ #? \\end{array}`,cls:`template`,directInsert:!0,icon:`division-remainder-template-image`,title:`Division With Remainder`}]};function _(e,t=`More Symbols`){return{label:`|`,action:`RELATION_MORE_PICKER`,picker:e,title:t,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool relation-more-picker-tool`}}var v=[{label:`cancel`,insert:`\\cancel{#0}`,title:`Negate / Cross Out`,icon:`negate-template-image`},{type:`sep`,cols:1},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`±`,insert:`\\pm`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`*`,insert:`\\ast`},{label:`·`,insert:`\\cdot`},{label:`/`,insert:`/`},{label:`∘`,insert:`∘`},_(`operatorExtras`,`More Operators`),{type:`sep`,cols:5},{label:`π`,insert:`\\pi`},{label:`∞`,insert:`\\infty`},{label:`∅`,insert:`\\emptyset`},{label:`∂`,insert:`\\partial`},{label:`Δ`,insert:`\\Delta`},{label:`∇`,insert:`\\nabla`},{label:`°`,insert:`\\degree`},{label:`′`,insert:`'`,cls:`prime-symbol-tool`},{label:`″`,insert:`''`,cls:`prime-symbol-tool`},_(`primeExtras`,`More Prime Symbols`),{type:`sep`,cols:3},{label:`~`,insert:`\\sim`},{label:`≃`,insert:`\\simeq`},{label:`≡`,insert:`\\equiv`},{label:`≈`,insert:`\\approx`},{label:`≅`,insert:`\\cong`},_(`notEqualExtras`,`More Not Equal Relations`),{type:`sep`,cols:3},{label:`>`,insert:`>`},{label:`≥`,insert:`\\geq`},{label:`⩾`,insert:`\\geqslant`,title:`Greater Than or Slanted Equal To`},{label:`<`,insert:`<`},{label:`≤`,insert:`\\leq`},{label:`⩽`,insert:`\\leqslant`,title:`Less Than or Slanted Equal To`},_(`comparisonExtras`,`More Comparison Symbols`),{type:`sep`,cols:3},{label:`∈`,insert:`\\in`},{label:`∪`,insert:`\\cup`},{label:`⊂`,insert:`\\subset`},{label:`∋`,insert:`\\ni`},{label:`∩`,insert:`\\cap`},{label:`⊃`,insert:`\\supset`},_(`setExtras`,`More Set Symbols`),{type:`sep`,cols:3},{label:`∧`,insert:`\\land`},{label:`¬`,insert:`\\neg`},{label:`∃`,insert:`\\exists`},{label:`∨`,insert:`\\lor`},{label:`∀`,insert:`\\forall`},{label:`∄`,insert:`\\nexists`},_(`logicExtras`,`More Logic Symbols`),{type:`sep`,cols:2},{label:`∠`,insert:`\\angle`},{label:`∥`,insert:`\\parallel`},{label:`⊥`,insert:`\\perp`},_(`geometryExtras`,`More Geometry Symbols`),{type:`sep`,cols:3},{label:`□`,insert:`\\square`},{label:`△`,insert:`\\triangle`},{label:`○`,insert:`\\bigcirc`},_(`shapeExtras`,`More Shape Symbols`),{type:`sep`,cols:3},{label:`⊕`,insert:`\\oplus`},{label:`⊗`,insert:`\\otimes`},{label:`⊙`,insert:`\\odot`},_(`circledExtras`,`More Circled Operators`)],y=[{label:`↗`,insert:`\\nearrow`,title:`North East Arrow`},{label:`↘`,insert:`\\searrow`,title:`South East Arrow`},{label:`↖`,insert:`\\nwarrow`,title:`North West Arrow`},{label:`↙`,insert:`\\swarrow`,title:`South West Arrow`},{label:`⤡`,insert:`⤡`,title:`North East and South West Arrow`},{label:`⤢`,insert:`⤢`,title:`North West and South East Arrow`},{label:`↩`,insert:`\\hookleftarrow`,title:`Hook Left Arrow`},{label:`↪`,insert:`\\hookrightarrow`,title:`Hook Right Arrow`},{label:`↼`,insert:`\\leftharpoonup`,title:`Left Harpoon Up`},{label:`⇀`,insert:`\\rightharpoonup`,title:`Right Harpoon Up`},{label:`↑`,insert:`\\uparrow`,title:`Up Arrow`},{label:`↓`,insert:`\\downarrow`,title:`Down Arrow`},{label:`⇑`,insert:`\\Uparrow`,title:`Double Up Arrow`},{label:`⇓`,insert:`\\Downarrow`,title:`Double Down Arrow`},{label:`⥪`,insert:`⥪`,title:`Leftwards Arrow with Hook`},{label:`⥭`,insert:`⥭`,title:`Rightwards Arrow with Hook`},{label:`⇋`,insert:`\\leftrightharpoons`,title:`Reverse Equilibrium Harpoons`},{label:`⇌`,insert:`\\rightleftharpoons`,title:`Equilibrium Harpoons`},{label:`↽`,insert:`\\leftharpoondown`,title:`Left Harpoon Down`},{label:`⇁`,insert:`\\rightharpoondown`,title:`Right Harpoon Down`},{label:`⇆`,insert:`⇆`,title:`Leftwards Arrow over Rightwards Arrow`},{label:`⇄`,insert:`\\rightleftarrows`,title:`Rightwards Arrow over Leftwards Arrow`},{label:`⇅`,insert:`⇅`,title:`Upwards Arrow Left of Downwards Arrow`},{label:`⇵`,insert:`⇵`,title:`Downwards Arrow Left of Upwards Arrow`},{label:`⥮`,insert:`⥮`,title:`Upwards Harpoon with Barb Left beside Downwards Harpoon with Barb Right`},{label:`⥯`,insert:`⥯`,title:`Downwards Harpoon with Barb Left beside Upwards Harpoon with Barb Right`},{label:`⇄`,insert:`\\rightleftarrows`,title:`Rightwards Arrow over Short Leftwards Arrow`,preview:`rightleft-short-left`},{label:`→
14
- ←`,insert:`\\overset{\\to}{\\longleftarrow}`,title:`Short Rightwards Arrow over Leftwards Arrow`,preview:`right-short-over-left-long`},{label:`↕`,insert:`\\updownarrow`,title:`Up Down Arrow`},{label:`⇕`,insert:`\\Updownarrow`,title:`Double Up Down Arrow`},{label:`↵`,insert:`↵`,title:`Downwards Arrow with Corner Leftwards`}],b=[{insert:`\\xleftrightarrow{#0}`,title:`Right Left Arrows with Overscript`,icon:`right-left-arrows-over`},{insert:`\\xleftrightarrow[#0]{}`,title:`Right Left Arrows with Underscript`,icon:`right-left-arrows-under`},{insert:`\\xleftrightarrow[#?]{#0}`,title:`Right Left Arrows with Under and Overscript`,icon:`right-left-arrows-over-under`},{insert:`\\xleftrightarrows{#0}`,title:`Left Arrow over Right Arrow with Overscript`,icon:`left-right-arrows-over`},{insert:`\\xleftrightarrows[#0]{}`,title:`Left Arrow over Right Arrow with Underscript`,icon:`left-right-arrows-under`},{insert:`\\xleftrightarrows[#?]{#0}`,title:`Left Arrow over Right Arrow with Under and Overscript`,icon:`left-right-arrows-over-under`},{insert:`\\xleftright arrows{#0}`,title:`Right Arrow over Left Arrow with Overscript`,icon:`right-left-stacked-arrows-over`},{insert:`\\xleftrightarrows[#0]{}`,title:`Right Arrow over Left Arrow with Underscript`,icon:`right-left-stacked-arrows-under`},{insert:`\\xleftrightarrows[#?]{#0}`,title:`Right Arrow over Left Arrow with Under and Overscript`,icon:`right-left-stacked-arrows-over-under`},{insert:`\\xleftrightharpoons{#0}`,title:`Left Harpoon over Right Harpoon with Overscript`,icon:`left-right-harpoons-over`},{insert:`\\xleftrightharpoons[#0]{}`,title:`Left Harpoon over Right Harpoon with Underscript`,icon:`left-right-harpoons-under`},{insert:`\\xleftrightharpoons[#?]{#0}`,title:`Left Harpoon over Right Harpoon with Under and Overscript`,icon:`left-right-harpoons-over-under`},{insert:`\\xrightleftharpoons{#0}`,title:`Right Harpoon over Left Harpoon with Overscript`,icon:`right-left-harpoons-over`},{insert:`\\xrightleftharpoons[#0]{}`,title:`Right Harpoon over Left Harpoon with Underscript`,icon:`right-left-harpoons-under`},{insert:`\\xrightleftharpoons[#?]{#0}`,title:`Right Harpoon over Left Harpoon with Under and Overscript`,icon:`right-left-harpoons-over-under`},{insert:`\\overset{#0}{\\rightleftarrows}`,title:`Rightwards Arrow over Short Leftwards Arrow with Overscript`,icon:`long-right-short-left-over`},{insert:`\\underset{#0}{\\rightleftarrows}`,title:`Rightwards Arrow over Short Leftwards Arrow with Underscript`,icon:`long-right-short-left-under`},{insert:`\\overset{#0}{\\underset{#?}{\\rightleftarrows}}`,title:`Rightwards Arrow over Short Leftwards Arrow with Under and Overscript`,icon:`long-right-short-left-over-under`},{insert:`\\overset{#0}{\\rightleftarrows}`,title:`Short Rightwards Arrow over Leftwards Arrow with Overscript`,icon:`short-right-long-left-over`},{insert:`\\underset{#0}{\\rightleftarrows}`,title:`Short Rightwards Arrow over Leftwards Arrow with Underscript`,icon:`short-right-long-left-under`},{insert:`\\overset{#0}{\\underset{#?}{\\rightleftarrows}}`,title:`Short Rightwards Arrow over Leftwards Arrow with Under and Overscript`,icon:`short-right-long-left-over-under`}],x=[{label:`Α`,insert:`\\mathit{Α}`,title:`Italic Alpha`},{label:`Β`,insert:`\\mathit{Β}`,title:`Italic Beta`},{label:`Γ`,insert:`\\varGamma`,title:`Italic Gamma`},{label:`Δ`,insert:`\\varDelta`,title:`Italic Delta`},{label:`Ε`,insert:`\\mathit{Ε}`,title:`Italic Epsilon`},{label:`Ζ`,insert:`\\mathit{Ζ}`,title:`Italic Zeta`},{label:`Η`,insert:`\\mathit{Η}`,title:`Italic Eta`},{label:`Θ`,insert:`\\varTheta`,title:`Italic Theta`},{label:`Ι`,insert:`\\mathit{Ι}`,title:`Italic Iota`},{label:`Κ`,insert:`\\mathit{Κ}`,title:`Italic Kappa`},{label:`Λ`,insert:`\\varLambda`,title:`Italic Lambda`},{label:`Μ`,insert:`\\mathit{Μ}`,title:`Italic Mu`},{label:`Ν`,insert:`\\mathit{Ν}`,title:`Italic Nu`},{label:`Ξ`,insert:`\\varXi`,title:`Italic Xi`},{label:`Ο`,insert:`\\mathit{Ο}`,title:`Italic Omicron`},{label:`Π`,insert:`\\varPi`,title:`Italic Pi`},{label:`Ρ`,insert:`\\mathit{Ρ}`,title:`Italic Rho`},{label:`Σ`,insert:`\\varSigma`,title:`Italic Sigma`},{label:`Τ`,insert:`\\mathit{Τ}`,title:`Italic Tau`},{label:`Υ`,insert:`\\varUpsilon`,title:`Italic Upsilon`},{label:`Φ`,insert:`\\varPhi`,title:`Italic Phi`},{label:`Χ`,insert:`\\mathit{Χ}`,title:`Italic Chi`},{label:`Ψ`,insert:`\\varPsi`,title:`Italic Psi`},{label:`Ω`,insert:`\\varOmega`,title:`Italic Omega`}],S=[[`𝔸`,`A`],[`𝔹`,`B`],[`ℂ`,`C`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`ℍ`,`H`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`ℕ`,`N`],[`𝕆`,`O`],[`ℙ`,`P`],[`ℚ`,`Q`],[`ℝ`,`R`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`ℤ`,`Z`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`]].map(([e,t])=>({label:e,insert:`\\mathbb{${t}}`,title:`Blackboard Bold ${t}`})),C=[[`𝔄`,`\\mathfrak{A}`,`Fraktur A`],[`𝔅`,`\\mathfrak{B}`,`Fraktur B`],[`ℭ`,`\\mathfrak{C}`,`Fraktur C`],[`𝔇`,`\\mathfrak{D}`,`Fraktur D`],[`𝔈`,`\\mathfrak{E}`,`Fraktur E`],[`𝔉`,`\\mathfrak{F}`,`Fraktur F`],[`𝔊`,`\\mathfrak{G}`,`Fraktur G`],[`ℌ`,`\\mathfrak{H}`,`Fraktur H`],[`ℑ`,`\\mathfrak{I}`,`Fraktur I`],[`𝔍`,`\\mathfrak{J}`,`Fraktur J`],[`𝔎`,`\\mathfrak{K}`,`Fraktur K`],[`𝔏`,`\\mathfrak{L}`,`Fraktur L`],[`𝔐`,`\\mathfrak{M}`,`Fraktur M`],[`𝔑`,`\\mathfrak{N}`,`Fraktur N`],[`𝔒`,`\\mathfrak{O}`,`Fraktur O`],[`𝔓`,`\\mathfrak{P}`,`Fraktur P`],[`𝔔`,`\\mathfrak{Q}`,`Fraktur Q`],[`ℜ`,`\\mathfrak{R}`,`Fraktur R`],[`𝔖`,`\\mathfrak{S}`,`Fraktur S`],[`𝔗`,`\\mathfrak{T}`,`Fraktur T`],[`𝔘`,`\\mathfrak{U}`,`Fraktur U`],[`𝔙`,`\\mathfrak{V}`,`Fraktur V`],[`𝔚`,`\\mathfrak{W}`,`Fraktur W`],[`𝔛`,`\\mathfrak{X}`,`Fraktur X`],[`𝔜`,`\\mathfrak{Y}`,`Fraktur Y`],[`ℨ`,`\\mathfrak{Z}`,`Fraktur Z`],[`𝔞`,`\\mathfrak{a}`,`Fraktur a`],[`𝔟`,`\\mathfrak{b}`,`Fraktur b`],[`𝔠`,`\\mathfrak{c}`,`Fraktur c`],[`𝔡`,`\\mathfrak{d}`,`Fraktur d`],[`𝔢`,`\\mathfrak{e}`,`Fraktur e`],[`𝔣`,`\\mathfrak{f}`,`Fraktur f`],[`𝔤`,`\\mathfrak{g}`,`Fraktur g`],[`𝔥`,`\\mathfrak{h}`,`Fraktur h`],[`𝔦`,`\\mathfrak{i}`,`Fraktur i`],[`𝔧`,`\\mathfrak{j}`,`Fraktur j`],[`𝔨`,`\\mathfrak{k}`,`Fraktur k`],[`𝔩`,`\\mathfrak{l}`,`Fraktur l`],[`𝔪`,`\\mathfrak{m}`,`Fraktur m`],[`𝔫`,`\\mathfrak{n}`,`Fraktur n`],[`𝔬`,`\\mathfrak{o}`,`Fraktur o`],[`𝔭`,`\\mathfrak{p}`,`Fraktur p`],[`𝔮`,`\\mathfrak{q}`,`Fraktur q`],[`𝔯`,`\\mathfrak{r}`,`Fraktur r`],[`𝔰`,`\\mathfrak{s}`,`Fraktur s`],[`𝔱`,`\\mathfrak{t}`,`Fraktur t`],[`𝔲`,`\\mathfrak{u}`,`Fraktur u`],[`𝔳`,`\\mathfrak{v}`,`Fraktur v`],[`𝔴`,`\\mathfrak{w}`,`Fraktur w`],[`𝔵`,`\\mathfrak{x}`,`Fraktur x`],[`𝔶`,`\\mathfrak{y}`,`Fraktur y`],[`𝔷`,`\\mathfrak{z}`,`Fraktur z`],[`𝒜`,`\\mathscr{A}`,`Script A`],[`ℬ`,`\\mathscr{B}`,`Script B`],[`𝒞`,`\\mathscr{C}`,`Script C`],[`𝒟`,`\\mathscr{D}`,`Script D`],[`ℰ`,`\\mathscr{E}`,`Script E`],[`ℱ`,`\\mathscr{F}`,`Script F`],[`𝒢`,`\\mathscr{G}`,`Script G`],[`ℋ`,`\\mathscr{H}`,`Script H`],[`ℐ`,`\\mathscr{I}`,`Script I`],[`𝒥`,`\\mathscr{J}`,`Script J`],[`𝒦`,`\\mathscr{K}`,`Script K`],[`ℒ`,`\\mathscr{L}`,`Script L`],[`ℳ`,`\\mathscr{M}`,`Script M`],[`𝒩`,`\\mathscr{N}`,`Script N`],[`𝒪`,`\\mathscr{O}`,`Script O`],[`𝒫`,`\\mathscr{P}`,`Script P`],[`𝒬`,`\\mathscr{Q}`,`Script Q`],[`ℛ`,`\\mathscr{R}`,`Script R`],[`𝒮`,`\\mathscr{S}`,`Script S`],[`𝒯`,`\\mathscr{T}`,`Script T`],[`𝒰`,`\\mathscr{U}`,`Script U`],[`𝒱`,`\\mathscr{V}`,`Script V`],[`𝒲`,`\\mathscr{W}`,`Script W`],[`𝒳`,`\\mathscr{X}`,`Script X`],[`𝒴`,`\\mathscr{Y}`,`Script Y`],[`𝒵`,`\\mathscr{Z}`,`Script Z`],[`𝒶`,`\\mathscr{a}`,`Script a`],[`𝒷`,`\\mathscr{b}`,`Script b`],[`𝒸`,`\\mathscr{c}`,`Script c`],[`𝒹`,`\\mathscr{d}`,`Script d`],[`ℯ`,`\\mathscr{e}`,`Script e`],[`𝒻`,`\\mathscr{f}`,`Script f`],[`ℊ`,`\\mathscr{g}`,`Script g`],[`𝒽`,`\\mathscr{h}`,`Script h`],[`𝒾`,`\\mathscr{i}`,`Script i`],[`𝒿`,`\\mathscr{j}`,`Script j`],[`𝓀`,`\\mathscr{k}`,`Script k`],[`𝓁`,`\\mathscr{l}`,`Script l`],[`𝓂`,`\\mathscr{m}`,`Script m`],[`𝓃`,`\\mathscr{n}`,`Script n`],[`ℴ`,`\\mathscr{o}`,`Script o`],[`𝓅`,`\\mathscr{p}`,`Script p`],[`𝓆`,`\\mathscr{q}`,`Script q`],[`𝓇`,`\\mathscr{r}`,`Script r`],[`𝓈`,`\\mathscr{s}`,`Script s`],[`𝓉`,`\\mathscr{t}`,`Script t`],[`𝓊`,`\\mathscr{u}`,`Script u`],[`𝓋`,`\\mathscr{v}`,`Script v`],[`𝓌`,`\\mathscr{w}`,`Script w`],[`𝓍`,`\\mathscr{x}`,`Script x`],[`𝓎`,`\\mathscr{y}`,`Script y`],[`𝓏`,`\\mathscr{z}`,`Script z`]].map(([e,t,n])=>({label:e,insert:t,title:n})),w=[{label:`ℵ`,insert:`\\aleph`,title:`Aleph`},{label:`ℒ`,insert:`\\mathscr{L}`,title:`Script L`},{label:`℘`,insert:`\\wp`,title:`Weierstrass p`},{label:`𝒵`,insert:`\\mathscr{Z}`,title:`Script Z`},{label:`ℱ`,insert:`\\mathscr{F}`,title:`Script F`}],T=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],E=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`];function ee(e,t){if(!e||t===`western`)return e;let n=t===`arabicIndic`?T:t===`easternArabicIndic`?E:null;return n?String(e).replace(/\d/g,e=>n[Number(e)]||e):e}var D=31,O=33,k=592,A=295,j=[{row:1,items:[[`H`,1,`hydrogen`],[`He`,18,`noble-gas`]]},{row:2,items:[[`Li`,1,`alkali`],[`Be`,2,`alkaline`],[`B`,13,`nonmetal`],[`C`,14,`nonmetal`],[`N`,15,`nonmetal`],[`O`,16,`nonmetal`],[`F`,17,`nonmetal`],[`Ne`,18,`noble-gas`]]},{row:3,items:[[`Na`,1,`alkali`],[`Mg`,2,`alkaline`],[`Al`,13,`post-transition`],[`Si`,14,`post-transition`],[`P`,15,`nonmetal`],[`S`,16,`nonmetal`],[`Cl`,17,`nonmetal`],[`Ar`,18,`noble-gas`]]},{row:4,items:[[`K`,1,`alkali`],[`Ca`,2,`alkaline`],[`Sc`,3,`transition`],[`Ti`,4,`transition`],[`V`,5,`transition`],[`Cr`,6,`transition`],[`Mn`,7,`transition`],[`Fe`,8,`transition`],[`Co`,9,`transition`],[`Ni`,10,`transition`],[`Cu`,11,`transition`],[`Zn`,12,`transition`],[`Ga`,13,`post-transition`],[`Ge`,14,`post-transition`],[`As`,15,`nonmetal`],[`Se`,16,`nonmetal`],[`Br`,17,`nonmetal`],[`Kr`,18,`noble-gas`]]},{row:5,items:[[`Rb`,1,`alkali`],[`Sr`,2,`alkaline`],[`Y`,3,`transition`],[`Zr`,4,`transition`],[`Nb`,5,`transition`],[`Mo`,6,`transition`],[`Tc`,7,`transition`],[`Ru`,8,`transition`],[`Rh`,9,`transition`],[`Pd`,10,`transition`],[`Ag`,11,`transition`],[`Cd`,12,`transition`],[`In`,13,`post-transition`],[`Sn`,14,`post-transition`],[`Sb`,15,`nonmetal`],[`Te`,16,`nonmetal`],[`I`,17,`nonmetal`],[`Xe`,18,`noble-gas`]]},{row:6,items:[[`Cs`,1,`alkali`],[`Ba`,2,`alkaline`],[`Hf`,4,`transition`],[`Ta`,5,`transition`],[`W`,6,`transition`],[`Re`,7,`transition`],[`Os`,8,`transition`],[`Ir`,9,`transition`],[`Pt`,10,`transition`],[`Au`,11,`transition`],[`Hg`,12,`transition`],[`Tl`,13,`post-transition`],[`Pb`,14,`post-transition`],[`Bi`,15,`post-transition`],[`Po`,16,`post-transition`],[`At`,17,`nonmetal`],[`Rn`,18,`noble-gas`]]},{row:7,items:[[`Fr`,1,`alkali`],[`Ra`,2,`alkaline`],[`Rf`,4,`transition`],[`Db`,5,`transition`],[`Sg`,6,`transition`],[`Bh`,7,`transition`],[`Hs`,8,`transition`],[`Mt`,9,`transition`],[`Ds`,10,`transition`],[`Rg`,11,`transition`],[`Cn`,12,`transition`],[`Nh`,13,`post-transition`],[`Fl`,14,`post-transition`],[`Mc`,15,`post-transition`],[`Lv`,16,`post-transition`],[`Ts`,17,`placeholder`],[`Og`,18,`placeholder`]]},{row:8,items:[[`La`,4,`series-anchor`],[`Ce`,5,`lanthanide`],[`Pr`,6,`lanthanide`],[`Nd`,7,`lanthanide`],[`Pm`,8,`lanthanide`],[`Sm`,9,`lanthanide`],[`Eu`,10,`lanthanide`],[`Gd`,11,`lanthanide`],[`Tb`,12,`lanthanide`],[`Dy`,13,`lanthanide`],[`Ho`,14,`lanthanide`],[`Er`,15,`lanthanide`],[`Tm`,16,`lanthanide`],[`Yb`,17,`lanthanide`],[`Lu`,18,`lanthanide`]]},{row:9,items:[[`Ac`,4,`series-anchor`],[`Th`,5,`actinide`],[`Pa`,6,`actinide`],[`U`,7,`actinide`],[`Np`,8,`actinide`],[`Pu`,9,`actinide`],[`Am`,10,`actinide`],[`Cm`,11,`actinide`],[`Bk`,12,`actinide`],[`Cf`,13,`actinide`],[`Es`,14,`actinide`],[`Fm`,15,`actinide`],[`Md`,16,`actinide`],[`No`,17,`actinide`],[`Lr`,18,`actinide`]]}].flatMap(({row:e,items:t})=>t.map(([t,n,r])=>({label:t,insert:t,row:e,col:n,tone:r,title:t}))),M=[{label:`Times`,value:`family:roman`,style:{fontFamily:`roman`}},{label:`Helvetica`,value:`family:sans-serif`,style:{fontFamily:`sans-serif`}},{label:`Courier`,value:`family:monospace`,style:{fontFamily:`monospace`}},{label:`Calligraphic`,value:`variant:calligraphic`,style:{variant:`calligraphic`}},{label:`Script`,value:`variant:script`,style:{variant:`script`}},{label:`Fraktur`,value:`variant:fraktur`,style:{variant:`fraktur`}},{label:`Blackboard`,value:`variant:double-struck`,style:{variant:`double-struck`}}],te={fontFamily:`none`,variant:`main`},ne=[{label:`8px`,value:`3`},{label:`10px`,value:`4`},{label:`12px`,value:`5`},{label:`14px`,value:`6`},{label:`16px`,value:`7`},{label:`18px`,value:`8`},{label:`24px`,value:`10`}],re={up:{x:0,y:-1},right:{x:1,y:0},left:{x:-1,y:0},down:{x:0,y:1}};function ie(e=``){let t=String(e||``),n=0,r=0,i=/^\\htmlStyle\{([^}]*)\}\{([\s\S]*)\}$/;for(;;){let e=t.match(i);if(!e)break;let a=e[1]||``;if(!a.includes(`display:inline-block`)||!a.includes(`position:relative`))break;let o=a.match(/left:\s*(-?\d+)px/i),s=a.match(/top:\s*(-?\d+)px/i);n+=o?parseInt(o[1],10):0,r+=s?parseInt(s[1],10):0,t=e[2]||``}return{baseLatex:t,offsetX:n,offsetY:r}}function ae(e,t,n){let r=[`display:inline-block`,`position:relative`];return t!==0&&r.push(`left:${t}px`),n!==0&&r.push(`top:${n}px`),`\\htmlStyle{${r.join(`;`)};}{${e}}`}var oe=[{id:`roots-main`,label:(0,i.jsx)(P,{}),items:[{label:`□/□`,insert:`\\frac{#0}{#?}`,title:`Fraction`,cls:`green-template black-glyph-template`,icon:`stacked-fraction`},{label:`□/□`,insert:`{#0}/{#?}`,title:`Bevelled Fraction`,cls:`green-template black-glyph-template`},{label:`√□`,insert:`\\sqrt{#0}`,title:`Square Root`,cls:`green-template black-glyph-template`,icon:`square-root-template`},{label:`□√□`,insert:`\\sqrt[#?]{#0}`,title:`Root`,cls:`green-template black-glyph-template`,icon:`nth-root-template`},{type:`sep`,cols:2},{label:`□^□`,insert:`#0^{#?}`,title:`Superscript`,cls:`green-template black-glyph-template`,icon:`superscript-template`},{label:`□_□`,insert:`#0_{#?}`,title:`Subscript`,cls:`green-template black-glyph-template`,icon:`subscript-template`},{type:`sep`,cols:1},{label:`(□)`,insert:`\\left(#0\\right)`,title:`Parentheses`,cls:`green-template green-placeholder-glyph`},{label:`|□|`,insert:`\\left|#0\\right|`,title:`Absolute Value`,cls:`green-template green-placeholder-glyph`},{label:`[□]`,insert:`\\left[#0\\right]`,title:`Square Brackets`,cls:`green-template green-placeholder-glyph`},{label:`{□}`,insert:`\\left\\{#0\\right\\}`,title:`Curly Braces`,cls:`green-template green-placeholder-glyph`},{type:`sep`,cols:3},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`/`,insert:`/`},{label:`±`,insert:`\\pm`},{type:`sep`,cols:3},{label:`≥`,insert:`\\geq`},{label:`≤`,insert:`\\leq`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`⊂`,insert:`\\subset`},{label:`∈`,insert:`\\in`},{type:`sep`,cols:4},{label:`∅`,insert:`\\emptyset`},{label:`∞`,insert:`\\infty`},{label:`π`,insert:`\\pi`},{type:`sep`,cols:2},{label:`✂`,action:`CUT`,title:`Cut Formula`,cls:`soft-tool`},{label:`⧉`,action:`COPY`,title:`Copy Formula`,cls:`soft-tool`},{label:`⎘`,action:`PASTE`,title:`Paste Formula`,cls:`soft-tool`},{label:`↶`,action:`UNDO`,title:`Undo`,cls:`soft-tool`},{label:`↷`,action:`REDO`,title:`Redo`,cls:`soft-tool`},{label:`⌫`,action:`CLEAR`,title:`Clear Formula`,cls:`soft-tool`},{type:`sep`,cols:3},{label:`B`,action:`BOLD`,cls:`template format-tool`,title:`Bold`},{label:`1b`,action:`ITALIC`,cls:`format-tool`,title:`Italic`},{label:`BI`,action:`BOLD_ITALIC`,cls:`format-tool`,title:`Bold Italic`},{label:`Ω`,action:`SPECIAL_CHARS`,cls:`format-tool omega-tool`,title:`Greek Letters`},{label:`T`,action:`TEXT`,cls:`format-tool text-tool`,title:`Regular Text`},{label:`A`,action:`TEXT_COLOR`,cls:`format-tool color-tool`,title:`Text Color`},{type:`sep`,cols:1},{label:`RTL`,action:`TOGGLE_RTL`,cls:`format-tool rtl-tool`,title:`Right-to-Left Input`,icon:`rtl-input-template-image`},{type:`sep`,cols:1},{type:`dropdown`,label:`Font...`,width:`92px`},{type:`dropdown`,label:`Size`,width:`86px`}]},{id:`relations`,...h[1],items:v,label:(0,i.jsx)(I,{})},{id:`arrows`,...h[4],label:(0,i.jsx)(V,{})},{id:`greek`,label:(0,i.jsx)(L,{}),items:[{category:`Lowercase Greek Letters`,label:`α`,insert:`\\alpha`},{category:`Lowercase Greek Letters`,label:`β`,insert:`\\beta`},{category:`Lowercase Greek Letters`,label:`γ`,insert:`\\gamma`},{category:`Lowercase Greek Letters`,label:`δ`,insert:`\\delta`},{category:`Lowercase Greek Letters`,label:`ε`,insert:`\\epsilon`},{category:`Lowercase Greek Letters`,label:`ζ`,insert:`\\zeta`},{category:`Lowercase Greek Letters`,label:`η`,insert:`\\eta`},{category:`Lowercase Greek Letters`,label:`θ`,insert:`\\theta`},{category:`Lowercase Greek Letters`,label:`ϑ`,insert:`\\vartheta`},{category:`Lowercase Greek Letters`,label:`ι`,insert:`\\iota`},{category:`Lowercase Greek Letters`,label:`κ`,insert:`\\kappa`},{category:`Lowercase Greek Letters`,label:`λ`,insert:`\\lambda`},{category:`Lowercase Greek Letters`,label:`μ`,insert:`\\mu`},{category:`Lowercase Greek Letters`,label:`ν`,insert:`\\nu`},{category:`Lowercase Greek Letters`,label:`ξ`,insert:`\\xi`},{category:`Lowercase Greek Letters`,label:`ο`,insert:`ο`},{category:`Lowercase Greek Letters`,label:`π`,insert:`\\pi`},{category:`Lowercase Greek Letters`,label:`ϖ`,insert:`\\varpi`},{category:`Lowercase Greek Letters`,label:`ρ`,insert:`\\rho`},{category:`Lowercase Greek Letters`,label:`ς`,insert:`\\varsigma`},{category:`Lowercase Greek Letters`,label:`σ`,insert:`\\sigma`},{category:`Lowercase Greek Letters`,label:`τ`,insert:`\\tau`},{category:`Lowercase Greek Letters`,label:`υ`,insert:`\\upsilon`},{category:`Lowercase Greek Letters`,label:`φ`,insert:`\\phi`},{category:`Lowercase Greek Letters`,label:`ϕ`,insert:`\\varphi`},{category:`Lowercase Greek Letters`,label:`χ`,insert:`\\chi`},{category:`Lowercase Greek Letters`,label:`ψ`,insert:`\\psi`},{category:`Lowercase Greek Letters`,label:`ω`,insert:`\\omega`},{category:`Greek Letter Picker`,label:`|`,action:`GREEK_ITALIC_PICKER`,title:`Italic Uppercase Greek`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool greek-italic-picker-tool`},{category:`Blackboard Bold / Number Sets`,label:`ℕ`,insert:`\\mathbb{N}`},{category:`Blackboard Bold / Number Sets`,label:`ℤ`,insert:`\\mathbb{Z}`},{category:`Blackboard Bold / Number Sets`,label:`ℚ`,insert:`\\mathbb{Q}`},{category:`Blackboard Bold / Number Sets`,label:`ℂ`,insert:`\\mathbb{C}`},{category:`Blackboard Bold / Number Sets`,label:`ℝ`,insert:`\\mathbb{R}`},{category:`Blackboard Bold / Number Sets`,label:`ℙ`,insert:`\\mathbb{P}`},{category:`Blackboard Bold Picker`,label:`|`,action:`BLACKBOARD_BOLD_PICKER`,title:`More Blackboard Bold Letters`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool blackboard-bold-picker-tool`},{category:`Fraktur Symbols`,label:`𝔄`,insert:`\\mathfrak{A}`},{category:`Fraktur Symbols`,label:`𝔅`,insert:`\\mathfrak{B}`},{category:`Fraktur Symbols`,label:`𝔊`,insert:`\\mathfrak{G}`},{category:`Script Symbols`,label:`𝒜`,insert:`\\mathscr{A}`},{category:`Script Symbols`,label:`ℬ`,insert:`\\mathscr{B}`},{category:`Script Symbols`,label:`𝒞`,insert:`\\mathscr{C}`},{category:`Fraktur / Script Picker`,label:`|`,action:`FRAKTUR_SCRIPT_PICKER`,title:`More Fraktur and Script Letters`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool fraktur-script-picker-tool`},{category:`Hebrew Mathematical Symbols`,label:`ℑ`,insert:`\\Im`},{category:`Hebrew Mathematical Symbols`,label:`ℜ`,insert:`\\Re`},{category:`Hebrew Mathematical Symbols`,label:`ℓ`,insert:`\\ell`},{category:`Hebrew Symbol Picker`,label:`|`,action:`HEBREW_SYMBOL_PICKER`,title:`More Hebrew Mathematical Symbols`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool hebrew-symbol-picker-tool`},{category:`Arabic-Indic Numeral Systems`,label:`٤٦`,action:`ARABIC_INDIC_NUMERALS`,title:`Arabic-Indic Numerals`,icon:`arabic-indic-numerals-template-image`,cls:`numeral-mode-tool`},{category:`Arabic-Indic Numeral Systems`,label:`۴۶`,action:`EASTERN_ARABIC_INDIC_NUMERALS`,title:`Eastern Arabic-Indic Numerals (Persian/Urdu)`,icon:`eastern-arabic-indic-numerals-template-image`,cls:`numeral-mode-tool`},{category:`Periodic Table Symbols`,label:`H`,insert:`H`},{category:`Periodic Table Symbols`,label:`C`,insert:`C`},{category:`Periodic Table Symbols`,label:`N`,insert:`N`},{category:`Periodic Table Symbols`,label:`O`,insert:`O`},{category:`Periodic Table Symbols`,label:`F`,insert:`F`},{category:`Periodic Table Symbols`,label:`S`,insert:`S`},{category:`Periodic Table Picker`,label:`|`,action:`PERIODIC_TABLE_PICKER`,title:`Periodic Table`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool periodic-table-picker-tool`}]},{id:`matrix`,...h[11],label:(0,i.jsx)(F,{})},{id:`power-frac`,...h[2],label:(0,i.jsx)(le,{})},{id:`brackets`,label:(0,i.jsx)(R,{}),items:[{label:`(□)`,insert:`\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`[□]`,insert:`\\left[#0\\right]`,cls:`green-placeholder-glyph`},{label:`|□|`,insert:`\\left|#0\\right|`,cls:`green-placeholder-glyph`},{label:`‖□‖`,insert:`\\left\\| #0 \\right\\|`,cls:`green-placeholder-glyph`},{label:`⟨□⟩`,insert:`\\left\\langle #0 \\right\\rangle`,cls:`green-placeholder-glyph`},{label:`{□}`,insert:`\\left\\{#0\\right\\}`,cls:`green-placeholder-glyph`},_(`bracketDelimiterExtras`,`More Delimiters`),{type:`sep`,cols:2},{label:`overbrace`,insert:`\\overbrace{#0}`,cls:`template`,directInsert:!0,title:`Overbrace`,icon:`overbrace-arc-template-image`},{label:`underbrace`,insert:`\\underbrace{#0}`,cls:`template`,directInsert:!0,title:`Underbrace`,icon:`underbrace-arc-template-image`},{label:`overparen`,insert:`\\overparen{#0}`,cls:`template`,directInsert:!0,title:`Overparen`,icon:`overparen-template-image`},{label:`underparen`,insert:`\\underparen{#0}`,cls:`template`,directInsert:!0,title:`Underparen`,icon:`underparen-template-image`},{type:`sep`,cols:2},{label:`⃗
7
+ □`,insert:`\\displaystyle{\\begin{array}{c}\\htmlStyle{display:inline-block;height:1.6em;line-height:1.6em;font-size:1.05em;vertical-align:middle}{#?}\\\\\\htmlStyle{display:inline-block;height:1.6em;line-height:1.6em;font-size:1.45em;vertical-align:middle}{#0}\\\\\\htmlStyle{display:inline-block;height:1.6em;line-height:1.6em;font-size:1.05em;vertical-align:middle}{#?}\\end{array}}`,cls:`template`,directInsert:!0,title:`Operator With Upper and Lower Limits`,icon:`operator-limits-both-template-image`,focusFirstPlaceholder:!0},{label:`▯
8
+ □`,insert:`\\displaystyle{\\begin{array}{c}\\htmlStyle{font-size:1.45em;display:inline-block;padding:0.12em 0;line-height:1.05}{#0}\\\\\\htmlStyle{font-size:1.05em;display:inline-block;padding-top:0.18em;line-height:1.05}{#?}\\end{array}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`,focusFirstPlaceholder:!0},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{type:`sep`,cols:3},{label:`hphantom`,insert:`\\hphantom{0}`,cls:`template`,directInsert:!0,title:`Horizontal Phantom Space`,icon:`hphantom-space-template-image`},{label:`negative-space`,insert:`\\!`,cls:`template`,directInsert:!0,title:`Negative Thin Space`,icon:`negative-thin-space-template-image`},{label:`thin-space`,insert:`\\,`,cls:`template`,directInsert:!0,title:`Thin Space`,icon:`thin-space-template-image`}]},{label:`sin/cos`,items:[{label:`sin`,insert:`\\sin`},{label:`cos`,insert:`\\cos`},{label:`tan`,insert:`\\tan`},{label:`cot`,insert:`\\cot`},{label:`sec`,insert:`\\sec`},{label:`csc`,insert:`\\csc`},{label:`sin(x)`,insert:`\\sin\\left(#0\\right)`},{label:`cos(x)`,insert:`\\cos\\left(#0\\right)`},{label:`tan(x)`,insert:`\\tan\\left(#0\\right)`},{label:`sin⁻¹`,insert:`\\sin^{-1}`},{label:`cos⁻¹`,insert:`\\cos^{-1}`},{label:`tan⁻¹`,insert:`\\tan^{-1}`},{label:`sin²x`,insert:`\\sin^{2}\\left(#0\\right)`},{label:`cos²x`,insert:`\\cos^{2}\\left(#0\\right)`},{label:`tan²x`,insert:`\\tan^{2}\\left(#0\\right)`},{label:`sinh`,insert:`\\sinh`},{label:`cosh`,insert:`\\cosh`},{label:`tanh`,insert:`\\tanh`},{label:`log`,insert:`\\log`},{label:`ln`,insert:`\\ln`},{label:`exp`,insert:`\\exp`}]},{label:`→`,items:[{label:`→`,insert:`\\rightarrow`},{label:`←`,insert:`\\leftarrow`},{label:`↔`,insert:`\\leftrightarrow`},{label:`⇒`,insert:`\\Rightarrow`},{label:`⇐`,insert:`\\Leftarrow`},{label:`⇔`,insert:`\\Leftrightarrow`},{label:`↤`,insert:`\\mapsfrom`},{label:`↦`,insert:`\\mapsto`},{label:`|`,action:`ARROW_PICKER`,title:`More Arrows`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool`},{type:`sep`,cols:3},{label:`⋮`,insert:`\\vdots`,title:`Vertical ellipsis`},{label:`⋰`,insert:`⋰`,title:`Up-right diagonal ellipsis`},{label:`…`,insert:`\\ldots`,title:`Horizontal ellipsis`},{label:`⋱`,insert:`\\ddots`,title:`Down-right diagonal ellipsis`},{label:`⋯`,insert:`\\cdots`,title:`Midline ellipsis`},{type:`sep`,cols:3},{label:`-`,insert:`\\text{-}`,title:`Short dash`},{label:`–`,insert:`–`,title:`Dash`},{label:`—`,insert:`—`,title:`Long dash`},{type:`sep`,cols:3},{label:`A→`,insert:`\\xrightarrow{#0}`,title:`Arrow with label above`,icon:`arrow-label-right-above`},{label:`A←`,insert:`\\xleftarrow{#0}`,title:`Left arrow with label above`,icon:`arrow-label-left-above`},{label:`→A`,insert:`\\xrightarrow[#?]{}`,title:`Arrow with label below`,icon:`arrow-label-right-below`},{label:`←A`,insert:`\\xleftarrow[#?]{}`,title:`Left arrow with label below`,icon:`arrow-label-left-below`},{label:`A→B`,insert:`\\xrightarrow[#?]{#0}`,title:`Arrow with labels above and below`,icon:`arrow-label-right-above-below`,focusFirstPlaceholder:!0},{label:`A←B`,insert:`\\xleftarrow[#?]{#0}`,title:`Left arrow with labels above and below`,icon:`arrow-label-left-above-below`,focusFirstPlaceholder:!0},{label:`|`,action:`ARROW_LABEL_PICKER`,title:`More Labelled Arrows`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool arrow-label-picker-tool`},{type:`sep`,cols:2},{label:`x⇀`,insert:`\\overrightharpoon{#0}`,title:`Vector accent`,icon:`accent-harpoon-right`},{label:`x↔`,insert:`\\overleftrightarrow{#0}`,title:`Left-right arrow accent`,icon:`accent-arrow-both`},{label:`x→`,insert:`\\overrightarrow{#0}`,title:`Arrow accent`,icon:`accent-arrow-right`},{label:`x̄`,insert:`\\overline{#0}`,title:`Bar accent`,icon:`accent-bar`}]},{label:`∫ ∯`,isTemplate:!0,items:[{label:`∫`,insert:`\\int`},{label:`∬`,insert:`\\iint`},{label:`∭`,insert:`\\iiint`},{label:`∮`,insert:`\\oint`},{label:`∯`,insert:`\\oiint`},{label:`∰`,insert:`\\oiiint`},{label:`∫dx`,insert:`\\int #0 \\, d#?`,icon:`integral-with-differential`},{label:`∫ₐᵇ`,insert:`\\int_{#?}^{#?} #0 \\, d#?`,icon:`integral-with-limits-differential`},{label:`∫∫dA`,insert:`\\iint_{#?} #0 \\, dA`,title:`Double Integral with Area Element`,icon:`double-integral-area-template-image`},{label:`∮C`,insert:`\\oint_{#?} #0 \\, d#?`},{label:`∫∫∫dV`,insert:`\\iiint_{#?} #0 \\, dV`},{label:`∫_C`,insert:`\\int_{C} #0 \\, d#?`},{label:`∮_C`,insert:`\\oint_{C} #0 \\, d#?`},{label:`∫∫_D`,insert:`\\iint_{D} #0 \\, dA`},{label:`F(b)-F(a)`,insert:`\\left[#0\\right]_{#?}^{#?}`,title:`Evaluated Expression`,icon:`evaluated-expression-template-image`},{label:`u-sub`,insert:`\\int #0 \\, du`}]},{label:`d/dx`,isTemplate:!0,items:[{label:`d/dx`,insert:`\\frac{d}{dx}`},{label:`dy/dx`,insert:`\\frac{dy}{dx}`},{label:`df/dx`,insert:`\\frac{df}{dx}`},{label:`d/dt`,insert:`\\frac{d}{dt}`},{label:`dy/dt`,insert:`\\frac{dy}{dt}`},{label:`d²y/dx²`,insert:`\\frac{d^{2}y}{dx^{2}}`},{label:`d²y/dt²`,insert:`\\frac{d^{2}y}{dt^{2}}`},{label:`dⁿy/dxⁿ`,insert:`\\frac{d^{#?}#0}{dx^{#?}}`},{label:`∂/∂x`,insert:`\\frac{\\partial}{\\partial x}`},{label:`∂f/∂x`,insert:`\\frac{\\partial #0}{\\partial x}`},{label:`∂²f/∂x²`,insert:`\\frac{\\partial^{2} #0}{\\partial x^{2}}`},{label:`∂²f/∂y²`,insert:`\\frac{\\partial^{2} #0}{\\partial y^{2}}`},{label:`∂²f/∂x∂y`,insert:`\\frac{\\partial^{2} #0}{\\partial x \\partial y}`},{label:`f'(x)`,insert:`#0^{\\prime}(#?)`},{label:`f''(x)`,insert:`#0^{\\prime\\prime}(#?)`},{label:`f'''(x)`,insert:`#0^{\\prime\\prime\\prime}(#?)`},{label:`y'`,insert:`y^{\\prime}`},{label:`y''`,insert:`y^{\\prime\\prime}`},{label:`ẋ`,insert:`\\dot{#0}`},{label:`ẍ`,insert:`\\ddot{#0}`},{label:`∇f`,insert:`\\nabla #0`},{label:`∇²f`,insert:`\\nabla^{2} #0`}]},{label:`log/ln`,isTemplate:!0,items:[{label:`log`,insert:`\\log`},{label:`ln`,insert:`\\ln`},{label:`log₁₀`,insert:`\\log_{10}`},{label:`log₂`,insert:`\\log_{2}`},{label:`logₐ`,insert:`\\log_{#?}`},{label:`logₐ(x)`,insert:`\\log_{#?}\\left(#0\\right)`},{label:`log₁₀(x)`,insert:`\\log_{10}\\left(#0\\right)`},{label:`ln(x)`,insert:`\\ln\\left(#0\\right)`},{label:`log|x|`,insert:`\\log\\left|#0\\right|`},{label:`eˣ`,insert:`e^{#0}`,title:`e to the Power`,icon:`exp-e-template-image`},{label:`eⁱˣ`,insert:`e^{i #0}`},{label:`10ˣ`,insert:`10^{#0}`},{label:`2ˣ`,insert:`2^{#0}`},{label:`aˣ`,insert:`#?^{#0}`,title:`Base to the Power`,icon:`exp-generic-template-image`},{label:`log(ab)`,insert:`\\log\\left(#0 \\cdot #?\\right)`},{label:`log(a/b)`,insert:`\\log\\left(\\frac{#0}{#?}\\right)`},{label:`log(aⁿ)`,insert:`\\log\\left(#0^{#?}\\right)`}]},{label:`π,e`,items:[{label:`e`,insert:`e`},{label:`i`,insert:`i`},{label:`π`,insert:`\\pi`},{label:`ℝ`,insert:l(`ℝ`),...c},{label:`ℤ`,insert:l(`ℤ`),...c},{label:`ℕ`,insert:l(`ℕ`),...c},{label:`ℚ`,insert:l(`ℚ`),...c},{label:`ℂ`,insert:l(`ℂ`),...c},{label:`∅`,insert:`\\emptyset`},{label:`ℵ₀`,insert:`\\aleph_0`},{label:`ξ`,insert:`\\xi`},{label:`ρ`,insert:`\\rho`},{label:`σ`,insert:`\\sigma`},{label:`τ`,insert:`\\tau`},{label:`υ`,insert:`\\upsilon`},{label:`φ`,insert:`\\varphi`},{label:`χ`,insert:`\\chi`},{label:`ψ`,insert:`\\psi`},{label:`ω`,insert:`\\omega`},{label:`Γ`,insert:`\\Gamma`},{label:`Δ`,insert:`\\Delta`},{label:`Θ`,insert:`\\Theta`},{label:`Λ`,insert:`\\Lambda`},{label:`Ξ`,insert:`\\Xi`},{label:`Σ`,insert:`\\Sigma`},{label:`Φ`,insert:`\\Phi`},{label:`Ψ`,insert:`\\Psi`},{label:`Ω`,insert:`\\Omega`},{label:`θᵢ`,insert:`\\theta_{#?}`},{label:`λₙ`,insert:`\\lambda_{#?}`},{label:`μₓ`,insert:`\\mu_{#?}`},{label:`σ²`,insert:`\\sigma^{2}`},{label:`Δx`,insert:`\\Delta #?`}]},{label:`∈∪∩`,items:[{label:`Ω`,title:`Insert Special Character`,action:`SPECIAL_CHARS`},{label:`⊆`,insert:`\\subseteq`},{label:`⊇`,insert:`\\supseteq`},{label:`﹨`,insert:`﹨`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`∅`,insert:`\\emptyset`},{label:`□⊂□`,insert:`#? \\subset #?`},{label:`□⊆□`,insert:`#? \\subseteq #?`},{label:`□∈□`,insert:`#? \\in #?`},{label:`□∉□`,insert:`#? \\notin #?`},{label:`□∪□`,insert:`#? \\cup #?`},{label:`□∩□`,insert:`#? \\cap #?`}]},{label:`∀∃`,items:[{label:`∀`,insert:`\\forall`},{label:`∃`,insert:`\\exists`},{label:`¬`,insert:`\\neg`},{label:`∧`,insert:`\\land`},{label:`∨`,insert:`\\lor`},{label:`□⇒□`,insert:`#? \\Rightarrow #?`},{label:`□⇔□`,insert:`#? \\Leftrightarrow #?`},{label:`□∧□`,insert:`#? \\land #?`},{label:`□∨□`,insert:`#? \\lor #?`},{label:`¬□`,insert:`\\neg #?`}]},{label:(0,i.jsx)(i.Fragment,{children:`⎡□ □⎤`}),isMatrix:!0,items:[{label:`□`,insert:`matrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-grid-template-image`},{label:`[]`,insert:`bmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-brackets-template-image`},{label:`||`,insert:`vmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-bars-template-image`},{label:`()`,insert:`pmatrix`,cls:`template matrix-roomy-template matrix-tall-template`,icon:`matrix-parens-template-image`},{type:`sep`,cols:2},{label:`□ \\ □ \\ □`,insert:`\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ □ □`,insert:`\\begin{matrix} #? & #? & #? \\end{matrix}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`□ \\ □`,insert:ee,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`bmatrix-two-row-template-image`},{label:`□ & □`,insert:`\\left[\\begin{matrix} #? & #? \\end{matrix}\\right]`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`bmatrix-two-column-template-image`},{label:`□ \\ □`,insert:_,cls:`template matrix-roomy-template matrix-extra-tall-template`,directInsert:!0,icon:`pmatrix-two-row-template-image`},{label:`□ & □`,insert:`\\left(\\begin{matrix} #? & #? \\end{matrix}\\right)`,cls:`template matrix-roomy-template matrix-extra-tall-template`,directInsert:!0,icon:`pmatrix-two-column-template-image`},{type:`sep`,cols:2},{type:`sep`,cols:2},{label:`cases`,insert:`\\class{cme-cases-left-template}{\\begin{array}{c} #? \\\\[0.18em] #? \\end{array}}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`cases-template-image`,title:`Cases`},{label:`rcases`,insert:`\\class{cme-cases-right-template}{\\begin{array}{c} #? \\\\[0.18em] #? \\end{array}}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`rcases-template-image`,title:`Right Cases`},{label:`cases-2x2`,insert:`\\class{cme-cases-left-template cme-cases-2x2-template}{\\begin{array}{cc} #? & #? \\\\[0.18em] #? & #? \\end{array}}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`cases-two-by-two-template-image`,title:`Cases 2x2`},{label:`aligned`,insert:`\\begin{aligned} #? &= #? \\\\ #? &= #? \\end{aligned}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`aligned-equals-template-image`,title:`Aligned Equations`},{label:`⋮`,insert:`\\vdots`,title:`Vertical ellipsis`,icon:`vertical-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋯`,insert:`\\cdots`,title:`Midline ellipsis`,icon:`midline-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋰`,insert:`⋰`,title:`Up-right diagonal ellipsis`,icon:`upright-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{label:`⋱`,insert:`\\ddots`,title:`Down-right diagonal ellipsis`,icon:`downright-ellipsis-template-image`,cls:`matrix-roomy-template matrix-tall-template`,directInsert:!0},{type:`sep`,cols:2},{label:`sum-array`,insert:`\\frac{\\begin{array}{r}\\class{cme-column-layout-slot-1}{#0}\\\\+\\,\\class{cme-column-layout-slot-2}{#?}\\end{array}}{\\hskip10px\\class{cme-column-layout-slot-3}{#?}}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,focusSlotGroup:`column-layout`,icon:`sum-array-template-image`,title:`Column Addition`},{label:`division`,insert:`\\raise{-2px}{#?}\\, ) \\!\\!\\!\\!\\! \\overset{\\displaystyle\\kern11px#?}{\\kern5px\\raise{-2px}{\\overline{\\vphantom{1}\\;\\;\\kern3px\\raise{-2px}{#?}\\;}}}`,cls:`template matrix-roomy-template matrix-tall-template`,directInsert:!0,icon:`division-layout-template-image`,title:`Division Layout`},x(`arithmeticLayoutExtras`,`More Arithmetic Layouts`)]}],te={operatorExtras:[{label:`\\`,insert:`\\backslash`,title:`Slash`},{label:`﹨`,insert:`﹨`,title:`Reverse Solidus`},{label:`∓`,insert:`\\mp`,title:`Minus or Plus`}],primeExtras:[{label:`‴`,insert:`'''`,cls:`prime-symbol-tool`},{label:`⁗`,insert:`''''`,cls:`prime-symbol-tool`},{label:`‵`,insert:`‵`,cls:`prime-symbol-tool`,title:`Reversed Prime`}],notEqualExtras:[{label:`≠`,insert:`\\text{≠}`,title:`Not Equal`,icon:`not-equal-template-image`},{label:`≉`,insert:`\\class{cme-not-approx-equal-symbol}{\\approx}`,title:`Not Approximately Equal`,icon:`not-approx-equal-template-image`},{label:`≁`,insert:`≁`,title:`Not Similar`,icon:`not-similar-template-image`},{label:`≢`,insert:`\\class{cme-not-identical-symbol}{\\equiv}`,title:`Not Identical`,icon:`not-identical-template-image`}],comparisonExtras:[{label:`≫`,insert:`\\gg`,title:`Much Greater Than`},{label:`≪`,insert:`\\ll`,title:`Much Less Than`},{label:`⪇`,insert:`⪇`,title:`Less Than But Not Equal`},{label:`≻`,insert:`\\succ`,title:`Succeeds`},{label:`⪈`,insert:`⪈`,title:`Greater Than But Not Equal`},{label:`∝`,insert:`\\propto`,title:`Proportional To`},{label:`⊲`,insert:`\\lhd`,title:`Normal Subgroup`},{label:`≺`,insert:`\\prec`,title:`Precedes`},{label:`▷`,insert:`\\rhd`,title:`Contains Normal Subgroup`}],setExtras:[{label:`∉`,insert:`\\notin`,title:`Not Element Of`},{label:`∌`,insert:`\\notni`,title:`Not Contains Member`},{label:`⊆`,insert:`\\subseteq`,title:`Subset Equal`},{label:`⊇`,insert:`\\supseteq`,title:`Superset Equal`},{label:`⊏`,insert:`\\sqsubset`,title:`Square Subset`},{label:`⊐`,insert:`\\sqsupset`,title:`Square Superset`},{label:`⊑`,insert:`\\sqsubseteq`,title:`Square Subset Equal`},{label:`⊒`,insert:`\\sqsupseteq`,title:`Square Superset Equal`},{label:`⊓`,insert:`\\sqcap`,title:`Square Cap`},{label:`⊔`,insert:`\\sqcup`,title:`Square Cup`}],logicExtras:[{label:`∴`,insert:`\\therefore`,title:`Therefore`},{label:`∵`,insert:`\\because`,title:`Because`}],geometryExtras:[{label:`∦`,insert:`\\nparallel`,title:`Not Parallel`},{label:`∡`,insert:`\\measuredangle`,title:`Measured Angle`},{label:`∢`,insert:`\\sphericalangle`,title:`Spherical Angle`},{label:`◊`,insert:`◊`,title:`Diamond`}],shapeExtras:[{label:`▭`,insert:`▭`,title:`Rectangle`},{label:`▱`,insert:`\\parallelogram`,title:`Parallelogram`}],circledExtras:[{label:`⊖`,insert:`\\circleddash`,title:`Circled Minus`},{label:`⊛`,insert:`\\circledast`,title:`Circled Asterisk`},{label:`⨸`,insert:`⨸`,title:`Circled Divide`},{label:`•`,insert:`●`,title:`Raised Bullet`}],tripleIntegralExtras:[{label:`∭`,insert:`\\iiint`,title:`Triple Integral`,icon:`triple-integral-template-image`,cls:`triple-integral-popup-icon`},{label:`∰`,insert:`\\mathop{{\\style{font-size:1em;}{\\iiint}}\\mkern-28mu\\class{wider-circle}{\\bigcirc}\\mkern18mu}`,title:`Triple Contour Integral`,icon:`triple-contour-integral-template-image`,cls:`triple-integral-popup-icon`}],trigFunctionExtras:[{label:`sin⁻¹(□)`,insert:`\\sin^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`csc(□)`,insert:`\\csc\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos⁻¹(□)`,insert:`\\cos^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`sec(□)`,insert:`\\sec\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan⁻¹(□)`,insert:`\\tan^{-1}\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cot(□)`,insert:`\\cot\\left(#0\\right)`,cls:`green-placeholder-glyph`}],bracketDelimiterExtras:[{label:`⌊□⌋`,insert:`\\left\\lfloor #0 \\right\\rfloor`,cls:`green-placeholder-glyph`},{label:`⌈□⌉`,insert:`\\left\\lceil #0 \\right\\rceil`,cls:`green-placeholder-glyph`},{label:`⟨□|□⟩`,insert:`\\left\\langle #0 \\middle| #? \\right\\rangle`,cls:`green-placeholder-glyph`}],enclosureFrameExtras:[{label:`¯
9
+ ▯|`,insert:`\\class{cme-overline-right-bar-template}{#0}`,cls:`template`,directInsert:!0,title:`Overline with Right Bar`,icon:`overline-right-bar-template-image`},{label:`▢
10
+ ▯`,insert:`\\class{cme-rounded-box-template}{#?}`,cls:`template`,directInsert:!0,title:`Rounded Boxed`,icon:`boxed-rounded-template-image`}],strikeDecorationExtras:[{label:`│
11
+ ▯`,insert:`\\class{cme-vertical-strike-template}{#?}`,cls:`template`,directInsert:!0,title:`Vertical Strike`,icon:`vertical-strike-template-image`},{label:`)
12
+ ¯`,insert:`\\class{cme-overline-left-curve-template}{#?}`,cls:`template`,directInsert:!0,title:`Overline with Curved Left Boundary`,icon:`overline-left-curve-template-image`},{label:`?
13
+ ?`,insert:`\\class{cme-crosshair-strike-template}{\\htmlStyle{display:inline-block;min-width:0.72em;white-space:nowrap;}{#0}}`,cls:`template`,directInsert:!0,title:`Vertical and Horizontal Strike`,icon:`crosshair-strike-template-image`}],arithmeticLayoutExtras:[{label:`diff-array`,insert:`\\frac{\\begin{array}{r}\\class{cme-column-layout-slot-1}{#0}\\\\-\\,\\class{cme-column-layout-slot-2}{#?}\\end{array}}{\\hskip10px\\class{cme-column-layout-slot-3}{#?}}`,directInsert:!0,focusSlotGroup:`column-layout`,icon:`difference-array-template-image`,title:`Column Subtraction`},{label:`stack-line`,insert:`\\frac{\\begin{array}{c}\\class{cme-column-layout-slot-1}{#0}\\\\\\class{cme-column-layout-slot-2}{#?}\\end{array}}{\\class{cme-column-layout-slot-3}{#?}}`,cls:`template`,directInsert:!0,focusSlotGroup:`column-layout`,icon:`stack-line-template-image`,title:`Stacked Line Layout`},{label:`product-array`,insert:`\\frac{\\begin{array}{r}\\class{cme-column-layout-slot-1}{#0}\\\\\\times\\,\\class{cme-column-layout-slot-2}{#?}\\end{array}}{\\hskip10px\\class{cme-column-layout-slot-3}{#?}}`,cls:`template`,directInsert:!0,focusSlotGroup:`column-layout`,icon:`product-array-template-image`,title:`Column Multiplication`},{label:`mixed-fraction`,insert:`\\begin{array}{@{\\hspace{3px}}rl}\\class{cme-mixed-fraction-whole}{#?}\\, & \\kern-10mu\\class{cme-mixed-fraction-slot}{#?}\\\\\\kern0pt & \\kern-10mu\\class{cme-mixed-fraction-denominator}{#?}\\end{array}`,cls:`template`,directInsert:!0,icon:`mixed-fraction-template-image`,title:`Mixed Fraction`},{label:`array-cc`,insert:`\\begin{array}{rl}\\class{cme-split-fraction-left}{#?}\\, & \\kern-10mu\\class{cme-split-fraction-slot}{#?}\\\\\\class{cme-split-fraction-left}{#?}\\, & \\kern-10mu\\class{cme-split-fraction-denominator}{#?}\\end{array}`,cls:`template`,directInsert:!0,icon:`array-cc-template-image`,title:`Split Column With Fraction`},{label:`division-remainder`,insert:`\\raise{-2px}{#?}\\, ) \\!\\!\\!\\!\\! \\begin{array}{l}\\overset{\\displaystyle\\hskip4px#?}{\\raise{-2px}{\\overline{\\vphantom{1}\\;\\;\\raise{-2px}{#?}\\;}}}\\\\\\;\\;\\raise{-2px}{#?}\\;\\end{array}`,cls:`template`,cls:`template`,directInsert:!0,icon:`division-remainder-template-image`,title:`Division With Remainder`}]};function x(e,t=`More Symbols`){return{label:`|`,action:`RELATION_MORE_PICKER`,picker:e,title:t,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool relation-more-picker-tool`}}var ne=[{label:`cancel`,insert:`\\cancel{#0}`,title:`Negate / Cross Out`,icon:`negate-template-image`},{type:`sep`,cols:1},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`±`,insert:`\\pm`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`*`,insert:`\\ast`},{label:`·`,insert:`\\cdot`},{label:`/`,insert:`/`},{label:`∘`,insert:`∘`},x(`operatorExtras`,`More Operators`),{type:`sep`,cols:5},{label:`π`,insert:`\\pi`},{label:`∞`,insert:`\\infty`},{label:`∅`,insert:`\\emptyset`},{label:`∂`,insert:`\\partial`},{label:`Δ`,insert:`\\Delta`},{label:`∇`,insert:`\\nabla`},{label:`°`,insert:`\\degree`},{label:`′`,insert:`'`,cls:`prime-symbol-tool`},{label:`″`,insert:`''`,cls:`prime-symbol-tool`},x(`primeExtras`,`More Prime Symbols`),{type:`sep`,cols:3},{label:`=`,insert:`=`},{label:`~`,insert:`\\sim`},{label:`≃`,insert:`\\simeq`},{label:`≡`,insert:`\\equiv`},{label:`≈`,insert:`\\approx`},{label:`≅`,insert:`\\cong`},x(`notEqualExtras`,`More Not Equal Relations`),{type:`sep`,cols:3},{label:`>`,insert:`>`},{label:`≥`,insert:`\\geq`},{label:`⩾`,insert:`\\geqslant`,title:`Greater Than or Slanted Equal To`},{label:`<`,insert:`<`},{label:`≤`,insert:`\\leq`},{label:`⩽`,insert:`\\leqslant`,title:`Less Than or Slanted Equal To`},x(`comparisonExtras`,`More Comparison Symbols`),{type:`sep`,cols:3},{label:`∈`,insert:`\\in`},{label:`∪`,insert:`\\cup`},{label:`⊂`,insert:`\\subset`},{label:`∋`,insert:`\\ni`},{label:`∩`,insert:`\\cap`},{label:`⊃`,insert:`\\supset`},x(`setExtras`,`More Set Symbols`),{type:`sep`,cols:3},{label:`∧`,insert:`\\land`},{label:`¬`,insert:`\\neg`},{label:`∃`,insert:`\\exists`},{label:`∨`,insert:`\\lor`},{label:`∀`,insert:`\\forall`},{label:`∄`,insert:`\\nexists`},x(`logicExtras`,`More Logic Symbols`),{type:`sep`,cols:2},{label:`∠`,insert:`\\angle`},{label:`∥`,insert:`\\parallel`},{label:`⊥`,insert:`\\perp`},x(`geometryExtras`,`More Geometry Symbols`),{type:`sep`,cols:3},{label:`□`,insert:`\\square`},{label:`△`,insert:`\\triangle`},{label:`○`,insert:`\\bigcirc`},x(`shapeExtras`,`More Shape Symbols`),{type:`sep`,cols:3},{label:`⊕`,insert:`\\oplus`},{label:`⊗`,insert:`\\otimes`},{label:`⊙`,insert:`\\odot`},x(`circledExtras`,`More Circled Operators`)],S=[{label:`↗`,insert:`\\nearrow`,title:`North East Arrow`},{label:`↘`,insert:`\\searrow`,title:`South East Arrow`},{label:`↖`,insert:`\\nwarrow`,title:`North West Arrow`},{label:`↙`,insert:`\\swarrow`,title:`South West Arrow`},{label:`⤡`,insert:`⤡`,title:`North East and South West Arrow`},{label:`⤢`,insert:`⤢`,title:`North West and South East Arrow`},{label:`↩`,insert:`\\hookleftarrow`,title:`Hook Left Arrow`},{label:`↪`,insert:`\\hookrightarrow`,title:`Hook Right Arrow`},{label:`↼`,insert:`\\leftharpoonup`,title:`Left Harpoon Up`},{label:`⇀`,insert:`\\rightharpoonup`,title:`Right Harpoon Up`},{label:`↑`,insert:`\\uparrow`,title:`Up Arrow`},{label:`↓`,insert:`\\downarrow`,title:`Down Arrow`},{label:`⇑`,insert:`\\Uparrow`,title:`Double Up Arrow`},{label:`⇓`,insert:`\\Downarrow`,title:`Double Down Arrow`},{label:`⥪`,insert:`⥪`,title:`Leftwards Arrow with Hook`},{label:`⥭`,insert:`⥭`,title:`Rightwards Arrow with Hook`},{label:`⇋`,insert:`\\leftrightharpoons`,title:`Reverse Equilibrium Harpoons`},{label:`⇌`,insert:`\\rightleftharpoons`,title:`Equilibrium Harpoons`},{label:`↽`,insert:`\\leftharpoondown`,title:`Left Harpoon Down`},{label:`⇁`,insert:`\\rightharpoondown`,title:`Right Harpoon Down`},{label:`⇆`,insert:`⇆`,title:`Leftwards Arrow over Rightwards Arrow`},{label:`⇄`,insert:`\\rightleftarrows`,title:`Rightwards Arrow over Leftwards Arrow`},{label:`⇅`,insert:`⇅`,title:`Upwards Arrow Left of Downwards Arrow`},{label:`⇵`,insert:`⇵`,title:`Downwards Arrow Left of Upwards Arrow`},{label:`⥮`,insert:`⥮`,title:`Upwards Harpoon with Barb Left beside Downwards Harpoon with Barb Right`},{label:`⥯`,insert:`⥯`,title:`Downwards Harpoon with Barb Left beside Upwards Harpoon with Barb Right`},{label:`⥂`,insert:`⥂`,title:`Rightwards Arrow over Short Leftwards Arrow`},{label:`⥄ `,insert:`⥄ `,title:`Short Rightwards Arrow over Leftwards Arrow`},{label:`↕`,insert:`\\updownarrow`,title:`Up Down Arrow`},{label:`⇕`,insert:`\\Updownarrow`,title:`Double Up Down Arrow`},{label:`↵`,insert:`↵`,title:`Downwards Arrow with Corner Leftwards`}],C=[{insert:`\\xleftrightarrow{#0}`,title:`Right Left Arrows with Overscript`,icon:`right-left-arrows-over`},{insert:`\\xleftrightarrow[#0]{}`,title:`Right Left Arrows with Underscript`,icon:`right-left-arrows-under`},{insert:`\\xleftrightarrow[#?]{#0}`,title:`Right Left Arrows with Under and Overscript`,icon:`right-left-arrows-over-under`,focusFirstPlaceholder:!0},{insert:`\\xleftrightarrows{\\raise{0.14em}{#0}}`,title:`Left Arrow over Right Arrow with Overscript`,icon:`left-right-arrows-over`},{insert:`\\xleftrightarrows[#0]{}`,title:`Left Arrow over Right Arrow with Underscript`,icon:`left-right-arrows-under`},{insert:`\\xleftrightarrows[#?]{\\raise{0.14em}{#0}}`,title:`Left Arrow over Right Arrow with Under and Overscript`,icon:`left-right-arrows-over-under`,focusFirstPlaceholder:!0},{insert:`\\class{cme-right-left-stacked-arrows}{\\xleftrightarrows{\\raise{0.14em}{#0}}}`,title:`Right Arrow over Left Arrow with Overscript`,icon:`right-left-stacked-arrows-over`},{insert:`\\class{cme-right-left-stacked-arrows}{\\xleftrightarrows[#0]{}}`,title:`Right Arrow over Left Arrow with Underscript`,icon:`right-left-stacked-arrows-under`},{insert:`\\class{cme-right-left-stacked-arrows}{\\xleftrightarrows[#?]{\\raise{0.14em}{#0}}}`,title:`Right Arrow over Left Arrow with Under and Overscript`,icon:`right-left-stacked-arrows-over-under`,focusFirstPlaceholder:!0},{insert:`\\xleftrightharpoons{#0}`,title:`Left Harpoon over Right Harpoon with Overscript`,icon:`left-right-harpoons-over`},{insert:`\\xleftrightharpoons[#0]{}`,title:`Left Harpoon over Right Harpoon with Underscript`,icon:`left-right-harpoons-under`},{insert:`\\xleftrightharpoons[#?]{#0}`,title:`Left Harpoon over Right Harpoon with Under and Overscript`,icon:`left-right-harpoons-over-under`,focusFirstPlaceholder:!0},{insert:`\\xrightleftharpoons{#0}`,title:`Right Harpoon over Left Harpoon with Overscript`,icon:`right-left-harpoons-over`},{insert:`\\xrightleftharpoons[#0]{}`,title:`Right Harpoon over Left Harpoon with Underscript`,icon:`right-left-harpoons-under`},{insert:`\\xrightleftharpoons[#?]{#0}`,title:`Right Harpoon over Left Harpoon with Under and Overscript`,icon:`right-left-harpoons-over-under`,focusFirstPlaceholder:!0},{insert:`\\overset{#?}{\\underset{\\leftarrow}{\\rightarrow}}`,title:`Rightwards Arrow over Short Leftwards Arrow with Overscript`,icon:`long-right-short-left-over`},{insert:`\\underset{#?}{\\underset{\\leftarrow}{\\rightarrow}}`,title:`Rightwards Arrow over Short Leftwards Arrow with Underscript`,icon:`long-right-short-left-under`},{insert:`\\overset{#0}{\\underset{#?}{\\underset{\\leftarrow}{\\rightarrow}}}`,title:`Rightwards Arrow over Short Leftwards Arrow with Under and Overscript`,icon:`long-right-short-left-over-under`,focusFirstPlaceholder:!0},{insert:`\\overset{#?}{\\overset{\\rightarrow}{\\leftarrow}}`,title:`Short Rightwards Arrow over Leftwards Arrow with Overscript`,icon:`short-right-long-left-over`},{insert:`\\underset{#?}{\\overset{\\rightarrow}{\\leftarrow}}`,title:`Short Rightwards Arrow over Leftwards Arrow with Underscript`,icon:`short-right-long-left-under`},{insert:`\\overset{#0}{\\underset{#?}{\\overset{\\rightarrow}{\\leftarrow}}}`,title:`Short Rightwards Arrow over Leftwards Arrow with Under and Overscript`,icon:`short-right-long-left-over-under`,focusFirstPlaceholder:!0}],w=[{label:`Α`,insert:`\\mathit{Α}`,title:`Italic Alpha`},{label:`Β`,insert:`\\mathit{Β}`,title:`Italic Beta`},{label:`Γ`,insert:`\\varGamma`,title:`Italic Gamma`},{label:`Δ`,insert:`\\varDelta`,title:`Italic Delta`},{label:`Ε`,insert:`\\mathit{Ε}`,title:`Italic Epsilon`},{label:`Ζ`,insert:`\\mathit{Ζ}`,title:`Italic Zeta`},{label:`Η`,insert:`\\mathit{Η}`,title:`Italic Eta`},{label:`Θ`,insert:`\\varTheta`,title:`Italic Theta`},{label:`Ι`,insert:`\\mathit{Ι}`,title:`Italic Iota`},{label:`Κ`,insert:`\\mathit{Κ}`,title:`Italic Kappa`},{label:`Λ`,insert:`\\varLambda`,title:`Italic Lambda`},{label:`Μ`,insert:`\\mathit{Μ}`,title:`Italic Mu`},{label:`Ν`,insert:`\\mathit{Ν}`,title:`Italic Nu`},{label:`Ξ`,insert:`\\varXi`,title:`Italic Xi`},{label:`Ο`,insert:`\\mathit{Ο}`,title:`Italic Omicron`},{label:`Π`,insert:`\\varPi`,title:`Italic Pi`},{label:`Ρ`,insert:`\\mathit{Ρ}`,title:`Italic Rho`},{label:`Σ`,insert:`\\varSigma`,title:`Italic Sigma`},{label:`Τ`,insert:`\\mathit{Τ}`,title:`Italic Tau`},{label:`Υ`,insert:`\\varUpsilon`,title:`Italic Upsilon`},{label:`Φ`,insert:`\\varPhi`,title:`Italic Phi`},{label:`Χ`,insert:`\\mathit{Χ}`,title:`Italic Chi`},{label:`Ψ`,insert:`\\varPsi`,title:`Italic Psi`},{label:`Ω`,insert:`\\varOmega`,title:`Italic Omega`}];function re(e){return`\\htmlStyle{font-family:Helvetica, Arial, sans-serif;font-style:italic;}{${e}}`}var T=[[`𝔸`,`A`],[`𝔹`,`B`],[`ℂ`,`C`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`ℍ`,`H`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`ℕ`,`N`],[`𝕆`,`O`],[`ℙ`,`P`],[`ℚ`,`Q`],[`ℝ`,`R`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`ℤ`,`Z`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`]].map(([e,t])=>({label:e,letter:t,insert:l(e),title:`Blackboard Bold ${t}`,...c})),E=new Map(T.map(e=>[e.letter,e])),ie=[[`A`,`D`,`G`,`J`,`M`,`P`,`S`,`V`,`Y`,`a`,`d`,`g`,`j`,`m`,`p`,`s`,`v`,`y`],[`B`,`E`,`H`,`K`,`N`,`Q`,`T`,`W`,`Z`,`b`,`e`,`h`,`k`,`n`,`q`,`t`,`w`,`z`],[`C`,`F`,`I`,`L`,`O`,`R`,`U`,`X`,null,`c`,`f`,`i`,`l`,`o`,`r`,`u`,`x`,null]].flatMap((e,t)=>e.map((e,n)=>e?E.get(e):{spacer:!0,key:`blackboard-spacer-${t}-${n}`})),D=[[`𝔄`,`𝔄`,`Fraktur A`],[`𝔅`,`𝔅`,`Fraktur B`],[`ℭ`,`ℭ`,`Fraktur C`],[`𝔇`,`𝔇`,`Fraktur D`],[`𝔈`,`𝔈`,`Fraktur E`],[`𝔉`,`𝔉`,`Fraktur F`],[`𝔊`,`𝔊`,`Fraktur G`],[`ℌ`,`ℌ`,`Fraktur H`],[`ℑ`,`ℑ`,`Fraktur I`],[`𝔍`,`𝔍`,`Fraktur J`],[`𝔎`,`𝔎`,`Fraktur K`],[`𝔏`,`𝔏`,`Fraktur L`],[`𝔐`,`𝔐`,`Fraktur M`],[`𝔑`,`𝔑`,`Fraktur N`],[`𝔒`,`𝔒`,`Fraktur O`],[`𝔓`,`𝔓`,`Fraktur P`],[`𝔔`,`𝔔`,`Fraktur Q`],[`ℜ`,`ℜ`,`Fraktur R`],[`𝔖`,`𝔖`,`Fraktur S`],[`𝔗`,`𝔗`,`Fraktur T`],[`𝔘`,`𝔘`,`Fraktur U`],[`𝔙`,`𝔙`,`Fraktur V`],[`𝔚`,`𝔚`,`Fraktur W`],[`𝔛`,`𝔛`,`Fraktur X`],[`𝔜`,`𝔜`,`Fraktur Y`],[`ℨ`,`ℨ`,`Fraktur Z`],[`𝔞`,`𝔞`,`Fraktur a`],[`𝔟`,`𝔟`,`Fraktur b`],[`𝔠`,`𝔠`,`Fraktur c`],[`𝔡`,`𝔡`,`Fraktur d`],[`𝔢`,`𝔢`,`Fraktur e`],[`𝔣`,`𝔣`,`Fraktur f`],[`𝔤`,`𝔤`,`Fraktur g`],[`𝔥`,`𝔥`,`Fraktur h`],[`𝔦`,`𝔦`,`Fraktur i`],[`𝔧`,`𝔧`,`Fraktur j`],[`𝔨`,`𝔨`,`Fraktur k`],[`𝔩`,`𝔩`,`Fraktur l`],[`𝔪`,`𝔪`,`Fraktur m`],[`𝔫`,`𝔫`,`Fraktur n`],[`𝔬`,`𝔬`,`Fraktur o`],[`𝔭`,`𝔭`,`Fraktur p`],[`𝔮`,`𝔮`,`Fraktur q`],[`𝔯`,`𝔯`,`Fraktur r`],[`𝔰`,`𝔰`,`Fraktur s`],[`𝔱`,`𝔱`,`Fraktur t`],[`𝔲`,`𝔲`,`Fraktur u`],[`𝔳`,`𝔳`,`Fraktur v`],[`𝔴`,`𝔴`,`Fraktur w`],[`𝔵`,`𝔵`,`Fraktur x`],[`𝔶`,`𝔶`,`Fraktur y`],[`𝔷`,`𝔷`,`Fraktur z`],[`𝒜`,`𝒜`,`Script A`],[`ℬ`,`ℬ`,`Script B`],[`𝒞`,`𝒞`,`Script C`],[`𝒟`,`𝒟`,`Script D`],[`ℰ`,`ℰ`,`Script E`],[`ℱ`,`ℱ`,`Script F`],[`𝒢`,`𝒢`,`Script G`],[`ℋ`,`ℋ`,`Script H`],[`ℐ`,`ℐ`,`Script I`],[`𝒥`,`𝒥`,`Script J`],[`𝒦`,`𝒦`,`Script K`],[`ℒ`,`ℒ`,`Script L`],[`ℳ`,`ℳ`,`Script M`],[`𝒩`,`𝒩`,`Script N`],[`𝒪`,`𝒪`,`Script O`],[`𝒫`,`𝒫`,`Script P`],[`𝒬`,`𝒬`,`Script Q`],[`ℛ`,`ℛ`,`Script R`],[`𝒮`,`𝒮`,`Script S`],[`𝒯`,`𝒯`,`Script T`],[`𝒰`,`𝒰`,`Script U`],[`𝒱`,`𝒱`,`Script V`],[`𝒲`,`𝒲`,`Script W`],[`𝒳`,`𝒳`,`Script X`],[`𝒴`,`𝒴`,`Script Y`],[`𝒵`,`𝒵`,`Script Z`],[`𝒶`,`𝒶`,`Script a`],[`𝒷`,`𝒷`,`Script b`],[`𝒸`,`𝒸`,`Script c`],[`𝒹`,`𝒹`,`Script d`],[`ℯ`,`ℯ`,`Script e`],[`𝒻`,`𝒻`,`Script f`],[`ℊ`,`ℊ`,`Script g`],[`𝒽`,`𝒽`,`Script h`],[`𝒾`,`𝒾`,`Script i`],[`𝒿`,`𝒿`,`Script j`],[`𝓀`,`𝓀`,`Script k`],[`𝓁`,`𝓁`,`Script l`],[`𝓂`,`𝓂`,`Script m`],[`𝓃`,`𝓃`,`Script n`],[`ℴ`,`ℴ`,`Script o`],[`𝓅`,`𝓅`,`Script p`],[`𝓆`,`𝓆`,`Script q`],[`𝓇`,`𝓇`,`Script r`],[`𝓈`,`𝓈`,`Script s`],[`𝓉`,`𝓉`,`Script t`],[`𝓊`,`𝓊`,`Script u`],[`𝓋`,`𝓋`,`Script v`],[`𝓌`,`𝓌`,`Script w`],[`𝓍`,`𝓍`,`Script x`],[`𝓎`,`𝓎`,`Script y`],[`𝓏`,`𝓏`,`Script z`]].map(([e,t,n])=>({label:e,insert:t,title:n,letter:n.split(` `).pop()})),ae=D.filter(({title:e})=>e.startsWith(`Fraktur `)),O=D.filter(({title:e})=>e.startsWith(`Script `)),k=[[`A`,`D`,`G`,`J`,`M`,`P`,`S`,`V`,`Y`,`a`,`d`,`g`,`j`,`m`,`p`,`s`,`v`,`y`],[`B`,`E`,`H`,`K`,`N`,`Q`,`T`,`W`,`Z`,`b`,`e`,`h`,`k`,`n`,`q`,`t`,`w`,`z`],[`C`,`F`,`I`,`L`,`O`,`R`,`U`,`X`,null,`c`,`f`,`i`,`l`,`o`,`r`,`u`,`x`,null]];function A(e,t){let n=new Map(e.map(e=>[e.letter,e]));return k.flatMap((e,r)=>e.map((e,i)=>e?n.get(e):{spacer:!0,key:`${t}-spacer-${r}-${i}`}))}var oe=A(ae,`fraktur`),se=A(O,`script`),j=[{label:`ℵ`,insert:`\\aleph`,title:`Aleph`},{label:`ℒ`,insert:`ℒ`,title:`Script L`},{label:`℘`,insert:`\\wp`,title:`Weierstrass p`},{label:`𝒵`,insert:`𝒵`,title:`Script Z`},{label:`ℱ`,insert:`ℱ`,title:`Script F`}],M=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],ce=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`];function le(e,t){if(!e||t===`western`)return e;let n=t===`arabicIndic`?M:t===`easternArabicIndic`?ce:null;return n?String(e).replace(/\d/g,e=>n[Number(e)]||e):e}var N=31,P=33,F=592,I=295,ue=[{row:1,items:[[`H`,1,`hydrogen`],[`He`,18,`noble-gas`]]},{row:2,items:[[`Li`,1,`alkali`],[`Be`,2,`alkaline`],[`B`,13,`nonmetal`],[`C`,14,`nonmetal`],[`N`,15,`nonmetal`],[`O`,16,`nonmetal`],[`F`,17,`nonmetal`],[`Ne`,18,`noble-gas`]]},{row:3,items:[[`Na`,1,`alkali`],[`Mg`,2,`alkaline`],[`Al`,13,`post-transition`],[`Si`,14,`post-transition`],[`P`,15,`nonmetal`],[`S`,16,`nonmetal`],[`Cl`,17,`nonmetal`],[`Ar`,18,`noble-gas`]]},{row:4,items:[[`K`,1,`alkali`],[`Ca`,2,`alkaline`],[`Sc`,3,`transition`],[`Ti`,4,`transition`],[`V`,5,`transition`],[`Cr`,6,`transition`],[`Mn`,7,`transition`],[`Fe`,8,`transition`],[`Co`,9,`transition`],[`Ni`,10,`transition`],[`Cu`,11,`transition`],[`Zn`,12,`transition`],[`Ga`,13,`post-transition`],[`Ge`,14,`post-transition`],[`As`,15,`nonmetal`],[`Se`,16,`nonmetal`],[`Br`,17,`nonmetal`],[`Kr`,18,`noble-gas`]]},{row:5,items:[[`Rb`,1,`alkali`],[`Sr`,2,`alkaline`],[`Y`,3,`transition`],[`Zr`,4,`transition`],[`Nb`,5,`transition`],[`Mo`,6,`transition`],[`Tc`,7,`transition`],[`Ru`,8,`transition`],[`Rh`,9,`transition`],[`Pd`,10,`transition`],[`Ag`,11,`transition`],[`Cd`,12,`transition`],[`In`,13,`post-transition`],[`Sn`,14,`post-transition`],[`Sb`,15,`nonmetal`],[`Te`,16,`nonmetal`],[`I`,17,`nonmetal`],[`Xe`,18,`noble-gas`]]},{row:6,items:[[`Cs`,1,`alkali`],[`Ba`,2,`alkaline`],[`Hf`,4,`transition`],[`Ta`,5,`transition`],[`W`,6,`transition`],[`Re`,7,`transition`],[`Os`,8,`transition`],[`Ir`,9,`transition`],[`Pt`,10,`transition`],[`Au`,11,`transition`],[`Hg`,12,`transition`],[`Tl`,13,`post-transition`],[`Pb`,14,`post-transition`],[`Bi`,15,`post-transition`],[`Po`,16,`post-transition`],[`At`,17,`nonmetal`],[`Rn`,18,`noble-gas`]]},{row:7,items:[[`Fr`,1,`alkali`],[`Ra`,2,`alkaline`],[`Rf`,4,`transition`],[`Db`,5,`transition`],[`Sg`,6,`transition`],[`Bh`,7,`transition`],[`Hs`,8,`transition`],[`Mt`,9,`transition`],[`Ds`,10,`transition`],[`Rg`,11,`transition`],[`Cn`,12,`transition`],[`Nh`,13,`post-transition`],[`Fl`,14,`post-transition`],[`Mc`,15,`post-transition`],[`Lv`,16,`post-transition`],[`Ts`,17,`placeholder`],[`Og`,18,`placeholder`]]},{row:8,items:[[`La`,4,`series-anchor`],[`Ce`,5,`lanthanide`],[`Pr`,6,`lanthanide`],[`Nd`,7,`lanthanide`],[`Pm`,8,`lanthanide`],[`Sm`,9,`lanthanide`],[`Eu`,10,`lanthanide`],[`Gd`,11,`lanthanide`],[`Tb`,12,`lanthanide`],[`Dy`,13,`lanthanide`],[`Ho`,14,`lanthanide`],[`Er`,15,`lanthanide`],[`Tm`,16,`lanthanide`],[`Yb`,17,`lanthanide`],[`Lu`,18,`lanthanide`]]},{row:9,items:[[`Ac`,4,`series-anchor`],[`Th`,5,`actinide`],[`Pa`,6,`actinide`],[`U`,7,`actinide`],[`Np`,8,`actinide`],[`Pu`,9,`actinide`],[`Am`,10,`actinide`],[`Cm`,11,`actinide`],[`Bk`,12,`actinide`],[`Cf`,13,`actinide`],[`Es`,14,`actinide`],[`Fm`,15,`actinide`],[`Md`,16,`actinide`],[`No`,17,`actinide`],[`Lr`,18,`actinide`]]}].flatMap(({row:e,items:t})=>t.map(([t,n,r])=>({label:t,insert:t,row:e,col:n,tone:r,title:t}))),de=[{label:`Times`,value:`variant:main-up`,style:{variant:`main`,variantStyle:`up`,fontFamily:`none`}},{label:`Helvetica`,value:`variant:sans-serif`,style:{variant:`sans-serif`,fontFamily:`none`}},{label:`Courier`,value:`variant:monospace`,style:{variant:`monospace`,fontFamily:`none`}},{label:`Calligraphic`,value:`variant:calligraphic`,style:{variant:`calligraphic`,fontFamily:`none`}},{label:`Script`,value:`variant:script`,style:{variant:`script`,fontFamily:`none`}},{label:`Fraktur`,value:`variant:fraktur`,style:{variant:`fraktur`,fontFamily:`none`}},{label:`Blackboard`,value:`variant:double-struck`,style:{variant:`double-struck`,fontFamily:`none`}}],fe={fontFamily:`none`,variant:`main`},pe=[{label:`8px`,value:`3`},{label:`10px`,value:`4`},{label:`12px`,value:`5`},{label:`14px`,value:`6`},{label:`16px`,value:`7`},{label:`18px`,value:`8`},{label:`24px`,value:`10`}],me={up:{x:0,y:-1},right:{x:1,y:0},left:{x:-1,y:0},down:{x:0,y:1}};function he(e=``){let t=String(e||``),n=0,r=0,i=/^\\htmlStyle\{([^}]*)\}\{([\s\S]*)\}$/;for(;;){let e=t.match(i);if(!e)break;let a=e[1]||``;if(!a.includes(`display:inline-block`)||!a.includes(`position:relative`))break;let o=a.match(/left:\s*(-?\d+)px/i),s=a.match(/top:\s*(-?\d+)px/i);n+=o?parseInt(o[1],10):0,r+=s?parseInt(s[1],10):0,t=e[2]||``}return{baseLatex:t,offsetX:n,offsetY:r}}function ge(e,t,n){let r=[`display:inline-block`,`position:relative`];return t!==0&&r.push(`left:${t}px`),n!==0&&r.push(`top:${n}px`),`\\htmlStyle{${r.join(`;`)};}{${e}}`}function _e(e){return!!(e&&Array.isArray(e.ranges)&&e.ranges.some(([e,t])=>e!==t))}function ve(e){if(!e||!e.includes(`#0`))return 0;let t=Array.from(e.matchAll(/#(?:\d+|\?|@)/g)),n=t.findIndex(e=>e[0]===`#0`);return n<=0?0:t.slice(0,n).length}function ye(e,t){if(!(!e||!t||typeof e.executeCommand!=`function`))for(let n=0;n<t;n+=1)try{e.executeCommand(`moveToNextPlaceholder`)}catch{break}}var L=[`cme-mixed-fraction-whole`,`cme-mixed-fraction-slot`,`cme-mixed-fraction-denominator`],be=[`cme-column-layout-slot-1`,`cme-column-layout-slot-2`,`cme-column-layout-slot-3`],xe={"column-layout":be};function R(e){let t=e?.args?.[0]||(Array.isArray(e?.classes)?e.classes.join(` `):``);return typeof t==`string`?t.split(/\s+/).filter(Boolean):[]}function z(e,t){let n=e;for(;n;){if(R(n).some(e=>t.includes(e)))return n;n=n.parent}return null}function Se(e=[],t){return e.find(e=>R(e).includes(t))||null}function Ce(e){return xe[e]||null}function we(e){let t=Number.isFinite(e?.anchor)?e.anchor:e?.position,n=Number.isFinite(e?.position)?e.position:t;return Number.isFinite(n)?[e.at(Math.max(t,n)),e.at(Math.min(t,n)),e.at(n-1),e.at(n+1)].filter(Boolean):[]}function B(e,t){let n=e;for(;n;){if(n===t)return!0;n=n.parent}return!1}function Te(e,t,n){if(!e||!t||!Array.isArray(n))return null;let r=Array.isArray(e.atoms)?e.atoms:[],i=n.map(e=>r.find(n=>R(n).includes(e)&&B(n,t))||null);return i.every(Boolean)?i:null}function V(e,t){let n=we(e),r=n.map(e=>z(e,t)).find(Boolean)||null,i=r?[r,...n]:n;for(let n of i){let i=n;for(;i;){let n=Te(e,i,t);if(n)return{currentSlot:r,slots:n};i=i.parent}}return null}function Ee(e,t,n=!1){let r=e?.model;if(!r||!Array.isArray(t))return!1;let i=V(r,t);if(!i)return!1;let a=i.currentSlot?i.slots.findIndex(e=>e===i.currentSlot):-1,o=a>=0?(a+(n?-1:1)+i.slots.length)%i.slots.length:n?i.slots.length-1:0;return Ae(e,i.slots[o])}function De(e,t,n=0){let r=e?.model;if(!r||!Array.isArray(t))return!1;let i=V(r,t);if(!i)return!1;let a=i.slots[Math.min(Math.max(n,0),i.slots.length-1)];return Ae(e,a)}function Oe(e){if(!e||e.type!==`array`)return null;let t=L.map(t=>{for(let n=0;n<e.rowCount;n+=1)for(let r=0;r<e.colCount;r+=1){let i=Se(e.branch([n,r]),t);if(i)return i}return null});return t.every(Boolean)?t:null}function ke(e){let t=e;for(;t;){if(t.type===`array`&&Oe(t))return t;t=t.parent}return null}function Ae(e,t){let n=e?.model,r=t?.body||[];if(!n||!t||!Array.isArray(r))return!1;let i=r.filter(e=>e.type!==`first`),a=i.find(e=>e.type===`placeholder`);if(a){let t=n.offsetOf(a);if(t>=0)return typeof n.setPositionHandlingPlaceholder==`function`?n.setPositionHandlingPlaceholder(t):n.setSelection(t-1,t),e.focus?.(),!0}if(i.length>0){let t=i[0],r=i[i.length-1],a=t.leftSibling||t,o=n.offsetOf(a),s=n.offsetOf(r);if(o>=0&&s>=0)return n.setSelection(o,s),e.focus?.(),!0}let o=r.find(e=>e.type===`first`),s=n.offsetOf(o);return s>=0?(n.position=s,e.focus?.(),!0):!1}function je(e,t=!1){let n=e?.model;if(!n)return!1;let r=Number.isFinite(n.anchor)?n.anchor:n.position,i=Number.isFinite(n.position)?n.position:r,a=[n.at(Math.max(r,i)),n.at(Math.min(r,i)),n.at(i-1),n.at(i+1)].filter(Boolean),o=a.map(e=>z(e,L)).find(Boolean),s=Oe((o?.parent?.type===`array`?o.parent:ke(o))||a.map(e=>ke(e)).find(Boolean));if(!s)return!1;let c=o?s.findIndex(e=>e===o):-1;return Ae(e,s[c>=0?(c+(t?-1:1)+s.length)%s.length:t?s.length-1:0])}var Me=[{id:`roots-main`,label:(0,i.jsx)(We,{}),items:[{label:`□/□`,insert:`\\frac{#0}{#?}`,title:`Fraction`,cls:`green-template black-glyph-template`,icon:`stacked-fraction`},{label:`□/□`,insert:`\\htmlStyle{display:inline-block;position:relative;top:-0.28em;padding:0 0.06em;min-width:0.54em;line-height:1;text-align:center;}{#0}\\htmlStyle{display:inline-block;position:relative;top:0.02em;font-size:1.3em;line-height:0.9;padding:0;color:#111;}{/}\\htmlStyle{display:inline-block;position:relative;top:0.28em;padding:0 0.06em;min-width:0.54em;line-height:1;text-align:center;}{#?}`,title:`Bevelled Fraction`,cls:`green-template black-glyph-template`,icon:`bevelled-fraction-offset-template-image`},{label:`√□`,insert:`\\sqrt{#0}`,title:`Square Root`,cls:`green-template black-glyph-template`,icon:`square-root-template`},{label:`□√□`,insert:`{}^{#?}\\!\\sqrt{#0}`,title:`Root`,cls:`green-template black-glyph-template`,icon:`nth-root-template`,focusFirstPlaceholder:!0},{type:`sep`,cols:2},{label:`□^□`,insert:`#0^{#?}`,title:`Superscript`,cls:`green-template black-glyph-template`,icon:`superscript-template`},{label:`□_□`,insert:`#0_{#?}`,title:`Subscript`,cls:`green-template black-glyph-template`,icon:`subscript-template`},{type:`sep`,cols:1},{label:`(□)`,insert:`\\left(#0\\right)`,title:`Parentheses`,cls:`green-template green-placeholder-glyph`},{label:`|□|`,insert:`\\left|#0\\right|`,title:`Absolute Value`,cls:`green-template green-placeholder-glyph`},{label:`[□]`,insert:`\\left[#0\\right]`,title:`Square Brackets`,cls:`green-template green-placeholder-glyph`},{label:`{□}`,insert:`\\left\\{#0\\right\\}`,title:`Curly Braces`,cls:`green-template green-placeholder-glyph`},{type:`sep`,cols:3},{label:`+`,insert:`+`},{label:`−`,insert:`-`},{label:`×`,insert:`\\times`},{label:`÷`,insert:`\\div`},{label:`/`,insert:`/`},{label:`±`,insert:`\\pm`},{type:`sep`,cols:3},{label:`≥`,insert:`\\geq`},{label:`≤`,insert:`\\leq`},{label:`∩`,insert:`\\cap`},{label:`∪`,insert:`\\cup`},{label:`⊂`,insert:`\\subset`},{label:`∈`,insert:`\\in`},{type:`sep`,cols:4},{label:`∅`,insert:`\\emptyset`},{label:`∞`,insert:`\\infty`},{label:`π`,insert:`\\pi`},{type:`sep`,cols:2},{label:`✂`,action:`CUT`,title:`Cut Formula`,cls:`soft-tool`},{label:`⧉`,action:`COPY`,title:`Copy Formula`,cls:`soft-tool`},{label:`⎘`,action:`PASTE`,title:`Paste Formula`,cls:`soft-tool`},{label:`↶`,action:`UNDO`,title:`Undo`,cls:`soft-tool`},{label:`↷`,action:`REDO`,title:`Redo`,cls:`soft-tool`},{label:`⌫`,action:`CLEAR`,title:`Clear Formula`,cls:`soft-tool`},{type:`sep`,cols:3},{label:`B`,action:`BOLD`,cls:`template format-tool`,title:`Bold`},{label:`1b`,action:`ITALIC`,cls:`format-tool`,title:`Italic`},{label:`BI`,action:`BOLD_ITALIC`,cls:`format-tool`,title:`Bold Italic`},{label:`Ω`,action:`SPECIAL_CHARS`,cls:`format-tool omega-tool`,title:`Greek Letters`},{label:`T`,action:`TEXT`,cls:`format-tool text-tool`,title:`Regular Text`},{label:`A`,action:`TEXT_COLOR`,cls:`format-tool color-tool`,title:`Text Color`},{type:`sep`,cols:1},{label:`RTL`,action:`TOGGLE_RTL`,cls:`format-tool rtl-tool`,title:`Right-to-Left Input`,icon:`rtl-input-template-image`},{type:`sep`,cols:1},{type:`dropdown`,label:`Font...`,width:`86px`},{type:`dropdown`,label:`Size`,width:`86px`}]},{id:`relations`,...b[1],items:ne,label:(0,i.jsx)(Ke,{})},{id:`arrows`,...b[4],label:(0,i.jsx)(Ze,{})},{id:`greek`,label:(0,i.jsx)(qe,{}),items:[{category:`Lowercase Greek Letters`,label:`α`,insert:`\\alpha`},{category:`Lowercase Greek Letters`,label:`β`,insert:`\\beta`},{category:`Lowercase Greek Letters`,label:`γ`,insert:`\\gamma`},{category:`Lowercase Greek Letters`,label:`δ`,insert:`\\delta`},{category:`Lowercase Greek Letters`,label:`ε`,insert:`\\epsilon`},{category:`Lowercase Greek Letters`,label:`ζ`,insert:`\\zeta`},{category:`Lowercase Greek Letters`,label:`η`,insert:`\\eta`},{category:`Lowercase Greek Letters`,label:`θ`,insert:`\\theta`},{category:`Lowercase Greek Letters`,label:`ϑ`,insert:`\\vartheta`},{category:`Lowercase Greek Letters`,label:`ι`,insert:`\\iota`},{category:`Lowercase Greek Letters`,label:`κ`,insert:`\\kappa`},{category:`Lowercase Greek Letters`,label:`λ`,insert:`\\lambda`},{category:`Lowercase Greek Letters`,label:`μ`,insert:`\\mu`},{category:`Lowercase Greek Letters`,label:`ν`,insert:`\\nu`},{category:`Lowercase Greek Letters`,label:`ξ`,insert:`\\xi`},{category:`Lowercase Greek Letters`,label:`ο`,insert:`ο`},{category:`Lowercase Greek Letters`,label:`π`,insert:`\\pi`},{category:`Lowercase Greek Letters`,label:`ϖ`,insert:`\\varpi`},{category:`Lowercase Greek Letters`,label:`ρ`,insert:`\\rho`},{category:`Lowercase Greek Letters`,label:`ς`,insert:`\\varsigma`},{category:`Lowercase Greek Letters`,label:`σ`,insert:`\\sigma`},{category:`Lowercase Greek Letters`,label:`τ`,insert:`\\tau`},{category:`Lowercase Greek Letters`,label:`υ`,insert:`\\upsilon`},{category:`Lowercase Greek Letters`,label:`φ`,insert:`\\phi`},{category:`Lowercase Greek Letters`,label:`ϕ`,insert:`\\varphi`},{category:`Lowercase Greek Letters`,label:`χ`,insert:`\\chi`},{category:`Lowercase Greek Letters`,label:`ψ`,insert:`\\psi`},{category:`Lowercase Greek Letters`,label:`ω`,insert:`\\omega`},{category:`Greek Letter Picker`,label:`|`,action:`GREEK_ITALIC_PICKER`,title:`Italic Uppercase Greek`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool greek-italic-picker-tool`},{label:`ℕ`,insert:l(`ℕ`),title:`Mathbb N`},{label:`ℤ`,insert:l(`ℤ`),title:`Mathbb Z`},{label:`ℚ`,insert:l(`ℚ`),title:`Mathbb Q`},{label:`ℂ`,insert:l(`ℂ`),title:`Mathbb C`},{label:`ℝ`,insert:l(`ℝ`),title:`Mathbb R`},{label:`ℙ`,insert:l(`ℙ`),title:`Mathbb P`},{category:`Blackboard Bold Picker`,label:`|`,action:`BLACKBOARD_BOLD_PICKER`,title:`More Blackboard Bold Letters`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool blackboard-bold-picker-tool`},{category:`Fraktur Symbols`,label:`𝔄`,insert:`𝔄`},{category:`Fraktur Symbols`,label:`𝔅`,insert:`𝔅`},{category:`Fraktur Symbols`,label:`𝔊`,insert:`𝔊`},{category:`Fraktur Picker`,label:`|`,action:`FRAKTUR_SCRIPT_PICKER`,picker:`fraktur`,title:`More Fraktur Letters`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool fraktur-script-picker-tool`},{category:`Script Symbols`,label:`𝒜`,insert:`𝒜`},{category:`Script Symbols`,label:`ℬ`,insert:`ℬ`},{category:`Script Symbols`,label:`𝒞`,insert:`𝒞`},{category:`Fraktur / Script Picker`,label:`|`,action:`FRAKTUR_SCRIPT_PICKER`,picker:`script`,title:`More Fraktur and Script Letters`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool fraktur-script-picker-tool`},{category:`Hebrew Mathematical Symbols`,label:`ℑ`,insert:`\\Im`},{category:`Hebrew Mathematical Symbols`,label:`ℜ`,insert:`\\Re`},{category:`Hebrew Mathematical Symbols`,label:`ℓ`,insert:`\\ell`},{category:`Hebrew Symbol Picker`,label:`|`,action:`HEBREW_SYMBOL_PICKER`,title:`More Hebrew Mathematical Symbols`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool hebrew-symbol-picker-tool`},{category:`Arabic-Indic Numeral Systems`,label:`٤٦`,action:`ARABIC_INDIC_NUMERALS`,title:`Arabic-Indic Numerals`,icon:`arabic-indic-numerals-template-image`,cls:`numeral-mode-tool`},{category:`Arabic-Indic Numeral Systems`,label:`۴۶`,action:`EASTERN_ARABIC_INDIC_NUMERALS`,title:`Eastern Arabic-Indic Numerals (Persian/Urdu)`,icon:`eastern-arabic-indic-numerals-template-image`,cls:`numeral-mode-tool`},{category:`Periodic Table Symbols`,label:`H`,insert:`H`},{category:`Periodic Table Symbols`,label:`C`,insert:`C`},{category:`Periodic Table Symbols`,label:`N`,insert:`N`},{category:`Periodic Table Symbols`,label:`O`,insert:`O`},{category:`Periodic Table Symbols`,label:`F`,insert:`F`},{category:`Periodic Table Symbols`,label:`S`,insert:`S`},{category:`Periodic Table Picker`,label:`|`,action:`PERIODIC_TABLE_PICKER`,title:`Periodic Table`,icon:`vertical-line-picker-template-image`,cls:`arrow-picker-tool periodic-table-picker-tool`}]},{id:`matrix`,...b[11],label:(0,i.jsx)(Ge,{})},{id:`power-frac`,...b[2],label:(0,i.jsx)(Y,{})},{id:`brackets`,label:(0,i.jsx)(Je,{}),items:[{label:`(□)`,insert:`\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`[□]`,insert:`\\left[#0\\right]`,cls:`green-placeholder-glyph`},{label:`|□|`,insert:`\\left|#0\\right|`,cls:`green-placeholder-glyph`},{label:`‖□‖`,insert:`\\left\\|| #0 \\right\\||`,cls:`green-placeholder-glyph`},{label:`⟨□⟩`,insert:`\\left\\langle #0 \\right\\rangle`,cls:`green-placeholder-glyph`},{label:`{□}`,insert:`\\left\\{#0\\right\\}`,cls:`green-placeholder-glyph`},x(`bracketDelimiterExtras`,`More Delimiters`),{type:`sep`,cols:2},{label:`overbrace`,insert:`\\overbrace{#0}`,cls:`template`,directInsert:!0,title:`Overbrace`,icon:`overbrace-arc-template-image`},{label:`underbrace`,insert:`\\underbrace{#0}`,cls:`template`,directInsert:!0,title:`Underbrace`,icon:`underbrace-arc-template-image`},{label:`overparen`,insert:`\\overgroup{#0}`,cls:`template`,directInsert:!0,title:`Overparen`,icon:`overparen-template-image`},{label:`underparen`,insert:`\\undergroup{#0}`,cls:`template`,directInsert:!0,title:`Underparen`,icon:`underparen-template-image`},{type:`sep`,cols:2},{label:`⃗
15
14
  ▯`,insert:`\\overrightharpoon{#0}`,cls:`template`,directInsert:!0,title:`Vector Accent`,icon:`vec-accent-template-image`},{label:`→
16
15
  ▯`,insert:`\\overrightarrow{#?}`,cls:`template`,directInsert:!0,title:`Right Arrow Accent`,icon:`overrightarrow-accent-template-image`},{label:`↔
17
16
  ▯`,insert:`\\overleftrightarrow{#?}`,cls:`template`,directInsert:!0,title:`Left-Right Arrow Accent`,icon:`overleftrightarrow-accent-template-image`},{label:`¯
18
17
  ▯`,insert:`\\overline{#?}`,cls:`template`,directInsert:!0,title:`Overline Accent`,icon:`overline-accent-template-image`},{label:`^
19
- ▯`,insert:`\\widehat{#?}`,cls:`template`,directInsert:!0,title:`Hat Accent`,icon:`hat-accent-template-image`},{label:`~
20
- ▯`,insert:`\\tilde{#?}`,cls:`template`,directInsert:!0,title:`Tilde Accent`,icon:`tilde-accent-template-image`},{label:`¨
21
- ▯`,insert:`\\ddot{#?}`,cls:`template`,directInsert:!0,title:`Double Dot Accent`,icon:`ddot-accent-template-image`},{label:`˙
22
- ▯`,insert:`\\dot{#?}`,cls:`template`,directInsert:!0,title:`Dot Accent`,icon:`dot-accent-template-image`},{type:`sep`,cols:2},{label:`¯
18
+ ▯`,insert:`\\class{cme-stretch-hat}{#?}`,cls:`template`,directInsert:!0,title:`Hat Accent`,icon:`hat-accent-template-image`},{label:`~
19
+ ▯`,insert:`\\overset{\\sim}{#?}`,cls:`template`,directInsert:!0,title:`Tilde Accent`,icon:`tilde-accent-template-image`},{label:`¨
20
+ ▯`,insert:`\\overset{\\cdot\\!\\cdot}{#?}`,cls:`template`,directInsert:!0,title:`Double Dot Accent`,icon:`ddot-accent-template-image`},{label:`˙
21
+ ▯`,insert:`\\overset{\\cdot}{#?}`,cls:`template`,directInsert:!0,title:`Dot Accent`,icon:`dot-accent-template-image`},{type:`sep`,cols:2},{label:`¯
23
22
  ▯`,insert:`\\overline{#?}`,cls:`template`,directInsert:!0,title:`Overline`,icon:`overline-frame-template-image`},{label:`_
24
23
  ▯`,insert:`\\underline{#?}`,cls:`template`,directInsert:!0,title:`Underline`,icon:`underline-frame-template-image`},{label:`|
25
24
  ▯`,insert:`\\left|#?\\right.`,cls:`template`,directInsert:!0,title:`Left Bar`,icon:`left-bar-template-image`},{label:`▯
26
25
  |`,insert:`\\left.#?\\right|`,cls:`template`,directInsert:!0,title:`Right Bar`,icon:`right-bar-template-image`},{label:`□
27
26
  ▯`,insert:`\\boxed{#?}`,cls:`template`,directInsert:!0,title:`Boxed`,icon:`boxed-square-template-image`},{label:`(
28
27
 
29
- )`,insert:`\\enclose{circle}{#?}`,cls:`template`,directInsert:!0,title:`Rounded Enclosure`,icon:`paren-frame-template-image`},_(`enclosureFrameExtras`,`More Enclosures`),{type:`sep`,cols:2},{label:`╱
30
- ▯`,insert:`\\cancel{#?}`,cls:`template`,directInsert:!0,title:`Cancel`,icon:`cancel-diagonal-template-image`},{label:`╲
31
- ▯`,insert:`\\bcancel{#?}`,cls:`template`,directInsert:!0,title:`Backward Cancel`,icon:`bcancel-template-image`},{label:`?
28
+ )`,insert:`\\class{cme-rounded-enclosure-template}{#?}`,cls:`template`,directInsert:!0,title:`Rounded Enclosure`,icon:`paren-frame-template-image`},x(`enclosureFrameExtras`,`More Enclosures`),{type:`sep`,cols:2},{label:`╱
29
+ ▯`,insert:`\\class{cme-cancel-template}{#?}`,cls:`template`,directInsert:!0,title:`Cancel`,icon:`cancel-diagonal-template-image`},{label:`╲
30
+ ▯`,insert:`\\class{cme-bcancel-template}{#?}`,cls:`template`,directInsert:!0,title:`Backward Cancel`,icon:`bcancel-template-image`},{label:`?
32
31
  ?`,insert:`\\htmlStyle{text-decoration:line-through;text-decoration-skip-ink:none;}{#0}`,cls:`template`,directInsert:!0,title:`Strikeout Text`,icon:`sout-template-image`},{label:`╳
33
- ▯`,insert:`\\xcancel{#?}`,cls:`template`,directInsert:!0,title:`Cross Cancel`,icon:`xcancel-template-image`},_(`strikeDecorationExtras`,`More Strike Decorations`)]},{id:`sets`,label:(0,i.jsx)(N,{top:`Σ ∪`,compact:!0}),items:[{label:`sum-limits-both`,insert:`\\sum\\limits_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Summation With Upper and Lower Limits`,icon:`sum-limits-both-template-image`},{label:`sum-limits-lower`,insert:`\\sum\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Lower Limit`,icon:`sum-limits-lower-template-image`},{label:`sum-right-both`,insert:`\\sum\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Superscript and Subscript`,icon:`sum-right-both-template-image`},{label:`sum-right-lower`,insert:`\\sum\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Subscript`,icon:`sum-right-lower-template-image`},{label:`prod-limits-both`,insert:`\\prod\\limits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Upper and Lower Limits`,icon:`prod-limits-both-template-image`},{label:`prod-limits-lower`,insert:`\\prod\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Lower Limit`,icon:`prod-limits-lower-template-image`},{label:`prod-right-both`,insert:`\\prod\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Superscript and Subscript`,icon:`prod-right-both-template-image`},{label:`prod-right-lower`,insert:`\\prod\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Subscript`,icon:`prod-right-lower-template-image`},{label:`□
32
+ ▯`,insert:`\\class{cme-xcancel-template}{#?}`,cls:`template`,directInsert:!0,title:`Cross Cancel`,icon:`xcancel-template-image`},x(`strikeDecorationExtras`,`More Strike Decorations`)]},{id:`sets`,label:(0,i.jsx)(J,{top:`Σ ∪`,compact:!0}),items:[{label:`sum-limits-both`,insert:`\\sum\\limits_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Summation With Upper and Lower Limits`,icon:`sum-limits-both-template-image`},{label:`sum-limits-lower`,insert:`\\sum\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Lower Limit`,icon:`sum-limits-lower-template-image`},{label:`sum-right-both`,insert:`\\sum\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Superscript and Subscript`,icon:`sum-right-both-template-image`},{label:`sum-right-lower`,insert:`\\sum\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Subscript`,icon:`sum-right-lower-template-image`},{label:`prod-limits-both`,insert:`\\prod\\limits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Upper and Lower Limits`,icon:`prod-limits-both-template-image`},{label:`prod-limits-lower`,insert:`\\prod\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Lower Limit`,icon:`prod-limits-lower-template-image`},{label:`prod-right-both`,insert:`\\prod\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Superscript and Subscript`,icon:`prod-right-both-template-image`},{label:`prod-right-lower`,insert:`\\prod\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Subscript`,icon:`prod-right-lower-template-image`},{label:`□
34
33
 
35
- □`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\overset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}}`,cls:`template`,directInsert:!0,title:`Operator With Upper and Lower Limits`,icon:`operator-limits-both-template-image`},{label:`▯
36
- □`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{label:`⋂`,insert:`\\bigcap`},{label:`⋃`,insert:`\\bigcup`},{label:`∏`,insert:`\\prod`},{label:`∐`,insert:`\\coprod`},{label:`⨅`,insert:`\\sqcap`},{label:`⨆`,insert:`\\bigsqcup`},{label:`∑`,insert:`\\sum`}]},{id:`calc`,label:(0,i.jsx)(z,{}),isTemplate:!0,items:[{label:`integral-both`,insert:`\\int_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Definite Integral`,icon:`integral-both-template-image`},{label:`integral-lower`,insert:`\\int_{#?}`,cls:`template`,directInsert:!0,title:`Integral With Subscript`,icon:`integral-lower-template-image`},{label:`∫□d□`,insert:`\\int_{#?}^{#?} #? \\, d#?`,directInsert:!0,title:`Integral`,icon:`integral-box-differential-template-image`},{label:``,insert:`\\int_{#?} #? \\, d#?`,cls:`template`,directInsert:!0,title:`Integral`,icon:`integral-template-image`},{type:`sep`,cols:4},{label:`d`,insert:`d`,cls:`template`,directInsert:!0,title:`Differential`},{label:`∂`,insert:`∂`,cls:`template`,directInsert:!0,title:`Partial Differential`},{label:`first-derivative`,insert:`\\frac{d#?}{d#?}`,cls:`template`,directInsert:!0,title:`First Derivative`,icon:`first-derivative-template-image`},{label:`partial-derivative`,insert:`\\frac{\\partial#?}{\\partial#?}`,cls:`template`,directInsert:!0,title:`Partial Derivative`,icon:`partial-derivative-template-image`},{type:`sep`,cols:2},{label:`limit-infinity`,insert:`\\lim_{#?\\to\\infty}`,cls:`template`,directInsert:!0,title:`Limit to Infinity`,icon:`limit-infinity-template-image`},{label:`limit-generic`,insert:`\\lim_{#?}`,cls:`template`,directInsert:!0,title:`Limit`,icon:`limit-generic-template-image`},{type:`sep`,cols:2},{label:`∇×□`,insert:`\\nabla \\times #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Curl`},{label:`∇·□`,insert:`\\nabla \\cdot #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Divergence`},{label:`∇□`,insert:`\\nabla #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Gradient`},{label:`Δ□`,insert:`\\Delta #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Delta Expression`},{type:`sep`,cols:3},{label:`∫`,insert:`\\int`,icon:`single-integral-template-image`},{label:`∮`,insert:`\\oint`,icon:`contour-integral-template-image`},{label:`∬`,insert:`\\iint`,icon:`double-integral-template-image`},{label:`∯`,insert:`\\oiint`,icon:`double-contour-integral-template-image`},_(`tripleIntegralExtras`,`More Triple Integrals`),{type:`sep`,cols:2},{label:`log(□)`,insert:`\\log\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`log₍□₎(□)`,insert:`\\log_{#?}\\left(#?\\right)`,cls:`template`,directInsert:!0,title:`Logarithm With Base`,icon:`log-base-template-image`},{type:`sep`,cols:4},{label:`sin(□)`,insert:`\\sin\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan(□)`,insert:`\\tan\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos(□)`,insert:`\\cos\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`ln(□)`,insert:`\\ln\\left(#0\\right)`,cls:`green-placeholder-glyph`},_(`trigFunctionExtras`,`More Trig Functions`)]},{id:`move-text`,label:(0,i.jsx)(B,{}),isTemplate:!0,items:[{label:`Move Up`,action:`MOVE_TEXT_UP`,cls:`template`,title:`Move Up`,icon:`move-text-up-template-image`},{label:`Move Right`,action:`MOVE_TEXT_RIGHT`,cls:`template`,title:`Move Right`,icon:`move-text-right-template-image`},{label:`Move Left`,action:`MOVE_TEXT_LEFT`,cls:`template`,title:`Move Left`,icon:`move-text-left-template-image`},{label:`Move Down`,action:`MOVE_TEXT_DOWN`,cls:`template`,title:`Move Down`,icon:`move-text-down-template-image`}]}],se=[{id:`chem-period-1`,label:(0,i.jsx)(N,{top:`H-Ne`,bottom:`elem`}),isChem:!0,items:[`H`,`He`,`Li`,`Be`,`B`,`C`,`N`,`O`,`F`,`Ne`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-period-2`,label:(0,i.jsx)(N,{top:`Na-Ca`,bottom:`elem`}),isChem:!0,items:[`Na`,`Mg`,`Al`,`Si`,`P`,`S`,`Cl`,`Ar`,`K`,`Ca`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-reactions`,label:(0,i.jsx)(N,{top:`Fe-Zn`,bottom:`→ ⇌`}),isChem:!0,items:[...[`Fe`,`Cu`,`Zn`,`Mn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Cr`,`Ni`,`Co`,`Ag`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Au`,`Hg`,`Pb`,`Sn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Br`,`I`,`Ba`,`Pt`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},{label:`Xe`,insert:`Xe`,cls:`chem-element`},{type:`sep`,cols:5},{label:`→`,insert:`->`,cls:`chem-arrow`},{label:`⇌`,insert:`<=>`,cls:`chem-arrow`},{label:`←`,insert:`<-`,cls:`chem-arrow`},{label:`⇄`,insert:`<->`,cls:`chem-arrow`},{label:`↑`,insert:`^`,cls:`chem-arrow`},{type:`sep`,cols:4},{label:`↓`,insert:`v`,cls:`chem-arrow`},{label:`+`,insert:` + `,cls:`chem-arrow`},{label:`→(Δ)`,insert:`->[\\Delta]`,cls:`chem-arrow`},{label:`→(aq)`,insert:`->[aq]`,cls:`chem-arrow`}]},{id:`chem-states`,label:(0,i.jsx)(N,{top:`(aq)`,bottom:`± ₂`}),isChem:!0,items:[{label:`(s)`,insert:`(s)`,cls:`chem-state`},{label:`(l)`,insert:`(l)`,cls:`chem-state`},{label:`(g)`,insert:`(g)`,cls:`chem-state`},{label:`(aq)`,insert:`(aq)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`(conc)`,insert:`(conc)`,cls:`chem-state`},{label:`(dil)`,insert:`(dil)`,cls:`chem-state`},{label:`(ppt)`,insert:`(ppt)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`✚`,insert:`^{+}`,cls:`chem-element`},{label:`━`,insert:`^{-}`,cls:`chem-element`},{label:`²⁺`,insert:`^{2+}`,cls:`chem-element`},{label:`²⁻`,insert:`^{2-}`,cls:`chem-element`},{type:`sep`,cols:2},{label:`³⁺`,insert:`^{3+}`,cls:`chem-element`},{label:`³⁻`,insert:`^{3-}`,cls:`chem-element`},{label:`2`,insert:`2`,cls:`chem-element`},{label:`3`,insert:`3`,cls:`chem-element`},{type:`sep`,cols:2},{label:`4`,insert:`4`,cls:`chem-element`},{label:`5`,insert:`5`,cls:`chem-element`},{label:`6`,insert:`6`,cls:`chem-element`},{label:`7`,insert:`7`,cls:`chem-element`},{type:`sep`,cols:3},{label:`8`,insert:`8`,cls:`chem-element`},{label:`x`,insert:`x`,cls:`chem-element`},{label:`n`,insert:`n`,cls:`chem-element`}]},{id:`chem-molecules`,label:(0,i.jsx)(N,{top:`H₂O`,bottom:`ions`}),isChem:!0,items:[{label:`H₂O`,insert:`H2O`,cls:`chem-element`},{label:`CO₂`,insert:`CO2`,cls:`chem-element`},{label:`NH₃`,insert:`NH3`,cls:`chem-element`},{label:`H₂SO₄`,insert:`H2SO4`,cls:`chem-element`},{label:`HCl`,insert:`HCl`,cls:`chem-element`},{label:`NaOH`,insert:`NaOH`,cls:`chem-element`},{label:`NaCl`,insert:`NaCl`,cls:`chem-element`},{label:`CaCO₃`,insert:`CaCO3`,cls:`chem-element`},{label:`HNO₃`,insert:`HNO3`,cls:`chem-element`},{label:`H₃PO₄`,insert:`H3PO4`,cls:`chem-element`},{label:`CH₃COOH`,insert:`CH3COOH`,cls:`chem-element`},{label:`C₆H₁₂O₆`,insert:`C6H12O6`,cls:`chem-element`},{label:`CH₄`,insert:`CH4`,cls:`chem-element`},{label:`C₂H₅OH`,insert:`C2H5OH`,cls:`chem-element`},{label:`CO₃²⁻`,insert:`CO3^{2-}`,cls:`chem-element`},{label:`SO₄²⁻`,insert:`SO4^{2-}`,cls:`chem-element`},{label:`NO₃⁻`,insert:`NO3^-`,cls:`chem-element`},{label:`PO₄³⁻`,insert:`PO4^{3-}`,cls:`chem-element`},{label:`NH₄⁺`,insert:`NH4^+`,cls:`chem-element`},{label:`OH⁻`,insert:`OH^-`,cls:`chem-element`}]}];function ce(e=``){if(String(e).match(/^\\ce\{([\s\S]*)\}$/))return e;let t=e.replace(/\\text\{([^}]*)\}/g,`$1`).replace(/\$/g,``).trim();return t?`\\ce{${t}}`:``}function N({top:e,bottom:t=``,compact:n=!1}){return(0,i.jsxs)(`span`,{className:`cme-tab-icon${n?` compact`:``}`,"aria-hidden":`true`,children:[(0,i.jsx)(`span`,{className:`cme-tab-icon-top`,children:e}),t?(0,i.jsx)(`span`,{className:`cme-tab-icon-bottom`,children:t}):null]})}function P(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 48 24`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M2 13 L5 13 L7 18 L10 4 L20 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`rect`,{x:`13`,y:`7`,width:`8`,height:`8`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`3`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`line`,{x1:`29`,y1:`12`,x2:`39`,y2:`12`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`15`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`})]})})}function F(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 210 110`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 H4 V102 H12`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`path`,{d:`M96 8 H104 V102 H96`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`24`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`path`,{d:`M142 8 C132 8 132 18 132 28 C132 38 128 45 124 49 C128 53 132 60 132 70 C132 80 132 90 142 102`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`154`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`154`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`})]})})}function le(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 70 50`,focusable:`false`,children:[(0,i.jsx)(`rect`,{x:`4`,y:`20`,width:`20`,height:`28`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`24`,y:`6`,width:`12`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`51`,y:`10`,width:`8`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`48`,y:`30`,width:`14`,height:`18`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function I(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 56 28`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M18 4 C10 4 6 9 6 14 C6 19 10 24 18 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`line`,{x1:`8`,y1:`14`,x2:`18`,y2:`14`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`}),(0,i.jsx)(`text`,{x:`26`,y:`24`,fill:`currentColor`,fontFamily:`Cambria Math, serif`,fontSize:`35`,children:`∞`})]})})}function L(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 40 24`,focusable:`false`,children:(0,i.jsx)(`text`,{x:`2`,y:`20`,fill:`currentColor`,fontFamily:`Segoe UI Symbol, Arial Unicode MS, sans-serif`,fontSize:`25`,children:`α Ω`})})})}function R(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 90 50`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 C4 14,4 36,12 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`20`,y:`10`,width:`18`,height:`30`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`path`,{d:`M46 8 C54 14,54 36,46 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`path`,{d:`M65 10 Q75 2 85 10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`68`,y:`18`,width:`14`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function z(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 80 50`,focusable:`false`,children:[(0,i.jsx)(`text`,{x:`2`,y:`40`,fill:`currentColor`,fontSize:`42`,fontFamily:`Cambria Math, Times New Roman, serif`,fontWeight:`500`,children:`∫`}),(0,i.jsx)(`rect`,{x:`30`,y:`1`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`40`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`text`,{x:`45`,y:`36`,fill:`currentColor`,fontSize:`32`,fontWeight:`500`,fontFamily:`Cambria Math, Times New Roman, serif`,children:`lim`})]})})}function B(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:[(0,i.jsx)(`path`,{d:`M12 3V12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),(0,i.jsx)(`path`,{d:`M8.5 8.5L12 12L15.5 8.5`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M4 15C4 19 7.5 22 12 22C16.5 22 20 19 20 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M7 15C7 17.5 9 19 12 19C15 19 17 17.5 17 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`})]})})}function V(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 64 24`,focusable:`false`,children:(0,i.jsxs)(`g`,{fill:`currentColor`,children:[(0,i.jsx)(`path`,{d:`M4 10h20V5l12 7-12 7v-5H4z`}),(0,i.jsx)(`circle`,{cx:`44`,cy:`18`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`52`,cy:`12`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`60`,cy:`6`,r:`2.5`})]})})})}var ue=class extends r.Plugin{static get pluginName(){return`MathInlinePlugin`}static get requires(){return[r.Widget]}init(){let e=this.editor;e.model.schema.register(`mathInline`,{isInline:!0,isObject:!0,allowWhere:`$text`,allowAttributes:[`latex`,`dir`]}),e.model.schema.addChildCheck((e,t)=>{if(t.name===`mathInline`)return!0}),e.conversion.for(`editingDowncast`).elementToElement({model:`mathInline`,view:(t,{writer:n})=>{let i=t.getAttribute(`latex`)||``,a=t.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,o=`math-`+Math.random().toString(36).substr(2,9);window.__ckMathWidgets.set(o,t);let s=n.createContainerElement(`span`,{class:`ck-math-widget ck-math-inline-word`,contenteditable:`false`,"data-math-id":o,"data-latex":i,"data-dir":a,dir:a}),c=n.createRawElement(`span`,{class:`ck-math-widget-inner`,style:`display:inline-block;vertical-align:middle;margin:0 2px;cursor:pointer;width:auto;max-width:100%;pointer-events:none;`},t=>{let n=document.createElement(`math-field`);n.setAttribute(`read-only`,``),n.setAttribute(`math-virtual-keyboard-policy`,`manual`),n.setAttribute(`tabindex`,`-1`),n.setAttribute(`letter-shape-style`,`upright`),n.setAttribute(`dir`,a),n.style.display=`inline-block`,n.style.width=`auto`,n.style.maxWidth=`100%`,n.style.verticalAlign=`middle`,n.style.border=`none`,n.style.background=`transparent`,n.style.outline=`none`,n.style.fontSize=`inherit`,n.style.minHeight=`auto`,n.style.padding=`0 2px`,n.style.margin=`0`,n.style.pointerEvents=`none`,n.style.direction=a,n.style.textAlign=a===`rtl`?`right`:`left`,n.style.unicodeBidi=a===`rtl`?`plaintext`:`normal`,n.style.color=`#000000`;let r=()=>{n.setValue?n.setValue(i,{silenceNotifications:!0}):n.value=i};customElements.get(`math-field`)?requestAnimationFrame(r):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(r)),t.appendChild(n);let o=()=>{let n=t.parentElement;n&&m(e,n)};o(),requestAnimationFrame(o)});return n.insert(n.createPositionAt(s,0),c),(0,r.toWidget)(s,n,{label:`math formula`})}});let t=e.editing.view.document;this.listenTo(t,`mousedown`,(t,n)=>{let r=c(n.domTarget);r&&n.domEvent.button===0&&(t.stop(),n.preventDefault(),p(e,null,l(r),r))},{priority:`high`}),e.conversion.for(`dataDowncast`).elementToElement({model:`mathInline`,view:(e,{writer:t})=>{let n=e.getAttribute(`latex`)||``,r=e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,i=t.createContainerElement(`span`,{class:`math-tex`,"data-latex":n,"data-dir":r,dir:r,style:`display:inline;`});return t.insert(t.createPositionAt(i,0),t.createText(n)),i}}),e.conversion.for(`upcast`).elementToElement({view:{name:`span`,classes:`math-tex`},model:(e,{writer:t})=>{let n=e.getAttribute(`data-latex`)||``,r=e.getAttribute(`data-dir`)===`rtl`||e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`;return t.createElement(`mathInline`,{latex:n,dir:r})}})}},H=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path d="M4 12h3l3 6l5-12h5" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,de=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><rect x="3" y="3" width="18" height="18" rx="3" fill="none" stroke="currentColor" stroke-width="2"/><text x="12" y="16" text-anchor="middle" font-size="12" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">C</text><text x="6" y="8" font-size="4" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">6</text></svg>`,fe=[{label:`Black`,value:`#000000`},{label:`Dim Gray`,value:`#696969`},{label:`Gray`,value:`#808080`},{label:`Dark Gray`,value:`#a9a9a9`},{label:`Silver`,value:`#c0c0c0`},{label:`White`,value:`#ffffff`},{label:`Red`,value:`#ff0000`},{label:`Orange`,value:`#ffa500`},{label:`Yellow`,value:`#ffff00`},{label:`Lime`,value:`#00ff00`},{label:`Cyan`,value:`#00ffff`},{label:`Blue`,value:`#0000ff`},{label:`Purple`,value:`#800080`},{label:`Magenta`,value:`#ff00ff`},{label:`Pink`,value:`#ffc0cb`},{label:`Brown`,value:`#a52a2a`},{label:`Maroon`,value:`#800000`},{label:`Olive`,value:`#808000`},{label:`Green`,value:`#008000`},{label:`Teal`,value:`#008080`},{label:`Navy`,value:`#000080`},{label:`Indigo`,value:`#4b0082`},{label:`Violet`,value:`#ee82ee`},{label:`Gold`,value:`#ffd700`}];function pe(e){let t=String(e||``).trim();if(!t)return``;if(t===`none`)return`none`;if(typeof document>`u`)return t.toLowerCase();let n=document.createElement(`span`);if(n.style.color=``,n.style.color=t,!n.style.color)return``;n.style.position=`absolute`,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n);let r=window.getComputedStyle(n).color;n.remove();let i=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return i?`#${[i[1],i[2],i[3]].map(e=>Number(e).toString(16).padStart(2,`0`)).join(``)}`:r.toLowerCase()}function U(e){return`data:image/svg+xml;utf8,${encodeURIComponent(e)}`}function W(e){return U(`
34
+ □`,insert:`\\displaystyle{\\begin{array}{c}\\htmlStyle{display:inline-block;height:1.6em;line-height:1.6em;font-size:1.05em;vertical-align:middle}{#?}\\\\\\htmlStyle{display:inline-block;height:1.6em;line-height:1.6em;font-size:1.45em;vertical-align:middle}{#0}\\\\\\htmlStyle{display:inline-block;height:1.6em;line-height:1.6em;font-size:1.05em;vertical-align:middle}{#?}\\end{array}}`,cls:`template`,directInsert:!0,title:`Operator With Upper and Lower Limits`,icon:`operator-limits-both-template-image`,focusFirstPlaceholder:!0},{label:`▯
35
+ □`,insert:`\\displaystyle{\\begin{array}{c}\\htmlStyle{font-size:1.45em;display:inline-block;padding:0.12em 0;line-height:1.05}{#0}\\\\\\htmlStyle{font-size:1.05em;display:inline-block;padding-top:0.18em;line-height:1.05}{#?}\\end{array}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`,focusFirstPlaceholder:!0},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{label:`⋂`,insert:`\\bigcap`},{label:`⋃`,insert:`\\bigcup`},{label:`∏`,insert:`\\prod`},{label:`∐`,insert:`\\coprod`},{label:`⨅`,insert:`\\sqcap`},{label:`⨆`,insert:`\\bigsqcup`},{label:`∑`,insert:`\\sum`}]},{id:`calc`,label:(0,i.jsx)(Ye,{}),isTemplate:!0,items:[{label:`integral-both`,insert:`\\int_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Definite Integral`,icon:`integral-both-template-image`},{label:`integral-lower`,insert:`\\int_{#?}`,cls:`template`,directInsert:!0,title:`Integral With Subscript`,icon:`integral-lower-template-image`},{label:`∫□d□`,insert:`\\int_{#?}^{#?} #? \\, d#?`,directInsert:!0,title:`Integral`,icon:`integral-box-differential-template-image`},{label:``,insert:`\\int_{#?} #? \\, d#?`,cls:`template`,directInsert:!0,title:`Integral`,icon:`integral-template-image`},{type:`sep`,cols:4},{label:`d`,insert:`d`,cls:`template`,directInsert:!0,title:`Differential`},{label:`∂`,insert:`∂`,cls:`template`,directInsert:!0,title:`Partial Differential`},{label:`first-derivative`,insert:`\\frac{d#?}{d#?}`,cls:`template`,directInsert:!0,title:`First Derivative`,icon:`first-derivative-template-image`},{label:`partial-derivative`,insert:`\\frac{\\partial#?}{\\partial#?}`,cls:`template`,directInsert:!0,title:`Partial Derivative`,icon:`partial-derivative-template-image`},{type:`sep`,cols:2},{label:`limit-infinity`,insert:`\\lim_{#?\\to\\style{font-size:1.72em;}{\\raise-2px\\infty}}`,cls:`template`,directInsert:!0,title:`Limit to Infinity`,icon:`limit-infinity-template-image`},{label:`limit-generic`,insert:`\\lim_{#?}`,cls:`template`,directInsert:!0,title:`Limit`,icon:`limit-generic-template-image`},{type:`sep`,cols:2},{label:`∇×□`,insert:`\\nabla \\times #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Curl`},{label:`∇·□`,insert:`\\nabla \\cdot #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Divergence`},{label:`∇□`,insert:`\\nabla #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Gradient`},{label:`Δ□`,insert:`\\Delta #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Delta Expression`},{type:`sep`,cols:3},{label:`∫`,insert:`\\int`,icon:`single-integral-template-image`},{label:`∮`,insert:`\\oint`,icon:`contour-integral-template-image`},{label:`∬`,insert:`\\iint`,icon:`double-integral-template-image`},{label:`∯`,insert:`\\mathop{{\\style{font-size:1em;}{\\iint}}\\mkern-23mu\\class{wide-circle}{\\bigcirc}\\mkern14mu}`,icon:`double-contour-integral-template-image`},x(`tripleIntegralExtras`,`More Triple Integrals`),{type:`sep`,cols:2},{label:`log(□)`,insert:`\\log\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`log₍□₎(□)`,insert:`\\log_{#?}\\left(#?\\right)`,cls:`template`,directInsert:!0,title:`Logarithm With Base`,icon:`log-base-template-image`},{type:`sep`,cols:4},{label:`sin(□)`,insert:`\\sin\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan(□)`,insert:`\\tan\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos(□)`,insert:`\\cos\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`ln(□)`,insert:`\\ln\\left(#0\\right)`,cls:`green-placeholder-glyph`},x(`trigFunctionExtras`,`More Trig Functions`)]},{id:`move-text`,label:(0,i.jsx)(Xe,{}),isTemplate:!0,items:[{label:`Move Up`,action:`MOVE_TEXT_UP`,cls:`template`,title:`Move Up`,icon:`move-text-up-template-image`},{label:`Move Right`,action:`MOVE_TEXT_RIGHT`,cls:`template`,title:`Move Right`,icon:`move-text-right-template-image`},{label:`Move Left`,action:`MOVE_TEXT_LEFT`,cls:`template`,title:`Move Left`,icon:`move-text-left-template-image`},{label:`Move Down`,action:`MOVE_TEXT_DOWN`,cls:`template`,title:`Move Down`,icon:`move-text-down-template-image`}]}],Ne=[{id:`chem-period-1`,label:(0,i.jsx)(J,{top:`H-Ne`,bottom:`elem`}),isChem:!0,items:[`H`,`He`,`Li`,`Be`,`B`,`C`,`N`,`O`,`F`,`Ne`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-period-2`,label:(0,i.jsx)(J,{top:`Na-Ca`,bottom:`elem`}),isChem:!0,items:[`Na`,`Mg`,`Al`,`Si`,`P`,`S`,`Cl`,`Ar`,`K`,`Ca`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-reactions`,label:(0,i.jsx)(J,{top:`Fe-Zn`,bottom:`→ ⇌`}),isChem:!0,items:[...[`Fe`,`Cu`,`Zn`,`Mn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Cr`,`Ni`,`Co`,`Ag`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Au`,`Hg`,`Pb`,`Sn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Br`,`I`,`Ba`,`Pt`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},{label:`Xe`,insert:`Xe`,cls:`chem-element`},{type:`sep`,cols:5},{label:`→`,insert:`->`,cls:`chem-arrow`},{label:`⇌`,insert:`<=>`,cls:`chem-arrow`},{label:`←`,insert:`<-`,cls:`chem-arrow`},{label:`⇄`,insert:`<->`,cls:`chem-arrow`},{label:`↑`,insert:`^`,cls:`chem-arrow`},{type:`sep`,cols:4},{label:`↓`,insert:`v`,cls:`chem-arrow`},{label:`+`,insert:` + `,cls:`chem-arrow`},{label:`→(Δ)`,insert:`->[\\Delta]`,cls:`chem-arrow`},{label:`→(aq)`,insert:`->[aq]`,cls:`chem-arrow`}]},{id:`chem-states`,label:(0,i.jsx)(J,{top:`(aq)`,bottom:`± ₂`}),isChem:!0,items:[{label:`(s)`,insert:`(s)`,cls:`chem-state`},{label:`(l)`,insert:`(l)`,cls:`chem-state`},{label:`(g)`,insert:`(g)`,cls:`chem-state`},{label:`(aq)`,insert:`(aq)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`(conc)`,insert:`(conc)`,cls:`chem-state`},{label:`(dil)`,insert:`(dil)`,cls:`chem-state`},{label:`(ppt)`,insert:`(ppt)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`✚`,insert:`^{+}`,cls:`chem-element`},{label:`━`,insert:`^{-}`,cls:`chem-element`},{label:`²⁺`,insert:`^{2+}`,cls:`chem-element`},{label:`²⁻`,insert:`^{2-}`,cls:`chem-element`},{type:`sep`,cols:2},{label:`³⁺`,insert:`^{3+}`,cls:`chem-element`},{label:`³⁻`,insert:`^{3-}`,cls:`chem-element`},{label:`2`,insert:`2`,cls:`chem-element`},{label:`3`,insert:`3`,cls:`chem-element`},{type:`sep`,cols:2},{label:`4`,insert:`4`,cls:`chem-element`},{label:`5`,insert:`5`,cls:`chem-element`},{label:`6`,insert:`6`,cls:`chem-element`},{label:`7`,insert:`7`,cls:`chem-element`},{type:`sep`,cols:3},{label:`8`,insert:`8`,cls:`chem-element`},{label:`x`,insert:`x`,cls:`chem-element`},{label:`n`,insert:`n`,cls:`chem-element`}]},{id:`chem-molecules`,label:(0,i.jsx)(J,{top:`H₂O`,bottom:`ions`}),isChem:!0,items:[{label:`H₂O`,insert:`H2O`,cls:`chem-element`},{label:`CO₂`,insert:`CO2`,cls:`chem-element`},{label:`NH₃`,insert:`NH3`,cls:`chem-element`},{label:`H₂SO₄`,insert:`H2SO4`,cls:`chem-element`},{label:`HCl`,insert:`HCl`,cls:`chem-element`},{label:`NaOH`,insert:`NaOH`,cls:`chem-element`},{label:`NaCl`,insert:`NaCl`,cls:`chem-element`},{label:`CaCO₃`,insert:`CaCO3`,cls:`chem-element`},{label:`HNO₃`,insert:`HNO3`,cls:`chem-element`},{label:`H₃PO₄`,insert:`H3PO4`,cls:`chem-element`},{label:`CH₃COOH`,insert:`CH3COOH`,cls:`chem-element`},{label:`C₆H₁₂O₆`,insert:`C6H12O6`,cls:`chem-element`},{label:`CH₄`,insert:`CH4`,cls:`chem-element`},{label:`C₂H₅OH`,insert:`C2H5OH`,cls:`chem-element`},{label:`CO₃²⁻`,insert:`CO3^{2-}`,cls:`chem-element`},{label:`SO₄²⁻`,insert:`SO4^{2-}`,cls:`chem-element`},{label:`NO₃⁻`,insert:`NO3^-`,cls:`chem-element`},{label:`PO₄³⁻`,insert:`PO4^{3-}`,cls:`chem-element`},{label:`NH₄⁺`,insert:`NH4^+`,cls:`chem-element`},{label:`OH⁻`,insert:`OH^-`,cls:`chem-element`}]}];function Pe(e=``){if(String(e).match(/^\\ce\{([\s\S]*)\}$/))return e;let t=e.replace(/\\text\{([^}]*)\}/g,`$1`).replace(/\$/g,``).trim();return t?`\\ce{${t}}`:``}var H=`\\phantom{0}`,U=/\\htmlStyle\{display:inline-block;position:relative;top:0\.02em;font-size:1\.3em;line-height:0\.9;padding:0;color:#(?:111|fff);\}\{\/\}/g,Fe=`\\class{cme-bevelled-fraction-slash}{\\htmlStyle{display:inline-block;position:relative;top:0.02em;font-size:1.3em;line-height:0.9;padding:0;color:#fff;}{/}}`,W=/\\class\{cme-bevelled-fraction-slash\}\{\\htmlStyle\{display:inline-block;position:relative;top:0\.02em;font-size:1\.3em;line-height:0\.9;padding:0;color:#(?:111|fff);\}\{\/\}\}/g,G=`\\htmlStyle{display:inline-block;position:relative;top:0.02em;font-size:1.3em;line-height:0.9;padding:0;color:#111;}{/}`;function Ie(e=``){let t=String(e||``);return t.includes(`\\class{cme-bevelled-fraction-slash}{`)?t:t.replace(U,Fe)}function Le(e=``){return String(e||``).replace(W,G).replace(U,G)}function Re(e=``){return String(e||``).replace(/\\\\\[[^\]]*\]/g,`\\\\`).trim()}function ze(e=``){return String(e||``).replace(/\\class\{[^}]*cme-bmatrix-dynamic-template[^}]*\}\{\\begin\{array\}\{[^}]*\}([\s\S]*?)\\end\{array\}\}/g,(e,t)=>`\\begin{bmatrix} `+Re(t)+` \\end{bmatrix}`).replace(/\\class\{[^}]*cme-pmatrix-dynamic-template[^}]*\}\{\\begin\{array\}\{[^}]*\}([\s\S]*?)\\end\{array\}\}/g,(e,t)=>`\\begin{pmatrix} `+Re(t)+` \\end{pmatrix}`).replace(/\\class\{[^}]*cme-bmatrix-(?:two|three)-row-template[^}]*\}\{\\begin\{array\}\{[^}]*\}([\s\S]*?)\\end\{array\}\}/g,(e,t)=>`\\begin{bmatrix} `+Re(t)+` \\end{bmatrix}`).replace(/\\class\{[^}]*cme-pmatrix-(?:two|three)-row-template[^}]*\}\{\\begin\{array\}\{[^}]*\}([\s\S]*?)\\end\{array\}\}/g,(e,t)=>`\\begin{pmatrix} `+Re(t)+` \\end{pmatrix}`).replace(/\\class\{[^}]*cme-cancel-template[^}]*\}\{([\s\S]*?)\}/g,`\\cancel{$1}`).replace(/\\class\{[^}]*cme-bcancel-template[^}]*\}\{([\s\S]*?)\}/g,`\\bcancel{$1}`).replace(/\\class\{[^}]*cme-xcancel-template[^}]*\}\{([\s\S]*?)\}/g,`\\xcancel{$1}`)}function Be(e=``){return String(e||``).replace(/\\placeholder\{\}/g,``).trim()}function K(e=``){return ze(Ie(e)).replace(/\\placeholder\{\}/g,H).replace(/\\frac\{\}\{\}/g,`\\frac{${H}}{${H}}`).replace(/\\frac\{\}\{([^{}]*)\}/g,`\\frac{${H}}{$1}`).replace(/(\\frac\{[^{}]*\})\{\}/g,`$1{${H}}`).replace(/\\sqrt\{\}/g,`\\sqrt{${H}}`).replace(/\\left\(\s*\\right\)/g,`\\left(${H}\\right)`).replace(/\\left\[\s*\\right\]/g,`\\left[${H}\\right]`).replace(/\\left\|\s*\\right\|/g,`\\left|${H}\\right|`).replace(/\\left\\\{\s*\\right\\\}/g,`\\left\\{${H}\\right\\}`).replace(/\^\{\}/g,`^{${H}}`).replace(/_\{\}/g,`_{${H}}`).replace(/\\(?:tilde|widetilde|dot|ddot)\{\}/g,e=>e.replace(`{}`,`{${H}}`)).replace(/\\overset\{((?:\\cdot\\!\\cdot)|(?:\\cdot)|(?:\\sim))\}\{\}/g,`\\overset{$1}{${H}}`).replace(/\\class\{cme-rounded-enclosure-template\}\{\}/g,`\\class{cme-rounded-enclosure-template}{${H}}`).replace(/\\class\{cme-rounded-box-template\}\{\}/g,`\\class{cme-rounded-box-template}{${H}}`).replace(/\\class\{cme-overline-right-bar-template\}\{\}/g,`\\class{cme-overline-right-bar-template}{${H}}`).replace(/\\class\{cme-overline-left-curve-template\}\{\}/g,`\\class{cme-overline-left-curve-template}{${H}}`)}var Ve=`cme-math-field-shadow-style`,q=`
36
+ :host {
37
+ font-family: Helvetica, Arial, sans-serif !important;
38
+ --text-font-family: Helvetica, Arial, sans-serif;
39
+ --math-font-family: Helvetica, Arial, sans-serif;
40
+ }
41
+
42
+ /* Force all math letters and text to use Helvetica */
43
+ .ML__mathit,
44
+ .ML__mathrm,
45
+ .ML__text,
46
+ .ML__cmr,
47
+ .ML__mathsf,
48
+ .ML__mathsfit {
49
+ font-family: Helvetica, Arial, sans-serif !important;
50
+ }
51
+
52
+ .ML__mathit {
53
+ font-style: italic !important;
54
+ }
55
+
56
+ .wide-circle,
57
+ .wider-circle {
58
+ display: inline-block !important;
59
+ font-family: "Cambria Math", "STIX Two Math", "Latin Modern Math", "Times New Roman", serif !important;
60
+ font-weight: 700 !important;
61
+ line-height: 1 !important;
62
+ transform-origin: 50% 54% !important;
63
+ vertical-align: -0.03em !important;
64
+ }
65
+
66
+ .wide-circle {
67
+ transform: translateY(0.02em) scaleX(1.72) scaleY(1.08) !important;
68
+ }
69
+
70
+ .wider-circle {
71
+ transform: translateY(0.02em) scaleX(2.05) scaleY(1.08) !important;
72
+ }
73
+ .cme-not-identical-symbol {
74
+ display: inline-block;
75
+ position: relative;
76
+ line-height: 1;
77
+ padding: 0 0.015em;
78
+ }
79
+
80
+ .cme-not-identical-symbol::after {
81
+ content: "";
82
+ position: absolute;
83
+ left: 50%;
84
+ top: 50%;
85
+ width: 0.11em;
86
+ height: 1.02em;
87
+ border-radius: 999px;
88
+ background: currentColor;
89
+ transform: translate(-50%, -50%) rotate(17deg);
90
+ transform-origin: center;
91
+ pointer-events: none;
92
+ }
93
+
94
+ .cme-not-approx-equal-symbol {
95
+ display: inline-block;
96
+ position: relative;
97
+ line-height: 1;
98
+ padding: 0 0.015em;
99
+ }
100
+
101
+ .cme-not-approx-equal-symbol::after {
102
+ content: "";
103
+ position: absolute;
104
+ left: 50%;
105
+ top: 50%;
106
+ width: 0.11em;
107
+ height: 1.04em;
108
+ border-radius: 999px;
109
+ background: currentColor;
110
+ transform: translate(-50%, -50%) rotate(17deg);
111
+ transform-origin: center;
112
+ pointer-events: none;
113
+ }
114
+
115
+ .cme-left-right-extensible-arrows svg,
116
+ .cme-right-left-stacked-arrows svg {
117
+ transform: scaleY(-1);
118
+ transform-box: fill-box;
119
+ transform-origin: center;
120
+ }
121
+
122
+ /* Overline with curved left boundary: one content-sized wrapper owns both
123
+ strokes, so the overline starts at the curve endpoint and grows with input. */
124
+ .cme-overline-left-curve-template {
125
+ display: inline-flex;
126
+ align-items: center;
127
+ justify-content: center;
128
+ position: relative;
129
+ inline-size: max-content;
130
+ max-inline-size: none;
131
+ padding: 0.22em 0.24em 0.06em 0.52em;
132
+ line-height: 1;
133
+ box-sizing: border-box;
134
+ vertical-align: middle;
135
+ white-space: nowrap;
136
+ }
137
+
138
+ .cme-overline-left-curve-template::before,
139
+ .cme-overline-left-curve-template::after {
140
+ content: "";
141
+ position: absolute;
142
+ pointer-events: none;
143
+ }
144
+
145
+ .cme-overline-left-curve-template::before {
146
+ left: 0;
147
+ top: 0;
148
+ bottom: 0.02em;
149
+ width: 0.40em;
150
+ border-right: 0.06em solid currentColor;
151
+ border-radius: 0 50% 50% 0;
152
+ }
153
+
154
+ .cme-overline-left-curve-template::after {
155
+ left: 0.37em;
156
+ right: 0;
157
+ top: 0;
158
+ border-top: 0.06em solid currentColor;
159
+ }
160
+ /* Overline with right bar: the wrapper width is the rendered math width plus
161
+ padding, so the top border and attached right border grow with live input. */
162
+ .cme-overline-right-bar-template {
163
+ display: inline-flex;
164
+ align-items: center;
165
+ justify-content: center;
166
+ position: relative;
167
+ padding: 0.18em 0.35em 0.06em 0.18em;
168
+ line-height: 1;
169
+ box-sizing: border-box;
170
+ border-top: 0.06em solid currentColor;
171
+ border-right: 0.06em solid currentColor;
172
+ vertical-align: middle;
173
+ white-space: nowrap;
174
+ }
175
+ /* Rounded rectangle enclosure: MathLive measures the rendered body, then this
176
+ wrapper adds em padding and a constant corner radius without fixed width. */
177
+ .cme-rounded-box-template {
178
+ display: inline-flex;
179
+ align-items: center;
180
+ justify-content: center;
181
+ padding: 0.22em 0.42em;
182
+ line-height: 1;
183
+ box-sizing: border-box;
184
+ border: 0.06em solid currentColor;
185
+ border-radius: 0.24em;
186
+ vertical-align: middle;
187
+ white-space: nowrap;
188
+ }
189
+ /* The box is intrinsically sized by MathLive's rendered content; padding expands
190
+ that measured box, and 50% radii turn the final box into a true ellipse. */
191
+ .cme-rounded-enclosure-template {
192
+ display: inline-flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ inline-size: max-content;
196
+ max-inline-size: none;
197
+ padding: 0.25em 0.45em;
198
+ line-height: 1;
199
+ box-sizing: border-box;
200
+ border: 0.06em solid currentColor;
201
+ border-radius: 50%;
202
+ vertical-align: middle;
203
+ white-space: nowrap;
204
+ }
205
+ .cme-stretch-hat {
206
+ display: inline-block;
207
+ position: relative;
208
+ inline-size: max-content;
209
+ max-inline-size: none;
210
+ min-width: 0.78em;
211
+ padding: 0.58em 0.08em 0;
212
+ line-height: 1.08;
213
+ white-space: nowrap;
214
+ box-sizing: content-box;
215
+ }
216
+
217
+ .cme-stretch-hat::before {
218
+ content: "";
219
+ position: absolute;
220
+ left: 0.02em;
221
+ right: 0.02em;
222
+ top: 0.08em;
223
+ height: 0.42em;
224
+ background: currentColor;
225
+ clip-path: polygon(0 100%, 50% 0, 100% 100%, calc(100% - 0.08em) 100%, 50% 0.16em, 0.08em 100%);
226
+ pointer-events: none;
227
+ }
228
+ .cme-mixed-fraction-whole,
229
+ .cme-mixed-fraction-slot,
230
+ .cme-mixed-fraction-denominator {
231
+ display: inline-block;
232
+ position: relative;
233
+ min-width: 0.9em;
234
+ padding-right: 0.22em;
235
+ padding-left: 0.42em;
236
+ line-height: 1.05;
237
+ text-align: center;
238
+ box-sizing: content-box;
239
+ }
240
+
241
+ .cme-mixed-fraction-slot {
242
+ padding-top: 0.02em;
243
+ padding-bottom: 0.16em;
244
+ }
245
+
246
+ .cme-mixed-fraction-denominator {
247
+ padding-top: 0.12em;
248
+ padding-bottom: 0;
249
+ }
250
+
251
+ .cme-mixed-fraction-slot::before,
252
+ .cme-mixed-fraction-slot::after {
253
+ content: "";
254
+ position: absolute;
255
+ background: currentColor;
256
+ pointer-events: none;
257
+ }
258
+
259
+ .cme-mixed-fraction-slot::before {
260
+ left: 0.1em;
261
+ top: -0.38em;
262
+ bottom: 0.05em;
263
+ width: 0.06em;
264
+ border-radius: 999px;
265
+ }
266
+
267
+ .cme-mixed-fraction-slot::after {
268
+ left: 0.1em;
269
+ right: 0.02em;
270
+ bottom: 0.05em;
271
+ height: 0.06em;
272
+ border-radius: 999px;
273
+ }
274
+ .cme-split-fraction-left {
275
+ display: inline-block;
276
+ min-width: 0.9em;
277
+ padding-right: 0.12em;
278
+ line-height: 1.05;
279
+ text-align: right;
280
+ box-sizing: content-box;
281
+ }
282
+
283
+ .cme-split-fraction-slot,
284
+ .cme-split-fraction-denominator {
285
+ display: inline-block;
286
+ position: relative;
287
+ min-width: 0.9em;
288
+ padding-right: 0.22em;
289
+ padding-left: 0.42em;
290
+ line-height: 1.05;
291
+ text-align: center;
292
+ box-sizing: content-box;
293
+ }
294
+
295
+ .cme-split-fraction-slot {
296
+ padding-top: 0.02em;
297
+ padding-bottom: 0.16em;
298
+ }
299
+
300
+ .cme-split-fraction-denominator {
301
+ padding-top: 0.12em;
302
+ padding-bottom: 0;
303
+ }
304
+
305
+ .cme-split-fraction-slot::before,
306
+ .cme-split-fraction-slot::after {
307
+ content: "";
308
+ position: absolute;
309
+ background: currentColor;
310
+ pointer-events: none;
311
+ }
312
+
313
+ .cme-split-fraction-slot::before {
314
+ left: 0.1em;
315
+ top: -0.38em;
316
+ bottom: 0.05em;
317
+ width: 0.06em;
318
+ border-radius: 999px;
319
+ }
320
+
321
+ .cme-split-fraction-slot::after {
322
+ left: 0.1em;
323
+ right: 0.02em;
324
+ bottom: 0.05em;
325
+ height: 0.06em;
326
+ border-radius: 999px;
327
+ }
328
+ .cme-vmatrix-template {
329
+ display: inline-block;
330
+ position: relative;
331
+ line-height: 1;
332
+ vertical-align: 0.48em;
333
+ padding-left: 0.44em;
334
+ padding-right: 0.44em;
335
+ }
336
+
337
+ .cme-vmatrix-template .ML__arraycolsep {
338
+ width: 0.28em !important;
339
+ }
340
+
341
+ .cme-vmatrix-template::before,
342
+ .cme-vmatrix-template::after {
343
+ content: "";
344
+ position: absolute;
345
+ top: 50%;
346
+ width: 0.095em;
347
+ border-radius: 999px;
348
+ background: currentColor;
349
+ transform: translateY(-50%);
350
+ pointer-events: none;
351
+ }
352
+
353
+ .cme-vmatrix-two-row-template::before,
354
+ .cme-vmatrix-two-row-template::after {
355
+ height: 2.7em;
356
+ }
357
+
358
+ .cme-vmatrix-three-row-template::before,
359
+ .cme-vmatrix-three-row-template::after {
360
+ height: 3.95em;
361
+ }
362
+
363
+ .cme-vmatrix-template::before {
364
+ left: 0.1em;
365
+ }
366
+
367
+ .cme-vmatrix-template::after {
368
+ right: 0.1em;
369
+ }
370
+ .cme-two-row-matrix-template {
371
+ display: inline-block;
372
+ position: relative;
373
+ line-height: 1;
374
+ vertical-align: 0.48em;
375
+ padding-left: 0.72em;
376
+ padding-right: 0.72em;
377
+ }
378
+
379
+ .cme-two-row-matrix-template .ML__arraycolsep {
380
+ width: 0.16em !important;
381
+ }
382
+
383
+ .cme-bmatrix-two-row-template::before,
384
+ .cme-bmatrix-two-row-template::after,
385
+ .cme-pmatrix-two-row-template::before,
386
+ .cme-pmatrix-two-row-template::after {
387
+ content: "";
388
+ position: absolute;
389
+ top: 50%;
390
+ height: 2.75em;
391
+ background: currentColor;
392
+ pointer-events: none;
393
+ }
394
+
395
+ .cme-bmatrix-two-row-template {
396
+ padding-left: 1.02em;
397
+ padding-right: 1.02em;
398
+ }
399
+
400
+ .cme-bmatrix-two-row-template::before,
401
+ .cme-bmatrix-two-row-template::after {
402
+ width: 0.5em;
403
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 72'%3E%3Cpath d='M11 6 H3 V66 H11' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
404
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 72'%3E%3Cpath d='M11 6 H3 V66 H11' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
405
+ }
406
+
407
+ .cme-pmatrix-two-row-template::before,
408
+ .cme-pmatrix-two-row-template::after {
409
+ width: 0.68em;
410
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 72'%3E%3Cpath d='M17 6 C7 18 7 54 17 66' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
411
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 72'%3E%3Cpath d='M17 6 C7 18 7 54 17 66' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
412
+ }
413
+
414
+ .cme-bmatrix-two-row-template::before,
415
+ .cme-pmatrix-two-row-template::before {
416
+ left: 0.04em;
417
+ transform: translateY(-50%);
418
+ }
419
+
420
+ .cme-bmatrix-two-row-template::after,
421
+ .cme-pmatrix-two-row-template::after {
422
+ right: 0.04em;
423
+ transform: translateY(-50%) scaleX(-1);
424
+ }
425
+
426
+ .cme-bmatrix-two-row-template::before {
427
+ left: 0.12em;
428
+ }
429
+
430
+ .cme-bmatrix-two-row-template::after {
431
+ right: 0.12em;
432
+ }
433
+ .cme-bmatrix-three-row-template {
434
+ display: inline-block;
435
+ position: relative;
436
+ line-height: 1;
437
+ vertical-align: 0.48em;
438
+ padding-left: 1.24em;
439
+ padding-right: 1.24em;
440
+ }
441
+
442
+ .cme-bmatrix-three-row-template .ML__arraycolsep {
443
+ width: 0.32em !important;
444
+ }
445
+
446
+ .cme-bmatrix-three-row-template::before,
447
+ .cme-bmatrix-three-row-template::after {
448
+ content: "";
449
+ position: absolute;
450
+ top: 50%;
451
+ width: 0.54em;
452
+ height: 5.35em;
453
+ background: currentColor;
454
+ pointer-events: none;
455
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 72'%3E%3Cpath d='M11 6 H3 V66 H11' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
456
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 72'%3E%3Cpath d='M11 6 H3 V66 H11' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
457
+ }
458
+
459
+ .cme-bmatrix-three-row-template::before {
460
+ left: 0.08em;
461
+ transform: translateY(-50%);
462
+ }
463
+
464
+ .cme-bmatrix-three-row-template::after {
465
+ right: 0.08em;
466
+ transform: translateY(-50%) scaleX(-1);
467
+ }
468
+
469
+ .cme-bmatrix-three-row-template::before {
470
+ left: 0.14em;
471
+ }
472
+
473
+ .cme-bmatrix-three-row-template::after {
474
+ right: 0.14em;
475
+ }
476
+
477
+ .cme-pmatrix-three-row-template {
478
+ display: inline-block;
479
+ position: relative;
480
+ line-height: 1;
481
+ vertical-align: 0.48em;
482
+ padding-left: 1.08em;
483
+ padding-right: 1.08em;
484
+ }
485
+
486
+ .cme-pmatrix-three-row-template .ML__arraycolsep {
487
+ width: 0.28em !important;
488
+ }
489
+
490
+ .cme-pmatrix-three-row-template::before,
491
+ .cme-pmatrix-three-row-template::after {
492
+ content: "";
493
+ position: absolute;
494
+ top: 50%;
495
+ width: 0.76em;
496
+ height: 5.35em;
497
+ background: currentColor;
498
+ pointer-events: none;
499
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 72'%3E%3Cpath d='M17 6 C7 18 7 54 17 66' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
500
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 72'%3E%3Cpath d='M17 6 C7 18 7 54 17 66' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
501
+ }
502
+
503
+ .cme-pmatrix-three-row-template::before {
504
+ left: 0.08em;
505
+ transform: translateY(-50%);
506
+ }
507
+
508
+ .cme-pmatrix-three-row-template::after {
509
+ right: 0.08em;
510
+ transform: translateY(-50%) scaleX(-1);
511
+ }
512
+
513
+ .cme-bmatrix-single-column-template {
514
+ padding-left: 1.5em;
515
+ padding-right: 1.5em;
516
+ }
517
+
518
+ .cme-bmatrix-single-column-template .ML__arraycolsep {
519
+ width: 0.18em !important;
520
+ }
521
+
522
+ .cme-bmatrix-two-row-template.cme-bmatrix-single-column-template::before,
523
+ .cme-bmatrix-two-row-template.cme-bmatrix-single-column-template::after {
524
+ width: 0.54em;
525
+ height: 3.35em;
526
+ }
527
+
528
+ .cme-bmatrix-three-row-template.cme-bmatrix-single-column-template {
529
+ padding-left: 1.58em;
530
+ padding-right: 1.58em;
531
+ }
532
+
533
+ .cme-bmatrix-three-row-template.cme-bmatrix-single-column-template::before,
534
+ .cme-bmatrix-three-row-template.cme-bmatrix-single-column-template::after {
535
+ width: 0.58em;
536
+ height: 6.25em;
537
+ }
538
+
539
+ .cme-bmatrix-narrow-columns-template {
540
+ padding-left: 1.08em;
541
+ padding-right: 1.08em;
542
+ }
543
+
544
+ .cme-bmatrix-narrow-columns-template .ML__arraycolsep {
545
+ width: 0.22em !important;
546
+ }
547
+
548
+ .cme-bmatrix-two-row-template.cme-bmatrix-narrow-columns-template::before,
549
+ .cme-bmatrix-two-row-template.cme-bmatrix-narrow-columns-template::after {
550
+ width: 0.52em;
551
+ height: 3.25em;
552
+ }
553
+
554
+ .cme-bmatrix-three-row-template.cme-bmatrix-narrow-columns-template {
555
+ padding-left: 1.12em;
556
+ padding-right: 1.12em;
557
+ }
558
+
559
+ .cme-bmatrix-three-row-template.cme-bmatrix-narrow-columns-template::before,
560
+ .cme-bmatrix-three-row-template.cme-bmatrix-narrow-columns-template::after {
561
+ width: 0.56em;
562
+ height: 6.05em;
563
+ }
564
+
565
+ .cme-pmatrix-single-column-template {
566
+ padding-left: 1.34em;
567
+ padding-right: 1.34em;
568
+ }
569
+
570
+ .cme-pmatrix-single-column-template .ML__arraycolsep {
571
+ width: 0.18em !important;
572
+ }
573
+
574
+ .cme-pmatrix-two-row-template.cme-pmatrix-single-column-template::before,
575
+ .cme-pmatrix-two-row-template.cme-pmatrix-single-column-template::after {
576
+ width: 0.74em;
577
+ height: 3.35em;
578
+ }
579
+
580
+ .cme-pmatrix-three-row-template.cme-pmatrix-single-column-template {
581
+ padding-left: 1.42em;
582
+ padding-right: 1.42em;
583
+ }
584
+
585
+ .cme-pmatrix-three-row-template.cme-pmatrix-single-column-template::before,
586
+ .cme-pmatrix-three-row-template.cme-pmatrix-single-column-template::after {
587
+ width: 0.82em;
588
+ height: 6.25em;
589
+ }
590
+
591
+ .cme-pmatrix-narrow-columns-template {
592
+ padding-left: 0.94em;
593
+ padding-right: 0.94em;
594
+ }
595
+
596
+ .cme-pmatrix-narrow-columns-template .ML__arraycolsep {
597
+ width: 0.22em !important;
598
+ }
599
+
600
+ .cme-pmatrix-two-row-template.cme-pmatrix-narrow-columns-template::before,
601
+ .cme-pmatrix-two-row-template.cme-pmatrix-narrow-columns-template::after {
602
+ width: 0.7em;
603
+ height: 3.25em;
604
+ }
605
+
606
+ .cme-pmatrix-three-row-template.cme-pmatrix-narrow-columns-template {
607
+ padding-left: 1em;
608
+ padding-right: 1em;
609
+ }
610
+
611
+ .cme-pmatrix-three-row-template.cme-pmatrix-narrow-columns-template::before,
612
+ .cme-pmatrix-three-row-template.cme-pmatrix-narrow-columns-template::after {
613
+ width: 0.78em;
614
+ height: 6.05em;
615
+ }
616
+ /* Dynamic Matrix Wrapper - Auto-scaling and Compact */
617
+ .cme-matrix-compact-wrapper {
618
+ display: inline-flex;
619
+ align-items: stretch;
620
+ justify-content: center;
621
+ position: relative;
622
+ vertical-align: middle;
623
+ line-height: 1;
624
+ font-size: 0.65em;
625
+ margin: 0 0.1em;
626
+ }
627
+
628
+ .cme-matrix-compact-wrapper.cme-bmatrix-dynamic-template,
629
+ .cme-matrix-compact-wrapper.cme-pmatrix-dynamic-template {
630
+ padding-left: 0.45em;
631
+ padding-right: 0.45em;
632
+ }
633
+
634
+ .cme-matrix-compact-wrapper .ML__arraycolsep {
635
+ width: 0.15em !important;
636
+ }
637
+
638
+ .cme-matrix-compact-wrapper::before,
639
+ .cme-matrix-compact-wrapper::after {
640
+ content: "";
641
+ position: absolute;
642
+ top: 0.05em;
643
+ bottom: 0.05em;
644
+ background: currentColor;
645
+ pointer-events: none;
646
+ }
647
+
648
+ .cme-bmatrix-dynamic-template::before,
649
+ .cme-bmatrix-dynamic-template::after {
650
+ width: 0.35em;
651
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 72' preserveAspectRatio='none'%3E%3Cpath d='M12 2 H4 V70 H12' fill='none' stroke='white' stroke-width='2.5' vector-effect='non-scaling-stroke' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
652
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 72' preserveAspectRatio='none'%3E%3Cpath d='M12 2 H4 V70 H12' fill='none' stroke='white' stroke-width='2.5' vector-effect='non-scaling-stroke' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
653
+ }
654
+
655
+ .cme-pmatrix-dynamic-template::before,
656
+ .cme-pmatrix-dynamic-template::after {
657
+ width: 0.42em;
658
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 72' preserveAspectRatio='none'%3E%3Cpath d='M17 2 C4 18 4 54 17 70' fill='none' stroke='white' stroke-width='2.5' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
659
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 72' preserveAspectRatio='none'%3E%3Cpath d='M17 2 C4 18 4 54 17 70' fill='none' stroke='white' stroke-width='2.5' vector-effect='non-scaling-stroke' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
660
+ }
661
+
662
+ .cme-matrix-compact-wrapper::before {
663
+ left: 0;
664
+ }
665
+ .cme-matrix-compact-wrapper::after {
666
+ right: 0;
667
+ transform: scaleX(-1);
668
+ }
669
+
670
+ .cme-cases-left-template,
671
+ .cme-cases-right-template {
672
+ display: inline-block;
673
+ position: relative;
674
+ line-height: 1;
675
+ vertical-align: 0.48em;
676
+ }
677
+
678
+ .cme-cases-left-template {
679
+ padding-left: 0.62em;
680
+ }
681
+
682
+ .cme-cases-right-template {
683
+ padding-right: 0.62em;
684
+ }
685
+
686
+ .cme-cases-left-template .ML__arraycolsep,
687
+ .cme-cases-right-template .ML__arraycolsep {
688
+ width: 0.18em !important;
689
+ }
690
+
691
+ .cme-cases-2x2-template .ML__arraycolsep {
692
+ width: 0.36em !important;
693
+ }
694
+
695
+ .cme-cases-left-template::before,
696
+ .cme-cases-right-template::after {
697
+ content: "";
698
+ position: absolute;
699
+ top: 50%;
700
+ width: 0.48em;
701
+ height: 2.55em;
702
+ background: currentColor;
703
+ pointer-events: none;
704
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 48'%3E%3Cpath d='M9 2 C4 2 4 5 4 8 L4 16 C4 19 3 21 1 24 C3 27 4 29 4 32 L4 40 C4 43 4 46 9 46' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
705
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 48'%3E%3Cpath d='M9 2 C4 2 4 5 4 8 L4 16 C4 19 3 21 1 24 C3 27 4 29 4 32 L4 40 C4 43 4 46 9 46' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
706
+ }
707
+
708
+ .cme-cases-left-template::before {
709
+ left: 0.08em;
710
+ transform: translateY(-50%);
711
+ }
712
+
713
+ .cme-cases-right-template::after {
714
+ right: 0.08em;
715
+ transform: translateY(-50%) scaleX(-1);
716
+ }
717
+ .cme-bevelled-fraction-slash {
718
+ color: #ffffff !important;
719
+ }
720
+
721
+ .cme-vertical-strike-template {
722
+ display: inline-block;
723
+ position: relative;
724
+ line-height: 1;
725
+ padding: 0.12em 0.1em;
726
+ vertical-align: middle;
727
+ white-space: nowrap;
728
+ }
729
+
730
+ .cme-vertical-strike-template::after {
731
+ content: "";
732
+ position: absolute;
733
+ left: 50%;
734
+ top: -0.08em;
735
+ bottom: -0.08em;
736
+ width: 0.065em;
737
+ min-width: 1px;
738
+ background: currentColor;
739
+ border-radius: 999px;
740
+ pointer-events: none;
741
+ transform: translateX(-50%);
742
+ }
743
+ .cme-crosshair-strike-template {
744
+ display: inline-block;
745
+ position: relative;
746
+ line-height: 1;
747
+ padding: 0.12em 0.1em;
748
+ vertical-align: middle;
749
+ white-space: nowrap;
750
+ }
751
+
752
+ .cme-crosshair-strike-template::before,
753
+ .cme-crosshair-strike-template::after {
754
+ content: "";
755
+ position: absolute;
756
+ background: currentColor;
757
+ border-radius: 999px;
758
+ pointer-events: none;
759
+ }
760
+
761
+ .cme-crosshair-strike-template::before {
762
+ left: 50%;
763
+ top: -0.10em;
764
+ bottom: -0.10em;
765
+ width: 0.065em;
766
+ min-width: 1px;
767
+ transform: translateX(-50%);
768
+ }
769
+
770
+ .cme-crosshair-strike-template::after {
771
+ left: 0;
772
+ right: 0;
773
+ top: 50%;
774
+ height: 0.065em;
775
+ min-height: 1px;
776
+ transform: translateY(-50%);
777
+ }
778
+ /* Dynamic Cancel / Strikeout Templates */
779
+ .cme-cancel-template,
780
+ .cme-bcancel-template,
781
+ .cme-xcancel-template {
782
+ display: inline-block;
783
+ position: relative;
784
+ line-height: 1;
785
+ padding: 0 0.1em;
786
+ }
787
+
788
+ .cme-cancel-template::after,
789
+ .cme-bcancel-template::after,
790
+ .cme-xcancel-template::after,
791
+ .cme-xcancel-template::before {
792
+ content: "";
793
+ position: absolute;
794
+ top: 0;
795
+ left: 0;
796
+ right: 0;
797
+ bottom: 0;
798
+ pointer-events: none;
799
+ }
800
+
801
+ .cme-cancel-template::after {
802
+ background: currentColor;
803
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='100' x2='100' y2='0' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
804
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='100' x2='100' y2='0' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
805
+ }
806
+
807
+ .cme-bcancel-template::after {
808
+ background: currentColor;
809
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
810
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
811
+ }
812
+
813
+ .cme-xcancel-template::after {
814
+ background: currentColor;
815
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='100' x2='100' y2='0' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
816
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='100' x2='100' y2='0' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
817
+ }
818
+
819
+ .cme-xcancel-template::before {
820
+ background: currentColor;
821
+ -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
822
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cline x1='0' y1='0' x2='100' y2='100' stroke='white' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
823
+ }
824
+
825
+ `;function He(e){let t=e?.shadowRoot;if(!t||t.getElementById(Ve))return;let n=document.createElement(`style`);n.id=Ve,n.textContent=q,t.appendChild(n)}function Ue(e,t=0){!e||typeof window>`u`||window.requestAnimationFrame(()=>{He(e),!e.shadowRoot&&t<6&&Ue(e,t+1)})}function J({top:e,bottom:t=``,compact:n=!1}){return(0,i.jsxs)(`span`,{className:`cme-tab-icon${n?` compact`:``}`,"aria-hidden":`true`,children:[(0,i.jsx)(`span`,{className:`cme-tab-icon-top`,children:e}),t?(0,i.jsx)(`span`,{className:`cme-tab-icon-bottom`,children:t}):null]})}function We(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 48 24`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M2 13 L5 13 L7 18 L10 4 L20 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`rect`,{x:`13`,y:`7`,width:`8`,height:`8`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`3`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`line`,{x1:`29`,y1:`12`,x2:`39`,y2:`12`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`15`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`})]})})}function Ge(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 210 110`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 H4 V102 H12`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`path`,{d:`M96 8 H104 V102 H96`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`24`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`path`,{d:`M142 8 C132 8 132 18 132 28 C132 38 128 45 124 49 C128 53 132 60 132 70 C132 80 132 90 142 102`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`154`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`154`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`})]})})}function Y(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 70 50`,focusable:`false`,children:[(0,i.jsx)(`rect`,{x:`4`,y:`20`,width:`20`,height:`28`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`24`,y:`6`,width:`12`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`51`,y:`10`,width:`8`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`48`,y:`30`,width:`14`,height:`18`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function Ke(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 56 28`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M18 4 C10 4 6 9 6 14 C6 19 10 24 18 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`line`,{x1:`8`,y1:`14`,x2:`18`,y2:`14`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`}),(0,i.jsx)(`text`,{x:`26`,y:`24`,fill:`currentColor`,fontFamily:`Cambria Math, serif`,fontSize:`35`,children:`∞`})]})})}function qe(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 40 24`,focusable:`false`,children:(0,i.jsx)(`text`,{x:`2`,y:`20`,fill:`currentColor`,fontFamily:`Segoe UI Symbol, Arial Unicode MS, sans-serif`,fontSize:`25`,children:`α Ω`})})})}function Je(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 90 50`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 C4 14,4 36,12 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`20`,y:`10`,width:`18`,height:`30`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`path`,{d:`M46 8 C54 14,54 36,46 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`path`,{d:`M65 10 Q75 2 85 10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`68`,y:`18`,width:`14`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function Ye(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 80 50`,focusable:`false`,children:[(0,i.jsx)(`text`,{x:`2`,y:`40`,fill:`currentColor`,fontSize:`42`,fontFamily:`Cambria Math, Times New Roman, serif`,fontWeight:`500`,children:`∫`}),(0,i.jsx)(`rect`,{x:`30`,y:`1`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`40`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`text`,{x:`45`,y:`36`,fill:`currentColor`,fontSize:`32`,fontWeight:`500`,fontFamily:`Cambria Math, Times New Roman, serif`,children:`lim`})]})})}function Xe(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:[(0,i.jsx)(`path`,{d:`M12 3V12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),(0,i.jsx)(`path`,{d:`M8.5 8.5L12 12L15.5 8.5`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M4 15C4 19 7.5 22 12 22C16.5 22 20 19 20 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M7 15C7 17.5 9 19 12 19C15 19 17 17.5 17 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`})]})})}function Ze(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 64 24`,focusable:`false`,children:(0,i.jsxs)(`g`,{fill:`currentColor`,children:[(0,i.jsx)(`path`,{d:`M4 10h20V5l12 7-12 7v-5H4z`}),(0,i.jsx)(`circle`,{cx:`44`,cy:`18`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`52`,cy:`12`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`60`,cy:`6`,r:`2.5`})]})})})}var X=class extends r.Plugin{static get pluginName(){return`MathInlinePlugin`}static get requires(){return[r.Widget]}init(){let e=this.editor;e.model.schema.register(`mathInline`,{isInline:!0,isObject:!0,allowWhere:`$text`,allowAttributes:[`latex`,`dir`]}),e.model.schema.addChildCheck((e,t)=>{if(t.name===`mathInline`)return!0}),e.conversion.for(`editingDowncast`).elementToElement({model:`mathInline`,view:(t,{writer:n})=>{let i=t.getAttribute(`latex`)||``,a=K(i),o=t.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,s=`math-`+Math.random().toString(36).substr(2,9);window.__ckMathWidgets.set(s,t);let c=n.createContainerElement(`span`,{class:`ck-math-widget ck-math-inline-word`,contenteditable:`false`,"data-math-id":s,"data-latex":i,"data-dir":o,dir:o}),l=n.createRawElement(`span`,{class:`ck-math-widget-inner`,style:`display:inline-block;vertical-align:middle;margin:0 2px;cursor:pointer;width:auto;max-width:100%;pointer-events:none;`},t=>{let n=document.createElement(`math-field`);Ue(n),n.setAttribute(`read-only`,``),n.setAttribute(`math-virtual-keyboard-policy`,`manual`),n.setAttribute(`tabindex`,`-1`),n.setAttribute(`letter-shape-style`,`tex`),n.setAttribute(`dir`,o),n.style.display=`inline-block`,n.style.width=`auto`,n.style.maxWidth=`100%`,n.style.verticalAlign=`middle`,n.style.border=`none`,n.style.background=`transparent`,n.style.outline=`none`,n.style.fontSize=`inherit`,n.style.minHeight=`auto`,n.style.padding=`0 2px`,n.style.margin=`0`,n.style.pointerEvents=`none`,n.style.direction=o,n.style.textAlign=o===`rtl`?`right`:`left`,n.style.unicodeBidi=o===`rtl`?`plaintext`:`normal`,n.style.color=`#ffffff`;let r=()=>{n.setValue?n.setValue(a,{silenceNotifications:!0}):n.value=a};customElements.get(`math-field`)?requestAnimationFrame(r):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(r)),t.appendChild(n);let i=()=>{let n=t.parentElement;n&&g(e,n)};i(),requestAnimationFrame(i)});return n.insert(n.createPositionAt(c,0),l),(0,r.toWidget)(c,n,{label:`math formula`})}});let t=e.editing.view.document;this.listenTo(t,`mousedown`,(t,n)=>{let r=u(n.domTarget);r&&n.domEvent.button===0&&(t.stop(),n.preventDefault(),h(e,null,d(r),r))},{priority:`high`}),e.conversion.for(`dataDowncast`).elementToElement({model:`mathInline`,view:(e,{writer:t})=>{let n=e.getAttribute(`latex`)||``,r=e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,i=t.createContainerElement(`span`,{class:`math-tex`,"data-latex":n,"data-dir":r,dir:r,style:`display:inline;`});return t.insert(t.createPositionAt(i,0),t.createText(n)),i}}),e.conversion.for(`upcast`).elementToElement({view:{name:`span`,classes:`math-tex`},model:(e,{writer:t})=>{let n=e.getAttribute(`data-latex`)||``,r=e.getAttribute(`data-dir`)===`rtl`||e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`;return t.createElement(`mathInline`,{latex:n,dir:r})}})}},Qe=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path d="M4 12h3l3 6l5-12h5" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,$e=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><rect x="3" y="3" width="18" height="18" rx="3" fill="none" stroke="currentColor" stroke-width="2"/><text x="12" y="16" text-anchor="middle" font-size="12" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">C</text><text x="6" y="8" font-size="4" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">6</text></svg>`,et=[{label:`Black`,value:`#000000`},{label:`Dim Gray`,value:`#696969`},{label:`Gray`,value:`#808080`},{label:`Dark Gray`,value:`#a9a9a9`},{label:`Silver`,value:`#c0c0c0`},{label:`White`,value:`#ffffff`},{label:`Red`,value:`#ff0000`},{label:`Orange`,value:`#ffa500`},{label:`Yellow`,value:`#ffff00`},{label:`Lime`,value:`#00ff00`},{label:`Cyan`,value:`#00ffff`},{label:`Blue`,value:`#0000ff`},{label:`Purple`,value:`#800080`},{label:`Magenta`,value:`#ff00ff`},{label:`Pink`,value:`#ffc0cb`},{label:`Brown`,value:`#a52a2a`},{label:`Maroon`,value:`#800000`},{label:`Olive`,value:`#808000`},{label:`Green`,value:`#0B7D1E`},{label:`Teal`,value:`#008080`},{label:`Navy`,value:`#000080`},{label:`Indigo`,value:`#4b0082`},{label:`Violet`,value:`#ee82ee`},{label:`Gold`,value:`#ffd700`}];function tt(e){let t=String(e||``).trim();if(!t)return``;if(t===`none`)return`none`;if(typeof document>`u`)return t.toLowerCase();let n=document.createElement(`span`);if(n.style.color=``,n.style.color=t,!n.style.color)return``;n.style.position=`absolute`,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n);let r=window.getComputedStyle(n).color;n.remove();let i=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return i?`#${[i[1],i[2],i[3]].map(e=>Number(e).toString(16).padStart(2,`0`)).join(``)}`:r.toLowerCase()}function Z(e){return`data:image/svg+xml;utf8,${encodeURIComponent(e)}`}function Q(e){return Z(`
37
826
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
38
827
  <g fill="none" stroke="#1f252b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
39
828
  ${e}
40
829
  </g>
41
830
  </svg>
42
- `)}var me={"fraction-template-image":U(`
43
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
44
- <rect x="6.1" y="1.8" width="6" height="4.8" rx="0" fill="none" stroke="#2c8a43" stroke-width="1.6"/>
45
- <line x1="3.2" y1="9" x2="14.8" y2="9" stroke="#000000" stroke-width="1.6" stroke-linecap="square"/>
46
- <rect x="6.1" y="11.4" width="6" height="4.8" rx="0" fill="none" stroke="#2c8a43" stroke-width="1.6"/>
47
- </svg>
48
- `),"superscript-template-image":U(`
831
+ `)}var $={"fraction-template-image":Z(`
832
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
833
+ <rect x="6.1" y="1.8" width="5" height="4.8" rx="0" fill="none" stroke="#0B7D1E" stroke-width="1"/>
834
+ <line x1="3.2" y1="9" x2="13.4" y2="9" stroke="#000000" stroke-width="0.9" stroke-linecap="square"/>
835
+ <rect x="6.1" y="11.4" width="5" height="4.8" rx="0" fill="none" stroke="#0B7D1E" stroke-width="1"/>
836
+ </svg>
837
+ `),"small-fraction-template-image":Z(`
838
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
839
+ <rect x="6.1" y="3.8" width="4" height="2.8" rx="0" fill="none" stroke="#0B7D1E" stroke-width="0.8"/>
840
+ <line x1="4.2" y1="9" x2="12" y2="9" stroke="#000000" stroke-width="0.8" stroke-linecap="square"/>
841
+ <rect x="6.1" y="11.4" width="4" height="2.8" rx="0" fill="none" stroke="#0B7D1E" stroke-width="0.8"/>
842
+ </svg>
843
+ `),"bevelled-fraction-offset-template-image":Z(`
844
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -10 64 56" width="64" height="56" fill="none">
845
+ <rect x="8" y="3" width="14" height="15" stroke="#0B7D1E" stroke-width="3"/>
846
+ <path d="M24 30 L39 2" stroke="#111" stroke-width="3" stroke-linecap="square"/>
847
+ <rect x="42" y="16" width="14" height="15" stroke="#0B7D1E" stroke-width="3"/>
848
+ </svg>
849
+ `),"small-bevelled-fraction-template-image":Z(`
850
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -15 79 56" width="64" height="56" fill="none">
851
+ <g transform="translate(-1.6,-1) scale(0.9)">
852
+ <rect x="8" y="3" width="16" height="16" stroke="#0B7D1E" stroke-width="3.5"/>
853
+ <path d="M24 30 L39 2" stroke="#111" stroke-width="3" stroke-linecap="square"/>
854
+ <rect x="42" y="16" width="16" height="16" stroke="#0B7D1E" stroke-width="3.5"/>
855
+ </g>
856
+ </svg>
857
+ `),"superscript-template-image":Z(`
49
858
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
50
- <rect x="3.1" y="7.3" width="6.5" height="7.4" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
51
- <rect x="10.3" y="3.2" width="4.6" height="5.6" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
859
+ <rect x="3.1" y="7.3" width="6.5" height="7.4" rx="0.6" fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
860
+ <rect x="10.3" y="3.2" width="4.6" height="5.6" rx="0.6" fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
52
861
  </svg>
53
- `),"sqrt-template-image":U(`
862
+ `),"sqrt-template-image":Z(`
54
863
  <svg width="48" height="32" viewBox="-7 0 48 32" xmlns="http://www.w3.org/2000/svg">
55
864
  <path
56
865
  d="M4 18 L11 25 L18 4 L38 4"
@@ -61,30 +870,30 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
61
870
  stroke-linejoin="round"
62
871
  />
63
872
  <rect
64
- x="23"
873
+ x="23"
65
874
  y="9"
66
875
  width="10"
67
876
  height="13"
68
877
  fill="none"
69
- stroke="#43A047"
878
+ stroke="#0B7D1E"
70
879
  stroke-width="2"
71
880
  />
72
- </svg>
73
- `),"subscript-template-image":U(`
881
+ </svg>
882
+ `),"subscript-template-image":Z(`
74
883
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
75
- <rect x="3.1" y="3.2" width="6.5" height="7.4" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
76
- <rect x="10.3" y="9.2" width="4.6" height="5.6" rx="0.6" fill="none" stroke="#2c8a43" stroke-width="1.5"/>
884
+ <rect x="3.1" y="3.2" width="6.5" height="7.4" rx="0.6" fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
885
+ <rect x="10.3" y="9.2" width="4.6" height="5.6" rx="0.6" fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
77
886
  </svg>
78
- `),"nth-root-template-image":U(`
887
+ `),"nth-root-template-image":Z(`
79
888
  <svg width="48" height="32" viewBox="0 0 48 32" xmlns="http://www.w3.org/2000/svg">
80
889
  <!-- index placeholder -->
81
890
  <rect
82
- x="11"
891
+ x="11"
83
892
  y="6"
84
893
  width="6"
85
894
  height="8"
86
895
  fill="none"
87
- stroke="#43A047"
896
+ stroke="#0B7D1E"
88
897
  stroke-width="2"
89
898
  />
90
899
 
@@ -105,55 +914,55 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
105
914
  width="10"
106
915
  height="13"
107
916
  fill="none"
108
- stroke="#43A047"
917
+ stroke="#0B7D1E"
109
918
  stroke-width="2"
110
919
  />
111
- </svg>
112
- `),"slash-fraction-template-image":U(`
920
+ </svg>
921
+ `),"slash-fraction-template-image":Z(`
113
922
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 32" fill="none">
114
- <rect x="2" y="4" width="10" height="18" stroke="#008000" stroke-width="1.5"/>
923
+ <rect x="2" y="4" width="10" height="18" stroke="#0B7D1E" stroke-width="1.5"/>
115
924
  <line x1="22" y1="2" x2="14" y2="26" stroke="#000" stroke-width="2" stroke-linecap="round"/>
116
- <rect x="32" y="10" width="10" height="18" stroke="#008000" stroke-width="1.5"/>
925
+ <rect x="32" y="10" width="10" height="18" stroke="#0B7D1E" stroke-width="1.5"/>
117
926
  </svg>
118
- `),"right-sup-sub-template-image":U(`
927
+ `),"right-sup-sub-template-image":Z(`
119
928
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
120
- <rect x="8" y="10" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
121
- <rect x="20" y="2" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
122
- <rect x="20" y="20" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
929
+ <rect x="8" y="10" width="10" height="14" stroke="#0B7D1E" stroke-width="2.5"/>
930
+ <rect x="20" y="2" width="8" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
931
+ <rect x="20" y="20" width="8" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
123
932
  </svg>
124
- `),"left-sup-template-image":U(`
933
+ `),"left-sup-template-image":Z(`
125
934
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
126
- <rect x="4" y="2" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
127
- <rect x="16" y="10" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
935
+ <rect x="4" y="2" width="8" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
936
+ <rect x="16" y="10" width="10" height="14" stroke="#0B7D1E" stroke-width="2.5"/>
128
937
  </svg>
129
- `),"left-sub-template-image":U(`
938
+ `),"left-sub-template-image":Z(`
130
939
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
131
- <rect x="16" y="6" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
132
- <rect x="4" y="18" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
940
+ <rect x="16" y="6" width="10" height="14" stroke="#0B7D1E" stroke-width="2.5"/>
941
+ <rect x="4" y="18" width="8" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
133
942
  </svg>
134
- `),"left-sup-sub-template-image":U(`
943
+ `),"left-sup-sub-template-image":Z(`
135
944
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 36" fill="none">
136
- <rect x="4" y="2" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
137
- <rect x="4" y="22" width="8" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
138
- <rect x="16" y="10" width="10" height="14" stroke="#008000" stroke-width="2.5"/>
945
+ <rect x="4" y="2" width="8" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
946
+ <rect x="4" y="22" width="8" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
947
+ <rect x="16" y="10" width="10" height="14" stroke="#0B7D1E" stroke-width="2.5"/>
139
948
  </svg>
140
- `),"overset-template-image":U(`
949
+ `),"overset-template-image":Z(`
141
950
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 40" fill="none">
142
- <rect x="10" y="2" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
143
- <rect x="8" y="18" width="14" height="14" stroke="#008000" stroke-width="2.5"/>
951
+ <rect x="10" y="2" width="10" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
952
+ <rect x="8" y="18" width="14" height="14" stroke="#0B7D1E" stroke-width="2.5"/>
144
953
  </svg>
145
- `),"underset-template-image":U(`
954
+ `),"underset-template-image":Z(`
146
955
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 40" fill="none">
147
- <rect x="8" y="6" width="14" height="14" stroke="#008000" stroke-width="2.5"/>
148
- <rect x="10" y="28" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
956
+ <rect x="8" y="6" width="14" height="14" stroke="#0B7D1E" stroke-width="2.5"/>
957
+ <rect x="10" y="28" width="10" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
149
958
  </svg>
150
- `),"over-under-template-image":U(`
959
+ `),"over-under-template-image":Z(`
151
960
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 52" fill="none">
152
- <rect x="10" y="2" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
153
- <rect x="8" y="18" width="14" height="14" stroke="#008000" stroke-width="2.5"/>
154
- <rect x="10" y="40" width="10" height="10" stroke="#008000" stroke-width="2.5" opacity="1"/>
961
+ <rect x="10" y="2" width="10" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
962
+ <rect x="8" y="18" width="14" height="14" stroke="#0B7D1E" stroke-width="2.5"/>
963
+ <rect x="10" y="40" width="10" height="10" stroke="#0B7D1E" stroke-width="2.5" opacity="1"/>
155
964
  </svg>
156
- `),"underbrace-template-image":U(`
965
+ `),"underbrace-template-image":Z(`
157
966
  <svg xmlns="http://www.w3.org/2000/svg"
158
967
  viewBox="0 0 24 24"
159
968
  fill="none">
@@ -192,11 +1001,11 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
192
1001
  width="6"
193
1002
  height="5"
194
1003
  fill="none"
195
- stroke="#5A9E57"
1004
+ stroke="#0B7D1E"
196
1005
  stroke-width="1.4"/>
197
1006
 
198
1007
  </svg>
199
- `),"overbrace-template-image":U(`
1008
+ `),"overbrace-template-image":Z(`
200
1009
  <svg xmlns="http://www.w3.org/2000/svg"
201
1010
  viewBox="0 0 24 24"
202
1011
  fill="none">
@@ -208,7 +1017,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
208
1017
  width="6"
209
1018
  height="5"
210
1019
  fill="none"
211
- stroke="#5A9E57"
1020
+ stroke="#0B7D1E"
212
1021
  stroke-width="1.4"/>
213
1022
 
214
1023
  <!-- Overbrace (move using translate) -->
@@ -239,32 +1048,32 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
239
1048
  stroke-width="1.6"/>
240
1049
 
241
1050
  </svg>
242
- `),"overbrace-arc-template-image":U(`
1051
+ `),"overbrace-arc-template-image":Z(`
243
1052
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
244
1053
  <path d="M8 10 C8 6,12 6,16 6 C20 6,20 2,20 2 C20 2,20 6,24 6 C28 6,32 6,32 10" stroke="#000000" stroke-width="2"/>
245
- <rect x="15" y="16" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1054
+ <rect x="15" y="16" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
246
1055
  </svg>
247
- `),"overparen-template-image":U(`
1056
+ `),"overparen-template-image":Z(`
248
1057
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
249
1058
  <path d="M8 10 Q20 2 32 10" stroke="#000000" stroke-width="2"/>
250
- <rect x="15" y="16" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1059
+ <rect x="15" y="16" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
251
1060
  </svg>
252
- `),"underbrace-arc-template-image":U(`
1061
+ `),"underbrace-arc-template-image":Z(`
253
1062
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
254
- <rect x="15" y="6" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
255
- <path d="M8 30 C8 34,12 34,16 34 C20 34,20 38,20 38 C20 38,20 34,24 34 C28 34,32 34,32 30" stroke="#000000" stroke-width="2"/>
256
- </svg>
257
- `),"underparen-template-image":U(`
1063
+ <rect x="15" y="6" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
1064
+ <path d="M8 30 C8 34,12 34,16 34 C20 34,20 38,20 38 C20 38,20 34,24 34 C28 34,32 34,32 30" stroke="#000000" stroke-width="2"/>
1065
+ </svg>
1066
+ `),"underparen-template-image":Z(`
258
1067
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
259
- <rect x="15" y="6" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1068
+ <rect x="15" y="6" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
260
1069
  <path d="M8 30 Q20 38 32 30" stroke="#000000" stroke-width="2"/>
261
1070
  </svg>
262
- `),"vec-accent-template-image":U(`
1071
+ `),"vec-accent-template-image":Z(`
263
1072
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
264
1073
  <!-- Right harpoon -->
265
1074
  <path
266
- d="M10 10 H30
267
- M26 6 L30 10"
1075
+ d="M10 10 H30
1076
+ M26 6 L30 10"
268
1077
  stroke="#000000"
269
1078
  stroke-width="2"
270
1079
  stroke-linecap="round"
@@ -277,116 +1086,116 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
277
1086
  y="18"
278
1087
  width="10"
279
1088
  height="16"
280
- stroke="#1b8f3a"
1089
+ stroke="#0B7D1E"
281
1090
  stroke-width="3"/>
282
- </svg>
283
- `),"overrightarrow-accent-template-image":U(`
1091
+ </svg>
1092
+ `),"overrightarrow-accent-template-image":Z(`
284
1093
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
285
1094
  <path d="M8 10 H30" stroke="#000000" stroke-width="2"/>
286
1095
  <path d="M26 6 L34 10 L26 14" stroke="#000000" stroke-width="2" fill="none"/>
287
- <rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1096
+ <rect x="15" y="18" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
288
1097
  </svg>
289
- `),"overleftrightarrow-accent-template-image":U(`
1098
+ `),"overleftrightarrow-accent-template-image":Z(`
290
1099
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
291
1100
  <path d="M8 10 H32" stroke="#000000" stroke-width="2"/>
292
1101
  <path d="M12 6 L4 10 L12 14" stroke="#000000" stroke-width="2" fill="none"/>
293
1102
  <path d="M28 6 L36 10 L28 14" stroke="#000000" stroke-width="2" fill="none"/>
294
- <rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1103
+ <rect x="15" y="18" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
295
1104
  </svg>
296
- `),"overline-accent-template-image":U(`
1105
+ `),"overline-accent-template-image":Z(`
297
1106
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
298
1107
  <line x1="10" y1="10" x2="30" y2="10" stroke="#000000" stroke-width="2"/>
299
- <rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1108
+ <rect x="15" y="18" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
300
1109
  </svg>
301
- `),"hat-accent-template-image":U(`
1110
+ `),"hat-accent-template-image":Z(`
302
1111
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
303
1112
  <path d="M12 12 L20 6 L28 12" stroke="#000000" stroke-width="2" fill="none"/>
304
- <rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1113
+ <rect x="15" y="18" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
305
1114
  </svg>
306
- `),"tilde-accent-template-image":U(`
1115
+ `),"tilde-accent-template-image":Z(`
307
1116
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
308
1117
  <path d="M10 11 C14 6,18 16,22 11 C26 6,30 16,34 11" stroke="#000000" stroke-width="2" fill="none"/>
309
- <rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1118
+ <rect x="15" y="18" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
310
1119
  </svg>
311
- `),"ddot-accent-template-image":U(`
1120
+ `),"ddot-accent-template-image":Z(`
312
1121
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
313
1122
  <circle cx="16" cy="10" r="2" fill="#000000"/>
314
1123
  <circle cx="24" cy="10" r="2" fill="#000000"/>
315
- <rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1124
+ <rect x="15" y="18" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
316
1125
  </svg>
317
- `),"dot-accent-template-image":U(`
1126
+ `),"dot-accent-template-image":Z(`
318
1127
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" fill="none">
319
1128
  <circle cx="20" cy="10" r="2" fill="#000000"/>
320
- <rect x="15" y="18" width="10" height="16" stroke="#1b8f3a" stroke-width="3"/>
1129
+ <rect x="15" y="18" width="10" height="16" stroke="#0B7D1E" stroke-width="3"/>
321
1130
  </svg>
322
- `),"overline-frame-template-image":U(`
1131
+ `),"overline-frame-template-image":Z(`
323
1132
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
324
1133
  <line x1="8" y1="8" x2="40" y2="8" stroke="#000000" stroke-width="2"/>
325
- <rect x="18" y="14" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1134
+ <rect x="18" y="14" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
326
1135
  </svg>
327
- `),"left-bar-template-image":U(`
1136
+ `),"left-bar-template-image":Z(`
328
1137
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
329
1138
  <line x1="12" y1="6" x2="12" y2="34" stroke="#000000" stroke-width="2"/>
330
- <rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1139
+ <rect x="18" y="12" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
331
1140
  </svg>
332
- `),"boxed-square-template-image":U(`
1141
+ `),"boxed-square-template-image":Z(`
333
1142
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
334
1143
  <rect x="10" y="6" width="28" height="28" stroke="#000000" stroke-width="2"/>
335
- <rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1144
+ <rect x="18" y="12" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
336
1145
  </svg>
337
- `),"underline-frame-template-image":U(`
1146
+ `),"underline-frame-template-image":Z(`
338
1147
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
339
- <rect x="18" y="8" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1148
+ <rect x="18" y="8" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
340
1149
  <line x1="8" y1="30" x2="40" y2="30" stroke="#000000" stroke-width="2"/>
341
1150
  </svg>
342
- `),"right-bar-template-image":U(`
1151
+ `),"right-bar-template-image":Z(`
343
1152
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
344
- <rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1153
+ <rect x="18" y="12" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
345
1154
  <line x1="36" y1="6" x2="36" y2="34" stroke="#000000" stroke-width="2"/>
346
1155
  </svg>
347
- `),"paren-frame-template-image":U(`
1156
+ `),"paren-frame-template-image":Z(`
348
1157
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
349
1158
  <ellipse cx="24" cy="20" rx="16" ry="14" stroke="#000000" stroke-width="2"/>
350
- <rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1159
+ <rect x="18" y="12" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
351
1160
  </svg>
352
- `),"overline-right-bar-template-image":U(`
1161
+ `),"overline-right-bar-template-image":Z(`
353
1162
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
354
1163
  <line x1="10" y1="8" x2="36" y2="8" stroke="#000000" stroke-width="2"/>
355
1164
  <line x1="36" y1="8" x2="36" y2="32" stroke="#000000" stroke-width="2"/>
356
- <rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1165
+ <rect x="18" y="12" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
357
1166
  </svg>
358
- `),"boxed-rounded-template-image":U(`
1167
+ `),"boxed-rounded-template-image":Z(`
359
1168
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 40" fill="none">
360
1169
  <rect x="10" y="6" width="28" height="28" rx="6" ry="6" stroke="#000000" stroke-width="2"/>
361
- <rect x="18" y="12" width="12" height="16" stroke="#1b8f3a" stroke-width="3"/>
1170
+ <rect x="18" y="12" width="12" height="16" stroke="#0B7D1E" stroke-width="3"/>
362
1171
  </svg>
363
- `),"cancel-diagonal-template-image":U(`
1172
+ `),"cancel-diagonal-template-image":Z(`
364
1173
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
365
1174
  <line x1="10" y1="30" x2="50" y2="10" stroke="#000000" stroke-width="2"/>
366
- <rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
1175
+ <rect x="22" y="12" width="16" height="16" stroke="#0B7D1E" stroke-width="3"/>
367
1176
  </svg>
368
- `),"sout-template-image":U(`
1177
+ `),"sout-template-image":Z(`
369
1178
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
370
1179
  <line x1="8" y1="20" x2="52" y2="20" stroke="#000000" stroke-width="2"/>
371
- <rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
1180
+ <rect x="22" y="12" width="16" height="16" stroke="#0B7D1E" stroke-width="3"/>
372
1181
  </svg>
373
- `),"bcancel-template-image":U(`
1182
+ `),"bcancel-template-image":Z(`
374
1183
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
375
1184
  <line x1="10" y1="10" x2="50" y2="30" stroke="#000000" stroke-width="2"/>
376
- <rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
1185
+ <rect x="22" y="12" width="16" height="16" stroke="#0B7D1E" stroke-width="3"/>
377
1186
  </svg>
378
- `),"xcancel-template-image":U(`
1187
+ `),"xcancel-template-image":Z(`
379
1188
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
380
1189
  <line x1="10" y1="10" x2="50" y2="30" stroke="#000000" stroke-width="2"/>
381
1190
  <line x1="10" y1="30" x2="50" y2="10" stroke="#000000" stroke-width="2"/>
382
- <rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
1191
+ <rect x="22" y="12" width="16" height="16" stroke="#0B7D1E" stroke-width="3"/>
383
1192
  </svg>
384
- `),"vertical-strike-template-image":U(`
1193
+ `),"vertical-strike-template-image":Z(`
385
1194
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
386
1195
  <line x1="30" y1="6" x2="30" y2="34" stroke="#000000" stroke-width="2"/>
387
- <rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
1196
+ <rect x="22" y="12" width="16" height="16" stroke="#0B7D1E" stroke-width="3"/>
388
1197
  </svg>
389
- `),"overline-left-curve-template-image":U(`
1198
+ `),"overline-left-curve-template-image":Z(`
390
1199
  <svg width="70" height="40" viewBox="0 0 80 60" xmlns="http://www.w3.org/2000/svg">
391
1200
  <!-- Long division bracket -->
392
1201
  <path d="M15 5 H65
@@ -401,71 +1210,71 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
401
1210
  <!-- Placeholder box -->
402
1211
  <rect x="33" y="20"
403
1212
  width="25"
404
- height="25"
1213
+ height="25"
405
1214
  fill="none"
406
- stroke="#2ca02c"
1215
+ stroke="#0B7D1E"
407
1216
  stroke-width="5"/>
408
1217
  </svg>
409
- `),"crosshair-strike-template-image":U(`
1218
+ `),"crosshair-strike-template-image":Z(`
410
1219
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 40" fill="none">
411
1220
  <line x1="8" y1="20" x2="52" y2="20" stroke="#000000" stroke-width="2"/>
412
1221
  <line x1="30" y1="6" x2="30" y2="34" stroke="#000000" stroke-width="2"/>
413
- <rect x="22" y="12" width="16" height="16" stroke="#1b8f3a" stroke-width="3"/>
1222
+ <rect x="22" y="12" width="16" height="16" stroke="#0B7D1E" stroke-width="3"/>
414
1223
  </svg>
415
- `),"operator-limits-both-template-image":U(`
1224
+ `),"operator-limits-both-template-image":Z(`
416
1225
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
417
1226
  <rect x="14" y="8" width="12" height="16"
418
1227
  fill="none" stroke="#111" stroke-width="2"/>
419
1228
 
420
1229
  <rect x="17" y="1" width="5" height="6"
421
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1230
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
422
1231
 
423
1232
  <rect x="17" y="25" width="5" height="6"
424
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1233
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
425
1234
  </svg>
426
- `),"operator-lower-limit-template-image":U(`
1235
+ `),"operator-lower-limit-template-image":Z(`
427
1236
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
428
1237
  <rect x="14" y="6" width="12" height="15"
429
1238
  fill="none" stroke="#111" stroke-width="2"/>
430
1239
 
431
- <rect x="17" y="26" width="5" height="5"
432
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1240
+ <rect x="17" y="26" width="5" height="5"
1241
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
433
1242
  </svg>
434
- `),"operator-right-sup-sub-template-image":U(`
1243
+ `),"operator-right-sup-sub-template-image":Z(`
435
1244
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
436
1245
  <rect x="12" y="4" width="16" height="24"
437
1246
  fill="none" stroke="#111" stroke-width="2"/>
438
1247
 
439
1248
  <rect x="30" y="1" width="6" height="8"
440
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1249
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
441
1250
 
442
1251
  <rect x="30" y="21" width="6" height="8"
443
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1252
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
444
1253
  </svg>
445
- `),"operator-right-sub-template-image":U(`
1254
+ `),"operator-right-sub-template-image":Z(`
446
1255
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
447
1256
  <rect x="12" y="4" width="16" height="24"
448
1257
  fill="none" stroke="#111" stroke-width="2"/>
449
1258
 
450
1259
  <rect x="30" y="22" width="6" height="8"
451
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1260
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
452
1261
  </svg>
453
- `),"hphantom-space-template-image":U(`
1262
+ `),"hphantom-space-template-image":Z(`
454
1263
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 32" fill="none">
455
- <rect x="4" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
456
- <rect x="36" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
1264
+ <rect x="4" y="4" width="12" height="20" stroke="#0B7D1E" stroke-width="2"/>
1265
+ <rect x="36" y="4" width="12" height="20" stroke="#0B7D1E" stroke-width="2"/>
457
1266
  </svg>
458
- `),"thin-space-template-image":U(`
1267
+ `),"thin-space-template-image":Z(`
459
1268
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 32" fill="none">
460
- <rect x="4" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
461
- <rect x="24" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
1269
+ <rect x="4" y="4" width="12" height="20" stroke="#0B7D1E" stroke-width="2"/>
1270
+ <rect x="24" y="4" width="12" height="20" stroke="#0B7D1E" stroke-width="2"/>
462
1271
  </svg>
463
- `),"negative-thin-space-template-image":U(`
1272
+ `),"negative-thin-space-template-image":Z(`
464
1273
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
465
- <rect x="4" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
466
- <rect x="12" y="4" width="12" height="20" stroke="#008000" stroke-width="2"/>
1274
+ <rect x="4" y="4" width="12" height="20" stroke="#0B7D1E" stroke-width="2"/>
1275
+ <rect x="12" y="4" width="12" height="20" stroke="#0B7D1E" stroke-width="2"/>
467
1276
  </svg>
468
- `),"move-text-up-template-image":U(`
1277
+ `),"move-text-up-template-image":Z(`
469
1278
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
470
1279
  <rect x="5" y="2" width="14" height="20" fill="none" stroke="#2e7d32" stroke-width="2"/>
471
1280
  <rect x="5" y="14" width="14" height="8" fill="#ffffff"/>
@@ -473,32 +1282,32 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
473
1282
  <path d="M12 17V8" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
474
1283
  <path d="M9 11L12 8L15 11" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
475
1284
  </svg>
476
- `),"move-text-right-template-image":U(`
1285
+ `),"move-text-right-template-image":Z(`
477
1286
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
478
1287
  <rect x="2" y="5" width="20" height="14" fill="none" stroke="#2e7d32" stroke-width="2"/>
479
1288
  <rect x="2" y="5" width="8" height="14" fill="none" stroke="#2e7d32" stroke-width="2" stroke-dasharray="2 2"/>
480
1289
  <path d="M7 12H16" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
481
1290
  <path d="M13 9L16 12L13 15" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
482
1291
  </svg>
483
- `),"move-text-left-template-image":U(`
1292
+ `),"move-text-left-template-image":Z(`
484
1293
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
485
1294
  <rect x="2" y="5" width="20" height="14" fill="none" stroke="#2e7d32" stroke-width="2"/>
486
1295
  <rect x="14" y="5" width="8" height="14" fill="none" stroke="#2e7d32" stroke-width="2" stroke-dasharray="2 2"/>
487
1296
  <path d="M17 12H8" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
488
1297
  <path d="M11 9L8 12L11 15" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
489
1298
  </svg>
490
- `),"move-text-down-template-image":U(`
1299
+ `),"move-text-down-template-image":Z(`
491
1300
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
492
1301
  <rect x="5" y="2" width="14" height="20" fill="none" stroke="#2e7d32" stroke-width="2"/>
493
1302
  <rect x="5" y="2" width="14" height="8" fill="none" stroke="#2e7d32" stroke-width="2" stroke-dasharray="2 2"/>
494
1303
  <path d="M12 7V16" stroke="#546e7a" stroke-width="2" stroke-linecap="round"/>
495
1304
  <path d="M9 13L12 16L15 13" fill="none" stroke="#546e7a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
496
1305
  </svg>
497
- `),"sum-limits-both-template-image":U(`
1306
+ `),"sum-limits-both-template-image":Z(`
498
1307
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
499
1308
  <!-- Upper box -->
500
1309
  <rect x="17" y="1" width="6" height="4"
501
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1310
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
502
1311
 
503
1312
  <!-- Small summation -->
504
1313
  <text x="14" y="20"
@@ -508,9 +1317,9 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
508
1317
 
509
1318
  <!-- Lower box -->
510
1319
  <rect x="17" y="25" width="6" height="4"
511
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
512
- </svg>
513
- `),"sum-right-both-template-image":U(`
1320
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
1321
+ </svg>
1322
+ `),"sum-right-both-template-image":Z(`
514
1323
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
515
1324
  <text x="6" y="22"
516
1325
  font-family="Cambria Math, Times New Roman, serif"
@@ -518,27 +1327,27 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
518
1327
  fill="#111">∑</text>
519
1328
 
520
1329
  <rect x="28" y="4" width="8" height="8"
521
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1330
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
522
1331
 
523
1332
  <rect x="28" y="20" width="8" height="8"
524
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1333
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
525
1334
  </svg>
526
- `),"sum-limits-lower-template-image":U(`
1335
+ `),"sum-limits-lower-template-image":Z(`
527
1336
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
528
1337
  <!-- Small summation -->
529
1338
  <text x="15" y="16"
530
1339
  font-family="Cambria Math, Times New Roman, serif"
531
- font-size="16"
1340
+ font-size="16"
532
1341
  fill="#111">∑</text>
533
1342
 
534
1343
  <!-- Lower box -->
535
1344
  <rect x="18" y="24"
536
1345
  width="6" height="4"
537
1346
  fill="none"
538
- stroke="#2ca02c"
1347
+ stroke="#0B7D1E"
539
1348
  stroke-width="1.5"/>
540
1349
  </svg>
541
- `),"sum-right-lower-template-image":U(`
1350
+ `),"sum-right-lower-template-image":Z(`
542
1351
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
543
1352
  <text x="6" y="22"
544
1353
  font-family="Cambria Math, Times New Roman, serif"
@@ -546,12 +1355,12 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
546
1355
  fill="#111">∑</text>
547
1356
 
548
1357
  <rect x="28" y="20" width="8" height="8"
549
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1358
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
550
1359
  </svg>
551
- `),"prod-limits-both-template-image":U(`
1360
+ `),"prod-limits-both-template-image":Z(`
552
1361
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
553
1362
  <rect x="18" y="1" width="6" height="4"
554
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1363
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
555
1364
 
556
1365
  <text x="14" y="20"
557
1366
  font-family="Cambria Math, Times New Roman, serif"
@@ -559,19 +1368,19 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
559
1368
  fill="#111">∏</text>
560
1369
 
561
1370
  <rect x="18" y="25" width="6" height="4"
562
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1371
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
563
1372
  </svg>
564
- `),"prod-limits-lower-template-image":U(`
1373
+ `),"prod-limits-lower-template-image":Z(`
565
1374
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
566
- <text x="14" y="16"
1375
+ <text x="14" y="16"
567
1376
  font-family="Cambria Math, Times New Roman, serif"
568
1377
  font-size="18"
569
- fill="#111">∏</text>
1378
+ fill="#111">∏</text>
570
1379
 
571
1380
  <rect x="18" y="25" width="6" height="4"
572
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1381
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
573
1382
  </svg>
574
- `),"prod-right-lower-template-image":U(`
1383
+ `),"prod-right-lower-template-image":Z(`
575
1384
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
576
1385
  <text x="6" y="22"
577
1386
  font-family="Cambria Math, Times New Roman, serif"
@@ -580,10 +1389,10 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
580
1389
 
581
1390
  <rect x="28" y="20" width="8" height="8"
582
1391
  fill="none"
583
- stroke="#2ca02c"
1392
+ stroke="#0B7D1E"
584
1393
  stroke-width="1.5"/>
585
1394
  </svg>
586
- `),"prod-right-both-template-image":U(`
1395
+ `),"prod-right-both-template-image":Z(`
587
1396
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
588
1397
  <text x="6" y="22"
589
1398
  font-family="Cambria Math, Times New Roman, serif"
@@ -591,27 +1400,27 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
591
1400
  fill="#111">∏</text>
592
1401
 
593
1402
  <rect x="28" y="4" width="8" height="8"
594
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
1403
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
595
1404
 
596
1405
  <rect x="28" y="20" width="8" height="8"
597
- fill="none" stroke="#2ca02c" stroke-width="1.5"/>
598
- </svg>
599
- `),"overline-template-image":U(`
1406
+ fill="none" stroke="#0B7D1E" stroke-width="1.5"/>
1407
+ </svg>
1408
+ `),"overline-template-image":Z(`
600
1409
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
601
- <line x1="4" y1="3.4" x2="14" y2="3.4" stroke="#2c8a43" stroke-width="1.6" stroke-linecap="round"/>
1410
+ <line x1="4" y1="3.4" x2="14" y2="3.4" stroke="#0B7D1E" stroke-width="1.6" stroke-linecap="round"/>
602
1411
  <rect x="4.6" y="5.6" width="8.8" height="9.4" rx="1.1" fill="none" stroke="#56646d" stroke-width="1.2"/>
603
1412
  </svg>
604
- `),"underline-template-image":U(`
1413
+ `),"underline-template-image":Z(`
605
1414
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
606
1415
  <rect x="4.6" y="3" width="8.8" height="9.4" rx="1.1" fill="none" stroke="#56646d" stroke-width="1.2"/>
607
- <line x1="4" y1="14.6" x2="14" y2="14.6" stroke="#2c8a43" stroke-width="1.6" stroke-linecap="round"/>
1416
+ <line x1="4" y1="14.6" x2="14" y2="14.6" stroke="#0B7D1E" stroke-width="1.6" stroke-linecap="round"/>
608
1417
  </svg>
609
- `),"limit-template-image":U(`
1418
+ `),"limit-template-image":Z(`
610
1419
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
611
1420
  <text x="9" y="8.1" text-anchor="middle" fill="#2f3b43" font-size="6.4" font-weight="500" font-family="Cambria Math, Times New Roman, serif">lim</text>
612
- <rect x="6.7" y="10.1" width="4.6" height="5.2" rx="0.55" fill="none" stroke="#2c8a43" stroke-width="1.2"/>
1421
+ <rect x="6.7" y="10.1" width="4.6" height="5.2" rx="0.55" fill="none" stroke="#0B7D1E" stroke-width="1.2"/>
613
1422
  </svg>
614
- `),"integral-template-image":U(`
1423
+ `),"integral-template-image":Z(`
615
1424
  <svg xmlns="http://www.w3.org/2000/svg" width="90" height="60" viewBox="0 0 90 60">
616
1425
  <!-- Integral -->
617
1426
  <text x="8"
@@ -625,28 +1434,28 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
625
1434
  <!-- Integrand box -->
626
1435
  <rect x="38"
627
1436
  y="16"
628
- width="14"
629
- height="18"
1437
+ width="10"
1438
+ height="15"
630
1439
  fill="none"
631
- stroke="#2ca02c"
1440
+ stroke="#0B7D1E"
632
1441
  stroke-width="2"/>
633
1442
 
634
1443
  <!-- d -->
635
- <text x="54"
1444
+ <text x="52"
636
1445
  y="31"
637
1446
  font-family="Times New Roman, Cambria Math, serif"
638
- font-size="20"
1447
+ font-size="34"
639
1448
  fill="#111">
640
1449
  d
641
1450
  </text>
642
1451
 
643
1452
  <!-- Variable box -->
644
- <rect x="64"
1453
+ <rect x="74"
645
1454
  y="16"
646
- width="14"
647
- height="18"
1455
+ width="10"
1456
+ height="15"
648
1457
  fill="none"
649
- stroke="#2ca02c"
1458
+ stroke="#0B7D1E"
650
1459
  stroke-width="2"/>
651
1460
 
652
1461
  <!-- Lower limit box -->
@@ -655,24 +1464,24 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
655
1464
  width="8"
656
1465
  height="12"
657
1466
  fill="none"
658
- stroke="#2ca02c"
1467
+ stroke="#3f7448ff"
659
1468
  stroke-width="2"/>
660
1469
  </svg>
661
- `),"definite-integral-template-image":U(`
1470
+ `),"definite-integral-template-image":Z(`
662
1471
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
663
1472
  <text x="0.95" y="14.05" font-size="14.2" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#37474f">∫</text>
664
1473
  <rect x="5.1" y="1.2" width="2.55" height="2.55" rx="0.42" fill="none" stroke="#4a5559" stroke-width="1.15"/>
665
1474
  <rect x="2.1" y="13.15" width="2.55" height="2.55" rx="0.42" fill="none" stroke="#4a5559" stroke-width="1.15"/>
666
1475
  <rect x="8.45" y="6.15" width="3.8" height="3.8" rx="0.58" fill="none" stroke="#4a5559" stroke-width="1.2"/>
667
1476
  </svg>
668
- `),"integral-with-differential-template-image":U(`
1477
+ `),"integral-with-differential-template-image":Z(`
669
1478
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
670
1479
  <text x="0.95" y="13.85" font-size="14.6" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#37474f">∫</text>
671
1480
  <rect x="6.55" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
672
1481
  <text x="10.55" y="8.95" font-size="4.95" font-family="Arial, Helvetica, sans-serif" font-weight="700" fill="#37474f">d</text>
673
1482
  <rect x="13.15" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
674
1483
  </svg>
675
- `),"integral-box-differential-template-image":U(`
1484
+ `),"integral-box-differential-template-image":Z(`
676
1485
  <svg xmlns="http://www.w3.org/2000/svg" width="90" height="64" viewBox="0 0 90 64">
677
1486
  <!-- Integral -->
678
1487
  <text x="8" y="48"
@@ -682,117 +1491,118 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
682
1491
 
683
1492
  <!-- Upper limit -->
684
1493
  <rect x="28" y="6"
685
- width="10" height="12"
1494
+ width="8" height="12"
686
1495
  fill="none"
687
- stroke="#1f9d2f"
1496
+ stroke="#0B7D1E"
688
1497
  stroke-width="2"/>
689
1498
 
690
1499
  <!-- Lower limit -->
691
1500
  <rect x="20" y="48"
692
- width="10" height="12"
1501
+ width="8" height="12"
693
1502
  fill="none"
694
- stroke="#1f9d2f"
1503
+ stroke="#0B7D1E"
695
1504
  stroke-width="2"/>
696
1505
 
697
1506
  <!-- Integrand -->
698
1507
  <rect x="40" y="24"
699
- width="16" height="16"
1508
+ width="12" height="16"
700
1509
  fill="none"
701
- stroke="#1f9d2f"
1510
+ stroke="#0B7D1E"
702
1511
  stroke-width="2"/>
703
1512
 
704
1513
  <!-- d -->
705
- <text x="57" y="38"
1514
+ <text x="55" y="38"
706
1515
  font-family="Times New Roman, serif"
707
- font-size="20"
1516
+ font-size="36"
708
1517
  fill="#222">d</text>
709
1518
 
710
1519
  <!-- Variable -->
711
- <rect x="67" y="24"
712
- width="16" height="16"
1520
+ <rect x="77" y="24"
1521
+ width="12" height="16"
713
1522
  fill="none"
714
- stroke="#1f9d2f"
1523
+ stroke="#0B7D1E"
715
1524
  stroke-width="2"/>
716
1525
  </svg>
717
- `),"single-integral-template-image":U(`
1526
+ `),"single-integral-template-image":Z(`
718
1527
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="32" viewBox="0 0 24 32">
719
1528
  <text x="2" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">&#8747;</text>
720
1529
  </svg>
721
- `),"contour-integral-template-image":U(`
1530
+ `),"contour-integral-template-image":Z(`
722
1531
  <svg xmlns="http://www.w3.org/2000/svg" width="28" height="32" viewBox="0 0 28 32">
723
1532
  <text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">&#8750;</text>
724
1533
  </svg>
725
- `),"double-integral-template-image":U(`
1534
+ `),"double-integral-template-image":Z(`
726
1535
  <svg xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32">
727
1536
  <text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">&#8748;</text>
728
1537
  </svg>
729
- `),"double-contour-integral-template-image":U(`
730
- <svg xmlns="http://www.w3.org/2000/svg" width="36" height="32" viewBox="0 0 36 32">
731
- <text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">&#8751;</text>
1538
+ `),"double-contour-integral-template-image":Z(`
1539
+ <svg xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32" overflow="visible">
1540
+ <text x="-1" y="25" font-family="Cambria Math, STIX Two Math, Latin Modern Math, Times New Roman, serif" font-size="28" fill="#111">&#8751;</text>
732
1541
  </svg>
733
- `),"triple-integral-template-image":U(`
1542
+ `),"triple-integral-template-image":Z(`
734
1543
  <svg xmlns="http://www.w3.org/2000/svg" width="38" height="32" viewBox="0 0 38 32">
735
1544
  <text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">&#8749;</text>
736
1545
  </svg>
737
- `),"triple-contour-integral-template-image":U(`
738
- <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
739
- <text x="1" y="25" font-family="Cambria Math, Times New Roman, serif" font-size="28" fill="#111">&#8752;</text>
1546
+ `),"triple-contour-integral-template-image":Z(`
1547
+ <svg xmlns="http://www.w3.org/2000/svg" width="30" height="32" viewBox="0 0 30 32" overflow="visible">
1548
+ <text x="-4" y="25" font-family="Cambria Math, STIX Two Math, Latin Modern Math, Times New Roman, serif" font-size="28" fill="#111">&#8752;</text>
740
1549
  </svg>
741
- `),"integral-with-differential":U(`
1550
+ `),"integral-with-differential":Z(`
742
1551
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
743
1552
  <text x="0.95" y="13.85" font-size="14.6" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#37474f">∫</text>
744
1553
  <rect x="6.55" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
745
1554
  <text x="10.55" y="8.95" font-size="4.95" font-family="Arial, Helvetica, sans-serif" font-weight="700" fill="#37474f">d</text>
746
1555
  <rect x="13.15" y="6.15" width="3.05" height="3.05" rx="0.48" fill="none" stroke="#4a5559" stroke-width="1.15"/>
747
1556
  </svg>
748
- `),"integral-with-limits-differential":U(`
1557
+ `),"integral-with-limits-differential":Z(`
749
1558
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 60">
750
1559
  <text x="10" y="42" font-size="42" font-family="Times New Roman, serif" fill="#000">∫</text>
751
- <rect x="34" y="2" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
752
- <rect x="18" y="40" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
753
- <rect x="48" y="22" width="12" height="22" fill="none" stroke="#2e8b57" stroke-width="2"/>
1560
+ <rect x="34" y="2" width="8" height="18" fill="none" stroke="#0B7D1E" stroke-width="2"/>
1561
+ <rect x="18" y="40" width="8" height="18" fill="none" stroke="#0B7D1E" stroke-width="2"/>
1562
+ <rect x="48" y="22" width="12" height="22" fill="none" stroke="#0B7D1E" stroke-width="2"/>
754
1563
  <text x="64" y="39" font-size="18" font-family="Times New Roman, serif" fill="#000">d</text>
755
- <rect x="76" y="22" width="12" height="22" fill="none" stroke="#2e8b57" stroke-width="2"/>
1564
+ <rect x="76" y="22" width="12" height="22" fill="none" stroke="#0B7D1E" stroke-width="2"/>
756
1565
  </svg>
757
- `),"integral-both-template-image":U(`
1566
+ `),"integral-both-template-image":Z(`
758
1567
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55 70">
759
1568
  <text x="8" y="48" font-size="46" font-family="Times New Roman">∫</text>
760
- <rect x="34" y="4" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
761
- <rect x="18" y="46" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
1569
+ <rect x="34" y="4" width="8" height="18" fill="none" stroke="#0B7D1E" stroke-width="2"/>
1570
+ <rect x="18" y="46" width="8" height="18" fill="none" stroke="#0B7D1E" stroke-width="2"/>
762
1571
  </svg>
763
- `),"integral-lower-template-image":U(`
1572
+ `),"integral-lower-template-image":Z(`
764
1573
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 60">
765
1574
  <text x="8" y="42" font-size="44" font-family="Times New Roman">∫</text>
766
- <rect x="20" y="40" width="8" height="18" fill="none" stroke="#2e8b57" stroke-width="2"/>
1575
+ <rect x="20" y="40" width="8" height="18" fill="none" stroke="#0B7D1E" stroke-width="2"/>
767
1576
  </svg>
768
- `),"first-derivative-template-image":U(`
1577
+ `),"first-derivative-template-image":Z(`
769
1578
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 50 50">
770
- <text x="5" y="18" font-size="18">d</text>
771
- <rect x="18" y="4" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
1579
+ <text x="1" y="18" font-size="24">d</text>
1580
+ <rect x="18" y="4" width="8" height="16" fill="none" stroke="#0B7D1E" stroke-width="2"/>
772
1581
  <line x1="2" y1="25" x2="32" y2="25" stroke="#000" stroke-width="2"/>
773
- <text x="5" y="44" font-size="18">d</text>
774
- <rect x="18" y="30" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
1582
+ <text x="1" y="44" font-size="24">d</text>
1583
+ <rect x="18" y="30" width="8" height="16" fill="none" stroke="#0B7D1E" stroke-width="2"/>
775
1584
  </svg>
776
- `),"partial-derivative-template-image":U(`
1585
+ `),"partial-derivative-template-image":Z(`
777
1586
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 55 50">
778
- <text x="4" y="18" font-size="18">∂</text>
779
- <rect x="20" y="4" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
1587
+ <text x="1" y="20" font-size="26">∂</text>
1588
+ <rect x="20" y="4" width="8" height="16" fill="none" stroke="#0B7D1E" stroke-width="2"/>
780
1589
  <line x1="2" y1="25" x2="34" y2="25" stroke="#000" stroke-width="2"/>
781
- <text x="4" y="44" font-size="18">∂</text>
782
- <rect x="20" y="30" width="8" height="16" fill="none" stroke="#2e8b57" stroke-width="2"/>
1590
+ <text x="1" y="48" font-size="26">∂</text>
1591
+ <rect x="20" y="30" width="8" height="16" fill="none" stroke="#0B7D1E" stroke-width="2"/>
783
1592
  </svg>
784
- `),"limit-infinity-template-image":U(`
785
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 70 40">
1593
+ `),"limit-infinity-template-image":Z(`
1594
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 0 70 40">
786
1595
  <text x="18" y="15" font-size="18">lim</text>
787
- <rect x="4" y="22" width="8" height="14" fill="none" stroke="#2e8b57" stroke-width="2"/>
788
- <text x="16" y="33" font-size="16">→∞</text>
1596
+ <rect x="4" y="22" width="8" height="14" fill="none" stroke="#0B7D1E" stroke-width="2"/>
1597
+ <text x="16" y="33" font-size="16">→</text>
1598
+ <text x="37" y="34" font-size="20">∞</text>
789
1599
  </svg>
790
- `),"limit-generic-template-image":U(`
1600
+ `),"limit-generic-template-image":Z(`
791
1601
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 0 55 40">
792
1602
  <text x="14" y="15" font-size="18">lim</text>
793
- <rect x="20" y="22" width="8" height="14" fill="none" stroke="#2e8b57" stroke-width="2"/>
1603
+ <rect x="20" y="22" width="8" height="14" fill="none" stroke="#0B7D1E" stroke-width="2"/>
794
1604
  </svg>
795
- `),"log-base-template-image":U(`
1605
+ `),"log-base-template-image":Z(`
796
1606
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 28" preserveAspectRatio="xMidYMid meet">
797
1607
  <text
798
1608
  x="1"
@@ -811,7 +1621,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
811
1621
  width="5"
812
1622
  height="7"
813
1623
  fill="none"
814
- stroke="#2ca02c"
1624
+ stroke="#0B7D1E"
815
1625
  stroke-width="1.6"
816
1626
  />
817
1627
 
@@ -831,7 +1641,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
831
1641
  width="10"
832
1642
  height="13"
833
1643
  fill="none"
834
- stroke="#2ca02c"
1644
+ stroke="#0B7D1E"
835
1645
  stroke-width="1.6"
836
1646
  />
837
1647
 
@@ -845,86 +1655,86 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
845
1655
  )
846
1656
  </text>
847
1657
  </svg>
848
- `),"integral-limits-template-image":U(`
1658
+ `),"integral-limits-template-image":Z(`
849
1659
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
850
1660
  <path d="M6.2 15.5C5.7 10.7 7 4.7 9.1 3.1C9.9 2.5 10.8 2.6 11.2 3.4C11.55 4.05 11.45 5.05 11.05 6.15" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
851
- <rect x="11.7" y="2.2" width="3.2" height="3.2" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
852
- <rect x="10.2" y="12.3" width="3.2" height="3.2" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
1661
+ <rect x="11.7" y="2.2" width="3.2" height="3.2" rx="0.4" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
1662
+ <rect x="10.2" y="12.3" width="3.2" height="3.2" rx="0.4" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
853
1663
  </svg>
854
- `),"vector-template-image":U(`
1664
+ `),"vector-template-image":Z(`
855
1665
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
856
- <path d="M5.2 4.3H12.7" fill="none" stroke="#2c8a43" stroke-width="1.35" stroke-linecap="round"/>
857
- <path d="M10.9 2.95L12.95 4.3L10.9 5.65" fill="none" stroke="#2c8a43" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round"/>
1666
+ <path d="M5.2 4.3H12.7" fill="none" stroke="#0B7D1E" stroke-width="1.35" stroke-linecap="round"/>
1667
+ <path d="M10.9 2.95L12.95 4.3L10.9 5.65" fill="none" stroke="#0B7D1E" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round"/>
858
1668
  <rect x="4.6" y="6.4" width="8.8" height="9" rx="1.1" fill="none" stroke="#56646d" stroke-width="1.2"/>
859
1669
  </svg>
860
- `),"summation-template-image":U(`
1670
+ `),"summation-template-image":Z(`
861
1671
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
862
- <rect x="1.9" y="2.2" width="3.1" height="3.1" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
1672
+ <rect x="1.9" y="2.2" width="3.1" height="3.1" rx="0.4" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
863
1673
  <path d="M12.9 3.1H6.55L10.25 8.85L6.45 14.8H13.1" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
864
- <rect x="1.9" y="12.7" width="3.1" height="3.1" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
1674
+ <rect x="1.9" y="12.7" width="3.1" height="3.1" rx="0.4" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
865
1675
  </svg>
866
- `),"paren-fraction-template-image":U(`
1676
+ `),"paren-fraction-template-image":Z(`
867
1677
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
868
1678
  <path d="M4.55 2.5C3.15 3.85 2.5 5.8 2.5 9C2.5 12.2 3.15 14.15 4.55 15.5" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round"/>
869
1679
  <path d="M13.45 2.5C14.85 3.85 15.5 5.8 15.5 9C15.5 12.2 14.85 14.15 13.45 15.5" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round"/>
870
- <rect x="6.65" y="3.2" width="4.7" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
871
- <line x1="6.15" y1="9" x2="11.85" y2="9" stroke="#2c8a43" stroke-width="1.2" stroke-linecap="round"/>
872
- <rect x="6.65" y="10.7" width="4.7" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
1680
+ <rect x="6.65" y="3.2" width="4.7" height="4.1" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
1681
+ <line x1="6.15" y1="9" x2="11.85" y2="9" stroke="#0B7D1E" stroke-width="1.2" stroke-linecap="round"/>
1682
+ <rect x="6.65" y="10.7" width="4.7" height="4.1" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
873
1683
  </svg>
874
- `),"brace-fraction-template-image":U(`
1684
+ `),"brace-fraction-template-image":Z(`
875
1685
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
876
1686
  <path d="M5.15 2.55C3.9 2.55 3.2 3.3 3.2 4.55V6.15C3.2 6.9 2.85 7.35 2.25 7.7C2.85 8.05 3.2 8.5 3.2 9.25V10.85C3.2 12.1 3.9 12.85 5.15 12.85" fill="none" stroke="#2f3b43" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
877
1687
  <path d="M12.85 2.55C14.1 2.55 14.8 3.3 14.8 4.55V6.15C14.8 6.9 15.15 7.35 15.75 7.7C15.15 8.05 14.8 8.5 14.8 9.25V10.85C14.8 12.1 14.1 12.85 12.85 12.85" fill="none" stroke="#2f3b43" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"/>
878
- <rect x="6.45" y="3.2" width="4.1" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
879
- <line x1="6.05" y1="9" x2="10.95" y2="9" stroke="#2c8a43" stroke-width="1.2" stroke-linecap="round"/>
880
- <rect x="6.45" y="10.7" width="4.1" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
1688
+ <rect x="6.45" y="3.2" width="4.1" height="4.1" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
1689
+ <line x1="6.05" y1="9" x2="10.95" y2="9" stroke="#0B7D1E" stroke-width="1.2" stroke-linecap="round"/>
1690
+ <rect x="6.45" y="10.7" width="4.1" height="4.1" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
881
1691
  </svg>
882
- `),"bracket-fraction-template-image":U(`
1692
+ `),"bracket-fraction-template-image":Z(`
883
1693
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
884
1694
  <path d="M4.65 2.6H2.95V15.4H4.65" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
885
1695
  <path d="M13.35 2.6H15.05V15.4H13.35" fill="none" stroke="#2f3b43" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
886
- <rect x="6.55" y="3.2" width="4.9" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
887
- <line x1="6.05" y1="9" x2="11.95" y2="9" stroke="#2c8a43" stroke-width="1.2" stroke-linecap="round"/>
888
- <rect x="6.55" y="10.7" width="4.9" height="4.1" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
1696
+ <rect x="6.55" y="3.2" width="4.9" height="4.1" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
1697
+ <line x1="6.05" y1="9" x2="11.95" y2="9" stroke="#0B7D1E" stroke-width="1.2" stroke-linecap="round"/>
1698
+ <rect x="6.55" y="10.7" width="4.9" height="4.1" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
889
1699
  </svg>
890
- `),"subsup-template-image":U(`
1700
+ `),"subsup-template-image":Z(`
891
1701
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
892
1702
  <rect x="2.9" y="5.7" width="6.1" height="8.2" rx="0.75" fill="none" stroke="#56646d" stroke-width="1.2"/>
893
- <rect x="10.5" y="2.35" width="4.05" height="4.15" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
894
- <rect x="10.5" y="10.2" width="4.05" height="4.15" rx="0.5" fill="none" stroke="#2c8a43" stroke-width="1.1"/>
1703
+ <rect x="10.5" y="2.35" width="4.05" height="4.15" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
1704
+ <rect x="10.5" y="10.2" width="4.05" height="4.15" rx="0.5" fill="none" stroke="#0B7D1E" stroke-width="1.1"/>
895
1705
  </svg>
896
- `),"fraction-exponent-template-image":U(`
1706
+ `),"fraction-exponent-template-image":Z(`
897
1707
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
898
1708
  <rect x="2.6" y="7.2" width="5.8" height="7.6" rx="0.75" fill="none" stroke="#56646d" stroke-width="1.2"/>
899
- <rect x="10.25" y="2.75" width="3.35" height="2.7" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
900
- <line x1="9.8" y1="8.05" x2="14.15" y2="8.05" stroke="#2c8a43" stroke-width="1.1" stroke-linecap="round"/>
901
- <rect x="10.25" y="10.1" width="3.35" height="2.7" rx="0.4" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
1709
+ <rect x="10.25" y="2.75" width="3.35" height="2.7" rx="0.4" fill="none" stroke="#0B7D1E" stroke-width="1.05"/>
1710
+ <line x1="9.8" y1="8.05" x2="14.15" y2="8.05" stroke="#0B7D1E" stroke-width="1.1" stroke-linecap="round"/>
1711
+ <rect x="10.25" y="10.1" width="3.35" height="2.7" rx="0.4" fill="none" stroke="#0B7D1E" stroke-width="1.05"/>
902
1712
  </svg>
903
- `),"double-integral-area-template-image":U(`
1713
+ `),"double-integral-area-template-image":Z(`
904
1714
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
905
1715
  <text x="0.7" y="13.55" font-size="11.1" font-family="Cambria Math, STIX Two Math, Times New Roman, serif" font-weight="700" fill="#263238">∫∫</text>
906
1716
  <rect x="10.85" y="2.05" width="3.45" height="3.45" rx="0.55" fill="none" stroke="#465257" stroke-width="1.2"/>
907
1717
  <rect x="8.05" y="12.05" width="3.1" height="3.1" rx="0.5" fill="none" stroke="#465257" stroke-width="1.2"/>
908
1718
  <text x="10.95" y="9.75" font-size="5.45" font-family="Arial, Helvetica, sans-serif" font-weight="700" fill="#263238">dA</text>
909
1719
  </svg>
910
- `),"exp-e-template-image":U(`
1720
+ `),"exp-e-template-image":Z(`
911
1721
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
912
1722
  <text x="4.95" y="12.85" fill="#2f3b43" font-size="7.6" font-weight="700" font-family="Cambria Math, Times New Roman, serif">e</text>
913
- <rect x="10.15" y="2.95" width="3.6" height="3.35" rx="0.42" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
1723
+ <rect x="10.15" y="2.95" width="3.6" height="3.35" rx="0.42" fill="none" stroke="#0B7D1E" stroke-width="1.05"/>
914
1724
  </svg>
915
- `),"exp-generic-template-image":U(`
1725
+ `),"exp-generic-template-image":Z(`
916
1726
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
917
1727
  <rect x="3.15" y="8.15" width="5.35" height="5.45" rx="0.55" fill="none" stroke="#56646d" stroke-width="1.15"/>
918
- <rect x="10.2" y="3.05" width="3.75" height="3.55" rx="0.45" fill="none" stroke="#2c8a43" stroke-width="1.05"/>
1728
+ <rect x="10.2" y="3.05" width="3.75" height="3.55" rx="0.45" fill="none" stroke="#0B7D1E" stroke-width="1.05"/>
919
1729
  </svg>
920
- `),"evaluated-expression-template-image":U(`
1730
+ `),"evaluated-expression-template-image":Z(`
921
1731
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
922
1732
  <path d="M4.45 2.7H2.9V15.3H4.45" fill="none" stroke="#2f3b43" stroke-width="1.15" stroke-linecap="round" stroke-linejoin="round"/>
923
1733
  <rect x="5.8" y="5.55" width="4.55" height="7.2" rx="0.6" fill="none" stroke="#56646d" stroke-width="1.1"/>
924
- <rect x="11.95" y="2.95" width="2.8" height="3.05" rx="0.38" fill="none" stroke="#2c8a43" stroke-width="1"/>
925
- <rect x="11.95" y="11.95" width="2.8" height="3.05" rx="0.38" fill="none" stroke="#2c8a43" stroke-width="1"/>
1734
+ <rect x="11.95" y="2.95" width="2.8" height="3.05" rx="0.38" fill="none" stroke="#0B7D1E" stroke-width="1"/>
1735
+ <rect x="11.95" y="11.95" width="2.8" height="3.05" rx="0.38" fill="none" stroke="#0B7D1E" stroke-width="1"/>
926
1736
  </svg>
927
- `),"rtl-input-template-image":U(`
1737
+ `),"rtl-input-template-image":Z(`
928
1738
  <svg xmlns="http://www.w3.org/2000/svg" width="70" height="40" viewBox="0 0 70 40">
929
1739
  <!-- Arabic text -->
930
1740
  <text x="22"
@@ -950,144 +1760,138 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
950
1760
  stroke-linecap="round"
951
1761
  stroke-linejoin="round"/>
952
1762
  </svg>
953
- `),"negate-template-image":U(`
1763
+ `),"negate-template-image":Z(`
954
1764
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
955
- <rect x="6.2" y="3.05" width="4.35" height="10.35" rx="0.55" fill="none" stroke="#2c8a43" stroke-width="1.15"/>
956
- <path d="M5.1 14.7L11.85 2.6" fill="none" stroke="#2f3b43" stroke-width="1.55" stroke-linecap="round" stroke-linejoin="round"/>
1765
+ <rect x="5.2" y="3.05" width="7.35" height="10.35" fill="none" stroke="#0B7D1E" stroke-width="1.15"/>
1766
+ <path d="M5.1 17.5 L11.85 0" fill="none" stroke="#000000ff" stroke-width="1.55" stroke-linecap="" stroke-linejoin="round"/>
957
1767
  </svg>
958
- `),"slash-operator-template-image":U(`
1768
+ `),"slash-operator-template-image":Z(`
959
1769
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
960
1770
  <path d="M8 4L16 20" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
961
1771
  </svg>
962
- `),"setminus-operator-template-image":U(`
1772
+ `),"setminus-operator-template-image":Z(`
963
1773
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
964
1774
  <path d="M16 4L8 20" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
965
1775
  </svg>
966
- `),"minus-plus-operator-template-image":U(`
1776
+ `),"minus-plus-operator-template-image":Z(`
967
1777
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
968
1778
  <line x1="7" y1="8" x2="17" y2="8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
969
1779
  <line x1="7" y1="16" x2="17" y2="16" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
970
1780
  <line x1="12" y1="11" x2="12" y2="21" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/>
971
1781
  </svg>
972
- `),"not-equal-template-image":U(`
973
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
974
- <line x1="6" y1="9" x2="18" y2="9" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
975
- <line x1="6" y1="15" x2="18" y2="15" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
976
- <line x1="16" y1="5" x2="8" y2="19" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
1782
+ `),"not-equal-template-image":Z(`
1783
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1784
+ <text x="12" y="17" text-anchor="middle" font-size="21" fill="currentColor" font-family="Cambria Math, STIX Two Math, Latin Modern Math, Times New Roman, serif">&#x2260;</text>
977
1785
  </svg>
978
- `),"not-approx-equal-template-image":U(`
979
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
980
- <path d="M6 8C8 6 10 10 12 8C14 6 16 10 18 8" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
981
- <path d="M6 14C8 12 10 16 12 14C14 12 16 16 18 14" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
982
- <line x1="16" y1="5" x2="8" y2="19" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
1786
+ `),"not-approx-equal-template-image":Z(`
1787
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2 0 29 24" fill="none">
1788
+ <path d="M5.2 9.2 C7.2 7.25 9.6 7.25 11.8 9.2 C13.9 11.05 16.4 11.05 18.8 9.2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
1789
+ <path d="M5.2 14.8 C7.2 12.85 9.6 12.85 11.8 14.8 C13.9 16.65 16.4 16.65 18.8 14.8" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
1790
+ <line x1="15.9" y1="5.6" x2="8.1" y2="18.4" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
983
1791
  </svg>
984
- `),"not-similar-template-image":U(`
985
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
986
- <path d="M6 12C8 10 10 14 12 12C14 10 16 14 18 12" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
987
- <line x1="16" y1="5" x2="8" y2="19" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
1792
+ `),"not-similar-template-image":Z(`
1793
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1794
+ <text x="12" y="17" text-anchor="middle" font-size="21" fill="currentColor" font-family="Cambria Math, STIX Two Math, Latin Modern Math, Times New Roman, serif">&#x2241;</text>
988
1795
  </svg>
989
- `),"not-identical-template-image":U(`
990
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
991
- <line x1="6" y1="7" x2="18" y2="7" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
992
- <line x1="6" y1="12" x2="18" y2="12" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
993
- <line x1="6" y1="17" x2="18" y2="17" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
994
- <line x1="16" y1="4" x2="8" y2="20" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
1796
+ `),"not-identical-template-image":Z(`
1797
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1798
+ <text x="12" y="17" text-anchor="middle" font-size="21" fill="currentColor" font-family="Cambria Math, STIX Two Math, Latin Modern Math, Times New Roman, serif">&#x2262;</text>
995
1799
  </svg>
996
- `),"less-than-not-equal-template-image":U(`
1800
+ `),"less-than-not-equal-template-image":Z(`
997
1801
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
998
1802
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor" font-family="Cambria Math, STIX Two Math, Times New Roman">≨</text>
999
1803
  </svg>
1000
- `),"much-greater-than-template-image":U(`
1804
+ `),"much-greater-than-template-image":Z(`
1001
1805
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1002
1806
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≫</text>
1003
1807
  </svg>
1004
- `),"succeeds-template-image":U(`
1808
+ `),"succeeds-template-image":Z(`
1005
1809
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1006
1810
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≻</text>
1007
1811
  </svg>
1008
- `),"greater-than-not-equal-template-image":U(`
1812
+ `),"greater-than-not-equal-template-image":Z(`
1009
1813
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1010
1814
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor" font-family="Cambria Math, STIX Two Math, Times New Roman">≩</text>
1011
1815
  </svg>
1012
- `),"proportional-to-template-image":U(`
1816
+ `),"proportional-to-template-image":Z(`
1013
1817
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1014
1818
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">∝</text>
1015
1819
  </svg>
1016
- `),"normal-subgroup-template-image":U(`
1820
+ `),"normal-subgroup-template-image":Z(`
1017
1821
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1018
1822
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊲</text>
1019
1823
  </svg>
1020
- `),"much-less-than-template-image":U(`
1824
+ `),"much-less-than-template-image":Z(`
1021
1825
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1022
1826
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≪</text>
1023
1827
  </svg>
1024
- `),"precedes-template-image":U(`
1828
+ `),"precedes-template-image":Z(`
1025
1829
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1026
1830
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">≺</text>
1027
1831
  </svg>
1028
- `),"contains-normal-subgroup-template-image":U(`
1832
+ `),"contains-normal-subgroup-template-image":Z(`
1029
1833
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1030
1834
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">▷</text>
1031
1835
  </svg>
1032
- `),"not-element-of-template-image":U(`
1836
+ `),"not-element-of-template-image":Z(`
1033
1837
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1034
1838
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">∉</text>
1035
1839
  </svg>
1036
- `),"not-contains-member-template-image":U(`
1840
+ `),"not-contains-member-template-image":Z(`
1037
1841
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1038
1842
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">∌</text>
1039
1843
  </svg>
1040
- `),"subset-equal-template-image":U(`
1844
+ `),"subset-equal-template-image":Z(`
1041
1845
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1042
1846
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊆</text>
1043
1847
  </svg>
1044
- `),"superset-equal-template-image":U(`
1848
+ `),"superset-equal-template-image":Z(`
1045
1849
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1046
1850
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊇</text>
1047
1851
  </svg>
1048
- `),"square-subset-template-image":U(`
1852
+ `),"square-subset-template-image":Z(`
1049
1853
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1050
1854
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊏</text>
1051
1855
  </svg>
1052
- `),"square-superset-template-image":U(`
1856
+ `),"square-superset-template-image":Z(`
1053
1857
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1054
1858
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊐</text>
1055
1859
  </svg>
1056
- `),"square-subset-equal-template-image":U(`
1860
+ `),"square-subset-equal-template-image":Z(`
1057
1861
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1058
1862
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊑</text>
1059
1863
  </svg>
1060
- `),"square-superset-equal-template-image":U(`
1864
+ `),"square-superset-equal-template-image":Z(`
1061
1865
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1062
1866
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊒</text>
1063
1867
  </svg>
1064
- `),"square-cap-template-image":U(`
1868
+ `),"square-cap-template-image":Z(`
1065
1869
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1066
1870
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊓</text>
1067
1871
  </svg>
1068
- `),"square-cup-template-image":U(`
1872
+ `),"square-cup-template-image":Z(`
1069
1873
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1070
1874
  <text x="12" y="17" text-anchor="middle" font-size="20" fill="currentColor">⊔</text>
1071
1875
  </svg>
1072
- `),"therefore-template-image":U(`
1876
+ `),"therefore-template-image":Z(`
1073
1877
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
1074
1878
  <circle cx="12" cy="6" r="1.8" />
1075
1879
  <circle cx="7" cy="16" r="1.8" />
1076
1880
  <circle cx="17" cy="16" r="1.8" />
1077
1881
  </svg>
1078
- `),"because-template-image":U(`
1882
+ `),"because-template-image":Z(`
1079
1883
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
1080
1884
  <circle cx="7" cy="8" r="1.8" />
1081
1885
  <circle cx="17" cy="8" r="1.8" />
1082
1886
  <circle cx="12" cy="18" r="1.8" />
1083
1887
  </svg>
1084
- `),"not-parallel-template-image":U(`
1888
+ `),"not-parallel-template-image":Z(`
1085
1889
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1086
1890
  <line x1="8" y1="3" x2="8" y2="21" stroke="currentColor" stroke-width="2.2" />
1087
1891
  <line x1="16" y1="3" x2="16" y2="21" stroke="currentColor" stroke-width="2.2" />
1088
1892
  <line x1="18" y1="4" x2="6" y2="20" stroke="currentColor" stroke-width="2.2" />
1089
1893
  </svg>
1090
- `),"measured-angle-template-image":U(`
1894
+ `),"measured-angle-template-image":Z(`
1091
1895
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1092
1896
  <text
1093
1897
  x="12"
@@ -1100,7 +1904,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1100
1904
 
1101
1905
  </text>
1102
1906
  </svg>
1103
- `),"spherical-angle-template-image":U(`
1907
+ `),"spherical-angle-template-image":Z(`
1104
1908
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1105
1909
  <text
1106
1910
  x="12"
@@ -1113,24 +1917,24 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1113
1917
 
1114
1918
  </text>
1115
1919
  </svg>
1116
- `),"diamond-template-image":U(`
1920
+ `),"diamond-template-image":Z(`
1117
1921
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1118
1922
  <path d="M12 3L18 12L12 21L6 12Z" stroke="currentColor" stroke-width="2.2" stroke-linejoin="round" />
1119
1923
  </svg>
1120
- `),"rectangle-template-image":U(`
1924
+ `),"rectangle-template-image":Z(`
1121
1925
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1122
1926
  <rect x="4" y="7" width="16" height="10" stroke="currentColor" stroke-width="2.2" />
1123
1927
  </svg>
1124
- `),"parallelogram-template-image":U(`
1928
+ `),"parallelogram-template-image":Z(`
1125
1929
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1126
1930
  <path d="M8 5H18L16 19H6L8 5Z" stroke="currentColor" stroke-width="2.2" stroke-linejoin="round" />
1127
1931
  </svg>
1128
- `),"circled-minus-template-image":U(`
1932
+ `),"circled-minus-template-image":Z(`
1129
1933
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1130
1934
  <circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.2" />
1131
1935
  <line x1="8" y1="12" x2="16" y2="12" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
1132
1936
  </svg>
1133
- `),"circled-asterisk-template-image":U(`
1937
+ `),"circled-asterisk-template-image":Z(`
1134
1938
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1135
1939
  <circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.2" />
1136
1940
  <line x1="12" y1="7" x2="12" y2="17" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
@@ -1138,75 +1942,110 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1138
1942
  <line x1="8.5" y1="8.5" x2="15.5" y2="15.5" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
1139
1943
  <line x1="15.5" y1="8.5" x2="8.5" y2="15.5" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" />
1140
1944
  </svg>
1141
- `),"circled-divide-template-image":U(`
1945
+ `),"circled-divide-template-image":Z(`
1142
1946
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1143
1947
  <circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2.2" />
1144
1948
  <rect x="10.9" y="5.8" width="2.2" height="2.2" fill="currentColor" />
1145
1949
  <rect x="7.2" y="10.9" width="9.6" height="2.2" fill="currentColor" />
1146
1950
  <rect x="10.9" y="16" width="2.2" height="2.2" fill="currentColor" />
1147
1951
  </svg>
1148
- `),"raised-bullet-template-image":U(`
1952
+ `),"raised-bullet-template-image":Z(`
1149
1953
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1150
1954
  <circle cx="12" cy="8" r="3" fill="currentColor" />
1151
1955
  </svg>
1152
- `),"matrix-grid-template-image":U(`
1956
+ `),"matrix-grid-template-image":Z(`
1153
1957
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
1154
- <rect x="6" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1155
- <rect x="17" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1156
- <rect x="28" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1157
- <rect x="6" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1158
- <rect x="17" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1159
- <rect x="28" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1160
- <rect x="6" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1161
- <rect x="17" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1162
- <rect x="28" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1958
+ <rect x="6" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1959
+ <rect x="17" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1960
+ <rect x="28" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1961
+ <rect x="6" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1962
+ <rect x="17" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1963
+ <rect x="28" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1964
+ <rect x="6" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1965
+ <rect x="17" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1966
+ <rect x="28" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1163
1967
  </svg>
1164
- `),"matrix-brackets-template-image":U(`
1968
+ `),"matrix-brackets-template-image":Z(`
1165
1969
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
1166
1970
  <path d="M8 2 H4 V30 H8" stroke="#111" stroke-width="2" fill="none"/>
1167
1971
  <path d="M32 2 H36 V30 H32" stroke="#111" stroke-width="2" fill="none"/>
1168
- <rect x="11" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1169
- <rect x="24" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1170
- <rect x="11" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1171
- <rect x="24" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1172
- <rect x="11" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1173
- <rect x="24" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1972
+ <rect x="11" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1973
+ <rect x="24" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1974
+ <rect x="11" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1975
+ <rect x="24" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1976
+ <rect x="11" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1977
+ <rect x="24" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1174
1978
  </svg>
1175
- `),"matrix-bars-template-image":U(`
1979
+ `),"matrix-bars-template-image":Z(`
1176
1980
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
1177
1981
  <line x1="4" y1="2" x2="4" y2="30" stroke="#111" stroke-width="2"/>
1178
1982
  <line x1="36" y1="2" x2="36" y2="30" stroke="#111" stroke-width="2"/>
1179
- <rect x="10" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1180
- <rect x="24" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1181
- <rect x="10" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1182
- <rect x="24" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1183
- <rect x="10" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1184
- <rect x="24" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1983
+ <rect x="10" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1984
+ <rect x="24" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1985
+ <rect x="10" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1986
+ <rect x="24" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1987
+ <rect x="10" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1988
+ <rect x="24" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1185
1989
  </svg>
1186
- `),"matrix-parens-template-image":U(`
1990
+ `),"matrix-parens-template-image":Z(`
1187
1991
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32" fill="none">
1188
- <path d="M6 2 C2 8,2 24,6 30" stroke="#111" stroke-width="2" stroke-linecap="round"/>
1189
- <path d="M34 2 C38 8,38 24,34 30" stroke="#111" stroke-width="2" stroke-linecap="round"/>
1190
- <rect x="11" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1191
- <rect x="24" y="3" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1192
- <rect x="11" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1193
- <rect x="24" y="13" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1194
- <rect x="11" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1195
- <rect x="24" y="23" width="5" height="6" stroke="#2ca02c" stroke-width="2"/>
1992
+ <path d="M9 2 C2 7,2 25,9 30" stroke="#111" stroke-width="2" stroke-linecap="round" fill="none"/>
1993
+ <path d="M31 2 C38 7,38 25,31 30" stroke="#111" stroke-width="2" stroke-linecap="round" fill="none"/>
1994
+ <rect x="11" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1995
+ <rect x="24" y="3" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1996
+ <rect x="11" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1997
+ <rect x="24" y="13" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1998
+ <rect x="11" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
1999
+ <rect x="24" y="23" width="5" height="6" stroke="#0B7D1E" stroke-width="2"/>
2000
+ </svg>
2001
+ `),"bmatrix-two-row-template-image":Z(`
2002
+ <svg xmlns="http://www.w3.org/2000/svg" width="56" height="72" viewBox="0 0 56 72">
2003
+ <path d="M7 6 H17 M7 6 V66 M7 66 H17" fill="none" stroke="#000" stroke-width="4" stroke-linecap="round"/>
2004
+ <path d="M49 6 H39 M49 6 V66 M49 66 H39" fill="none" stroke="#000" stroke-width="4" stroke-linecap="round"/>
2005
+ <rect x="19" y="15" width="18" height="18" fill="none" stroke="#0B7D1E" stroke-width="4"/>
2006
+ <rect x="19" y="39" width="18" height="18" fill="none" stroke="#0B7D1E" stroke-width="4"/>
1196
2007
  </svg>
1197
- `),"cases-template-image":U(`
2008
+ `),"pmatrix-two-row-template-image":Z(`
2009
+ <svg xmlns="http://www.w3.org/2000/svg" width="64" height="72" viewBox="0 0 64 72">
2010
+ <!-- Left parenthesis moved left -->
2011
+ <path d="M13 6 C3 18 3 54 13 66"
2012
+ fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>
2013
+
2014
+ <!-- Right parenthesis moved right -->
2015
+ <path d="M51 6 C61 18 61 54 51 66"
2016
+ fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"/>
2017
+
2018
+ <!-- Matrix unchanged -->
2019
+ <rect x="23" y="15" width="18" height="18" fill="none" stroke="#0B7D1E" stroke-width="4"/>
2020
+ <rect x="23" y="39" width="18" height="18" fill="none" stroke="#0B7D1E" stroke-width="4"/>
2021
+ </svg>
2022
+ `),"bmatrix-two-column-template-image":Z(`
2023
+ <svg xmlns="http://www.w3.org/2000/svg" width="120" height="48" viewBox="0 0 120 48">
2024
+ <path d="M12 6 H20 M12 6 V42 M12 42 H20" fill="none" stroke="#000" stroke-width="5" stroke-linecap="round"/>
2025
+ <path d="M108 6 H100 M108 6 V42 M108 42 H100" fill="none" stroke="#000" stroke-width="5" stroke-linecap="round"/>
2026
+ <rect x="34" y="15" width="14" height="18" fill="none" stroke="#0B7D1E" stroke-width="5" stroke-linecap="round"/>
2027
+ <rect x="70" y="15" width="14" height="18" fill="none" stroke="#0B7D1E" stroke-width="5" stroke-linecap="round"/>
2028
+ </svg>
2029
+ `),"pmatrix-two-column-template-image":Z(`
2030
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 110 48" width="110" height="48">
2031
+ <path d="M18 8 C10 14 10 34 18 40" fill="none" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
2032
+ <path d="M92 8 C100 14 100 34 92 40" fill="none" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
2033
+ <rect x="30" y="16" width="14" height="18" fill="none" stroke="#0B7D1E" stroke-width="4.5"/>
2034
+ <rect x="64" y="16" width="14" height="18" fill="none" stroke="#0B7D1E" stroke-width="4.5"/>
2035
+ </svg>
2036
+ `),"cases-template-image":Z(`
1198
2037
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 48" fill="none">
1199
2038
  <path
1200
2039
  d="M9 2 C4 2 4 5 4 8 L4 16 C4 19 3 21 1 24 C3 27 4 29 4 32 L4 40 C4 43 4 46 9 46"
1201
- stroke="#000000"
1202
- stroke-width="2.5"
2040
+ stroke="#000000"
2041
+ stroke-width="2.5"
1203
2042
  stroke-linecap="round"
1204
2043
  stroke-linejoin="round"
1205
2044
  />
1206
- <rect x="15" y="7" width="8" height="13" stroke="#008000" stroke-width="2.5"/>
1207
- <rect x="15" y="28" width="8" height="13" stroke="#008000" stroke-width="2.5"/>
2045
+ <rect x="15" y="7" width="8" height="13" stroke="#0B7D1E" stroke-width="2.5"/>
2046
+ <rect x="15" y="28" width="8" height="13" stroke="#0B7D1E" stroke-width="2.5"/>
1208
2047
  </svg>
1209
- `),"rcases-template-image":U(`
2048
+ `),"rcases-template-image":Z(`
1210
2049
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 72" fill="none">
1211
2050
  <rect x="10" y="8" width="9" height="22" stroke="#0a7a18" stroke-width="4"/>
1212
2051
  <rect x="10" y="42" width="9" height="22" stroke="#0a7a18" stroke-width="4"/>
@@ -1218,7 +2057,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1218
2057
  stroke-linejoin="round"
1219
2058
  />
1220
2059
  </svg>
1221
- `),"cases-two-by-two-template-image":U(`
2060
+ `),"cases-two-by-two-template-image":Z(`
1222
2061
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 48" fill="none">
1223
2062
  <path
1224
2063
  d="M8 2 C4 2 4 5 4 8 L4 16 C4 18 3 20 1 24 C3 28 4 30 4 32 L4 40 C4 43 4 46 8 46"
@@ -1227,332 +2066,332 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1227
2066
  stroke-linecap="round"
1228
2067
  stroke-linejoin="round"
1229
2068
  />
1230
- <rect x="14" y="8" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
1231
- <rect x="28" y="8" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
1232
- <rect x="14" y="28" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
1233
- <rect x="28" y="28" width="6" height="12" stroke="#008000" stroke-width="2.5"/>
2069
+ <rect x="14" y="8" width="6" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
2070
+ <rect x="28" y="8" width="6" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
2071
+ <rect x="14" y="28" width="6" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
2072
+ <rect x="28" y="28" width="6" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
1234
2073
  </svg>
1235
- `),"aligned-equals-template-image":U(`
2074
+ `),"aligned-equals-template-image":Z(`
1236
2075
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 48" fill="none">
1237
- <rect x="6" y="6" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
2076
+ <rect x="6" y="6" width="8" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
1238
2077
  <text x="21" y="16" font-size="15" text-anchor="middle" fill="#000">=</text>
1239
- <rect x="28" y="6" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
1240
- <rect x="6" y="28" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
2078
+ <rect x="28" y="6" width="8" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
2079
+ <rect x="6" y="28" width="8" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
1241
2080
  <text x="21" y="38" font-size="15" text-anchor="middle" fill="#000">=</text>
1242
- <rect x="28" y="28" width="8" height="12" stroke="#008000" stroke-width="2.5"/>
2081
+ <rect x="28" y="28" width="8" height="12" stroke="#0B7D1E" stroke-width="2.5"/>
1243
2082
  </svg>
1244
- `),"vertical-ellipsis-template-image":U(`
2083
+ `),"vertical-ellipsis-template-image":Z(`
1245
2084
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1246
2085
  <circle cx="12" cy="5.5" r="1.35" fill="#22343d" />
1247
2086
  <circle cx="12" cy="12" r="1.35" fill="#22343d" />
1248
2087
  <circle cx="12" cy="18.5" r="1.35" fill="#22343d" />
1249
2088
  </svg>
1250
- `),"midline-ellipsis-template-image":U(`
2089
+ `),"midline-ellipsis-template-image":Z(`
1251
2090
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1252
2091
  <circle cx="5.5" cy="12" r="1.35" fill="#22343d" />
1253
2092
  <circle cx="12" cy="12" r="1.35" fill="#22343d" />
1254
2093
  <circle cx="18.5" cy="12" r="1.35" fill="#22343d" />
1255
2094
  </svg>
1256
- `),"upright-ellipsis-template-image":U(`
2095
+ `),"upright-ellipsis-template-image":Z(`
1257
2096
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1258
2097
  <circle cx="6.2" cy="17.8" r="1.35" fill="#22343d" />
1259
2098
  <circle cx="12" cy="12" r="1.35" fill="#22343d" />
1260
2099
  <circle cx="17.8" cy="6.2" r="1.35" fill="#22343d" />
1261
2100
  </svg>
1262
- `),"downright-ellipsis-template-image":U(`
2101
+ `),"downright-ellipsis-template-image":Z(`
1263
2102
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1264
2103
  <circle cx="6.2" cy="6.2" r="1.35" fill="#22343d" />
1265
2104
  <circle cx="12" cy="12" r="1.35" fill="#22343d" />
1266
2105
  <circle cx="17.8" cy="17.8" r="1.35" fill="#22343d" />
1267
2106
  </svg>
1268
- `),"sum-array-template-image":U(`
2107
+ `),"sum-array-template-image":Z(`
1269
2108
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
1270
2109
  <!-- Upper placeholder -->
1271
2110
  <rect x="24" y="1"
1272
- width="8" height="8"
2111
+ width="6" height="7"
1273
2112
  fill="none"
1274
- stroke="#2ca02c"
2113
+ stroke="#0B7D1E"
1275
2114
  stroke-width="1.5"/>
1276
2115
 
1277
2116
  <!-- Plus sign -->
1278
- <text x="6" y="20"
2117
+ <text x="12" y="18"
1279
2118
  font-family="Cambria Math, Arial, sans-serif"
1280
- font-size="18"
2119
+ font-size="12"
1281
2120
  fill="#111">+</text>
1282
2121
 
1283
2122
  <!-- Main placeholder -->
1284
2123
  <rect x="24" y="11"
1285
- width="8" height="8"
2124
+ width="6" height="7"
1286
2125
  fill="none"
1287
- stroke="#2ca02c"
2126
+ stroke="#0B7D1E"
1288
2127
  stroke-width="1.5"/>
1289
2128
 
1290
2129
  <!-- Fraction bar -->
1291
- <line x1="2" y1="22"
1292
- x2="34" y2="22"
2130
+ <line x1="2" y1="20"
2131
+ x2="34" y2="20"
1293
2132
  stroke="#111"
1294
- stroke-width="2"/>
2133
+ stroke-width="1"/>
1295
2134
 
1296
2135
  <!-- Lower placeholder -->
1297
- <rect x="24" y="24"
1298
- width="8" height="8"
2136
+ <rect x="24" y="22.5"
2137
+ width="6" height="7"
1299
2138
  fill="none"
1300
- stroke="#2ca02c"
2139
+ stroke="#0B7D1E"
1301
2140
  stroke-width="1.5"/>
1302
- </svg>
1303
- `),"difference-array-template-image":U(`
2141
+ </svg>
2142
+ `),"difference-array-template-image":Z(`
1304
2143
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
1305
- <!-- Upper placeholder -->
2144
+ <!-- Upper placeholder -->
1306
2145
  <rect x="24" y="1"
1307
- width="8" height="8"
2146
+ width="6" height="7"
1308
2147
  fill="none"
1309
- stroke="#2ca02c"
2148
+ stroke="#0B7D1E"
1310
2149
  stroke-width="1.5"/>
1311
2150
 
1312
- <!-- Minus sign -->
1313
- <text x="8" y="19"
2151
+ <!-- Plus sign -->
2152
+ <text x="15" y="20"
1314
2153
  font-family="Cambria Math, Arial, sans-serif"
1315
- font-size="18"
1316
- fill="#111">−</text>
2154
+ font-size="19"
2155
+ fill="#111">-</text>
1317
2156
 
1318
2157
  <!-- Main placeholder -->
1319
2158
  <rect x="24" y="11"
1320
- width="8" height="8"
2159
+ width="6" height="7"
1321
2160
  fill="none"
1322
- stroke="#2ca02c"
2161
+ stroke="#0B7D1E"
1323
2162
  stroke-width="1.5"/>
1324
2163
 
1325
2164
  <!-- Fraction bar -->
1326
- <line x1="2" y1="22"
1327
- x2="34" y2="22"
2165
+ <line x1="2" y1="20"
2166
+ x2="34" y2="20"
1328
2167
  stroke="#111"
1329
- stroke-width="2"/>
2168
+ stroke-width="1"/>
1330
2169
 
1331
2170
  <!-- Lower placeholder -->
1332
- <rect x="24" y="24"
1333
- width="8" height="8"
2171
+ <rect x="24" y="22.5"
2172
+ width="6" height="7"
1334
2173
  fill="none"
1335
- stroke="#2ca02c"
2174
+ stroke="#0B7D1E"
1336
2175
  stroke-width="1.5"/>
1337
- </svg>
1338
- `),"stack-line-template-image":U(`
2176
+ </svg>
2177
+ `),"stack-line-template-image":Z(`
1339
2178
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
1340
- <!-- Top placeholder -->
2179
+ <!-- Upper placeholder -->
1341
2180
  <rect x="24" y="1"
1342
- width="8" height="8"
2181
+ width="6" height="7"
1343
2182
  fill="none"
1344
- stroke="#2ca02c"
2183
+ stroke="#0B7D1E"
1345
2184
  stroke-width="1.5"/>
1346
2185
 
1347
- <!-- Middle placeholder -->
2186
+ <!-- Main placeholder -->
1348
2187
  <rect x="24" y="11"
1349
- width="8" height="8"
2188
+ width="6" height="7"
1350
2189
  fill="none"
1351
- stroke="#2ca02c"
2190
+ stroke="#0B7D1E"
1352
2191
  stroke-width="1.5"/>
1353
2192
 
1354
2193
  <!-- Fraction bar -->
1355
- <line x1="2" y1="22"
1356
- x2="34" y2="22"
2194
+ <line x1="2" y1="20"
2195
+ x2="34" y2="20"
1357
2196
  stroke="#111"
1358
- stroke-width="2"/>
2197
+ stroke-width="1"/>
1359
2198
 
1360
- <!-- Bottom placeholder -->
1361
- <rect x="24" y="24"
1362
- width="8" height="8"
2199
+ <!-- Lower placeholder -->
2200
+ <rect x="24" y="22.5"
2201
+ width="6" height="7"
1363
2202
  fill="none"
1364
- stroke="#2ca02c"
2203
+ stroke="#0B7D1E"
1365
2204
  stroke-width="1.5"/>
1366
2205
  </svg>
1367
- `),"division-layout-template-image":U(`
2206
+ `),"division-layout-template-image":Z(`
1368
2207
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
1369
2208
  <!-- Top placeholder -->
1370
2209
  <rect x="24" y="1"
1371
- width="8" height="8"
2210
+ width="6" height="7"
1372
2211
  fill="none"
1373
- stroke="#2ca02c"
2212
+ stroke="#0B7D1E"
1374
2213
  stroke-width="1.5"/>
1375
2214
 
1376
2215
  <!-- Left placeholder -->
1377
- <rect x="2" y="14"
1378
- width="8" height="8"
2216
+ <rect x="5" y="14"
2217
+ width="6" height="7"
1379
2218
  fill="none"
1380
- stroke="#2ca02c"
2219
+ stroke="#0B7D1E"
1381
2220
  stroke-width="1.5"/>
1382
2221
 
1383
2222
  <!-- Delimiter -->
1384
- <text x="13" y="21"
2223
+ <text x="16" y="22"
1385
2224
  font-family="Cambria Math, Times New Roman, serif"
1386
- font-size="22"
2225
+ font-size="15"
1387
2226
  fill="#111">)</text>
1388
2227
 
1389
2228
  <!-- Horizontal bar -->
1390
- <line x1="24" y1="12"
2229
+ <line x1="16.5" y1="12"
1391
2230
  x2="38" y2="12"
1392
2231
  stroke="#111"
1393
- stroke-width="2"/>
2232
+ stroke-width="1"/>
1394
2233
 
1395
2234
  <!-- Bottom placeholder -->
1396
2235
  <rect x="24" y="16"
1397
- width="8" height="8"
2236
+ width="6" height="7"
1398
2237
  fill="none"
1399
- stroke="#2ca02c"
2238
+ stroke="#0B7D1E"
1400
2239
  stroke-width="1.5"/>
1401
- </svg>
1402
- `),"product-array-template-image":U(`
2240
+ </svg>
2241
+ `),"product-array-template-image":Z(`
1403
2242
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
1404
- <!-- Upper placeholder -->
2243
+ <!-- Upper placeholder -->
1405
2244
  <rect x="24" y="1"
1406
- width="8" height="8"
2245
+ width="6" height="7"
1407
2246
  fill="none"
1408
- stroke="#2ca02c"
2247
+ stroke="#0B7D1E"
1409
2248
  stroke-width="1.5"/>
1410
2249
 
1411
2250
  <!-- Multiplication sign -->
1412
- <text x="7" y="19"
2251
+ <text x="12" y="18"
1413
2252
  font-family="Cambria Math, Arial, sans-serif"
1414
- font-size="18"
2253
+ font-size="12"
1415
2254
  fill="#111">×</text>
1416
2255
 
1417
2256
  <!-- Main placeholder -->
1418
2257
  <rect x="24" y="11"
1419
- width="8" height="8"
2258
+ width="6" height="7"
1420
2259
  fill="none"
1421
- stroke="#2ca02c"
2260
+ stroke="#0B7D1E"
1422
2261
  stroke-width="1.5"/>
1423
2262
 
1424
2263
  <!-- Fraction bar -->
1425
- <line x1="2" y1="22"
1426
- x2="34" y2="22"
2264
+ <line x1="2" y1="20"
2265
+ x2="34" y2="20"
1427
2266
  stroke="#111"
1428
- stroke-width="2"/>
2267
+ stroke-width="1"/>
1429
2268
 
1430
2269
  <!-- Lower placeholder -->
1431
- <rect x="24" y="24"
1432
- width="8" height="8"
2270
+ <rect x="24" y="22.5"
2271
+ width="6" height="7"
1433
2272
  fill="none"
1434
- stroke="#2ca02c"
2273
+ stroke="#0B7D1E"
1435
2274
  stroke-width="1.5"/>
1436
2275
  </svg>
1437
- `),"mixed-fraction-template-image":U(`
1438
- <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
2276
+ `),"mixed-fraction-template-image":Z(`
2277
+ <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="2 0 40 32">
1439
2278
  <!-- Left top box -->
1440
- <rect x="3" y="6"
1441
- width="8" height="10"
2279
+ <rect x="9" y="6"
2280
+ width="6" height="7"
1442
2281
  fill="none"
1443
- stroke="#2ca02c"
2282
+ stroke="#0B7D1E"
1444
2283
  stroke-width="1.5"/>
1445
2284
 
1446
2285
  <!-- Right top box -->
1447
2286
  <rect x="26" y="6"
1448
- width="8" height="10"
2287
+ width="6" height="7"
1449
2288
  fill="none"
1450
- stroke="#2ca02c"
2289
+ stroke="#0B7D1E"
1451
2290
  stroke-width="1.5"/>
1452
2291
 
1453
2292
  <!-- L-shaped separator -->
1454
2293
  <line x1="20" y1="1"
1455
- x2="20" y2="21"
2294
+ x2="20" y2="19"
1456
2295
  stroke="#111"
1457
- stroke-width="2"/>
2296
+ stroke-width="1"/>
1458
2297
 
1459
- <line x1="20" y1="21"
1460
- x2="38" y2="21"
2298
+ <line x1="20" y1="18.5"
2299
+ x2="38" y2="18.5"
1461
2300
  stroke="#111"
1462
- stroke-width="2"/>
2301
+ stroke-width="1"/>
1463
2302
 
1464
2303
  <!-- Bottom box -->
1465
2304
  <rect x="26" y="24"
1466
- width="8" height="8"
2305
+ width="6" height="7"
1467
2306
  fill="none"
1468
- stroke="#2ca02c"
2307
+ stroke="#0B7D1E"
1469
2308
  stroke-width="1.5"/>
1470
2309
  </svg>
1471
- `),"array-cc-template-image":U(`
2310
+ `),"array-cc-template-image":Z(`
1472
2311
  <svg xmlns="http://www.w3.org/2000/svg" width="40" height="32" viewBox="0 0 40 32">
1473
2312
  <!-- Top left -->
1474
- <rect x="3" y="4"
1475
- width="8" height="10"
2313
+ <rect x="9" y="6"
2314
+ width="6" height="7"
1476
2315
  fill="none"
1477
- stroke="#2ca02c"
2316
+ stroke="#0B7D1E"
1478
2317
  stroke-width="1.5"/>
1479
2318
 
1480
2319
  <!-- Bottom left -->
1481
- <rect x="3" y="22"
1482
- width="8" height="10"
2320
+ <rect x="9" y="22"
2321
+ width="6" height="7"
1483
2322
  fill="none"
1484
- stroke="#2ca02c"
2323
+ stroke="#0B7D1E"
1485
2324
  stroke-width="1.5"/>
1486
2325
 
1487
2326
  <!-- Top right -->
1488
- <rect x="26" y="4"
1489
- width="8" height="10"
2327
+ <rect x="26" y="6"
2328
+ width="6" height="7"
1490
2329
  fill="none"
1491
- stroke="#2ca02c"
2330
+ stroke="#0B7D1E"
1492
2331
  stroke-width="1.5"/>
1493
2332
 
1494
2333
  <!-- Bottom right -->
1495
2334
  <rect x="26" y="22"
1496
- width="8" height="10"
2335
+ width="6" height="7"
1497
2336
  fill="none"
1498
- stroke="#2ca02c"
2337
+ stroke="#0B7D1E"
1499
2338
  stroke-width="1.5"/>
1500
2339
 
1501
2340
  <!-- L shape -->
1502
2341
  <line x1="20" y1="1"
1503
2342
  x2="20" y2="18"
1504
2343
  stroke="#111"
1505
- stroke-width="2"/>
2344
+ stroke-width="1"/>
1506
2345
 
1507
- <line x1="20" y1="18"
1508
- x2="38" y2="18"
2346
+ <line x1="19.6" y1="18"
2347
+ x2="37.5" y2="18"
1509
2348
  stroke="#111"
1510
- stroke-width="2"/>
2349
+ stroke-width="1"/>
1511
2350
  </svg>
1512
- `),"division-remainder-template-image":U(`
1513
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 80" fill="none">
2351
+ `),"division-remainder-template-image":Z(`
2352
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 0 60 80" fill="none">
1514
2353
  <!-- Top placeholder -->
1515
2354
  <rect x="32" y="2" width="14" height="18"
1516
- stroke="#008000" stroke-width="2.5"/>
2355
+ stroke="#0B7D1E" stroke-width="3.5"/>
1517
2356
 
1518
2357
  <!-- Left placeholder -->
1519
2358
  <rect x="2" y="30" width="14" height="18"
1520
- stroke="#008000" stroke-width="2.5"/>
2359
+ stroke="#0B7D1E" stroke-width="3.5"/>
1521
2360
 
1522
2361
  <!-- Middle placeholder -->
1523
2362
  <rect x="32" y="30" width="14" height="18"
1524
- stroke="#008000" stroke-width="2.5"/>
2363
+ stroke="#0B7D1E" stroke-width="3.5"/>
1525
2364
 
1526
2365
  <!-- Bottom placeholder -->
1527
2366
  <rect x="32" y="58" width="14" height="18"
1528
- stroke="#008000" stroke-width="2.5"/>
2367
+ stroke="#0B7D1E" stroke-width="3.5"/>
1529
2368
 
1530
2369
  <!-- Large bold parenthesis -->
1531
- <path d="M18 16 C32 28,32 52,18 64"
2370
+ <path d="M18 24 C28 32,28 48,18 56"
1532
2371
  stroke="#000"
1533
- stroke-width="4"
2372
+ stroke-width="2.5"
1534
2373
  stroke-linecap="round"
1535
2374
  stroke-linejoin="round"/>
1536
2375
 
1537
2376
  <!-- Large bold horizontal bar -->
1538
- <line x1="28" y1="24"
2377
+ <line x1="19" y1="24"
1539
2378
  x2="54" y2="24"
1540
2379
  stroke="#000"
1541
- stroke-width="4"/>
1542
- </svg>
1543
- `),"vertical-line-picker-template-image":U(`
2380
+ stroke-width="2.5"/>
2381
+ </svg>
2382
+ `),"vertical-line-picker-template-image":Z(`
1544
2383
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
1545
2384
  <rect x="8.6" y="2.5" width="4.3" height="18.5" rx="1.4" fill="#89a5b6" />
1546
2385
  <path d="M12.8 15L17 18.1L12.8 21.2Z" fill="#ffffff" />
1547
2386
  </svg>
1548
- `),"right-left-arrows-over":W(`
2387
+ `),"right-left-arrows-over":Q(`
1549
2388
  <rect
1550
2389
  x="10"
1551
2390
  y="1"
1552
2391
  width="4"
1553
2392
  height="6"
1554
2393
  fill="none"
1555
- stroke="#5A9E57"
2394
+ stroke="#0B7D1E"
1556
2395
  stroke-width="0.8"
1557
2396
  />
1558
2397
 
@@ -1583,14 +2422,14 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1583
2422
  stroke-linecap="round"
1584
2423
  stroke-linejoin="round"
1585
2424
  />
1586
- `),"right-left-arrows-under":W(`
2425
+ `),"right-left-arrows-under":Q(`
1587
2426
  <rect
1588
2427
  x="10"
1589
2428
  y="16"
1590
2429
  width="4"
1591
2430
  height="6"
1592
2431
  fill="none"
1593
- stroke="#5A9E57"
2432
+ stroke="#0B7D1E"
1594
2433
  stroke-width="0.8"
1595
2434
  />
1596
2435
 
@@ -1621,14 +2460,14 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1621
2460
  stroke-linecap="round"
1622
2461
  stroke-linejoin="round"
1623
2462
  />
1624
- `),"right-left-arrows-over-under":W(`
2463
+ `),"right-left-arrows-over-under":Q(`
1625
2464
  <rect
1626
2465
  x="10"
1627
2466
  y="1"
1628
2467
  width="4"
1629
2468
  height="6"
1630
2469
  fill="none"
1631
- stroke="#5A9E57"
2470
+ stroke="#0B7D1E"
1632
2471
  stroke-width="0.8"
1633
2472
  />
1634
2473
 
@@ -1666,17 +2505,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1666
2505
  width="4"
1667
2506
  height="6"
1668
2507
  fill="none"
1669
- stroke="#5A9E57"
2508
+ stroke="#0B7D1E"
1670
2509
  stroke-width="0.8"
1671
2510
  />
1672
- `),"left-right-arrows-over":W(`
2511
+ `),"left-right-arrows-over":Q(`
1673
2512
  <rect
1674
2513
  x="10"
1675
2514
  y="1"
1676
2515
  width="4"
1677
2516
  height="6"
1678
2517
  fill="none"
1679
- stroke="#5A9E57"
2518
+ stroke="#0B7D1E"
1680
2519
  stroke-width="0.8"
1681
2520
  />
1682
2521
 
@@ -1717,7 +2556,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1717
2556
  stroke-linecap="round"
1718
2557
  stroke-linejoin="round"
1719
2558
  />
1720
- `),"left-right-arrows-under":W(`
2559
+ `),"left-right-arrows-under":Q(`
1721
2560
  <line
1722
2561
  x1="4"
1723
2562
  y1="8"
@@ -1762,17 +2601,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1762
2601
  width="4"
1763
2602
  height="6"
1764
2603
  fill="none"
1765
- stroke="#5A9E57"
2604
+ stroke="#0B7D1E"
1766
2605
  stroke-width="0.8"
1767
- />
1768
- `),"left-right-arrows-over-under":W(`
2606
+ />
2607
+ `),"left-right-arrows-over-under":Q(`
1769
2608
  <rect
1770
2609
  x="10"
1771
2610
  y="1"
1772
2611
  width="4"
1773
2612
  height="4"
1774
2613
  fill="none"
1775
- stroke="#5A9E57"
2614
+ stroke="#0B7D1E"
1776
2615
  stroke-width="0.8"
1777
2616
  />
1778
2617
 
@@ -1820,17 +2659,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1820
2659
  width="4"
1821
2660
  height="4"
1822
2661
  fill="none"
1823
- stroke="#5A9E57"
2662
+ stroke="#0B7D1E"
1824
2663
  stroke-width="0.8"
1825
2664
  />
1826
- `),"right-left-stacked-arrows-over":W(`
2665
+ `),"right-left-stacked-arrows-over":Q(`
1827
2666
  <rect
1828
2667
  x="10"
1829
2668
  y="1"
1830
2669
  width="4"
1831
2670
  height="4"
1832
2671
  fill="none"
1833
- stroke="#5A9E57"
2672
+ stroke="#0B7D1E"
1834
2673
  stroke-width="0.8"
1835
2674
  />
1836
2675
 
@@ -1873,7 +2712,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1873
2712
  stroke-linecap="round"
1874
2713
  stroke-linejoin="round"
1875
2714
  />
1876
- `),"right-left-stacked-arrows-under":W(`
2715
+ `),"right-left-stacked-arrows-under":Q(`
1877
2716
  <line
1878
2717
  x1="20"
1879
2718
  y1="8"
@@ -1918,17 +2757,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1918
2757
  width="4"
1919
2758
  height="4"
1920
2759
  fill="none"
1921
- stroke="#5A9E57"
2760
+ stroke="#0B7D1E"
1922
2761
  stroke-width="0.8"
1923
2762
  />
1924
- `),"right-left-stacked-arrows-over-under":W(`
2763
+ `),"right-left-stacked-arrows-over-under":Q(`
1925
2764
  <rect
1926
2765
  x="10"
1927
2766
  y="1"
1928
2767
  width="4"
1929
2768
  height="4"
1930
2769
  fill="none"
1931
- stroke="#5A9E57"
2770
+ stroke="#0B7D1E"
1932
2771
  stroke-width="0.8"
1933
2772
  />
1934
2773
 
@@ -1978,17 +2817,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
1978
2817
  width="4"
1979
2818
  height="4"
1980
2819
  fill="none"
1981
- stroke="#5A9E57"
2820
+ stroke="#0B7D1E"
1982
2821
  stroke-width="0.8"
1983
2822
  />
1984
- `),"left-right-harpoons-over":W(`
2823
+ `),"left-right-harpoons-over":Q(`
1985
2824
  <rect
1986
2825
  x="10"
1987
2826
  y="1"
1988
2827
  width="4"
1989
2828
  height="4"
1990
2829
  fill="none"
1991
- stroke="#5A9E57"
2830
+ stroke="#0B7D1E"
1992
2831
  stroke-width="0.8"
1993
2832
  />
1994
2833
 
@@ -2031,7 +2870,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2031
2870
  stroke-linecap="round"
2032
2871
  stroke-linejoin="round"
2033
2872
  />
2034
- `),"left-right-harpoons-under":W(`
2873
+ `),"left-right-harpoons-under":Q(`
2035
2874
  <!-- Top left harpoon -->
2036
2875
  <line
2037
2876
  x1="20"
@@ -2079,17 +2918,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2079
2918
  width="4"
2080
2919
  height="4"
2081
2920
  fill="none"
2082
- stroke="#5A9E57"
2921
+ stroke="#0B7D1E"
2083
2922
  stroke-width="0.8"
2084
2923
  />
2085
- `),"left-right-harpoons-over-under":W(`
2924
+ `),"left-right-harpoons-over-under":Q(`
2086
2925
  <rect
2087
2926
  x="10"
2088
2927
  y="1"
2089
2928
  width="4"
2090
2929
  height="4"
2091
2930
  fill="none"
2092
- stroke="#5A9E57"
2931
+ stroke="#0B7D1E"
2093
2932
  stroke-width="0.8"
2094
2933
  />
2095
2934
 
@@ -2139,17 +2978,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2139
2978
  width="4"
2140
2979
  height="4"
2141
2980
  fill="none"
2142
- stroke="#5A9E57"
2981
+ stroke="#0B7D1E"
2143
2982
  stroke-width="0.8"
2144
2983
  />
2145
- `),"right-left-harpoons-over":W(`
2984
+ `),"right-left-harpoons-over":Q(`
2146
2985
  <rect
2147
2986
  x="10"
2148
2987
  y="1"
2149
2988
  width="4"
2150
2989
  height="4"
2151
2990
  fill="none"
2152
- stroke="#5A9E57"
2991
+ stroke="#0B7D1E"
2153
2992
  stroke-width="0.8"
2154
2993
  />
2155
2994
 
@@ -2190,7 +3029,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2190
3029
  stroke-linecap="round"
2191
3030
  stroke-linejoin="round"
2192
3031
  />
2193
- `),"right-left-harpoons-under":W(`
3032
+ `),"right-left-harpoons-under":Q(`
2194
3033
  <!-- Top right harpoon -->
2195
3034
  <line
2196
3035
  x1="4"
@@ -2236,17 +3075,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2236
3075
  width="4"
2237
3076
  height="4"
2238
3077
  fill="none"
2239
- stroke="#5A9E57"
3078
+ stroke="#0B7D1E"
2240
3079
  stroke-width="0.8"
2241
3080
  />
2242
- `),"right-left-harpoons-over-under":W(`
3081
+ `),"right-left-harpoons-over-under":Q(`
2243
3082
  <rect
2244
3083
  x="10"
2245
3084
  y="1"
2246
3085
  width="4"
2247
3086
  height="4"
2248
3087
  fill="none"
2249
- stroke="#5A9E57"
3088
+ stroke="#0B7D1E"
2250
3089
  stroke-width="0.8"
2251
3090
  />
2252
3091
 
@@ -2296,23 +3135,23 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2296
3135
  width="4"
2297
3136
  height="4"
2298
3137
  fill="none"
2299
- stroke="#5A9E57"
3138
+ stroke="#0B7D1E"
2300
3139
  stroke-width="0.8"
2301
3140
  />
2302
- `),"long-right-short-left-over":W(`
3141
+ `),"long-right-short-left-over":Q(`
2303
3142
  <rect
2304
3143
  x="10"
2305
3144
  y="1"
2306
3145
  width="4"
2307
3146
  height="6"
2308
3147
  fill="none"
2309
- stroke="#5A9E57"
3148
+ stroke="#0B7D1E"
2310
3149
  stroke-width="0.8"
2311
3150
  />
2312
3151
 
2313
3152
  <!-- Top right arrow -->
2314
3153
  <line
2315
- x1="6"
3154
+ x1="6"
2316
3155
  y1="12"
2317
3156
  x2="18"
2318
3157
  y2="12"
@@ -2347,7 +3186,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2347
3186
  stroke-linecap="round"
2348
3187
  stroke-linejoin="round"
2349
3188
  />
2350
- `),"long-right-short-left-under":W(`
3189
+ `),"long-right-short-left-under":Q(`
2351
3190
  <!-- Top right arrow -->
2352
3191
  <line
2353
3192
  x1="6"
@@ -2393,17 +3232,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2393
3232
  width="4"
2394
3233
  height="4"
2395
3234
  fill="none"
2396
- stroke="#5A9E57"
3235
+ stroke="#0B7D1E"
2397
3236
  stroke-width="0.8"
2398
3237
  />
2399
- `),"long-right-short-left-over-under":W(`
3238
+ `),"long-right-short-left-over-under":Q(`
2400
3239
  <rect
2401
3240
  x="10"
2402
3241
  y="1"
2403
3242
  width="4"
2404
3243
  height="4"
2405
3244
  fill="none"
2406
- stroke="#5A9E57"
3245
+ stroke="#0B7D1E"
2407
3246
  stroke-width="0.8"
2408
3247
  />
2409
3248
 
@@ -2451,17 +3290,17 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2451
3290
  width="4"
2452
3291
  height="4"
2453
3292
  fill="none"
2454
- stroke="#5A9E57"
3293
+ stroke="#0B7D1E"
2455
3294
  stroke-width="0.8"
2456
3295
  />
2457
- `),"short-right-long-left-over":W(`
3296
+ `),"short-right-long-left-over":Q(`
2458
3297
  <rect
2459
3298
  x="10"
2460
3299
  y="1"
2461
3300
  width="4"
2462
3301
  height="6"
2463
3302
  fill="none"
2464
- stroke="#5A9E57"
3303
+ stroke="#0B7D1E"
2465
3304
  stroke-width="0.8"
2466
3305
  />
2467
3306
 
@@ -2504,14 +3343,14 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2504
3343
  stroke-linecap="round"
2505
3344
  stroke-linejoin="round"
2506
3345
  />
2507
- `),"short-right-long-left-under":W(`
3346
+ `),"short-right-long-left-under":Q(`
2508
3347
  <rect
2509
3348
  x="10"
2510
3349
  y="17"
2511
3350
  width="4"
2512
3351
  height="6"
2513
3352
  fill="none"
2514
- stroke="#5A9E57"
3353
+ stroke="#0B7D1E"
2515
3354
  stroke-width="0.8"
2516
3355
  />
2517
3356
 
@@ -2552,14 +3391,14 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2552
3391
  stroke-linecap="round"
2553
3392
  stroke-linejoin="round"
2554
3393
  />
2555
- `),"short-right-long-left-over-under":W(`
3394
+ `),"short-right-long-left-over-under":Q(`
2556
3395
  <rect
2557
3396
  x="10"
2558
3397
  y="1"
2559
3398
  width="4"
2560
3399
  height="6"
2561
3400
  fill="none"
2562
- stroke="#5A9E57"
3401
+ stroke="#0B7D1E"
2563
3402
  stroke-width="0.8"
2564
3403
  />
2565
3404
 
@@ -2607,19 +3446,19 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2607
3446
  width="4"
2608
3447
  height="6"
2609
3448
  fill="none"
2610
- stroke="#5A9E57"
3449
+ stroke="#0B7D1E"
2611
3450
  stroke-width="0.8"
2612
3451
  />
2613
- `),"arabic-indic-numerals-template-image":U(`
3452
+ `),"arabic-indic-numerals-template-image":Z(`
2614
3453
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
2615
3454
  <text x="4" y="36" font-family="Amiri, Noto Naskh Arabic, serif" font-size="38" fill="#000">٤٦</text>
2616
3455
  </svg>
2617
- `),"eastern-arabic-indic-numerals-template-image":U(`
3456
+ `),"eastern-arabic-indic-numerals-template-image":Z(`
2618
3457
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
2619
3458
  <text x="4" y="36" font-size="36" font-family="sans-serif" fill="#000">۴۶</text>
2620
3459
  </svg>
2621
- `)};function he(e,t={}){if(e.cls?.includes(`arrow-picker-tool`))return(0,i.jsx)(`span`,{className:`cme-toolbar-chevron-indicator`,"aria-hidden":`true`,children:`⏵`});if(e.icon&&me[e.icon])return(0,i.jsx)(`span`,{className:`cme-toolbar-icon-image-wrapper cme-toolbar-icon-image-wrapper--${e.icon}`,"aria-hidden":`true`,children:(0,i.jsx)(`img`,{className:`cme-toolbar-icon-image cme-toolbar-icon-image--${e.icon}`,src:me[e.icon],alt:``})});if(e.icon===`stacked-fraction`)return(0,i.jsx)(`span`,{className:`cme-fraction-icon cme-fraction-stack${e.cls?.includes(`black-glyph-template`)?` cme-fraction-stack--black-glyph-template`:``}`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-fraction-svg`,viewBox:`0 0 24 24`,focusable:`false`,"aria-hidden":`true`,children:[(0,i.jsx)(`rect`,{x:`7.5`,y:`-0.2`,width:`9`,height:`9`}),(0,i.jsx)(`line`,{x1:`5.5`,y1:`12`,x2:`18.5`,y2:`12`}),(0,i.jsx)(`rect`,{x:`7.5`,y:`15.3`,width:`9`,height:`9`})]})});if(e.icon===`arrow-label-right-above`||e.icon===`arrow-label-left-above`||e.icon===`arrow-label-both-above`||e.icon===`arrow-label-right-below`||e.icon===`arrow-label-left-below`||e.icon===`arrow-label-both-below`||e.icon===`arrow-label-both-above-below`||e.icon===`arrow-label-right-above-below`||e.icon===`arrow-label-left-above-below`||e.icon===`harpoon-label-right-left-above`||e.icon===`harpoon-label-right-left-below`||e.icon===`harpoon-label-right-left-above-below`||e.icon===`harpoon-label-left-right-above-below`||e.icon===`bar-harpoon-label-right-left-above-below`||e.icon===`bar-harpoon-label-right-left-above`||e.icon===`bar-harpoon-label-right-left-below`||e.icon===`bar-harpoon-label-left-right-above-below`||e.icon===`bar-arrow-label-right-left-above`||e.icon===`bar-arrow-label-right-left-above-below`||e.icon===`bar-arrow-label-left-right-above`||e.icon===`bar-arrow-label-left-right-above-below`){let{direction:t,arrowY:n,topBox:r,bottomBox:a}={"arrow-label-right-above":{direction:`right`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-left-above":{direction:`left`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-both-above":{direction:`both`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-right-below":{direction:`right`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-left-below":{direction:`left`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-below":{direction:`both`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-above-below":{direction:`both`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-right-above-below":{direction:`right`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-left-above-below":{direction:`left`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-right-left-above":{direction:`harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"harpoon-label-right-left-below":{direction:`harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"harpoon-label-right-left-above-below":{direction:`harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-left-right-above-below":{direction:`harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above-below":{direction:`bar-harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above":{direction:`bar-harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-harpoon-label-right-left-below":{direction:`bar-harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"bar-harpoon-label-left-right-above-below":{direction:`bar-harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-right-left-above":{direction:`bar-arrow-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-right-left-above-below":{direction:`bar-arrow-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-left-right-above":{direction:`bar-arrow-lr`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-left-right-above-below":{direction:`bar-arrow-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}}}[e.icon],o=t===`left`?(0,i.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H14.9`}):t===`both`?(0,i.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H15.05M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}`}):t===`harpoon-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M3.1 ${n-1.95}H14.35M12.05 ${n-3.15}L14.55 ${n-1.95}L12.05 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.45 ${n+1.65}H3.2M5.45 ${n+.45}L2.95 ${n+1.65}L5.45 ${n+2.85}`})]}):t===`harpoon-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.45 ${n-1.95}H3.2M5.45 ${n-3.15}L2.95 ${n-1.95}L5.45 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M3.1 ${n+1.65}H14.35M12.05 ${n+.45}L14.55 ${n+1.65}L12.05 ${n+2.85}`})]}):t===`bar-harpoon-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M4.3 ${n-1.95}H14.1M11.8 ${n-3.15}L14.3 ${n-1.95}L11.8 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.2 ${n+1.65}H4.1M6.35 ${n+.45}L3.85 ${n+1.65}L6.35 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`2.95`,y1:n-1.95,x2:`4.15`,y2:n-1.95}),(0,i.jsx)(`line`,{x1:`14.2`,y1:n+1.65,x2:`15.3`,y2:n+1.65})]}):t===`bar-harpoon-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.2 ${n-1.95}H4.1M6.35 ${n-3.15}L3.85 ${n-1.95}L6.35 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M4.3 ${n+1.65}H14.1M11.8 ${n+.45}L14.3 ${n+1.65}L11.8 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`14.2`,y1:n-1.95,x2:`15.3`,y2:n-1.95}),(0,i.jsx)(`line`,{x1:`2.95`,y1:n+1.65,x2:`4.15`,y2:n+1.65})]}):t===`bar-arrow-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M4.2 ${n-1.95}H14.05M11.75 ${n-3.15}L14.25 ${n-1.95}L11.75 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.15 ${n+1.65}H4.25M6.55 ${n+.45}L4.05 ${n+1.65}L6.55 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`4.05`,y1:n+1.65,x2:`14.15`,y2:n+1.65})]}):t===`bar-arrow-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.15 ${n-1.95}H4.25M6.55 ${n-3.15}L4.05 ${n-1.95}L6.55 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M4.2 ${n+1.65}H14.05M11.75 ${n+.45}L14.25 ${n+1.65}L11.75 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`4.05`,y1:n-1.95,x2:`14.15`,y2:n-1.95})]}):(0,i.jsx)(`path`,{d:`M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}M2.95 ${n}H14.65`});return(0,i.jsx)(`span`,{className:`cme-arrow-label-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-arrow-label-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[r?(0,i.jsx)(`rect`,{...r,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null,o,a?(0,i.jsx)(`rect`,{...a,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null]})})}if(e.insert===`matrix`||e.insert===`bmatrix`||e.insert===`pmatrix`||e.insert===`vmatrix`){let t=e.insert,n=t===`matrix`?[[2.3,3.1],[7.1,3.1],[11.9,3.1],[2.3,7.25],[7.1,7.25],[11.9,7.25],[2.3,11.4],[7.1,11.4],[11.9,11.4]]:[[5.3,2.95],[10.1,2.95],[5.3,7.1],[10.1,7.1],[5.3,11.25],[10.1,11.25]],r;return t===`bmatrix`?r=(0,i.jsx)(`path`,{d:`M3 1.8H1.95V15.85H3M12.95 1.8H14V15.85H12.95`}):t===`pmatrix`?r=(0,i.jsx)(`path`,{d:`M3.15 1.8C1.85 3.05 1.35 4.75 1.35 8.85C1.35 12.95 1.85 14.65 3.15 15.85M12.85 1.8C14.15 3.05 14.65 4.75 14.65 8.85C14.65 12.95 14.15 14.65 12.85 15.85`}):t===`vmatrix`&&(r=(0,i.jsx)(`path`,{d:`M2.6 1.9V15.75M13.4 1.9V15.75`})),(0,i.jsx)(`span`,{className:`cme-matrix-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-matrix-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[r,n.map(([e,n],r)=>(0,i.jsx)(`rect`,{x:e,y:n,width:`2.35`,height:`2.9`,rx:`0.28`,className:`cme-matrix-svg-cell`},`${t}-${r}`))]})})}let n={"\\begin{matrix} #? & #? & #? \\end{matrix}":{frame:`none`,cells:[[2.15,7.05],[6.85,7.05],[11.55,7.05]]},"\\begin{bmatrix} #? \\\\ #? \\end{bmatrix}":{frame:`brackets`,cells:[[7.05,3.25],[7.05,10.2]]},"\\begin{bmatrix} #? & #? \\end{bmatrix}":{frame:`brackets`,cells:[[4.85,7.05],[9.25,7.05]]},"\\begin{pmatrix} #? \\\\ #? \\end{pmatrix}":{frame:`parentheses`,cells:[[7.05,3.25],[7.05,10.2]]},"\\begin{pmatrix} #? & #? \\end{pmatrix}":{frame:`parentheses`,cells:[[4.85,7.05],[9.25,7.05]]},"\\begin{bmatrix} #? \\\\ #? \\\\ #? \\end{bmatrix}":{frame:`brackets`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\begin{pmatrix} #? \\\\ #? \\\\ #? \\end{pmatrix}":{frame:`parentheses`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}":{frame:`none`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]}}[e.insert];if(n){let e;return n.frame===`brackets`?e=(0,i.jsx)(`path`,{d:`M2.7 1.4H1.75V16.1H2.7M13.3 1.4H14.25V16.1H13.3`}):n.frame===`parentheses`&&(e=(0,i.jsx)(`path`,{d:`M3 1.4C1.95 2.7 1.55 4.65 1.55 8.75C1.55 12.85 1.95 14.8 3 16.1M13 1.4C14.05 2.7 14.45 4.65 14.45 8.75C14.45 12.85 14.05 14.8 13 16.1`})),(0,i.jsx)(`span`,{className:`cme-matrix-template-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-matrix-template-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[e,n.cells.map(([e,t],n)=>(0,i.jsx)(`rect`,{x:e,y:t,width:`2.35`,height:`3`,rx:`0.28`,className:`cme-matrix-svg-cell`},`matrix-template-${n}`))]})})}if(e.icon===`superscript-template`||e.icon===`subscript-template`)return(0,i.jsx)(`span`,{className:`cme-script-icon`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-script-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:e.icon===`superscript-template`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`rect`,{x:`3`,y:`7`,width:`6`,height:`8`,rx:`0.5`}),(0,i.jsx)(`rect`,{x:`10`,y:`3`,width:`5`,height:`7`,rx:`0.5`})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`rect`,{x:`3`,y:`3`,width:`6`,height:`8`,rx:`0.5`}),(0,i.jsx)(`rect`,{x:`10`,y:`8`,width:`5`,height:`7`,rx:`0.5`})]})})});if(e.icon===`square-root-template`||e.icon===`nth-root-template`){let t=e.icon===`nth-root-template`;return(0,i.jsx)(`span`,{className:`cme-root-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-root-svg`,width:`48`,height:`32`,viewBox:`0 0 46 32`,focusable:`false`,"aria-hidden":`true`,children:[t?(0,i.jsx)(`rect`,{x:`8`,y:`4`,width:`8`,height:`10`,className:`cme-root-svg-box cme-root-svg-box--small`}):null,(0,i.jsx)(`path`,{d:t?`M10 18 L17 25 L24 4 L46 4`:`M4 18 L11 25 L18 4 L42 4`}),(0,i.jsx)(`rect`,{x:t?`30`:`24`,y:`9`,width:`11`,height:`15`,className:`cme-root-svg-box`})]})})}if(e.icon===`accent-harpoon-right`||e.icon===`accent-arrow-right`||e.icon===`accent-arrow-both`||e.icon===`accent-bar`){let t;return t=e.icon===`accent-bar`?(0,i.jsx)(`line`,{x1:`3.5`,y1:`4.5`,x2:`14.5`,y2:`4.5`}):e.icon===`accent-arrow-both`?(0,i.jsx)(`path`,{d:`M3.3 5.5L5 3.9M3.3 5.5L5 7.1M3.5 5.5H14.5M13 3.9L14.7 5.5L13 7.1`}):e.icon===`accent-harpoon-right`?(0,i.jsx)(`path`,{d:`M3.5 5.5H14.5M12 3.9L14.7 5.5M14 5.5V5`}):(0,i.jsx)(`path`,{d:`M3.5 5.5H14.2M11.8 3.9L14.7 5.5L11.8 7.1`}),(0,i.jsx)(`span`,{className:`cme-accent-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-accent-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[t,(0,i.jsx)(`rect`,{x:`6.4`,y:`8.6`,width:`5.2`,height:`7`,rx:`0.45`,className:`cme-accent-svg-box`})]})})}if(t.isMathMode||t.isChemMode){let n=[`cme-toolbar-glyph`],r=e.cls||``,a=t.groupId===`roots-main`,o=t.groupId===`relations`,s=t.groupId===`greek`,c=!!t.isChemMode,l=String(e.label||``),u=l.length;if(c){let t=/^(?:[⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿⁱ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓᵢⱼₙ])+$/u.test(String(e.label||``));n.push(`cme-toolbar-glyph--chem`);let i=/^(?:[+-]|[²³][⁺⁻])$/u.test(String(e.label||``));r.includes(`chem-element`)&&n.push(`cme-toolbar-glyph--chem-element`),r.includes(`chem-arrow`)&&n.push(`cme-toolbar-glyph--chem-arrow`),r.includes(`chem-state`)&&n.push(`cme-toolbar-glyph--chem-state`),t&&n.push(`cme-toolbar-glyph--chem-script`),i&&n.push(`cme-toolbar-glyph--chem-charge`)}else a&&n.push(`cme-toolbar-glyph--roots-main`),o&&n.push(`cme-toolbar-glyph--relations`),!a&&!o&&n.push(`cme-toolbar-glyph--math`),s&&n.push(`cme-toolbar-glyph--greek`);return r.includes(`green-template`)&&n.push(`cme-toolbar-glyph--template`),r.includes(`soft-tool`)&&n.push(`cme-toolbar-glyph--tool`),r.includes(`format-tool`)&&n.push(`cme-toolbar-glyph--format`),u>=4&&n.push(`cme-toolbar-glyph--wide`),u>=8&&n.push(`cme-toolbar-glyph--very-wide`),(0,i.jsx)(`span`,{className:n.join(` `),"aria-hidden":`true`,children:r.includes(`green-placeholder-glyph`)||r.includes(`black-glyph-template`)||r.includes(`black-placeholder-glyph`)?Array.from(l).map((e,t)=>e===`□`?(0,i.jsx)(`span`,{className:r.includes(`black-placeholder-glyph`)?`cme-toolbar-placeholder-box-black`:`cme-toolbar-placeholder-box-green`,children:e},`placeholder-${t}`):(0,i.jsx)(`span`,{children:e},`glyph-${t}`)):e.label})}return e.label}function ge({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-6,8),window.innerWidth-348),r=Math.min(e.y+2,window.innerHeight-148),a=e=>e.preview===`rightleft-short-left`?(0,i.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,i.jsx)(`line`,{x1:`10`,y1:`8`,x2:`38`,y2:`8`}),(0,i.jsx)(`polyline`,{points:`30,2 38,8 30,14`}),(0,i.jsx)(`line`,{x1:`34`,y1:`16`,x2:`18`,y2:`16`}),(0,i.jsx)(`polyline`,{points:`26,10 18,16 26,22`})]}):e.preview===`right-short-over-left-long`?(0,i.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,i.jsx)(`line`,{x1:`14`,y1:`8`,x2:`30`,y2:`8`}),(0,i.jsx)(`polyline`,{points:`22,2 30,8 22,14`}),(0,i.jsx)(`line`,{x1:`40`,y1:`16`,x2:`12`,y2:`16`}),(0,i.jsx)(`polyline`,{points:`20,10 12,16 20,22`})]}):(0,i.jsx)(`span`,{"aria-hidden":`true`,style:{fontSize:`18px`,lineHeight:1,fontFamily:`"Cambria Math", "STIX Two Math", "Segoe UI Symbol", "Segoe UI", sans-serif`,whiteSpace:`pre-line`},children:e.label});return(0,i.jsx)(`div`,{className:`cme-arrow-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-picker-grid`,children:y.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:a(e)},`${e.insert}-${e.title||e.label}`))})})}function _e({position:e,items:t=[],onInsert:n,popupBounds:r=null,picker:a=``}){let o=a===`trigFunctionExtras`||a===`bracketDelimiterExtras`||a===`enclosureFrameExtras`||a===`strikeDecorationExtras`||a===`arithmeticLayoutExtras`,s=o?2:Math.max(1,Math.min(t.length,5)),c=o?88:30,l=o?34:30,u=o?10:8,d=o?8:6,f=o?18:20,p=o?18:16,m=Math.max(1,Math.ceil(t.length/s)),h=s*c+(s-1)*u+f,g=m*l+(m-1)*d+p,_=r?{left:r.left,top:r.top,right:r.right,bottom:r.bottom}:{left:8,top:8,right:window.innerWidth-8,bottom:window.innerHeight-8},v=_.left+8,y=Math.max(v,_.right-h-8),b=_.top+8,x=Math.max(b,_.bottom-g-8),S=Math.min(Math.max(e.x-6,v),y),C=e.y+2,w=e.y-g-6,T=C<=x?C:Math.max(b,Math.min(w,x));return(0,i.jsx)(`div`,{className:`cme-arrow-picker-popup cme-relation-more-picker-popup`,style:{position:`fixed`,left:`${S}px`,top:`${T}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-picker-grid`,style:{gridTemplateColumns:`repeat(${s}, ${c}px)`,gridAutoRows:`${l}px`,gap:`${d}px ${u}px`},children:t.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn${e.cls?` ${e.cls}`:``}`,title:e.title||e.label,style:{width:`${c}px`,height:`${l}px`,padding:o?`0 8px`:0},onMouseDown:t=>{t.preventDefault(),n(e.insert)},children:he(e,{groupId:`relations`,isMathMode:!0,isChemMode:!1})},`${e.insert}-${e.title||e.label}`))})})}function ve({position:e,onInsert:t}){let n=Math.ceil(b.length/4),r=n*34+(n-1)*4+12,a=Math.min(Math.max(e.x-8,8),Math.max(8,window.innerWidth-220-8)),o=Math.min(e.y+2,Math.max(8,window.innerHeight-r-8));return(0,i.jsx)(`div`,{className:`cme-arrow-label-picker-popup`,style:{position:`fixed`,left:`${a}px`,top:`${o}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-label-picker-grid`,style:{gridTemplateColumns:`repeat(4, 48px)`},children:b.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-label-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:he(e,{groupId:`arrows`,isMathMode:!0,isChemMode:!1})},`${e.icon}-${e.title}`))})})}function ye({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-148);return(0,i.jsx)(`div`,{className:`cme-greek-italic-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-greek-italic-picker-grid`,children:x.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-greek-italic-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-greek-italic-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.label))})})}function be({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-308);return(0,i.jsx)(`div`,{className:`cme-blackboard-bold-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-blackboard-bold-picker-grid`,children:S.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-blackboard-bold-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-blackboard-bold-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function xe({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-348);return(0,i.jsx)(`div`,{className:`cme-fraktur-script-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-fraktur-script-picker-grid`,children:C.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-fraktur-script-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-fraktur-script-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function Se({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-248),r=Math.min(e.y+2,window.innerHeight-88);return(0,i.jsx)(`div`,{className:`cme-hebrew-symbol-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-hebrew-symbol-picker-grid`,children:w.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-hebrew-symbol-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-hebrew-symbol-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function Ce({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-612),r=Math.min(e.y+2,window.innerHeight-313),a=2*O+Math.floor(D/2),o=5*O+Math.floor(D/2),s=7*O+Math.floor(D/2),c=8*O+Math.floor(D/2),l=3*O;return(0,i.jsx)(`div`,{className:`cme-periodic-table-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsxs)(`div`,{className:`cme-periodic-table-board`,style:{width:`${k}px`,height:`${A}px`},children:[(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--vertical`,style:{left:`${a}px`,top:`${o}px`,height:`${c-o}px`}}),(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${a}px`,top:`${s}px`,width:`${l-a}px`}}),(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${a}px`,top:`${c}px`,width:`${l-a}px`}}),j.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-periodic-table-cell cme-periodic-table-cell--${e.tone}`,title:e.title,style:{left:`${(e.col-1)*O}px`,top:`${(e.row-1)*O}px`,width:`${D}px`,height:`${D}px`},onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:e.label},`${e.label}-${e.row}-${e.col}`))]})})}function we({position:e,options:t,value:n,onSelect:r,width:a=132}){let o=Math.min(Math.max(e.x,8),window.innerWidth-a-8),s=Math.max(8,Math.min(e.y+4,window.innerHeight-290));return(0,i.jsx)(`div`,{className:`cme-style-dropdown-popup`,style:{position:`fixed`,left:`${o}px`,top:`${s}px`,width:`${a}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:t.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-style-dropdown-option${n===e.value?` active`:``}`,onMouseDown:t=>{t.preventDefault(),r(e.value)},children:e.label},e.value))})}function Te(e){return class extends r.Plugin{init(){let t=this.editor;t.ui.componentFactory.add(`mathType`,()=>{let t=new r.ButtonView;return t.set({label:`Math`,icon:H,tooltip:`Insert Math Formula`}),t.on(`execute`,()=>e(`math`)),t}),t.ui.componentFactory.add(`chemType`,()=>{let t=new r.ButtonView;return t.set({label:`Chemistry`,icon:de,tooltip:`Insert Chemistry Formula`}),t.on(`execute`,()=>e(`chem`)),t})}}}function Ee({matrixType:t,x:n,y:r,onSelect:a,onMouseEnter:o,onMouseLeave:s}){let[c,l]=(0,e.useState)({r:2,c:2}),u={matrix:`Plain Matrix`,bmatrix:`Square Matrix`,pmatrix:`Parenthesis Matrix`,vmatrix:`Vertical Matrix`},d=(0,e.useCallback)((e,t)=>{let n=Number.parseInt(t,10);Number.isNaN(n)||l(t=>({...t,[e]:Math.min(20,Math.max(1,n))}))},[]);return(0,e.useEffect)(()=>{let e=e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),a(c.r,c.c))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[c.r,c.c,a]),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-popover ck-only`,style:{top:`${r}px`,left:`${n}px`},onMouseDown:e=>e.stopPropagation(),onMouseEnter:o,onMouseLeave:s,children:[(0,i.jsxs)(`div`,{className:`cme-matrix-hover-title-wrap`,children:[(0,i.jsx)(`div`,{className:`cme-matrix-hover-title`,children:u[t]||`Matrix`}),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-subtitle`,children:[c.r,` × `,c.c]})]}),(0,i.jsx)(`div`,{className:`cme-matrix-hover-grid`,children:Array.from({length:6}).map((e,t)=>(0,i.jsx)(`div`,{className:`cme-matrix-hover-row`,children:Array.from({length:6}).map((e,n)=>(0,i.jsx)(`div`,{className:`cme-matrix-hover-cell${t<c.r&&n<c.c?` selected`:``}`,onMouseEnter:()=>l({r:t+1,c:n+1}),onClick:e=>{e.preventDefault(),e.stopPropagation(),a(t+1,n+1)}},`${t}-${n}`))},t))}),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-footer`,children:[(0,i.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,i.jsx)(`span`,{className:`cme-counter-label`,children:`R`}),(0,i.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:c.r,className:`cme-counter-input`,onChange:e=>d(`r`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,i.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,r:Math.min(20,e.r+1)})),children:`+`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,r:Math.max(1,e.r-1)})),children:`-`})]})]}),(0,i.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,i.jsx)(`span`,{className:`cme-counter-label`,children:`C`}),(0,i.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:c.c,className:`cme-counter-input`,onChange:e=>d(`c`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,i.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,c:Math.min(20,e.c+1)})),children:`+`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,c:Math.max(1,e.c-1)})),children:`-`})]})]})]})]})}function G({mode:n,onInsert:r,onClose:a,initialLatex:o,initialDirection:c=`ltr`,isEditing:l}){let u=(0,e.useRef)(null),d=(0,e.useRef)(null),f=(0,e.useRef)(null),p=(0,e.useRef)(null),m=(0,e.useRef)(()=>{}),h=(0,e.useRef)(null),[_,v]=(0,e.useState)(0),[y,b]=(0,e.useState)(null),[x,S]=(0,e.useState)(null),[C,w]=(0,e.useState)(null),[T,E]=(0,e.useState)(null),[D,O]=(0,e.useState)(null),[k,A]=(0,e.useState)(null),[j,N]=(0,e.useState)(null),[P,F]=(0,e.useState)(null),[le,I]=(0,e.useState)(null),[L,R]=(0,e.useState)(null),[z,B]=(0,e.useState)(null),[V,ue]=(0,e.useState)(null),[H,de]=(0,e.useState)(`normal`),[U,W]=(0,e.useState)(null),[me,Te]=(0,e.useState)(!1),[G,De]=(0,e.useState)(c===`rtl`),[K,Oe]=(0,e.useState)(``),[ke,Ae]=(0,e.useState)(``),je=n===`math`?oe:se,q=n===`math`,Me=n===`chem`,J=q||Me,Y=je[_]||{},Ne=q&&Y.id?` cme-symbol-subgroup--tab-${Y.id}`:``,Pe=(0,e.useMemo)(()=>fe.map(e=>({...e,normalized:pe(e.value)||e.value.toLowerCase()})),[]),[X,Fe]=(0,e.useState)({bold:!1,italic:!1,boldItalic:!1,color:`none`,fontOption:``,fontSize:`auto`}),[Z,Ie]=(0,e.useState)(`western`),[Le,Re]=(0,e.useState)(`thin`),ze=(0,e.useCallback)((e,t)=>{let n=d.current,r=n?.offsetWidth||720,i=n?.offsetHeight||384,a=Math.max(12,window.innerWidth-r-12),o=Math.max(12,window.innerHeight-i-12);return{x:Math.min(Math.max(12,e),a),y:Math.min(Math.max(12,t),o)}},[]),Be=(0,e.useCallback)(()=>{m.current(),m.current=()=>{},p.current=null,Te(!1)},[]);(0,e.useEffect)(()=>()=>Be(),[Be]),(0,e.useEffect)(()=>{f.current=U},[U]),(0,e.useEffect)(()=>{H===`minimized`&&(b(null),S(null),w(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),ue(null))},[H]),(0,e.useEffect)(()=>{if(H===`maximized`)return;let e=()=>{let e=d.current;if(!e)return;let t=f.current;if(t){let e=ze(t.x,t.y);f.current=e,W(e);return}let n=e.getBoundingClientRect(),r=ze(window.innerWidth-n.width-24,window.innerHeight-n.height-24);f.current=r,W(r)},t=requestAnimationFrame(e),n=d.current,r=t=>{t.target===n&&(t.propertyName!==`width`&&t.propertyName!==`height`||e())};return n?.addEventListener(`transitionend`,r),()=>{cancelAnimationFrame(t),n?.removeEventListener(`transitionend`,r)}},[ze,H]),(0,e.useEffect)(()=>{if(H===`maximized`)return;let e=()=>{let e=f.current;if(!e)return;let t=ze(e.x,e.y);f.current=t,W(t)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[ze,H]);let Ve=(0,e.useCallback)(e=>{if(H===`maximized`||e.button!==void 0&&e.button!==0||e.target.closest(`.cme-popup-actions`))return;let t=d.current;if(!t)return;e.preventDefault(),Te(!0);let n=t.getBoundingClientRect(),r=f.current||{x:n.left,y:n.top};f.current=r,W(r),p.current={offsetX:e.clientX-n.left,offsetY:e.clientY-n.top};let i=e=>{if(!p.current)return;e.preventDefault();let t=ze(e.clientX-p.current.offsetX,e.clientY-p.current.offsetY);f.current=t,W(t)},a=()=>Be();m.current=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a)},window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)},[ze,Be,H]);(0,e.useEffect)(()=>{De(c===`rtl`)},[c]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=G?`rtl`:`ltr`;e.setAttribute(`dir`,t),e.style.direction=t,e.style.textAlign=G?`right`:`left`,e.style.unicodeBidi=G?`plaintext`:`normal`},[G]);let Q=(0,e.useCallback)(()=>{let e=u.current;if(!(!e||typeof e.queryStyle!=`function`))try{let t=e.queryStyle({variantStyle:`bolditalic`})===`all`,n=t||e.queryStyle({fontSeries:`b`})===`all`||e.queryStyle({variantStyle:`bold`})===`all`,r=t||e.queryStyle({fontShape:`it`})===`all`||e.queryStyle({variantStyle:`italic`})===`all`,i=M.find(({style:t})=>Object.entries(t).every(([t,n])=>e.queryStyle({[t]:n})===`all`))||null,a=ne.find(({value:t})=>e.queryStyle({fontSize:parseInt(t,10)})===`all`)?.value||`auto`,o=pe(K),s=[...new Set(Pe.flatMap(e=>[e.normalized,e.value]).concat(X.color===`none`?[]:[X.color]).concat(o?[o,K.trim()]:[]).filter(Boolean))].find(t=>e.queryStyle({color:t})===`all`),c=s?pe(s)||s:`none`;Fe({bold:n,italic:r,boldItalic:t,fontOption:i?.value||``,fontSize:String(a),color:c})}catch(e){console.warn(`Failed to query active styles:`,e)}},[X.color,Pe,K]),He=(0,e.useCallback)(e=>{let t=u.current;if(!t||typeof t.applyStyle!=`function`)return;let n=!!e.bold,r=!!e.italic,i=n&&r?`bolditalic`:n?`bold`:r?`italic`:`up`;t.applyStyle({variantStyle:i,fontSeries:n?`b`:`m`,fontShape:r?`it`:`n`}),t.applyStyle({color:e.color===`none`?`none`:e.color}),t.applyStyle(te);let a=M.find(({value:t})=>t===e.fontOption);if(a&&t.applyStyle(a.style),e.fontSize!==`auto`){let n=parseInt(e.fontSize,10);t.applyStyle({fontSize:n,size:n})}},[]),Ue=(0,e.useCallback)((e,t)=>{let n=u.current;n&&(n.focus(),He({...X,bold:e,italic:t,boldItalic:e&&t}),requestAnimationFrame(Q))},[X,He,Q]),We=(0,e.useCallback)(e=>{let t=u.current;if(!t||typeof t.applyStyle!=`function`)return!1;let n=e===`none`?`none`:pe(e);if(e!==`none`&&!n)return Ae(`Enter a valid hex code or CSS color name.`),!1;let r=e===`none`?`none`:n;return t.focus(),t.applyStyle({color:r}),Fe(e=>({...e,color:r})),Oe(r===`none`?``:r),Ae(``),requestAnimationFrame(Q),!0},[Q]),Ge=(0,e.useCallback)((e,t)=>{let n=u.current;if(!(!n||typeof n.applyStyle!=`function`)){if(n.focus(),e===`font`){n.applyStyle(te);let e=M.find(e=>e.value===t);e&&n.applyStyle(e.style),Fe(e=>({...e,fontOption:t}))}else{let e=t?parseInt(t,10):`auto`;n.applyStyle({fontSize:e,size:e}),Fe(e=>({...e,fontSize:t||`auto`}))}requestAnimationFrame(Q)}},[Q]);(0,e.useEffect)(()=>{if(!y&&!z&&!V&&!C&&!T&&!D&&!k&&!j&&!P&&!le&&!L)return;let e=e=>{!e.target.closest(`.cme-matrix-hover-popover`)&&!e.target.closest(`.cme-matrix-btn-wrapper`)&&b(null),!e.target.closest(`.cme-color-picker-popup`)&&!e.target.closest(`[title="Text Color"]`)&&B(null),!e.target.closest(`.cme-style-dropdown-popup`)&&!e.target.closest(`.cme-style-select-trigger`)&&ue(null),!e.target.closest(`.cme-arrow-picker-popup`)&&!e.target.closest(`.arrow-picker-tool`)&&w(null),!e.target.closest(`.cme-relation-more-picker-popup`)&&!e.target.closest(`.relation-more-picker-tool`)&&E(null),!e.target.closest(`.cme-arrow-label-picker-popup`)&&!e.target.closest(`.arrow-label-picker-tool`)&&O(null),!e.target.closest(`.cme-greek-italic-picker-popup`)&&!e.target.closest(`.greek-italic-picker-tool`)&&A(null),!e.target.closest(`.cme-blackboard-bold-picker-popup`)&&!e.target.closest(`.blackboard-bold-picker-tool`)&&N(null),!e.target.closest(`.cme-fraktur-script-picker-popup`)&&!e.target.closest(`.fraktur-script-picker-tool`)&&F(null),!e.target.closest(`.cme-hebrew-symbol-picker-popup`)&&!e.target.closest(`.hebrew-symbol-picker-tool`)&&I(null),!e.target.closest(`.cme-periodic-table-picker-popup`)&&!e.target.closest(`.periodic-table-picker-tool`)&&R(null)};return window.addEventListener(`mousedown`,e,!0),window.addEventListener(`pointerdown`,e,!0),()=>{window.removeEventListener(`mousedown`,e,!0),window.removeEventListener(`pointerdown`,e,!0)}},[y,z,V,C,T,D,k,j,P,le,L]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;e.defaultMode=n===`chem`?`text`:`math`,e.letterShapeStyle=`upright`;let t=()=>{let t=o||``;if(n===`chem`&&t){let e=t.match(/^\\ce\{([\s\S]*)\}$/);e&&(t=e[1])}e.setValue?e.setValue(t,{silenceNotifications:!0}):e.value=t,requestAnimationFrame(()=>e.focus())};customElements.get(`math-field`)?requestAnimationFrame(t):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(t))},[n,o]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>e.getValue?e.getValue():e.value||``,n=()=>{try{if(typeof e.executeCommand==`function`)for(let t of[`moveToMathFieldStart`,`moveToMathfieldStart`,`moveToStart`])try{e.executeCommand(t);return}catch{}}catch{}try{typeof e.setSelectionRange==`function`&&e.setSelectionRange(0,0)}catch{}},r=t=>{typeof e.setValue==`function`?e.setValue(t):e.value=t,requestAnimationFrame(()=>{e.focus?.(),n(),Q()})},i=n=>{let i=n.key.length===1&&n.key!==` `&&!n.ctrlKey&&!n.metaKey&&!n.altKey,a=/^\d$/.test(n.key)&&!n.ctrlKey&&!n.metaKey&&!n.altKey;if(Le===`negativeThin`&&i){n.preventDefault();let i=Z!==`western`&&a?ee(n.key,Z):n.key;G?r(`\\!${i}${t()}`):e.executeCommand([`insert`,`\\!${i}`]);return}if(Z!==`western`&&a){n.preventDefault();let i=ee(n.key,Z);G?r(`${i}${t()}`):e.executeCommand([`insert`,i]);return}if(n.key===` `){n.preventDefault();let i=Le===`negativeThin`?`\\!`:`\\, `;G?r(`${i}${t()}`):e.executeCommand([`insert`,i]);return}else if(n.key===`Enter`){n.preventDefault(),G?r(`\\\\${t()}`):e.executeCommand([`insert`,`\\\\`]),setTimeout(()=>{He(X),Q()},10);return}if(G&&n.key===`Backspace`){n.preventDefault(),r(t().slice(1));return}G&&i&&(n.preventDefault(),r(`${n.key}${t()}`))};return e.addEventListener(`keydown`,i),()=>e.removeEventListener(`keydown`,i)},[n,X,He,Q,G,Z,Le]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>{setTimeout(()=>{let t=e.shadowRoot;if(!t)return;let n=t.querySelector(`.ML__caret`)||t.querySelector(`[class*="caret"]`);n&&n.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`}),Q()},0)};return e.addEventListener(`selection-change`,t),e.addEventListener(`input`,t),e.addEventListener(`keydown`,t),setTimeout(Q,50),()=>{e.removeEventListener(`selection-change`,t),e.removeEventListener(`input`,t),e.removeEventListener(`keydown`,t)}},[Q]);let $=(0,e.useCallback)(e=>{let t=u.current;if(!t)return;let n=/#(?:0|\?)/.test(e);t.focus(),typeof t.insert==`function`?t.insert(e,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:n?`placeholder`:`after`}):t.executeCommand([`insert`,e]),requestAnimationFrame(()=>t.focus?.())},[]),Ke=(0,e.useCallback)(e=>{let t=u.current;if(t){if(t.focus(),e===`\\hphantom{0}`){t.executeCommand([`insert`,`\\hphantom{0}`]);return}if(e===`\\,`){Re(`thin`),t.executeCommand([`insert`,`\\,`]);return}e===`\\!`&&(Re(`negativeThin`),t.executeCommand([`insert`,`\\!`]))}},[]),qe=(0,e.useCallback)(e=>{let t=u.current,n=re[e];if(!t||!n)return;let r=t.selection||t.model?.selection;if(!(r&&Array.isArray(r.ranges)&&r.ranges.length>0&&r.ranges.some(([e,t])=>e!==t))){h.current=null;return}if(t.focus(),`selection`in t)try{t.selection=r}catch{}let i=typeof t.getValue==`function`?t.getValue(r,`latex`)||``:t.model?.getValue?.(r,`latex`)||``;if(!i){h.current=null;return}let a=ie(i),o=h.current,s=a.baseLatex,c=o?.baseLatex===s,l=c?o.offsetX:a.offsetX,d=c?o.offsetY:a.offsetY,f=l+n.x,p=d+n.y,m=ae(s,f,p);if(h.current={baseLatex:s,offsetX:f,offsetY:p},typeof t.insert==`function`){t.insert(m,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:`item`});return}t.executeCommand([`insert`,m])},[]),Je=(0,e.useCallback)((e,t,n)=>{let r=`\\begin{${e}} `;for(let e=0;e<t;e++){for(let e=0;e<n;e++)r+=`#?`,e<n-1&&(r+=` & `);e<t-1&&(r+=` \\\\ `)}r+=` \\end{${e}}`,$(r)},[$]),Ye=()=>{let e=u.current;if(!e)return;let t=e.getValue?e.getValue():e.value;if(!t||t.trim()===``){a();return}n===`chem`&&(t=ce(t)),r(t,{direction:G?`rtl`:`ltr`}),e.setValue?e.setValue(``):e.value=``,a()},Xe=H!==`maximized`&&U?{left:`${U.x}px`,top:`${U.y}px`,right:`auto`,bottom:`auto`}:void 0;return(0,i.jsxs)(`div`,{ref:d,className:`cme-editor-popup ${H}${me?` dragging`:``}`,style:Xe,onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsxs)(`div`,{className:`cme-popup-header`,onPointerDown:Ve,children:[(0,i.jsx)(`span`,{children:n===`math`?`MathType`:`ChemType`}),(0,i.jsxs)(`div`,{className:`cme-popup-actions`,onPointerDown:e=>e.stopPropagation(),children:[(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":H===`minimized`?`Restore window`:`Minimize window`,onClick:()=>de(e=>e===`minimized`?`normal`:`minimized`),children:H===`minimized`?`+`:`-`}),(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":H===`maximized`?`Restore window`:`Maximize window`,onClick:()=>de(e=>e===`maximized`?`normal`:`maximized`),children:H===`maximized`?`o`:`⤢ `}),(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-close`,onClick:()=>{Be(),a()},children:`x`})]})]}),(0,i.jsxs)(`div`,{className:`cme-toolbar`,role:`toolbar`,"aria-label":`Symbol palette`,children:[(0,i.jsx)(`div`,{className:`cme-toolbar-groups`,children:je.map((e,t)=>(0,i.jsx)(`button`,{className:`cme-group-tab${J?` cme-group-tab--popup`:``}${q?` cme-group-tab--math`:``}${Me?` cme-group-tab--chem`:``}${_===t?` active`:``}`,type:`button`,onClick:()=>{v(t),b(null)},children:(0,i.jsx)(`span`,{className:`cme-group-tab-label`,children:e.label})},e.id||t))}),(0,i.jsx)(`div`,{className:`cme-toolbar-items${_===0&&q?` cme-toolbar-items--first-tab`:``}${Y.id===`greek`?` cme-toolbar-items--greek`:``}${Y.id===`relations`?` cme-toolbar-items--relations`:``}${Y.id===`arrows`?` cme-toolbar-items--arrows`:``}${Y.id===`brackets`?` cme-toolbar-items--brackets`:``}${Y.id===`matrix`?` cme-toolbar-items--matrix`:``}${J?` cme-toolbar-items--popup-compact`:``}`,children:(()=>{let e=Y.items||[];if(Y.id===`greek`){let t=e.reduce((e,t)=>{let n=t.category||`Greek Letters`;return e[n]||(e[n]=[]),e[n].push(t),e},{}),n={"Lowercase Greek Letters":{cols:10,rows:3},"Greek Letter Picker":{cols:1,rows:3},"Blackboard Bold / Number Sets":{cols:2,rows:3},"Blackboard Bold Picker":{cols:1,rows:3},"Fraktur Symbols":{cols:1,rows:3},"Script Symbols":{cols:1,rows:3},"Fraktur / Script Picker":{cols:1,rows:3},"Hebrew Mathematical Symbols":{cols:1,rows:3},"Hebrew Symbol Picker":{cols:1,rows:3},"Arabic-Indic Numeral Systems":{cols:1,rows:3},"Periodic Table Symbols":{cols:2,rows:3},"Periodic Table Picker":{cols:1,rows:3}},r=Object.entries(t);return(0,i.jsx)(`div`,{className:`cme-greek-panel`,children:r.map(([e,t],a)=>{let o=n[e]||{cols:2,rows:Math.max(1,Math.ceil(t.length/2))},s=o.cols,c=o.rows,l=t.every(e=>e.cls?.includes(`arrow-picker-tool`)),d=r[a+1]?.[1]||[],f=d.length>0&&d.every(e=>e.cls?.includes(`arrow-picker-tool`));return(0,i.jsx)(`section`,{className:`cme-symbol-subgroup cme-greek-subgroup${e===`Fraktur Symbols`?` cme-greek-subgroup--no-right-border`:``}${l?` cme-greek-subgroup--picker`:``}${f?` cme-greek-subgroup--before-picker`:``}${J?` cme-symbol-subgroup--compact`:``}${Ne}`,style:{gridTemplateColumns:`repeat(${s}, auto)`,gridTemplateRows:`repeat(${c}, auto)`,"--cme-greek-rows":`repeat(${c}, auto)`},children:t.map((t,n)=>{let r=Y,a=`${r.id||r.label||_}-${e}-${n}-${t.insert||t.action||t.label}`,o=t.action===`GREEK_ITALIC_PICKER`,s=t.action===`BLACKBOARD_BOLD_PICKER`,c=t.action===`FRAKTUR_SCRIPT_PICKER`,l=t.action===`HEBREW_SYMBOL_PICKER`,d=t.action===`PERIODIC_TABLE_PICKER`,f=t.action===`ARABIC_INDIC_NUMERALS`,p=t.action===`EASTERN_ARABIC_INDIC_NUMERALS`,m=o?!!k:s?!!j:c?!!P:l?!!le:d?!!L:f?Z===`arabicIndic`:p?Z===`easternArabicIndic`:!1;return(0,i.jsx)(`button`,{type:`button`,className:`cme-btn cme-greek-btn${J?` cme-btn--compact`:``}${t.cls?` ${t.cls}`:``}${m?` active`:``}`,title:t.title||t.insert,onMouseDown:e=>{if(e.preventDefault(),t.action===`GREEK_ITALIC_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),N(null),F(null),I(null),R(null),A(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),F(null),I(null),R(null),N(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`FRAKTUR_SCRIPT_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),N(null),I(null),R(null),F(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),N(null),F(null),R(null),I(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),N(null),F(null),I(null),R(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`ARABIC_INDIC_NUMERALS`){w(null),O(null),B(null),S(null),A(null),N(null),F(null),I(null),R(null),Ie(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>u.current?.focus?.());return}if(t.action===`EASTERN_ARABIC_INDIC_NUMERALS`){w(null),O(null),B(null),S(null),A(null),N(null),F(null),I(null),R(null),Ie(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>u.current?.focus?.());return}$(t.insert)},children:he(t,{groupId:r.id,isMathMode:q,isChemMode:Me})},a)})},e)})})}let t=e.some(e=>e.type===`sep`),n=[];if(t){let t={cols:2,items:[]};for(let r of e)r.type===`sep`?(t.items.length>0&&n.push(t),t={cols:r.cols||2,items:[]}):t.items.push(r);if(t.items.length>0&&n.push(t),Y.id===`relations`&&(n=n.map(e=>({...e,cols:Math.max(1,Math.ceil(e.items.length/3))}))),Y.id===`roots-main`){let[e=[],t=[],r=[],i=[],a=[],o=[],s=[],c=[],l=[],u=[]]=n.map(e=>e.items||[]),d=(e,t)=>t.map(t=>e[t]).filter(Boolean);n=[{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(e,[0,2,1,3])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(t,[0,1])},{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(r,[0,2,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(i,[0,4,2,5,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(a,[0,1,5,4,3,2])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:[]},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(o,[0,1,2])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(s,[1,3,0,4,2,5])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--format`,items:d(c,[0,5,1,3,2,4])},{cols:1,rows:1,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(l,[0])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--dropdown`,items:d(u,[0,1])}].filter(e=>e.items.length>0)}if(Y.id===`arrows`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`ARROW_PICKER`&&e?.action!==`ARROW_LABEL_PICKER`),picker:e.find(e=>e?.action===`ARROW_PICKER`||e?.action===`ARROW_LABEL_PICKER`)||null}),c=s(e),l=s(i);n=[{cols:3,trackCols:6,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(c.regular,[1,0,2,4,3,5,6,7])},c.picker?{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[c.picker]}:null,{cols:2,trackCols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup`,items:o(t,[0,1,2,3,4])},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--stack`,items:o(r,[0,1,2])},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[l.picker]}:null,{cols:2,trackCols:2,rows:2,flow:`row`,equalColumns:!0,stretchLastRow:!0,className:` cme-arrows-subgroup`,items:o(a,[0,1,2,3])}].filter(e=>e&&e.items.length>0)}if(Y.id===`brackets`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`RELATION_MORE_PICKER`),picker:e.find(e=>e?.action===`RELATION_MORE_PICKER`)||null}),c=s(e),l=s(i),u=s(a),d=o(r,[0,1,2,3,4,5,6,7]);d[6]&&={...d[6],gridColumn:`2`},n=[{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(c.regular,[0,2,4,1,3,5])},c.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[c.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:o(t,[0,2,1,3])},{cols:3,rows:3,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:d},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[l.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(u.regular,[0,2,1,3])},u.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[u.picker]}:null].filter(e=>e&&e.items.length>0)}}else for(let t=0;t<e.length;t+=4)n.push({cols:2,items:e.slice(t,t+4)});return n.map((e,t)=>{let n=e.cols||1,r=e.trackCols||n,a=e.items.length,o=n>0?a%n:0,s=o===0?n:o,c=a-s,l=Math.max(1,Math.floor(r/n));return(0,i.jsx)(`div`,{className:`cme-symbol-subgroup${e.className||``}${J?` cme-symbol-subgroup--compact`:``}${Ne}`,style:{gridTemplateColumns:`repeat(${r}, ${e.equalColumns?`minmax(0, 1fr)`:`auto`})`,gridTemplateRows:`repeat(${e.rows||Math.ceil(e.items.length/n)}, auto)`,gridAutoFlow:e.flow||`column`,...e.rows?{"--cme-subgroup-rows":`repeat(${e.rows}, minmax(0, 1fr))`}:{}},children:e.items.map((o,d)=>{let f=e.stretchLastRow&&a>0&&d>=c&&s<n?`span ${Math.max(1,Math.floor(r/s))}`:l>1?`span ${l}`:void 0,p=Y,m=p.id||p.label||_,h=`${m}-${t*4+d}-${o.insert||o.action||o.label}`;if(o.type===`dropdown`){let t=o.label===`Font...`,n=o.label===`Size`,r=t&&X.fontOption!==``,a=n&&X.fontSize!==`auto`&&X.fontSize!==`5`,s=t?X.fontOption:n?X.fontSize===`auto`||X.fontSize===`5`?``:X.fontSize:``,c=(t?M:ne).find(e=>e.value===s)?.label||o.label,l=V?.buttonKey===h;return(0,i.jsx)(`button`,{type:`button`,className:`cme-style-select-trigger cme-select cme-btn template${r||a||l?` active`:``}`,title:o.label,style:{width:o.width||`60px`,boxSizing:`border-box`,margin:`2px 0`,gridColumn:o.gridColumn||f||(e.cols===3||e.cols===1?`span 1`:`span 2`),gridRow:o.gridRow},onMouseDown:e=>{e.preventDefault(),e.stopPropagation();let n=e.currentTarget.getBoundingClientRect();ue(e=>e?.buttonKey===h?null:{x:n.left,y:n.bottom,type:t?`font`:`size`,buttonKey:h})},children:c},d)}if(p.isMatrix&&!o.directInsert&&!o.action)return(0,i.jsx)(`div`,{className:`cme-matrix-btn-wrapper`,children:(0,i.jsx)(`button`,{type:`button`,className:`cme-btn template${J?` cme-btn--compact`:``}${o.cls?` ${o.cls}`:``}${y?.type===o.insert?` active`:``}`,title:o.insert,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),y?.type===o.insert)b(null);else{let t=e.currentTarget.getBoundingClientRect();b({type:o.insert,x:t.left+t.width/2,y:t.bottom})}},children:he(o,{groupId:p.id,isMathMode:q,isChemMode:Me})})},d);let g=o.action===`BOLD`,v=o.action===`ITALIC`,x=o.action===`BOLD_ITALIC`,k=o.action===`TEXT_COLOR`,te=o.action===`TOGGLE_RTL`,re=o.action===`ARROW_PICKER`,ie=o.action===`RELATION_MORE_PICKER`,ae=o.action===`ARROW_LABEL_PICKER`,oe=o.action===`BLACKBOARD_BOLD_PICKER`,se=o.action===`FRAKTUR_SCRIPT_PICKER`,ce=o.action===`HEBREW_SYMBOL_PICKER`,z=o.action===`PERIODIC_TABLE_PICKER`,H=g&&X.bold&&!X.italic||v&&X.italic&&!X.bold||x&&X.boldItalic||te&&G||re&&!!C||ie&&T?.picker===o.picker||ae&&!!D||oe&&!!j||se&&!!P||ce&&!!le||z&&!!L||k&&X.color!==`none`;return(0,i.jsx)(`button`,{type:`button`,className:`cme-btn${p.isTemplate?` template`:``}${J?` cme-btn--compact`:``}${o.cls?` ${o.cls}`:``}${H?` active`:``}`,title:o.title||o.insert,style:o.gridColumn||o.gridRow||f?{gridColumn:o.gridColumn||f,gridRow:o.gridRow}:void 0,onMouseDown:e=>{e.preventDefault();let t=u.current;if(o.action===`SPECIAL_CHARS`){let t=e.currentTarget.getBoundingClientRect();w(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),S({x:t.left,y:t.bottom+4})}else if(o.action===`ARROW_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),w(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`RELATION_MORE_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),E(e=>e?.picker===o.picker?null:{x:t.left,y:t.bottom+4,picker:o.picker})}else if(o.action===`ARROW_LABEL_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),E(null),A(null),N(null),F(null),I(null),R(null),B(null),O(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),F(null),I(null),R(null),N(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`FRAKTUR_SCRIPT_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),N(null),I(null),R(null),F(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),N(null),F(null),R(null),I(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),N(null),F(null),I(null),R(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`TEXT_COLOR`){let t=e.currentTarget.getBoundingClientRect();w(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),Oe(X.color===`none`?``:X.color),Ae(``),B({x:t.left,y:t.bottom+4})}else if(o.action===`TOGGLE_RTL`)De(e=>!e),requestAnimationFrame(()=>u.current?.focus?.());else if(o.action===`BOLD`)Ue(!X.bold,X.italic);else if(o.action===`BOLD_ITALIC`){let e=!X.boldItalic;Ue(e,e)}else if(o.action===`CUT`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{}),t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.())}else if(o.action===`COPY`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{})}else o.action===`PASTE`?navigator.clipboard?.readText&&navigator.clipboard.readText().then(e=>{e&&$(ee(e,Z))}).catch(()=>{}):o.action===`ARABIC_INDIC_NUMERALS`?(Ie(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>u.current?.focus?.())):o.action===`EASTERN_ARABIC_INDIC_NUMERALS`?(Ie(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>u.current?.focus?.())):o.action===`MOVE_TEXT_UP`?qe(`up`):o.action===`MOVE_TEXT_RIGHT`?qe(`right`):o.action===`MOVE_TEXT_LEFT`?qe(`left`):o.action===`MOVE_TEXT_DOWN`?qe(`down`):o.action===`BLACKBOARD`?$(`\\mathbb{#0}`):o.action===`GREEK`?$(`\\Omega`):o.action===`TILDE`?$(`\\widetilde{#0}`):o.action===`ITALIC`?Ue(X.bold,!X.italic):o.action===`TEXT`?$(`\\text{#0}`):o.action===`UNDO`?u.current?.executeCommand(`undo`):o.action===`REDO`?u.current?.executeCommand(`redo`):o.action===`CLEAR`?t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.()):o.insert===`\\hphantom{0}`||o.insert===`\\,`||o.insert===`\\!`?Ke(o.insert):$(o.insert)},children:he(o,{groupId:p.id,isMathMode:q,isChemMode:Me})},`${m}-${t*4+d}`)})},t)})})()})]}),(0,i.jsx)(`div`,{className:`cme-mathfield-container${G?` cme-mathfield-container--rtl`:``}`,onMouseDown:e=>{u.current&&(e.target===u.current||u.current.contains(e.target))||(e.preventDefault(),requestAnimationFrame(()=>{u.current?.focus?.()}))},children:(0,i.jsx)(`math-field`,{ref:u,class:`cme-mathfield${G?` cme-mathfield--rtl`:``}`,dir:G?`rtl`:`ltr`,"letter-shape-style":`upright`,tabIndex:0,"math-virtual-keyboard-policy":`manual`,placeholder:``})}),(0,i.jsxs)(`div`,{className:`cme-popup-footer`,children:[(0,i.jsx)(`button`,{type:`button`,className:`cme-insert-btn`,onClick:Ye,children:l?`Update`:`Insert`}),(0,i.jsx)(`button`,{type:`button`,className:`cme-cancel-btn`,onClick:a,children:`Cancel`})]}),y&&(0,i.jsx)(Ee,{matrixType:y.type,x:y.x,y:y.y,onSelect:(e,t)=>{Je(y.type,e,t),b(null)},onMouseEnter:()=>{},onMouseLeave:()=>{}}),x&&(0,t.createPortal)((0,i.jsx)(s,{isOpen:!!x,position:x,onClose:()=>S(null),onInsert:e=>{$(e),S(null)}}),document.body),C&&(0,t.createPortal)((0,i.jsx)(ge,{position:C,onInsert:e=>{$(e),w(null)}}),document.body),T&&(0,t.createPortal)((0,i.jsx)(_e,{position:T,picker:T.picker,popupBounds:d.current?.getBoundingClientRect?.()||null,items:g[T.picker]||[],onInsert:e=>{$(e),E(null)}}),document.body),D&&(0,t.createPortal)((0,i.jsx)(ve,{position:D,onInsert:e=>{$(e),O(null)}}),document.body),k&&(0,t.createPortal)((0,i.jsx)(ye,{position:k,onInsert:e=>{$(e),A(null)}}),document.body),j&&(0,t.createPortal)((0,i.jsx)(be,{position:j,onInsert:e=>{$(e),N(null)}}),document.body),P&&(0,t.createPortal)((0,i.jsx)(xe,{position:P,onInsert:e=>{$(e),F(null)}}),document.body),le&&(0,t.createPortal)((0,i.jsx)(Se,{position:le,onInsert:e=>{$(e),I(null)}}),document.body),L&&(0,t.createPortal)((0,i.jsx)(Ce,{position:L,onInsert:e=>{$(e),R(null)}}),document.body),V&&(0,t.createPortal)((0,i.jsx)(we,{position:V,options:V.type===`font`?M:ne,value:V.type===`font`?X.fontOption:X.fontSize,width:V.type===`font`?142:96,onSelect:e=>{Ge(V.type,e),ue(null)}}),document.body),z&&(0,t.createPortal)((0,i.jsxs)(`div`,{className:`cme-color-picker-popup`,style:{position:`fixed`,left:Math.min(z.x,window.innerWidth-260)+`px`,top:Math.min(z.y,window.innerHeight-235)+`px`,zIndex:1e5,width:`244px`,background:`linear-gradient(180deg, #ffffff 0%, #f6fafc 100%)`,border:`1px solid #c8d4dc`,padding:`12px`,display:`flex`,flexDirection:`column`,gap:`10px`,borderRadius:`10px`,boxShadow:`0 16px 28px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08)`},children:[(0,i.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`10px`},children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`div`,{style:{fontSize:`12px`,fontWeight:700,color:`#1f2f37`,lineHeight:1.1},children:`Text Color`}),(0,i.jsx)(`div`,{style:{fontSize:`10px`,color:`#667b88`,marginTop:`2px`},children:`Pick a swatch or enter a custom value`})]}),(0,i.jsx)(`div`,{style:{width:`28px`,height:`28px`,borderRadius:`8px`,border:`1px solid #b8c8d2`,background:X.color===`none`?`linear-gradient(135deg, #ffffff 0%, #eef3f7 100%)`:pe(K)||X.color,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.8)`},title:X.color===`none`?`No color selected`:X.color})]}),(0,i.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(6, 1fr)`,gap:`6px`,padding:`8px`,border:`1px solid #d7e1e8`,borderRadius:`8px`,background:`rgba(255,255,255,0.78)`},children:Pe.map(e=>{let t=X.color===e.normalized;return(0,i.jsx)(`div`,{title:e.label,style:{width:`22px`,height:`22px`,backgroundColor:e.value,cursor:`pointer`,border:t?`2px solid #d6a528`:`1px solid rgba(31, 47, 55, 0.22)`,borderRadius:`6px`,boxSizing:`border-box`,boxShadow:t?`0 0 0 2px rgba(214, 165, 40, 0.16)`:`inset 0 1px 0 rgba(255,255,255,0.6)`},onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),We(e.normalized)&&B(null)}},e.normalized)})}),(0,i.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,i.jsx)(`div`,{style:{fontSize:`10px`,fontWeight:700,color:`#5f7481`,letterSpacing:`0.04em`,textTransform:`uppercase`},children:`Custom Value`}),(0,i.jsx)(`input`,{type:`text`,value:K,placeholder:`#2c8a43 or tomato`,style:{width:`100%`,minWidth:0,height:`32px`,border:`1px solid ${ke?`#dc2626`:`#b7c7d1`}`,borderRadius:`8px`,padding:`0 10px`,fontSize:`12px`,color:`#22343d`,background:`#fff`,boxSizing:`border-box`,outline:`none`},onChange:e=>{Oe(e.target.value),ke&&Ae(``)},onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),We(K)&&B(null))}})]}),(0,i.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,i.jsx)(`button`,{type:`button`,style:{flex:1,border:`1px solid #7a92a1`,borderRadius:`8px`,background:`linear-gradient(180deg, #8ea3b0 0%, #738d9d 100%)`,color:`#fff`,fontSize:`11px`,fontWeight:600,height:`30px`,minWidth:0,padding:`0 10px`,cursor:`pointer`},onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),We(K)&&B(null)},children:`Apply Color`}),(0,i.jsx)(`button`,{type:`button`,style:{width:`32px`,minWidth:`32px`,border:`1px solid #c4d0d8`,borderRadius:`8px`,background:`#ffffff`,color:`#647987`,fontSize:`12px`,fontWeight:700,height:`30px`,padding:0,cursor:`pointer`},title:`Clear color`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),We(`none`),B(null)},children:`×`})]}),ke?(0,i.jsx)(`div`,{style:{fontSize:`10px`,color:`#b91c1c`,lineHeight:1.2,marginTop:`-2px`},children:ke}):null]}),document.body)]})}function De(e){let t=e,n=t.match(/^\\ce\{([\s\S]*)\}$/);n&&(t=n[1]);let r=[[`\\varepsilon`,`ε`],[`\\varphi`,`φ`],[`\\alpha`,`α`],[`\\beta`,`β`],[`\\gamma`,`γ`],[`\\delta`,`δ`],[`\\epsilon`,`ε`],[`\\zeta`,`ζ`],[`\\eta`,`η`],[`\\theta`,`θ`],[`\\iota`,`ι`],[`\\kappa`,`κ`],[`\\lambda`,`λ`],[`\\mu`,`μ`],[`\\nu`,`ν`],[`\\xi`,`ξ`],[`\\pi`,`π`],[`\\rho`,`ρ`],[`\\sigma`,`σ`],[`\\tau`,`τ`],[`\\upsilon`,`υ`],[`\\phi`,`φ`],[`\\chi`,`χ`],[`\\psi`,`ψ`],[`\\omega`,`ω`],[`\\Gamma`,`Γ`],[`\\Delta`,`Δ`],[`\\Theta`,`Θ`],[`\\Lambda`,`Λ`],[`\\Xi`,`Ξ`],[`\\Pi`,`Π`],[`\\Sigma`,`Σ`],[`\\Upsilon`,`Υ`],[`\\Phi`,`Φ`],[`\\Psi`,`Ψ`],[`\\Omega`,`Ω`],[`\\pm`,`±`],[`\\mp`,`∓`],[`\\times`,`×`],[`\\div`,`÷`],[`\\backslash`,`\\`],[`\\cdot`,`·`],[`\\neq`,`≠`],[`\\leq`,`≤`],[`\\geq`,`≥`],[`\\approx`,`≈`],[`\\equiv`,`≡`],[`\\infty`,`∞`],[`\\sum`,`∑`],[`\\prod`,`∏`],[`\\int`,`∫`],[`\\oint`,`∮`],[`\\iint`,`∬`],[`\\iiint`,`∭`],[`\\oiint`,`∯`],[`\\partial`,`∂`],[`\\nabla`,`∇`],[`\\in`,`∈`],[`\\notin`,`∉`],[`\\subset`,`⊂`],[`\\subseteq`,`⊆`],[`\\supset`,`⊃`],[`\\supseteq`,`⊇`],[`\\cup`,`∪`],[`\\cap`,`∩`],[`\\emptyset`,`∅`],[`\\setminus`,`﹨`],[`\\forall`,`∀`],[`\\exists`,`∃`],[`\\neg`,`¬`],[`\\land`,`∧`],[`\\lor`,`∨`],[`\\leftrightarrow`,`↔`],[`\\Leftrightarrow`,`⇔`],[`\\rightarrow`,`→`],[`\\leftarrow`,`←`],[`\\Rightarrow`,`⇒`],[`\\Leftarrow`,`⇐`],[`\\uparrow`,`↑`],[`\\downarrow`,`↓`],[`\\sin`,`sin`],[`\\cos`,`cos`],[`\\tan`,`tan`],[`\\cot`,`cot`],[`\\sec`,`sec`],[`\\csc`,`csc`],[`\\log`,`log`],[`\\ln`,`ln`],[`\\exp`,`exp`],[`\\lim`,`lim`],...S.map(({insert:e,label:t})=>[e,t]),...C.map(({insert:e,label:t})=>[e,t]),...w.map(({insert:e,label:t})=>[e,t]),[`\\wp`,`℘`],[`\\left(`,`(`],[`\\right)`,`)`],[`\\left[`,`[`],[`\\right]`,`]`],[`\\left|`,`|`],[`\\right|`,`|`],[`\\left\\{`,`{`],[`\\right\\}`,`}`],[`\\,`,` `],[`\\;`,` `],[`\\quad`,` `],[`\\qquad`,` `],[`\\prime`,`′`],[`\\vdots`,`⋮`],[`\\cdots`,`⋯`],[`\\ddots`,`⋱`],[`\\ldots`,`…`]];for(let[e,n]of r){let r=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);t=t.replace(new RegExp(r,`g`),n)}t=t.replace(/\\frac\{([^}]*)\}\{([^}]*)\}/g,`$1/$2`),t=t.replace(/\\sqrt\[([^\]]*)\]\{([^}]*)\}/g,`$1√($2)`),t=t.replace(/\\sqrt\{([^}]*)\}/g,`√($1)`),t=t.replace(/\\vec\{([^}]*)\}/g,`$1⃗`),t=t.replace(/\\hat\{([^}]*)\}/g,`$1̂`),t=t.replace(/\\bar\{([^}]*)\}/g,`$1̄`),t=t.replace(/\\ddot\{([^}]*)\}/g,`$1̈`),t=t.replace(/\\dot\{([^}]*)\}/g,`$1̇`),t=t.replace(/\\text\{([^}]*)\}/g,`$1`),t=t.replace(/\\begin\{pmatrix\}([\s\S]*?)\\end\{pmatrix\}/g,(e,t)=>`[`+t.replace(/\\\\/g,`; `).replace(/&/g,`, `).trim()+`]`);let i={0:`⁰`,1:`¹`,2:`²`,3:`³`,4:`⁴`,5:`⁵`,6:`⁶`,7:`⁷`,8:`⁸`,9:`⁹`,"+":`⁺`,"-":`⁻`,"=":`⁼`,"(":`⁽`,")":`⁾`,n:`ⁿ`,i:`ⁱ`};t=t.replace(/\^\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>i[e]||e).join(``)),t=t.replace(/\^([a-zA-Z0-9])/g,(e,t)=>i[t]||t);let a={0:`₀`,1:`₁`,2:`₂`,3:`₃`,4:`₄`,5:`₅`,6:`₆`,7:`₇`,8:`₈`,9:`₉`,"+":`₊`,"-":`₋`,"=":`₌`,"(":`₍`,")":`₎`,a:`ₐ`,e:`ₑ`,o:`ₒ`,x:`ₓ`,i:`ᵢ`,j:`ⱼ`,n:`ₙ`};return t=t.replace(/_\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>a[e]||e).join(``)),t=t.replace(/_([a-zA-Z0-9])/g,(e,t)=>a[t]||t),t=t.replace(/->/g,`→`),t=t.replace(/<=>/g,`⇌`),t=t.replace(/\\[a-zA-Z]+/g,``),t=t.replace(/[{}]/g,``),t=t.replace(/\s+/g,` `),t=t.replace(/\\\\/g,`
2622
- `),t.trim()}function K({value:a,defaultValue:o=``,onChange:s,className:u=``,title:f=`custom ck editor`,showPreviewButton:m=!0,previewButtonLabel:h=`Preview Question`,previewModalTitle:g=`Question Preview`,previewEmptyMessage:_=`Type your question to preview it here.`}){let v=(0,e.useRef)(null),y=(0,e.useRef)(!1),[b,x]=(0,e.useState)(null),[S,C]=(0,e.useState)(null),[w,T]=(0,e.useState)(!1),[E,ee]=(0,e.useState)(``),D=a!==void 0,[O,k]=(0,e.useState)(()=>a??o);(0,e.useEffect)(()=>{y.current=!!b},[b]),(0,e.useEffect)(()=>{D&&k(a??``)},[D,a]),(0,e.useEffect)(()=>()=>{window.__ckMathWidgetClickHandler=null},[]);let A=(0,e.useCallback)(e=>{C(null),y.current=!0,x(e)},[]),j=(0,e.useCallback)(()=>{y.current=!1,x(null),C(null);let e=v.current;e&&e.model.change(e=>{e.setSelection(null)})},[]),[M,te]=(0,e.useState)(!1),ne=(0,e.useCallback)((e,{direction:t=`ltr`}={})=>{let n=v.current;if(!n||!e?.trim())return;let r={latex:e.trim(),dir:t===`rtl`?`rtl`:`ltr`};if(S){let e=d(n,S.modelElement)?S.modelElement:null;e?n.model.change(t=>{let n=t.createElement(`mathInline`,r),i=t.createPositionBefore(e);t.insert(n,i),t.remove(e),t.setSelection(t.createPositionAfter(n))}):n.model.change(e=>{let t=e.createElement(`mathInline`,r);n.model.insertContent(t)}),C(null)}else if(M){let t=De(e.trim());if(!t)return;n.model.change(e=>{let r=e.createText(t);n.model.insertContent(r)})}else n.model.change(e=>{let t=e.createElement(`mathInline`,r);n.model.insertContent(t),n.model.insertContent(e.createText(` `))});n.editing.view.focus()},[M,S]),re=(0,e.useMemo)(()=>Te(A),[A]),ie=(0,e.useCallback)(e=>{v.current=e;let t=(e,t,n=`ltr`)=>{if(!t)return;let r=/^\\ce\{/.test(t),i=e?.getAttribute(`dir`)===`rtl`||n===`rtl`?`rtl`:`ltr`;y.current=!0,C({modelElement:e,latex:t,direction:i}),x(r?`chem`:`math`)};e.mathWidgetClickHandler=t,window.__ckMathWidgetClickHandler=t;let n=e.ui.getEditableElement();if(!n||n._ckMathClickAttached)return;n._ckMathClickAttached=!0;let r=t=>{let n=c(t.target);n&&t.button===0&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation?.(),p(e,null,l(n),n))};n.addEventListener(`mousedown`,r,!0),n.addEventListener(`click`,r,!0)},[]),ae=(0,e.useCallback)(()=>{let e=v.current;ee((e?e.getData():O)||``),T(!0)},[O]),oe=(0,e.useCallback)(()=>{T(!1)},[]);return(0,e.useEffect)(()=>{if(!w)return;let e=e=>{e.key===`Escape`&&T(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[w]),(0,e.useEffect)(()=>{if(!w)return;let e=setTimeout(()=>{let e=document.querySelector(`.ck-preview-render-zone`);e&&e.querySelectorAll(`.math-tex`).forEach(e=>{let t=e.getAttribute(`data-latex`)||e.textContent||``,n=e.getAttribute(`data-dir`)||`ltr`;e.innerHTML=``;let r=document.createElement(`math-field`);r.setAttribute(`read-only`,``),r.setAttribute(`math-virtual-keyboard-policy`,`manual`),r.setAttribute(`tabindex`,`-1`),r.setAttribute(`letter-shape-style`,`upright`),r.setAttribute(`dir`,n),r.style.display=`inline-block`,r.style.width=`auto`,r.style.maxWidth=`100%`,r.style.verticalAlign=`middle`,r.style.border=`none`,r.style.background=`transparent`,r.style.outline=`none`,r.style.fontSize=`inherit`,r.style.minHeight=`auto`,r.style.padding=`0 2px`,r.style.margin=`0`,r.style.pointerEvents=`none`,r.style.direction=n,r.style.textAlign=n===`rtl`?`right`:`left`,r.style.unicodeBidi=n===`rtl`?`plaintext`:`normal`,r.style.color=`#000000`;let i=()=>{r.setValue?r.setValue(t,{silenceNotifications:!0}):r.value=t};customElements.get(`math-field`)?i():customElements.whenDefined(`math-field`).then(()=>i()),e.appendChild(r)})},50);return()=>clearTimeout(e)},[w,E]),(0,i.jsxs)(`div`,{className:`ck-editor-shell ${u}`.trim(),children:[(0,i.jsx)(`style`,{children:`
3460
+ `)};function nt(e,t={}){if(e.cls?.includes(`arrow-picker-tool`))return(0,i.jsx)(`span`,{className:`cme-toolbar-chevron-indicator`,"aria-hidden":`true`,children:`⏵`});if(e.icon&&$[e.icon])return(0,i.jsx)(`span`,{className:`cme-toolbar-icon-image-wrapper cme-toolbar-icon-image-wrapper--${e.icon}`,"aria-hidden":`true`,children:(0,i.jsx)(`img`,{className:`cme-toolbar-icon-image cme-toolbar-icon-image--${e.icon}`,src:$[e.icon],alt:``})});if(e.icon===`stacked-fraction`)return(0,i.jsx)(`span`,{className:`cme-fraction-icon cme-fraction-stack${e.cls?.includes(`black-glyph-template`)?` cme-fraction-stack--black-glyph-template`:``}`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-fraction-svg`,viewBox:`0 0 24 24`,focusable:`false`,"aria-hidden":`true`,children:[(0,i.jsx)(`rect`,{x:`7.5`,y:`-0.2`,width:`8`,height:`9`}),(0,i.jsx)(`line`,{x1:`4.5`,y1:`12`,x2:`18.5`,y2:`12`}),(0,i.jsx)(`rect`,{x:`7.5`,y:`15.3`,width:`8`,height:`9`})]})});if(e.icon===`arrow-label-right-above`||e.icon===`arrow-label-left-above`||e.icon===`arrow-label-both-above`||e.icon===`arrow-label-right-below`||e.icon===`arrow-label-left-below`||e.icon===`arrow-label-both-below`||e.icon===`arrow-label-both-above-below`||e.icon===`arrow-label-right-above-below`||e.icon===`arrow-label-left-above-below`||e.icon===`harpoon-label-right-left-above`||e.icon===`harpoon-label-right-left-below`||e.icon===`harpoon-label-right-left-above-below`||e.icon===`harpoon-label-left-right-above-below`||e.icon===`bar-harpoon-label-right-left-above-below`||e.icon===`bar-harpoon-label-right-left-above`||e.icon===`bar-harpoon-label-right-left-below`||e.icon===`bar-harpoon-label-left-right-above-below`||e.icon===`bar-arrow-label-right-left-above`||e.icon===`bar-arrow-label-right-left-above-below`||e.icon===`bar-arrow-label-left-right-above`||e.icon===`bar-arrow-label-left-right-above-below`){let{direction:t,arrowY:n,topBox:r,bottomBox:a}={"arrow-label-right-above":{direction:`right`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-left-above":{direction:`left`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-both-above":{direction:`both`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-right-below":{direction:`right`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-left-below":{direction:`left`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-below":{direction:`both`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-above-below":{direction:`both`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-right-above-below":{direction:`right`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-left-above-below":{direction:`left`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-right-left-above":{direction:`harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"harpoon-label-right-left-below":{direction:`harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"harpoon-label-right-left-above-below":{direction:`harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-left-right-above-below":{direction:`harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above-below":{direction:`bar-harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above":{direction:`bar-harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-harpoon-label-right-left-below":{direction:`bar-harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"bar-harpoon-label-left-right-above-below":{direction:`bar-harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-right-left-above":{direction:`bar-arrow-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-right-left-above-below":{direction:`bar-arrow-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-left-right-above":{direction:`bar-arrow-lr`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-left-right-above-below":{direction:`bar-arrow-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}}}[e.icon],o=t===`left`?(0,i.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H14.9`}):t===`both`?(0,i.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H15.05M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}`}):t===`harpoon-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M3.1 ${n-1.95}H14.35M12.05 ${n-3.15}L14.55 ${n-1.95}L12.05 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.45 ${n+1.65}H3.2M5.45 ${n+.45}L2.95 ${n+1.65}L5.45 ${n+2.85}`})]}):t===`harpoon-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.45 ${n-1.95}H3.2M5.45 ${n-3.15}L2.95 ${n-1.95}L5.45 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M3.1 ${n+1.65}H14.35M12.05 ${n+.45}L14.55 ${n+1.65}L12.05 ${n+2.85}`})]}):t===`bar-harpoon-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M4.3 ${n-1.95}H14.1M11.8 ${n-3.15}L14.3 ${n-1.95}L11.8 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.2 ${n+1.65}H4.1M6.35 ${n+.45}L3.85 ${n+1.65}L6.35 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`2.95`,y1:n-1.95,x2:`4.15`,y2:n-1.95}),(0,i.jsx)(`line`,{x1:`14.2`,y1:n+1.65,x2:`15.3`,y2:n+1.65})]}):t===`bar-harpoon-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.2 ${n-1.95}H4.1M6.35 ${n-3.15}L3.85 ${n-1.95}L6.35 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M4.3 ${n+1.65}H14.1M11.8 ${n+.45}L14.3 ${n+1.65}L11.8 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`14.2`,y1:n-1.95,x2:`15.3`,y2:n-1.95}),(0,i.jsx)(`line`,{x1:`2.95`,y1:n+1.65,x2:`4.15`,y2:n+1.65})]}):t===`bar-arrow-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M4.2 ${n-1.95}H14.05M11.75 ${n-3.15}L14.25 ${n-1.95}L11.75 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.15 ${n+1.65}H4.25M6.55 ${n+.45}L4.05 ${n+1.65}L6.55 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`4.05`,y1:n+1.65,x2:`14.15`,y2:n+1.65})]}):t===`bar-arrow-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.15 ${n-1.95}H4.25M6.55 ${n-3.15}L4.05 ${n-1.95}L6.55 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M4.2 ${n+1.65}H14.05M11.75 ${n+.45}L14.25 ${n+1.65}L11.75 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`4.05`,y1:n-1.95,x2:`14.15`,y2:n-1.95})]}):(0,i.jsx)(`path`,{d:`M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}M2.95 ${n}H14.65`});return(0,i.jsx)(`span`,{className:`cme-arrow-label-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-arrow-label-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[r?(0,i.jsx)(`rect`,{...r,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null,o,a?(0,i.jsx)(`rect`,{...a,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null]})})}if(e.insert===`matrix`||e.insert===`bmatrix`||e.insert===`pmatrix`||e.insert===`vmatrix`){let t=e.insert,n=t===`matrix`?[[2.3,3.1],[7.1,3.1],[11.9,3.1],[2.3,7.25],[7.1,7.25],[11.9,7.25],[2.3,11.4],[7.1,11.4],[11.9,11.4]]:[[5.3,2.95],[10.1,2.95],[5.3,7.1],[10.1,7.1],[5.3,11.25],[10.1,11.25]],r;return t===`bmatrix`?r=(0,i.jsx)(`path`,{d:`M3 1.8H1.95V15.85H3M12.95 1.8H14V15.85H12.95`}):t===`pmatrix`?r=(0,i.jsx)(`path`,{d:`M4 1.65C1.9 3.6 1.35 5.75 1.35 8.85C1.35 11.95 1.9 14.1 4 16.05M12 1.65C14.1 3.6 14.65 5.75 14.65 8.85C14.65 11.95 14.1 14.1 12 16.05`}):t===`vmatrix`&&(r=(0,i.jsx)(`path`,{d:`M2.6 1.9V15.75M13.4 1.9V15.75`})),(0,i.jsx)(`span`,{className:`cme-matrix-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-matrix-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[r,n.map(([e,n],r)=>(0,i.jsx)(`rect`,{x:e,y:n,width:`2.35`,height:`2.9`,rx:`0.28`,className:`cme-matrix-svg-cell`},`${t}-${r}`))]})})}let n={"\\begin{matrix} #? & #? & #? \\end{matrix}":{frame:`none`,cells:[[2.15,7.05],[6.85,7.05],[11.55,7.05]]},[ee]:{frame:`brackets`,cells:[[7.05,3.25],[7.05,10.2]]},"\\left[\\begin{matrix} #? & #? \\end{matrix}\\right]":{frame:`brackets`,cells:[[4.85,7.05],[9.25,7.05]]},[_]:{frame:`parentheses`,cells:[[7.05,3.25],[7.05,10.2]]},"\\left(\\begin{matrix} #? & #? \\end{matrix}\\right)":{frame:`parentheses`,cells:[[4.85,7.05],[9.25,7.05]]},"\\left[\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}\\right]":{frame:`brackets`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\left(\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}\\right)":{frame:`parentheses`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}":{frame:`none`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]}}[e.insert];if(n){let e;return n.frame===`brackets`?e=(0,i.jsx)(`path`,{d:`M2.7 1.4H1.75V16.1H2.7M13.3 1.4H14.25V16.1H13.3`}):n.frame===`parentheses`&&(e=(0,i.jsx)(`path`,{d:`M3 1.4C1.95 2.7 1.55 4.65 1.55 8.75C1.55 12.85 1.95 14.8 3 16.1M13 1.4C14.05 2.7 14.45 4.65 14.45 8.75C14.45 12.85 14.05 14.8 13 16.1`})),(0,i.jsx)(`span`,{className:`cme-matrix-template-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-matrix-template-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[e,n.cells.map(([e,t],n)=>(0,i.jsx)(`rect`,{x:e,y:t,width:`2.35`,height:`3`,rx:`0.28`,className:`cme-matrix-svg-cell`},`matrix-template-${n}`))]})})}if(e.icon===`superscript-template`||e.icon===`subscript-template`)return(0,i.jsx)(`span`,{className:`cme-script-icon`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-script-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:e.icon===`superscript-template`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`rect`,{x:`3`,y:`7`,width:`6`,height:`8`}),(0,i.jsx)(`rect`,{x:`10`,y:`3`,width:`5`,height:`7`})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`rect`,{x:`3`,y:`3`,width:`6`,height:`8`}),(0,i.jsx)(`rect`,{x:`10`,y:`8`,width:`5`,height:`7`})]})})});if(e.icon===`square-root-template`||e.icon===`nth-root-template`){let t=e.icon===`nth-root-template`;return(0,i.jsx)(`span`,{className:`cme-root-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-root-svg`,width:`48`,height:`32`,viewBox:`0 0 46 32`,focusable:`false`,"aria-hidden":`true`,children:[t?(0,i.jsx)(`rect`,{x:`8`,y:`4`,width:`8`,height:`10`,className:`cme-root-svg-box cme-root-svg-box--small`}):null,(0,i.jsx)(`path`,{d:t?`M10 18 L17 25 L24 4 L46 4`:`M4 18 L11 25 L18 4 L42 4`}),(0,i.jsx)(`rect`,{x:t?`30`:`24`,y:`9`,width:`11`,height:`15`,className:`cme-root-svg-box`})]})})}if(e.icon===`accent-harpoon-right`||e.icon===`accent-arrow-right`||e.icon===`accent-arrow-both`||e.icon===`accent-bar`){let t;return t=e.icon===`accent-bar`?(0,i.jsx)(`line`,{x1:`3.5`,y1:`4.5`,x2:`14.5`,y2:`4.5`}):e.icon===`accent-arrow-both`?(0,i.jsx)(`path`,{d:`M3.3 5.5L5 3.9M3.3 5.5L5 7.1M3.5 5.5H14.5M13 3.9L14.7 5.5L13 7.1`}):e.icon===`accent-harpoon-right`?(0,i.jsx)(`path`,{d:`M3.5 5.5H14.5M12 3.9L14.7 5.5M14 5.5V5`}):(0,i.jsx)(`path`,{d:`M3.5 5.5H14.2M11.8 3.9L14.7 5.5L11.8 7.1`}),(0,i.jsx)(`span`,{className:`cme-accent-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-accent-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[t,(0,i.jsx)(`rect`,{x:`6.4`,y:`8.6`,width:`5.2`,height:`7`,rx:`0.45`,className:`cme-accent-svg-box`})]})})}if(t.isMathMode||t.isChemMode){let n=[`cme-toolbar-glyph`],r=e.cls||``,a=t.groupId===`roots-main`,o=t.groupId===`relations`,s=t.groupId===`greek`,c=!!t.isChemMode,l=String(e.label||``),u=l.length;if(c){let t=/^(?:[⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿⁱ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓᵢⱼₙ])+$/u.test(String(e.label||``));n.push(`cme-toolbar-glyph--chem`);let i=/^(?:[+-]|[²³][⁺⁻])$/u.test(String(e.label||``));r.includes(`chem-element`)&&n.push(`cme-toolbar-glyph--chem-element`),r.includes(`chem-arrow`)&&n.push(`cme-toolbar-glyph--chem-arrow`),r.includes(`chem-state`)&&n.push(`cme-toolbar-glyph--chem-state`),t&&n.push(`cme-toolbar-glyph--chem-script`),i&&n.push(`cme-toolbar-glyph--chem-charge`)}else a&&n.push(`cme-toolbar-glyph--roots-main`),o&&n.push(`cme-toolbar-glyph--relations`),!a&&!o&&n.push(`cme-toolbar-glyph--math`),s&&n.push(`cme-toolbar-glyph--greek`);return r.includes(`green-template`)&&n.push(`cme-toolbar-glyph--template`),r.includes(`soft-tool`)&&n.push(`cme-toolbar-glyph--tool`),r.includes(`format-tool`)&&n.push(`cme-toolbar-glyph--format`),u>=4&&n.push(`cme-toolbar-glyph--wide`),u>=8&&n.push(`cme-toolbar-glyph--very-wide`),(0,i.jsx)(`span`,{className:n.join(` `),"aria-hidden":`true`,children:r.includes(`green-placeholder-glyph`)||r.includes(`black-glyph-template`)||r.includes(`black-placeholder-glyph`)?Array.from(l).map((e,t)=>e===`□`?(0,i.jsx)(`span`,{className:r.includes(`black-placeholder-glyph`)?`cme-toolbar-placeholder-box-black`:`cme-toolbar-placeholder-box-green`,children:e},`placeholder-${t}`):(0,i.jsx)(`span`,{children:e},`glyph-${t}`)):e.label})}return e.label}function rt({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-6,8),Math.max(8,window.innerWidth-430-8)),r=Math.min(e.y+2,Math.max(8,window.innerHeight-122-8)),a=e=>e.preview===`rightleft-short-left`?(0,i.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,i.jsx)(`line`,{x1:`10`,y1:`8`,x2:`38`,y2:`8`}),(0,i.jsx)(`polyline`,{points:`30,2 38,8 30,14`}),(0,i.jsx)(`line`,{x1:`34`,y1:`16`,x2:`18`,y2:`16`}),(0,i.jsx)(`polyline`,{points:`26,10 18,16 26,22`})]}):e.preview===`right-short-over-left-long`?(0,i.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,i.jsx)(`line`,{x1:`14`,y1:`8`,x2:`30`,y2:`8`}),(0,i.jsx)(`polyline`,{points:`22,2 30,8 22,14`}),(0,i.jsx)(`line`,{x1:`40`,y1:`16`,x2:`12`,y2:`16`}),(0,i.jsx)(`polyline`,{points:`20,10 12,16 20,22`})]}):(0,i.jsx)(`span`,{"aria-hidden":`true`,style:{fontSize:`18px`,lineHeight:1,fontFamily:`"Cambria Math", "STIX Two Math", "Segoe UI Symbol", "Segoe UI", sans-serif`,whiteSpace:`pre-line`},children:e.label});return(0,i.jsx)(`div`,{className:`cme-arrow-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-picker-grid`,style:{gridTemplateColumns:`repeat(11, 30px)`,gridTemplateRows:`repeat(3, 30px)`,gridAutoRows:`30px`,gap:`8px`},children:S.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:a(e)},`${e.insert}-${e.title||e.label}`))})})}function it({position:e,items:t=[],onInsert:n,popupBounds:r=null,picker:a=``}){let o=a===`trigFunctionExtras`||a===`bracketDelimiterExtras`||a===`enclosureFrameExtras`||a===`strikeDecorationExtras`||a===`arithmeticLayoutExtras`,s={operatorExtras:{columns:1,rows:3},primeExtras:{columns:1,rows:3},notEqualExtras:{columns:2,rows:3},comparisonExtras:{columns:3,rows:3},setExtras:{columns:4,rows:3},logicExtras:{columns:1,rows:2},geometryExtras:{columns:2,rows:3},shapeExtras:{columns:1,rows:2},circledExtras:{columns:2,rows:3},tripleIntegralExtras:{columns:1,rows:2,buttonWidth:28,buttonHeight:28,gapX:6,gapY:6,paddingX:10,paddingY:10,fillByColumn:!1},trigFunctionExtras:{columns:3,rows:2,buttonWidth:72,buttonHeight:36,gapX:8,gapY:8,paddingX:16,paddingY:16,fillByColumn:!1},enclosureFrameExtras:{columns:1,rows:2,buttonWidth:58,buttonHeight:42,gapX:8,gapY:8,paddingX:16,paddingY:16,fillByColumn:!1},strikeDecorationExtras:{columns:2,rows:2,buttonWidth:58,buttonHeight:42,gapX:8,gapY:8,paddingX:16,paddingY:16,fillByColumn:!1},arithmeticLayoutExtras:{columns:3,rows:2,buttonWidth:64,buttonHeight:42,gapX:8,gapY:8,paddingX:16,paddingY:16,fillByColumn:!1}}[a],c=s?.columns||(o?2:Math.max(1,Math.min(t.length,5))),l=s?.buttonWidth||(o?88:30),u=s?.buttonHeight||(o?34:30),d=s?.gapX??(o?10:8),f=s?.gapY??(o?8:6),p=s?.paddingX??(o?18:20),m=s?.paddingY??(o?18:16),h=Math.max(1,Math.ceil(t.length/c)),g=s?.rows||h,ee=s?.fillByColumn??!!(s?.rows&&s.rows>h),_=c*l+(c-1)*d+p,v=g*u+(g-1)*f+m,y=r?{left:r.left,top:r.top,right:r.right,bottom:r.bottom}:{left:8,top:8,right:window.innerWidth-8,bottom:window.innerHeight-8},b=Math.max(80,y.right-y.left-16),te=y.left+8,x=Math.max(te,y.right-Math.min(_,b)-8),ne=y.top+8,S=Math.max(ne,y.bottom-v-8),C=Math.min(Math.max(e.x-6,te),x),w=e.y+2,re=e.y-v-6,T=w<=S?w:Math.max(ne,Math.min(re,S));return(0,i.jsx)(`div`,{className:`cme-arrow-picker-popup cme-relation-more-picker-popup`,style:{position:`fixed`,left:`${C}px`,top:`${T}px`,zIndex:1e5,maxWidth:`${b}px`,overflowX:_>b?`auto`:void 0},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-picker-grid`,style:{gridTemplateColumns:`repeat(${c}, ${l}px)`,gridTemplateRows:s?.rows?`repeat(${g}, ${u}px)`:void 0,gridAutoRows:`${u}px`,gridAutoFlow:ee?`column`:void 0,gap:`${f}px ${d}px`},children:t.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn${e.cls?` ${e.cls}`:``}`,title:e.title||e.label,style:{width:`${l}px`,height:`${u}px`,padding:o?`0 8px`:0},onMouseDown:t=>{t.preventDefault(),n(e)},children:nt(e,{groupId:`relations`,isMathMode:!0,isChemMode:!1})},`${e.insert}-${e.title||e.label}`))})})}function at({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),Math.max(8,window.innerWidth-584-8)),r=Math.min(e.y+2,Math.max(8,window.innerHeight-84-8));return(0,i.jsx)(`div`,{className:`cme-arrow-label-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-label-picker-grid`,style:{gridTemplateColumns:`repeat(11, 48px)`,gridTemplateRows:`repeat(2, 34px)`,gridAutoRows:`34px`},children:C.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-label-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e)},children:nt(e,{groupId:`arrows`,isMathMode:!0,isChemMode:!1})},`${e.icon}-${e.title}`))})})}function ot({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-148);return(0,i.jsx)(`div`,{className:`cme-greek-italic-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-greek-italic-picker-grid`,children:w.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-greek-italic-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e)},children:(0,i.jsx)(`span`,{className:`cme-greek-italic-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.label))})})}function st({position:e,onInsert:t}){let n=Math.max(8,window.innerWidth-648),r=Math.min(Math.max(e.x-8,8),n),a=Math.min(e.y+2,Math.max(8,window.innerHeight-132));return(0,i.jsx)(`div`,{className:`cme-blackboard-bold-picker-popup`,style:{position:`fixed`,left:`${r}px`,top:`${a}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-blackboard-bold-picker-grid`,children:ie.map(e=>e?.spacer?(0,i.jsx)(`span`,{className:`cme-blackboard-bold-picker-spacer`,"aria-hidden":`true`},e.key):(0,i.jsx)(`button`,{type:`button`,className:`cme-blackboard-bold-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e)},children:(0,i.jsx)(`span`,{className:`cme-blackboard-bold-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function ct({position:e,onInsert:t,items:n=se}){let r=Math.max(8,window.innerWidth-648),a=Math.min(Math.max(e.x-8,8),r),o=Math.min(e.y+2,Math.max(8,window.innerHeight-132));return(0,i.jsx)(`div`,{className:`cme-fraktur-script-picker-popup`,style:{position:`fixed`,left:`${a}px`,top:`${o}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-fraktur-script-picker-grid`,children:n.map(e=>e?.spacer?(0,i.jsx)(`span`,{className:`cme-fraktur-script-picker-spacer`,"aria-hidden":`true`},e.key):(0,i.jsx)(`button`,{type:`button`,className:`cme-fraktur-script-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-fraktur-script-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function lt({position:e,onInsert:t}){let n=Math.max(8,window.innerWidth-100),r=Math.min(Math.max(e.x-8,8),n),a=Math.min(e.y+2,Math.max(8,window.innerHeight-126));return(0,i.jsx)(`div`,{className:`cme-hebrew-symbol-picker-popup`,style:{position:`fixed`,left:`${r}px`,top:`${a}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-hebrew-symbol-picker-grid`,children:j.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-hebrew-symbol-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-hebrew-symbol-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function ut({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-612),r=Math.min(e.y+2,window.innerHeight-313),a=2*P+Math.floor(N/2),o=5*P+Math.floor(N/2),s=7*P+Math.floor(N/2),c=8*P+Math.floor(N/2),l=3*P;return(0,i.jsx)(`div`,{className:`cme-periodic-table-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsxs)(`div`,{className:`cme-periodic-table-board`,style:{width:`${F}px`,height:`${I}px`},children:[(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--vertical`,style:{left:`${a}px`,top:`${o}px`,height:`${c-o}px`}}),(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${a}px`,top:`${s}px`,width:`${l-a}px`}}),(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${a}px`,top:`${c}px`,width:`${l-a}px`}}),ue.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-periodic-table-cell cme-periodic-table-cell--${e.tone}`,title:e.title,style:{left:`${(e.col-1)*P}px`,top:`${(e.row-1)*P}px`,width:`${N}px`,height:`${N}px`},onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:e.label},`${e.label}-${e.row}-${e.col}`))]})})}function dt({position:e,options:t,value:n,onSelect:r,width:a=132}){let o=Math.min(Math.max(e.x,8),window.innerWidth-a-8),s=Math.max(8,Math.min(e.y+4,window.innerHeight-290));return(0,i.jsx)(`div`,{className:`cme-style-dropdown-popup`,style:{position:`fixed`,left:`${o}px`,top:`${s}px`,width:`${a}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:t.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-style-dropdown-option${n===e.value?` active`:``}`,onMouseDown:t=>{t.preventDefault(),r(e.value)},children:e.label},e.value))})}function ft(e){return class extends r.Plugin{init(){let t=this.editor;t.ui.componentFactory.add(`mathType`,()=>{let t=new r.ButtonView;return t.set({label:`Math`,icon:Qe,tooltip:`Insert Math Formula`}),t.on(`execute`,()=>e(`math`)),t}),t.ui.componentFactory.add(`chemType`,()=>{let t=new r.ButtonView;return t.set({label:`Chemistry`,icon:$e,tooltip:`Insert Chemistry Formula`}),t.on(`execute`,()=>e(`chem`)),t})}}}function pt({matrixType:t,x:n,y:r,onSelect:a,onMouseEnter:o,onMouseLeave:s}){let[c,l]=(0,e.useState)({r:2,c:2}),u={matrix:`Plain Matrix`,bmatrix:`Square Matrix`,pmatrix:`Parenthesis Matrix`,vmatrix:`Vertical Matrix`},d=(0,e.useCallback)((e,t)=>{let n=Number.parseInt(t,10);Number.isNaN(n)||l(t=>({...t,[e]:Math.min(20,Math.max(1,n))}))},[]);return(0,e.useEffect)(()=>{let e=e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),a(c.r,c.c))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[c.r,c.c,a]),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-popover ck-only`,style:{top:`${r}px`,left:`${n}px`},onMouseDown:e=>e.stopPropagation(),onMouseEnter:o,onMouseLeave:s,children:[(0,i.jsxs)(`div`,{className:`cme-matrix-hover-title-wrap`,children:[(0,i.jsx)(`div`,{className:`cme-matrix-hover-title`,children:u[t]||`Matrix`}),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-subtitle`,children:[c.r,` × `,c.c]})]}),(0,i.jsx)(`div`,{className:`cme-matrix-hover-grid`,children:Array.from({length:6}).map((e,t)=>(0,i.jsx)(`div`,{className:`cme-matrix-hover-row`,children:Array.from({length:6}).map((e,n)=>(0,i.jsx)(`div`,{className:`cme-matrix-hover-cell${t<c.r&&n<c.c?` selected`:``}`,onMouseEnter:()=>l({r:t+1,c:n+1}),onClick:e=>{e.preventDefault(),e.stopPropagation(),a(t+1,n+1)}},`${t}-${n}`))},t))}),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-footer`,children:[(0,i.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,i.jsx)(`span`,{className:`cme-counter-label`,children:`R`}),(0,i.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:c.r,className:`cme-counter-input`,onChange:e=>d(`r`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,i.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,r:Math.min(20,e.r+1)})),children:`+`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,r:Math.max(1,e.r-1)})),children:`-`})]})]}),(0,i.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,i.jsx)(`span`,{className:`cme-counter-label`,children:`C`}),(0,i.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:c.c,className:`cme-counter-input`,onChange:e=>d(`c`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,i.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,c:Math.min(20,e.c+1)})),children:`+`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,c:Math.max(1,e.c-1)})),children:`-`})]})]})]})]})}function mt({mode:n,onInsert:r,onClose:a,initialLatex:o,initialDirection:c=`ltr`,isEditing:l}){let u=(0,e.useRef)(null),d=(0,e.useRef)(null),f=(0,e.useRef)(null),p=(0,e.useRef)(null),m=(0,e.useRef)(()=>{}),h=(0,e.useRef)(null),[g,ee]=(0,e.useState)(0),[_,v]=(0,e.useState)(null),[b,x]=(0,e.useState)(null),[ne,S]=(0,e.useState)(null),[C,w]=(0,e.useState)(null),[T,E]=(0,e.useState)(null),[ie,D]=(0,e.useState)(null),[ae,O]=(0,e.useState)(null),[k,A]=(0,e.useState)(null),[j,M]=(0,e.useState)(null),[ce,N]=(0,e.useState)(null),[P,F]=(0,e.useState)(null),[I,ue]=(0,e.useState)(null),[L,xe]=(0,e.useState)(`normal`),[R,z]=(0,e.useState)(null),[Se,we]=(0,e.useState)(!1),[B,Te]=(0,e.useState)(c===`rtl`),[V,Oe]=(0,e.useState)(``),[ke,Ae]=(0,e.useState)(``),H=n===`math`?Me:Ne,U=n===`math`,Fe=n===`chem`,W=U||Fe,G=H[g]||{},Ie=U&&G.id?` cme-symbol-subgroup--tab-${G.id}`:``,Re=(0,e.useMemo)(()=>et.map(e=>({...e,normalized:tt(e.value)||e.value.toLowerCase()})),[]),[K,Ve]=(0,e.useState)({bold:!1,italic:!1,boldItalic:!1,color:`none`,fontOption:``,fontSize:`auto`}),[q,He]=(0,e.useState)(`western`),[J,We]=(0,e.useState)(`thin`),Ge=(0,e.useCallback)((e,t)=>{let n=d.current,r=n?.offsetWidth||720,i=n?.offsetHeight||384,a=Math.max(12,window.innerWidth-r-12),o=Math.max(12,window.innerHeight-i-12);return{x:Math.min(Math.max(12,e),a),y:Math.min(Math.max(12,t),o)}},[]),Y=(0,e.useCallback)(()=>{m.current(),m.current=()=>{},p.current=null,we(!1)},[]);(0,e.useEffect)(()=>()=>Y(),[Y]),(0,e.useEffect)(()=>{f.current=R},[R]);let Ke=(0,e.useCallback)((e=`normal`)=>{let t=window.innerWidth<=640,n=t?12:24,r=t?12:24,i=Math.min(e===`minimized`?420:720,window.innerWidth-24),a=e===`minimized`?32:t?Math.min(384,window.innerHeight-24):384,o=Math.max(12,window.innerWidth-i-12),s=Math.max(12,window.innerHeight-a-12);return{x:Math.min(Math.max(12,window.innerWidth-i-n),o),y:Math.min(Math.max(12,window.innerHeight-a-r),s)}},[]),qe=(0,e.useCallback)(()=>{f.current=null,z(null)},[]),Je=(0,e.useCallback)((e=`normal`)=>{let t=Ke(e);f.current=t,z(t)},[Ke]),Ye=(0,e.useCallback)(()=>{if(Y(),L===`minimized`){Je(`normal`),xe(`normal`);return}qe(),xe(`minimized`)},[qe,Je,Y,L]),Xe=(0,e.useCallback)(()=>{if(Y(),L===`maximized`){Je(`normal`),xe(`normal`);return}qe(),xe(`maximized`)},[qe,Je,Y,L]);(0,e.useEffect)(()=>{L===`minimized`&&(v(null),x(null),S(null),w(null),E(null),D(null),O(null),A(null),M(null),N(null),F(null),ue(null))},[L]),(0,e.useEffect)(()=>{if(L===`maximized`)return;let e=()=>{let e=d.current;if(!e)return;let t=f.current;if(t){z(t);return}let n=e.getBoundingClientRect(),r=Ge(window.innerWidth-n.width-24,window.innerHeight-n.height-24);f.current=r,z(r)},t=requestAnimationFrame(e),n=d.current,r=t=>{t.target===n&&(t.propertyName!==`width`&&t.propertyName!==`height`||e())};return n?.addEventListener(`transitionend`,r),()=>{cancelAnimationFrame(t),n?.removeEventListener(`transitionend`,r)}},[Ge,L]),(0,e.useEffect)(()=>{if(L===`maximized`)return;let e=()=>{let e=f.current;if(!e)return;let t=Ge(e.x,e.y);f.current=t,z(t)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[Ge,L]);let Ze=(0,e.useCallback)(e=>{if(L===`maximized`||e.button!==void 0&&e.button!==0||e.target.closest(`.cme-popup-actions`))return;let t=d.current;if(!t)return;e.preventDefault(),we(!0);let n=t.getBoundingClientRect(),r=f.current||{x:n.left,y:n.top};f.current=r,z(r),p.current={offsetX:e.clientX-n.left,offsetY:e.clientY-n.top};let i=e=>{if(!p.current)return;e.preventDefault();let t=Ge(e.clientX-p.current.offsetX,e.clientY-p.current.offsetY);f.current=t,z(t)},a=()=>Y();m.current=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a)},window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)},[Ge,Y,L]);(0,e.useEffect)(()=>{Te(c===`rtl`)},[c]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=B?`rtl`:`ltr`;e.setAttribute(`dir`,t),e.style.direction=t,e.style.textAlign=B?`right`:`left`,e.style.unicodeBidi=B?`plaintext`:`normal`},[B]);let X=(0,e.useCallback)(()=>{let e=u.current;if(!(!e||typeof e.queryStyle!=`function`))try{let t=e.queryStyle({variantStyle:`bolditalic`})===`all`,n=t||e.queryStyle({fontSeries:`b`})===`all`||e.queryStyle({variantStyle:`bold`})===`all`,r=t||e.queryStyle({fontShape:`it`})===`all`||e.queryStyle({variantStyle:`italic`})===`all`,i=de.find(({style:t})=>Object.entries(t).every(([t,n])=>e.queryStyle({[t]:n})===`all`))||null,a=pe.find(({value:t})=>e.queryStyle({fontSize:parseInt(t,10)})===`all`)?.value||`auto`,o=tt(V),s=[...new Set(Re.flatMap(e=>[e.normalized,e.value]).concat(K.color===`none`?[]:[K.color]).concat(o?[o,V.trim()]:[]).filter(Boolean))].find(t=>e.queryStyle({color:t})===`all`),c=s?tt(s)||s:`none`;Ve({bold:n,italic:r,boldItalic:t,fontOption:i?.value||``,fontSize:String(a),color:c})}catch(e){console.warn(`Failed to query active styles:`,e)}},[K.color,Re,V]),Qe=(0,e.useCallback)(e=>{let t=u.current;if(!t||typeof t.applyStyle!=`function`)return;let n=!!e.bold,r=!!e.italic,i=n&&r?`bolditalic`:n?`bold`:r?`italic`:`up`;t.applyStyle({variantStyle:i,fontSeries:n?`b`:`m`,fontShape:r?`it`:`n`}),t.applyStyle({color:e.color===`none`?`none`:e.color}),t.applyStyle(fe);let a=de.find(({value:t})=>t===e.fontOption);if(a&&t.applyStyle(a.style),e.fontSize!==`auto`){let n=parseInt(e.fontSize,10);t.applyStyle({fontSize:n,size:n})}},[]),$e=(0,e.useCallback)((e,t)=>{let n=u.current;n&&(n.focus(),Qe({...K,bold:e,italic:t,boldItalic:e&&t}),requestAnimationFrame(X))},[K,Qe,X]),Z=(0,e.useCallback)(e=>{let t=u.current;if(!t||typeof t.applyStyle!=`function`)return!1;let n=e===`none`?`none`:tt(e);if(e!==`none`&&!n)return Ae(`Enter a valid hex code or CSS color name.`),!1;let r=e===`none`?`none`:n;return t.focus(),t.applyStyle({color:r}),Ve(e=>({...e,color:r})),Oe(r===`none`?``:r),Ae(``),requestAnimationFrame(X),!0},[X]),Q=(0,e.useCallback)((e,t)=>{let n=u.current;if(!(!n||typeof n.applyStyle!=`function`)){if(n.focus(),e===`font`){n.applyStyle(fe);let e=de.find(e=>e.value===t);e&&n.applyStyle(e.style),Ve(e=>({...e,fontOption:t}))}else{let e=t?parseInt(t,10):`auto`;n.applyStyle({fontSize:e,size:e}),Ve(e=>({...e,fontSize:t||`auto`}))}requestAnimationFrame(X)}},[X]);(0,e.useEffect)(()=>{if(!_&&!P&&!I&&!ne&&!C&&!T&&!ie&&!ae&&!k&&!j&&!ce)return;let e=e=>{!e.target.closest(`.cme-matrix-hover-popover`)&&!e.target.closest(`.cme-matrix-btn-wrapper`)&&v(null),!e.target.closest(`.cme-color-picker-popup`)&&!e.target.closest(`[title="Text Color"]`)&&F(null),!e.target.closest(`.cme-style-dropdown-popup`)&&!e.target.closest(`.cme-style-select-trigger`)&&ue(null),!e.target.closest(`.cme-arrow-picker-popup`)&&!e.target.closest(`.arrow-picker-tool`)&&S(null),!e.target.closest(`.cme-relation-more-picker-popup`)&&!e.target.closest(`.relation-more-picker-tool`)&&w(null),!e.target.closest(`.cme-arrow-label-picker-popup`)&&!e.target.closest(`.arrow-label-picker-tool`)&&E(null),!e.target.closest(`.cme-greek-italic-picker-popup`)&&!e.target.closest(`.greek-italic-picker-tool`)&&D(null),!e.target.closest(`.cme-blackboard-bold-picker-popup`)&&!e.target.closest(`.blackboard-bold-picker-tool`)&&O(null),!e.target.closest(`.cme-fraktur-script-picker-popup`)&&!e.target.closest(`.fraktur-script-picker-tool`)&&A(null),!e.target.closest(`.cme-hebrew-symbol-picker-popup`)&&!e.target.closest(`.hebrew-symbol-picker-tool`)&&M(null),!e.target.closest(`.cme-periodic-table-picker-popup`)&&!e.target.closest(`.periodic-table-picker-tool`)&&N(null)};return window.addEventListener(`mousedown`,e,!0),window.addEventListener(`pointerdown`,e,!0),()=>{window.removeEventListener(`mousedown`,e,!0),window.removeEventListener(`pointerdown`,e,!0)}},[_,P,I,ne,C,T,ie,ae,k,j,ce]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;Ue(e),e.defaultMode=n===`chem`?`text`:`math`,e.letterShapeStyle=`tex`;let t=()=>{let t=ze(Le(o||``));if(n===`chem`&&t){let e=t.match(/^\\ce\{([\s\S]*)\}$/);e&&(t=e[1])}e.setValue?e.setValue(t,{silenceNotifications:!0}):e.value=t,requestAnimationFrame(()=>e.focus())};customElements.get(`math-field`)?requestAnimationFrame(t):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(t))},[n,o]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>e.getValue?e.getValue():e.value||``,r=()=>{try{if(typeof e.executeCommand==`function`)for(let t of[`moveToMathFieldStart`,`moveToMathfieldStart`,`moveToStart`])try{e.executeCommand(t);return}catch{}}catch{}try{typeof e.setSelectionRange==`function`&&e.setSelectionRange(0,0)}catch{}},i=t=>{typeof e.setValue==`function`?e.setValue(t):e.value=t,requestAnimationFrame(()=>{e.focus?.(),r(),X()})},a=r=>{let a=r.key.length===1&&r.key!==` `&&!r.ctrlKey&&!r.metaKey&&!r.altKey,o=/^\d$/.test(r.key)&&!r.ctrlKey&&!r.metaKey&&!r.altKey;if(n===`math`&&r.key===`Tab`){if(r.preventDefault(),!je(e,r.shiftKey)&&!Ee(e,be,r.shiftKey)){let t=r.shiftKey?`moveToPreviousPlaceholder`:`moveToNextPlaceholder`;if(typeof e.executeCommand==`function`)try{e.executeCommand(t)}catch{}}requestAnimationFrame(X);return}if(J===`negativeThin`&&a){r.preventDefault();let n=q!==`western`&&o?le(r.key,q):r.key;B?i(`\\!${n}${t()}`):e.executeCommand([`insert`,`\\!${n}`]);return}if(q!==`western`&&o){r.preventDefault();let n=le(r.key,q);B?i(`${n}${t()}`):e.executeCommand([`insert`,n]);return}if(r.key===` `){r.preventDefault();let n=J===`negativeThin`?`\\!`:`\\, `;B?i(`${n}${t()}`):e.executeCommand([`insert`,n]);return}else if(r.key===`Enter`){r.preventDefault(),B?i(`\\\\${t()}`):e.executeCommand([`insert`,`\\\\`]),setTimeout(()=>{Qe(K),X()},10);return}if(B&&r.key===`Backspace`){r.preventDefault(),i(t().slice(1));return}B&&a&&(r.preventDefault(),i(`${r.key}${t()}`))};return e.addEventListener(`keydown`,a,!0),()=>e.removeEventListener(`keydown`,a,!0)},[n,K,Qe,X,B,q,J]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>{setTimeout(()=>{let t=e.shadowRoot;if(!t)return;let n=t.querySelector(`.ML__caret`)||t.querySelector(`[class*="caret"]`);n&&n.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`}),X()},0)};return e.addEventListener(`selection-change`,t),e.addEventListener(`input`,t),e.addEventListener(`keydown`,t),setTimeout(X,50),()=>{e.removeEventListener(`selection-change`,t),e.removeEventListener(`input`,t),e.removeEventListener(`keydown`,t)}},[X]);let $=(0,e.useCallback)((e,t={})=>{let r=u.current;if(!r)return;let i=!!t.preserveMathStyle,a=i||n===`math`&&G.id===`greek`,o=t.insertStyle||(a?null:fe),s=/#(?:\d+|\?|@)/.test(e),c=r.selection||r.model?.selection,l=!t.focusFirstPlaceholder&&!_e(c)?ve(e):0,d=Ce(t.focusSlotGroup);r.focus(),typeof r.insert==`function`?r.insert(e,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:s?`placeholder`:`after`,...o?{style:o}:{}}):r.executeCommand([`insert`,e]),requestAnimationFrame(()=>{r.focus?.(),d&&De(r,d,0)||ye(r,l),i||Qe(K)})},[G.id,K,Qe,n]),ft=(0,e.useCallback)(e=>{let t=u.current;if(t){if(t.focus(),e===`\\hphantom{0}`){t.executeCommand([`insert`,`\\hphantom{0}`]);return}if(e===`\\,`){We(`thin`),t.executeCommand([`insert`,`\\,`]);return}e===`\\!`&&(We(`negativeThin`),t.executeCommand([`insert`,`\\!`]))}},[]),mt=(0,e.useCallback)(e=>{let t=u.current,n=me[e];if(!t||!n)return;let r=t.selection||t.model?.selection;if(!(r&&Array.isArray(r.ranges)&&r.ranges.length>0&&r.ranges.some(([e,t])=>e!==t))){h.current=null;return}if(t.focus(),`selection`in t)try{t.selection=r}catch{}let i=typeof t.getValue==`function`?t.getValue(r,`latex`)||``:t.model?.getValue?.(r,`latex`)||``;if(!i){h.current=null;return}let a=he(i),o=h.current,s=a.baseLatex,c=o?.baseLatex===s,l=c?o.offsetX:a.offsetX,d=c?o.offsetY:a.offsetY,f=l+n.x,p=d+n.y,m=ge(s,f,p);if(h.current={baseLatex:s,offsetX:f,offsetY:p},typeof t.insert==`function`){t.insert(m,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:`item`});return}t.executeCommand([`insert`,m])},[]),ht=(0,e.useCallback)((e,t,n)=>{$(y(e,t,n))},[$]),gt=()=>{let e=u.current;if(!e)return;let t=e.getValue?e.getValue(`latex`):e.value;if(n===`math`&&!Be(t)){a();return}if(!t||t.trim()===``){a();return}n===`math`&&(t=ze(t)),n===`chem`&&(t=Pe(t)),r(t,{direction:B?`rtl`:`ltr`}),e.setValue?e.setValue(``):e.value=``,a({preserveEditorSelection:!0})},_t=L===`normal`&&R?{left:`${R.x}px`,top:`${R.y}px`,right:`auto`,bottom:`auto`}:void 0;return(0,i.jsxs)(`div`,{ref:d,className:`cme-editor-popup ${L}${Se?` dragging`:``}`,style:_t,onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsxs)(`div`,{className:`cme-popup-header`,onPointerDown:Ze,children:[(0,i.jsx)(`span`,{children:n===`math`?`MathType`:`ChemType`}),(0,i.jsxs)(`div`,{className:`cme-popup-actions`,onPointerDown:e=>e.stopPropagation(),children:[(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":L===`minimized`?`Restore window`:`Minimize window`,onClick:Ye,children:L===`minimized`?`+`:`-`}),(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":L===`maximized`?`Restore window`:`Maximize window`,onClick:Xe,children:L===`maximized`?`o`:`⤢ `}),(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-close`,onClick:()=>{Y(),a()},children:`x`})]})]}),(0,i.jsxs)(`div`,{className:`cme-toolbar`,role:`toolbar`,"aria-label":`Symbol palette`,children:[(0,i.jsx)(`div`,{className:`cme-toolbar-groups`,children:H.map((e,t)=>(0,i.jsx)(`button`,{className:`cme-group-tab${W?` cme-group-tab--popup`:``}${U?` cme-group-tab--math`:``}${Fe?` cme-group-tab--chem`:``}${g===t?` active`:``}`,type:`button`,onClick:()=>{ee(t),v(null)},children:(0,i.jsx)(`span`,{className:`cme-group-tab-label`,children:e.label})},e.id||t))}),(0,i.jsx)(`div`,{className:`cme-toolbar-items${g===0&&U?` cme-toolbar-items--first-tab`:``}${G.id===`greek`?` cme-toolbar-items--greek`:``}${G.id===`relations`?` cme-toolbar-items--relations`:``}${G.id===`arrows`?` cme-toolbar-items--arrows`:``}${G.id===`brackets`?` cme-toolbar-items--brackets`:``}${G.id===`matrix`?` cme-toolbar-items--matrix`:``}${W?` cme-toolbar-items--popup-compact`:``}`,children:(()=>{let e=G.items||[];if(G.id===`greek`){let t=e.reduce((e,t)=>{let n=t.category||`Greek Letters`;return e[n]||(e[n]=[]),e[n].push(t),e},{}),n={"Lowercase Greek Letters":{cols:10,rows:3},"Greek Letter Picker":{cols:1,rows:3},"Blackboard Bold / Number Sets":{cols:2,rows:3},"Blackboard Bold Picker":{cols:1,rows:3},"Fraktur Symbols":{cols:1,rows:3},"Script Symbols":{cols:1,rows:3},"Fraktur Picker":{cols:1,rows:3},"Fraktur / Script Picker":{cols:1,rows:3},"Hebrew Mathematical Symbols":{cols:1,rows:3},"Hebrew Symbol Picker":{cols:1,rows:3},"Arabic-Indic Numeral Systems":{cols:1,rows:3},"Periodic Table Symbols":{cols:2,rows:3},"Periodic Table Picker":{cols:1,rows:3}},r=Object.entries(t);return(0,i.jsx)(`div`,{className:`cme-greek-panel`,children:r.map(([e,t],a)=>{let o=n[e]||{cols:2,rows:Math.max(1,Math.ceil(t.length/2))},s=o.cols,c=o.rows,l=t.every(e=>e.cls?.includes(`arrow-picker-tool`)),d=r[a+1]?.[1]||[],f=d.length>0&&d.every(e=>e.cls?.includes(`arrow-picker-tool`));return(0,i.jsx)(`section`,{className:`cme-symbol-subgroup cme-greek-subgroup${e===`Fraktur Symbols`?` cme-greek-subgroup--no-right-border`:``}${l?` cme-greek-subgroup--picker`:``}${f?` cme-greek-subgroup--before-picker`:``}${W?` cme-symbol-subgroup--compact`:``}${Ie}`,style:{gridTemplateColumns:`repeat(${s}, auto)`,gridTemplateRows:`repeat(${c}, auto)`,"--cme-greek-rows":`repeat(${c}, auto)`},children:t.map((t,n)=>{let r=G,a=`${r.id||r.label||g}-${e}-${n}-${t.insert||t.action||t.label}`,o=t.action===`GREEK_ITALIC_PICKER`,s=t.action===`BLACKBOARD_BOLD_PICKER`,c=t.action===`FRAKTUR_SCRIPT_PICKER`,l=t.action===`HEBREW_SYMBOL_PICKER`,d=t.action===`PERIODIC_TABLE_PICKER`,f=t.action===`ARABIC_INDIC_NUMERALS`,p=t.action===`EASTERN_ARABIC_INDIC_NUMERALS`,m=o?!!ie:s?!!ae:c?k?.picker===(t.picker||`script`):l?!!j:d?!!ce:f?q===`arabicIndic`:p?q===`easternArabicIndic`:!1;return(0,i.jsx)(`button`,{type:`button`,className:`cme-btn cme-greek-btn${W?` cme-btn--compact`:``}${t.cls?` ${t.cls}`:``}${m?` active`:``}`,title:t.title||t.insert,onMouseDown:e=>{if(e.preventDefault(),t.action===`GREEK_ITALIC_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),E(null),F(null),x(null),O(null),A(null),M(null),N(null),D(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),E(null),F(null),x(null),D(null),A(null),M(null),N(null),O(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`FRAKTUR_SCRIPT_PICKER`){let n=e.currentTarget.getBoundingClientRect();S(null),E(null),F(null),x(null),D(null),O(null),M(null),N(null),A(e=>e?.picker===(t.picker||`script`)?null:{x:n.left,y:n.bottom+4,picker:t.picker||`script`});return}if(t.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),E(null),F(null),x(null),D(null),O(null),A(null),N(null),M(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),E(null),F(null),x(null),D(null),O(null),A(null),M(null),N(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`ARABIC_INDIC_NUMERALS`){S(null),E(null),F(null),x(null),D(null),O(null),A(null),M(null),N(null),He(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>u.current?.focus?.());return}if(t.action===`EASTERN_ARABIC_INDIC_NUMERALS`){S(null),E(null),F(null),x(null),D(null),O(null),A(null),M(null),N(null),He(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>u.current?.focus?.());return}$(t.insert,{preserveMathStyle:t.preserveMathStyle,insertStyle:t.insertStyle,focusFirstPlaceholder:t.focusFirstPlaceholder,focusSlotGroup:t.focusSlotGroup})},children:nt(t,{groupId:r.id,isMathMode:U,isChemMode:Fe})},a)})},e)})})}let t=e.some(e=>e.type===`sep`),n=[];if(t){let t={cols:2,items:[]};for(let r of e)r.type===`sep`?(t.items.length>0&&n.push(t),t={cols:r.cols||2,items:[]}):t.items.push(r);if(t.items.length>0&&n.push(t),G.id===`relations`&&(n=n.map(e=>({...e,cols:Math.max(1,Math.ceil(e.items.length/3))}))),G.id===`roots-main`){let[e=[],t=[],r=[],i=[],a=[],o=[],s=[],c=[],l=[],u=[]]=n.map(e=>e.items||[]),d=(e,t)=>t.map(t=>e[t]).filter(Boolean);n=[{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(e,[0,2,1,3])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(t,[0,1])},{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(r,[0,2,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(i,[0,4,2,5,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(a,[0,1,5,4,3,2])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:[]},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(o,[0,1,2])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(s,[1,3,0,4,2,5])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--format`,items:d(c,[0,5,1,3,2,4])},{cols:1,rows:1,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(l,[0])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--dropdown`,items:d(u,[0,1])}].filter(e=>e.items.length>0)}if(G.id===`arrows`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`ARROW_PICKER`&&e?.action!==`ARROW_LABEL_PICKER`),picker:e.find(e=>e?.action===`ARROW_PICKER`||e?.action===`ARROW_LABEL_PICKER`)||null}),c=s(e),l=s(i);n=[{cols:3,trackCols:6,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(c.regular,[1,0,2,4,3,5,6,7])},c.picker?{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[c.picker]}:null,{cols:2,trackCols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup`,items:o(t,[0,1,2,3,4])},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--stack`,items:o(r,[0,1,2])},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[l.picker]}:null,{cols:2,trackCols:2,rows:2,flow:`row`,equalColumns:!0,stretchLastRow:!0,className:` cme-arrows-subgroup`,items:o(a,[0,1,2,3])}].filter(e=>e&&e.items.length>0)}if(G.id===`brackets`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`RELATION_MORE_PICKER`),picker:e.find(e=>e?.action===`RELATION_MORE_PICKER`)||null}),c=s(e),l=s(i),u=s(a),d=o(r,[0,1,2,3,4,5,6,7]);n=[{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(c.regular,[0,2,4,1,3,5])},c.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[c.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:o(t,[0,2,1,3])},{cols:3,rows:3,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:d},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[l.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(u.regular,[0,2,1,3])},u.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[u.picker]}:null].filter(e=>e&&e.items.length>0)}}else for(let t=0;t<e.length;t+=4)n.push({cols:2,items:e.slice(t,t+4)});return n.map((e,t)=>{let n=e.cols||1,r=e.trackCols||n,a=e.items.length,o=n>0?a%n:0,s=o===0?n:o,c=a-s,l=Math.max(1,Math.floor(r/n));return(0,i.jsx)(`div`,{className:`cme-symbol-subgroup${e.className||``}${W?` cme-symbol-subgroup--compact`:``}${Ie}`,style:{gridTemplateColumns:`repeat(${r}, ${e.equalColumns?`minmax(0, 1fr)`:`auto`})`,gridTemplateRows:`repeat(${e.rows||Math.ceil(e.items.length/n)}, auto)`,gridAutoFlow:e.flow||`column`,...e.rows?{"--cme-subgroup-rows":`repeat(${e.rows}, minmax(0, 1fr))`}:{}},children:e.items.map((o,d)=>{let f=e.stretchLastRow&&a>0&&d>=c&&s<n?`span ${Math.max(1,Math.floor(r/s))}`:l>1?`span ${l}`:void 0,p=G,m=p.id||p.label||g,h=`${m}-${t*4+d}-${o.insert||o.action||o.label}`;if(o.type===`dropdown`){let t=o.label===`Font...`,n=o.label===`Size`,r=t&&K.fontOption!==``,a=n&&K.fontSize!==`auto`&&K.fontSize!==`5`,s=t?K.fontOption:n?K.fontSize===`auto`||K.fontSize===`5`?``:K.fontSize:``,c=(t?de:pe).find(e=>e.value===s)?.label||o.label,l=I?.buttonKey===h;return(0,i.jsx)(`button`,{type:`button`,className:`cme-style-select-trigger cme-select cme-btn template${r||a||l?` active`:``}`,title:o.label,style:{width:o.width||`60px`,boxSizing:`border-box`,margin:`2px 0`,gridColumn:o.gridColumn||f||(e.cols===3||e.cols===1?`span 1`:`span 2`),gridRow:o.gridRow,paddingLeft:`6px`},onMouseDown:e=>{e.preventDefault(),e.stopPropagation();let n=e.currentTarget.getBoundingClientRect();ue(e=>e?.buttonKey===h?null:{x:n.left,y:n.bottom,type:t?`font`:`size`,buttonKey:h})},children:c},d)}if(p.isMatrix&&!o.directInsert&&!o.action)return(0,i.jsx)(`div`,{className:`cme-matrix-btn-wrapper`,children:(0,i.jsx)(`button`,{type:`button`,className:`cme-btn template${W?` cme-btn--compact`:``}${o.cls?` ${o.cls}`:``}${_?.type===o.insert?` active`:``}`,title:o.insert,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),_?.type===o.insert)v(null);else{let t=e.currentTarget.getBoundingClientRect();v({type:o.insert,x:t.left+t.width/2,y:t.bottom})}},children:nt(o,{groupId:p.id,isMathMode:U,isChemMode:Fe})})},d);let ee=o.action===`BOLD`,y=o.action===`ITALIC`,b=o.action===`BOLD_ITALIC`,te=o.action===`TEXT_COLOR`,re=o.action===`TOGGLE_RTL`,ie=o.action===`ARROW_PICKER`,oe=o.action===`RELATION_MORE_PICKER`,se=o.action===`ARROW_LABEL_PICKER`,P=o.action===`BLACKBOARD_BOLD_PICKER`,fe=o.action===`FRAKTUR_SCRIPT_PICKER`,me=o.action===`HEBREW_SYMBOL_PICKER`,he=o.action===`PERIODIC_TABLE_PICKER`,ge=ee&&K.bold&&!K.italic||y&&K.italic&&!K.bold||b&&K.boldItalic||re&&B||ie&&!!ne||oe&&C?.picker===o.picker||se&&!!T||P&&!!ae||fe&&k?.picker===(o.picker||`script`)||me&&!!j||he&&!!ce||te&&K.color!==`none`;return(0,i.jsx)(`button`,{type:`button`,className:`cme-btn${p.isTemplate?` template`:``}${W?` cme-btn--compact`:``}${o.cls?` ${o.cls}`:``}${ge?` active`:``}`,title:o.title||o.insert,style:o.gridColumn||o.gridRow||f?{gridColumn:o.gridColumn||f,gridRow:o.gridRow}:void 0,onMouseDown:e=>{e.preventDefault();let t=u.current;if(o.action===`SPECIAL_CHARS`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),E(null),D(null),O(null),A(null),M(null),N(null),F(null),x({x:t.left,y:t.bottom+4})}else if(o.action===`ARROW_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),w(null),E(null),D(null),O(null),A(null),M(null),N(null),F(null),S(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`RELATION_MORE_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),S(null),E(null),D(null),O(null),A(null),M(null),N(null),F(null),w(e=>e?.picker===o.picker?null:{x:t.left,y:t.bottom+4,picker:o.picker})}else if(o.action===`ARROW_LABEL_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),S(null),w(null),D(null),O(null),A(null),M(null),N(null),F(null),E(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),S(null),E(null),F(null),w(null),D(null),A(null),M(null),N(null),O(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`FRAKTUR_SCRIPT_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),S(null),E(null),F(null),w(null),D(null),O(null),M(null),N(null),A(e=>e?.picker===(o.picker||`script`)?null:{x:t.left,y:t.bottom+4,picker:o.picker||`script`})}else if(o.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),S(null),E(null),F(null),w(null),D(null),O(null),A(null),N(null),M(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();x(null),S(null),E(null),F(null),w(null),D(null),O(null),A(null),M(null),N(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`TEXT_COLOR`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),E(null),D(null),O(null),A(null),M(null),N(null),Oe(K.color===`none`?``:K.color),Ae(``),F({x:t.left,y:t.bottom+4})}else if(o.action===`TOGGLE_RTL`)Te(e=>!e),requestAnimationFrame(()=>u.current?.focus?.());else if(o.action===`BOLD`)$e(!K.bold,!1);else if(o.action===`BOLD_ITALIC`){let e=!K.boldItalic;$e(e,e)}else if(o.action===`CUT`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{}),t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.())}else if(o.action===`COPY`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{})}else o.action===`PASTE`?navigator.clipboard?.readText&&navigator.clipboard.readText().then(e=>{e&&$(le(e,q))}).catch(()=>{}):o.action===`ARABIC_INDIC_NUMERALS`?(He(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>u.current?.focus?.())):o.action===`EASTERN_ARABIC_INDIC_NUMERALS`?(He(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>u.current?.focus?.())):o.action===`MOVE_TEXT_UP`?mt(`up`):o.action===`MOVE_TEXT_RIGHT`?mt(`right`):o.action===`MOVE_TEXT_LEFT`?mt(`left`):o.action===`MOVE_TEXT_DOWN`?mt(`down`):o.action===`BLACKBOARD`?$(`\\mathbb{#0}`,{preserveMathStyle:!0}):o.action===`GREEK`?$(`\\Omega`):o.action===`TILDE`?$(`\\widetilde{#0}`):o.action===`ITALIC`?$e(!1,!K.italic):o.action===`TEXT`?$(`\\text{#0}`):o.action===`UNDO`?u.current?.executeCommand(`undo`):o.action===`REDO`?u.current?.executeCommand(`redo`):o.action===`CLEAR`?t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.()):o.insert===`\\hphantom{0}`||o.insert===`\\,`||o.insert===`\\!`?ft(o.insert):$(o.insert,{preserveMathStyle:o.preserveMathStyle,insertStyle:o.insertStyle,focusFirstPlaceholder:o.focusFirstPlaceholder,focusSlotGroup:o.focusSlotGroup})},children:nt(o,{groupId:p.id,isMathMode:U,isChemMode:Fe})},`${m}-${t*4+d}`)})},t)})})()})]}),(0,i.jsx)(`div`,{className:`cme-mathfield-container${B?` cme-mathfield-container--rtl`:``}`,onMouseDown:e=>{u.current&&(e.target===u.current||u.current.contains(e.target))||(e.preventDefault(),requestAnimationFrame(()=>{u.current?.focus?.()}))},children:(0,i.jsx)(`math-field`,{ref:u,class:`cme-mathfield${B?` cme-mathfield--rtl`:``}`,dir:B?`rtl`:`ltr`,"letter-shape-style":`tex`,tabIndex:0,"math-virtual-keyboard-policy":`manual`,placeholder:``})}),(0,i.jsxs)(`div`,{className:`cme-popup-footer`,children:[(0,i.jsx)(`button`,{type:`button`,className:`cme-insert-btn`,onClick:gt,children:l?`Update`:`Insert`}),(0,i.jsx)(`button`,{type:`button`,className:`cme-cancel-btn`,onClick:a,children:`Cancel`})]}),_&&(0,i.jsx)(pt,{matrixType:_.type,x:_.x,y:_.y,onSelect:(e,t)=>{ht(_.type,e,t),v(null)},onMouseEnter:()=>{},onMouseLeave:()=>{}}),b&&(0,t.createPortal)((0,i.jsx)(s,{isOpen:!!b,position:b,onClose:()=>x(null),onInsert:e=>{$(e),x(null)}}),document.body),ne&&(0,t.createPortal)((0,i.jsx)(rt,{position:ne,onInsert:e=>{$(e),S(null)}}),document.body),C&&(0,t.createPortal)((0,i.jsx)(it,{position:C,picker:C.picker,popupBounds:d.current?.getBoundingClientRect?.()||null,items:te[C.picker]||[],onInsert:e=>{$(typeof e==`string`?e:e.insert,{preserveMathStyle:e?.preserveMathStyle,insertStyle:e?.insertStyle,focusFirstPlaceholder:e?.focusFirstPlaceholder,focusSlotGroup:e?.focusSlotGroup}),w(null)}}),document.body),T&&(0,t.createPortal)((0,i.jsx)(at,{position:T,onInsert:e=>{$(e.insert,{focusFirstPlaceholder:e.focusFirstPlaceholder,focusSlotGroup:e.focusSlotGroup}),E(null)}}),document.body),ie&&(0,t.createPortal)((0,i.jsx)(ot,{position:ie,onInsert:e=>{$(re(e.label)),D(null)}}),document.body),ae&&(0,t.createPortal)((0,i.jsx)(st,{position:ae,onInsert:e=>{$(e.insert,{preserveMathStyle:e.preserveMathStyle,insertStyle:e.insertStyle,focusFirstPlaceholder:e.focusFirstPlaceholder,focusSlotGroup:e.focusSlotGroup}),O(null)}}),document.body),k&&(0,t.createPortal)((0,i.jsx)(ct,{position:k,items:k?.picker===`fraktur`?oe:se,onInsert:e=>{$(e),A(null)}}),document.body),j&&(0,t.createPortal)((0,i.jsx)(lt,{position:j,onInsert:e=>{$(e),M(null)}}),document.body),ce&&(0,t.createPortal)((0,i.jsx)(ut,{position:ce,onInsert:e=>{$(e),N(null)}}),document.body),I&&(0,t.createPortal)((0,i.jsx)(dt,{position:I,options:I.type===`font`?de:pe,value:I.type===`font`?K.fontOption:K.fontSize,width:I.type===`font`?142:96,onSelect:e=>{Q(I.type,e),ue(null)}}),document.body),P&&(0,t.createPortal)((0,i.jsxs)(`div`,{className:`cme-color-picker-popup`,style:{position:`fixed`,left:Math.min(P.x,window.innerWidth-260)+`px`,top:Math.min(P.y,window.innerHeight-235)+`px`,zIndex:1e5,width:`244px`,background:`linear-gradient(180deg, #ffffff 0%, #f6fafc 100%)`,border:`1px solid #c8d4dc`,padding:`12px`,display:`flex`,flexDirection:`column`,gap:`10px`,borderRadius:`10px`,boxShadow:`0 16px 28px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08)`},children:[(0,i.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`10px`},children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`div`,{style:{fontSize:`12px`,fontWeight:700,color:`#1f2f37`,lineHeight:1.1},children:`Text Color`}),(0,i.jsx)(`div`,{style:{fontSize:`10px`,color:`#667b88`,marginTop:`2px`},children:`Pick a swatch or enter a custom value`})]}),(0,i.jsx)(`div`,{style:{width:`28px`,height:`28px`,borderRadius:`8px`,border:`1px solid #b8c8d2`,background:K.color===`none`?`linear-gradient(135deg, #ffffff 0%, #eef3f7 100%)`:tt(V)||K.color,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.8)`},title:K.color===`none`?`No color selected`:K.color})]}),(0,i.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(6, 1fr)`,gap:`6px`,padding:`8px`,border:`1px solid #d7e1e8`,borderRadius:`8px`,background:`rgba(255,255,255,0.78)`},children:Re.map(e=>{let t=K.color===e.normalized;return(0,i.jsx)(`div`,{title:e.label,style:{width:`22px`,height:`22px`,backgroundColor:e.value,cursor:`pointer`,border:t?`2px solid #d6a528`:`1px solid rgba(31, 47, 55, 0.22)`,borderRadius:`6px`,boxSizing:`border-box`,boxShadow:t?`0 0 0 2px rgba(214, 165, 40, 0.16)`:`inset 0 1px 0 rgba(255,255,255,0.6)`},onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),Z(e.normalized)&&F(null)}},e.normalized)})}),(0,i.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,i.jsx)(`div`,{style:{fontSize:`10px`,fontWeight:700,color:`#5f7481`,letterSpacing:`0.04em`,textTransform:`uppercase`},children:`Custom Value`}),(0,i.jsx)(`input`,{type:`text`,value:V,placeholder:`#0B7D1E or tomato`,style:{width:`100%`,minWidth:0,height:`32px`,border:`1px solid ${ke?`#dc2626`:`#b7c7d1`}`,borderRadius:`8px`,padding:`0 10px`,fontSize:`12px`,color:`#22343d`,background:`#fff`,boxSizing:`border-box`,outline:`none`},onChange:e=>{Oe(e.target.value),ke&&Ae(``)},onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),Z(V)&&F(null))}})]}),(0,i.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,i.jsx)(`button`,{type:`button`,style:{flex:1,border:`1px solid #7a92a1`,borderRadius:`8px`,background:`linear-gradient(180deg, #8ea3b0 0%, #738d9d 100%)`,color:`#fff`,fontSize:`11px`,fontWeight:600,height:`30px`,minWidth:0,padding:`0 10px`,cursor:`pointer`},onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),Z(V)&&F(null)},children:`Apply Color`}),(0,i.jsx)(`button`,{type:`button`,style:{width:`32px`,minWidth:`32px`,border:`1px solid #c4d0d8`,borderRadius:`8px`,background:`#ffffff`,color:`#647987`,fontSize:`12px`,fontWeight:700,height:`30px`,padding:0,cursor:`pointer`},title:`Clear color`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),Z(`none`),F(null)},children:`×`})]}),ke?(0,i.jsx)(`div`,{style:{fontSize:`10px`,color:`#b91c1c`,lineHeight:1.2,marginTop:`-2px`},children:ke}):null]}),document.body)]})}function ht(e){let t=e,n=t.match(/^\\ce\{([\s\S]*)\}$/);n&&(t=n[1]);let r=[[`\\varepsilon`,`ε`],[`\\varphi`,`φ`],[`\\alpha`,`α`],[`\\beta`,`β`],[`\\gamma`,`γ`],[`\\delta`,`δ`],[`\\epsilon`,`ε`],[`\\zeta`,`ζ`],[`\\eta`,`η`],[`\\theta`,`θ`],[`\\iota`,`ι`],[`\\kappa`,`κ`],[`\\lambda`,`λ`],[`\\mu`,`μ`],[`\\nu`,`ν`],[`\\xi`,`ξ`],[`\\pi`,`π`],[`\\rho`,`ρ`],[`\\sigma`,`σ`],[`\\tau`,`τ`],[`\\upsilon`,`υ`],[`\\phi`,`φ`],[`\\chi`,`χ`],[`\\psi`,`ψ`],[`\\omega`,`ω`],[`\\Gamma`,`Γ`],[`\\Delta`,`Δ`],[`\\Theta`,`Θ`],[`\\Lambda`,`Λ`],[`\\Xi`,`Ξ`],[`\\Pi`,`Π`],[`\\Sigma`,`Σ`],[`\\Upsilon`,`Υ`],[`\\Phi`,`Φ`],[`\\Psi`,`Ψ`],[`\\Omega`,`Ω`],[`\\pm`,`±`],[`\\mp`,`∓`],[`\\times`,`×`],[`\\div`,`÷`],[`\\backslash`,`\\`],[`\\cdot`,`·`],[`\\neq`,`≠`],[`\\leq`,`≤`],[`\\geq`,`≥`],[`\\approx`,`≈`],[`\\equiv`,`≡`],[`\\infty`,`∞`],[`\\sum`,`∑`],[`\\prod`,`∏`],[`\\int`,`∫`],[`\\oint`,`∮`],[`\\iint`,`∬`],[`\\iiint`,`∭`],[`\\oiint`,`∯`],[`\\oiiint`,`∰`],[`\\partial`,`∂`],[`\\nabla`,`∇`],[`\\in`,`∈`],[`\\notin`,`∉`],[`\\subset`,`⊂`],[`\\subseteq`,`⊆`],[`\\supset`,`⊃`],[`\\supseteq`,`⊇`],[`\\cup`,`∪`],[`\\cap`,`∩`],[`\\emptyset`,`∅`],[`\\setminus`,`﹨`],[`\\forall`,`∀`],[`\\exists`,`∃`],[`\\neg`,`¬`],[`\\land`,`∧`],[`\\lor`,`∨`],[`\\leftrightarrow`,`↔`],[`\\Leftrightarrow`,`⇔`],[`\\rightarrow`,`→`],[`\\leftarrow`,`←`],[`\\Rightarrow`,`⇒`],[`\\Leftarrow`,`⇐`],[`\\uparrow`,`↑`],[`\\downarrow`,`↓`],[`\\sin`,`sin`],[`\\cos`,`cos`],[`\\tan`,`tan`],[`\\cot`,`cot`],[`\\sec`,`sec`],[`\\csc`,`csc`],[`\\log`,`log`],[`\\ln`,`ln`],[`\\exp`,`exp`],[`\\lim`,`lim`],...T.map(({insert:e,label:t})=>[e,t]),...D.map(({insert:e,label:t})=>[e,t]),...j.map(({insert:e,label:t})=>[e,t]),[`\\wp`,`℘`],[`\\left(`,`(`],[`\\right)`,`)`],[`\\left[`,`[`],[`\\right]`,`]`],[`\\left|`,`|`],[`\\right|`,`|`],[`\\left\\{`,`{`],[`\\right\\}`,`}`],[`\\,`,` `],[`\\;`,` `],[`\\quad`,` `],[`\\qquad`,` `],[`\\prime`,`′`],[`\\vdots`,`⋮`],[`\\cdots`,`⋯`],[`\\ddots`,`⋱`],[`\\ldots`,`…`]];for(let[e,n]of r){let r=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);t=t.replace(new RegExp(r,`g`),n)}t=t.replace(/\\frac\{([^}]*)\}\{([^}]*)\}/g,`$1/$2`),t=t.replace(/\\sqrt\[([^\]]*)\]\{([^}]*)\}/g,`$1√($2)`),t=t.replace(/\\sqrt\{([^}]*)\}/g,`√($1)`),t=t.replace(/\\vec\{([^}]*)\}/g,`$1⃗`),t=t.replace(/\\hat\{([^}]*)\}/g,`$1̂`),t=t.replace(/\\bar\{([^}]*)\}/g,`$1̄`),t=t.replace(/\\ddot\{([^}]*)\}/g,`$1̈`),t=t.replace(/\\dot\{([^}]*)\}/g,`$1̇`),t=t.replace(/\\text\{([^}]*)\}/g,`$1`),t=t.replace(/\\begin\{pmatrix\}([\s\S]*?)\\end\{pmatrix\}/g,(e,t)=>`[`+t.replace(/\\\\/g,`; `).replace(/&/g,`, `).trim()+`]`);let i={0:`⁰`,1:`¹`,2:`²`,3:`³`,4:`⁴`,5:`⁵`,6:`⁶`,7:`⁷`,8:`⁸`,9:`⁹`,"+":`⁺`,"-":`⁻`,"=":`⁼`,"(":`⁽`,")":`⁾`,n:`ⁿ`,i:`ⁱ`};t=t.replace(/\^\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>i[e]||e).join(``)),t=t.replace(/\^([a-zA-Z0-9])/g,(e,t)=>i[t]||t);let a={0:`₀`,1:`₁`,2:`₂`,3:`₃`,4:`₄`,5:`₅`,6:`₆`,7:`₇`,8:`₈`,9:`₉`,"+":`₊`,"-":`₋`,"=":`₌`,"(":`₍`,")":`₎`,a:`ₐ`,e:`ₑ`,o:`ₒ`,x:`ₓ`,i:`ᵢ`,j:`ⱼ`,n:`ₙ`};return t=t.replace(/_\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>a[e]||e).join(``)),t=t.replace(/_([a-zA-Z0-9])/g,(e,t)=>a[t]||t),t=t.replace(/->/g,`→`),t=t.replace(/<=>/g,`⇌`),t=t.replace(/\\[a-zA-Z]+/g,``),t=t.replace(/[{}]/g,``),t=t.replace(/\s+/g,` `),t=t.replace(/\\\\/g,`
3461
+ `),t.trim()}function gt({value:t,onChange:a,className:o=``}){let s=(0,e.useRef)(null),c=(0,e.useRef)(!1),[l,f]=(0,e.useState)(null),[m,g]=(0,e.useState)(null);(0,e.useEffect)(()=>{c.current=!!l},[l]),(0,e.useEffect)(()=>()=>{window.__ckMathWidgetClickHandler=null},[]);let ee=(0,e.useCallback)(e=>{g(null),c.current=!0,f(e)},[]),_=(0,e.useCallback)(({preserveEditorSelection:e=!1}={})=>{c.current=!1,f(null),g(null);let t=s.current;t&&!e&&t.model.change(e=>{e.setSelection(null)})},[]),[v,y]=(0,e.useState)(!1),b=(0,e.useCallback)((e,{direction:t=`ltr`}={})=>{let n=s.current;if(!n||!e?.trim())return;let r={latex:e.trim(),dir:t===`rtl`?`rtl`:`ltr`};if(m){let e=p(n,m.modelElement)?m.modelElement:null;e?n.model.change(t=>{let n=t.createElement(`mathInline`,r),i=t.createPositionBefore(e);t.insert(n,i),t.remove(e),t.setSelection(t.createPositionAfter(n))}):n.model.change(e=>{let t=e.createElement(`mathInline`,r);n.model.insertContent(t)}),g(null)}else if(v){let t=ht(e.trim());if(!t)return;n.model.change(e=>{let r=e.createText(t);n.model.insertContent(r)})}else n.model.change(e=>{let t=e.createElement(`mathInline`,r),i=n.model.document.selection.getFirstPosition(),a=n.model.insertContent(t,i),o=e.createText(` `),s=a?.end||e.createPositionAfter(t),c=n.model.insertContent(o,s);e.setSelection(c?.end||e.createPositionAfter(o))});n.editing.view.focus()},[v,m]),te=(0,e.useMemo)(()=>ft(ee),[ee]),x=(0,e.useCallback)(e=>{s.current=e;let t=(e,t,n=`ltr`)=>{if(!t)return;let r=/^\\ce\{/.test(t),i=e?.getAttribute(`dir`)===`rtl`||n===`rtl`?`rtl`:`ltr`;c.current=!0,g({modelElement:e,latex:t,direction:i}),f(r?`chem`:`math`)};e.mathWidgetClickHandler=t,window.__ckMathWidgetClickHandler=t;let n=e.ui.getEditableElement();if(!n||n._ckMathClickAttached)return;n._ckMathClickAttached=!0;let r=t=>{let n=u(t.target);n&&t.button===0&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation?.(),h(e,null,d(n),n))};n.addEventListener(`mousedown`,r,!0),n.addEventListener(`click`,r,!0)},[]);return(0,i.jsxs)(`div`,{className:`ck-editor-shell ${o}`.trim(),children:[(0,i.jsx)(`style`,{children:`
2623
3462
  .ck-powered-by { display: none !important; }
2624
3463
  .ck-math-widget {
2625
3464
  display: inline-block !important;
@@ -2642,7 +3481,10 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2642
3481
  width: auto !important;
2643
3482
  max-width: 100% !important;
2644
3483
  pointer-events: none !important;
2645
- color: #000000 !important;
3484
+ color: #ffffff !important;
3485
+ font-family: Helvetica, Arial, sans-serif !important;
3486
+ --text-font-family: Helvetica, Arial, sans-serif;
3487
+ --math-font-family: Helvetica, Arial, sans-serif;
2646
3488
  }
2647
3489
  .ck-math-widget[data-dir="rtl"] {
2648
3490
  direction: rtl !important;
@@ -2655,4 +3497,4 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2655
3497
  }
2656
3498
  .ck-math-widget:hover,
2657
3499
  .ck-math-widget.ck-widget_selected { outline: 2px solid #0f766e; outline-offset: 1px; border-radius: 4px; }
2658
- `}),(f||m)&&(0,i.jsxs)(`div`,{className:`ck-preview-toolbar`,children:[f?(0,i.jsx)(`p`,{className:`ck-preview-toolbar-label`,children:f}):null,m?(0,i.jsx)(`button`,{id:`ck-preview-question-btn`,type:`button`,className:`ck-preview-trigger`,onClick:ae,children:(0,i.jsx)(`span`,{children:h})}):null]}),(0,i.jsx)(n.CKEditor,{editor:r.ClassicEditor,data:O,onReady:ie,config:{licenseKey:`GPL`,plugins:[r.Essentials,r.Bold,r.Italic,r.Underline,r.Paragraph,r.Heading,r.Table,r.TableToolbar,r.TableCellProperties,r.TableProperties,r.List,r.Link,r.Undo,ue,re],toolbar:{items:[`heading`,`|`,`bold`,`italic`,`underline`,`|`,`bulletedList`,`numberedList`,`|`,`insertTable`,`|`,`link`,`|`,`mathType`,`chemType`,`|`,`undo`,`redo`]},table:{contentToolbar:[`tableColumn`,`tableRow`,`mergeTableCells`,`tableProperties`,`tableCellProperties`]}},onChange:(e,t)=>{let n=t.getData();D||k(n),s&&s(n)}}),b&&(0,i.jsx)(G,{mode:b,onInsert:ne,onClose:j,initialLatex:S?.latex||``,initialDirection:S?.direction||`ltr`,isEditing:!!S}),w&&(0,t.createPortal)((0,i.jsx)(`div`,{id:`ck-preview-modal-overlay`,className:`ck-preview-modal-overlay`,onClick:oe,children:(0,i.jsxs)(`div`,{id:`ck-preview-modal`,className:`ck-preview-modal`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`ck-preview-modal-title`,onClick:e=>e.stopPropagation(),children:[(0,i.jsxs)(`div`,{className:`ck-preview-modal-header`,children:[(0,i.jsx)(`h2`,{id:`ck-preview-modal-title`,className:`ck-preview-modal-title`,children:g}),(0,i.jsx)(`button`,{id:`ck-preview-modal-close-x`,type:`button`,className:`ck-preview-modal-icon-button`,onClick:oe,"aria-label":`Close preview`,children:`×`})]}),(0,i.jsx)(`div`,{className:`ck-preview-modal-body`,children:E&&E.trim()?(0,i.jsx)(`div`,{className:`ck-preview-render-zone`,dangerouslySetInnerHTML:{__html:E}}):(0,i.jsx)(`p`,{className:`ck-preview-empty-state`,children:_})}),(0,i.jsx)(`div`,{className:`ck-preview-modal-footer`,children:(0,i.jsx)(`button`,{id:`ck-preview-modal-close-btn`,type:`button`,className:`ck-preview-modal-close-button`,onClick:oe,children:`Close`})})]})}),document.body)]})}var Oe=K;exports.CkEditor=K,exports.CustomCkEditorPackage=K,exports.default=Oe;
3500
+ `}),(0,i.jsx)(n.CKEditor,{editor:r.ClassicEditor,data:t,onReady:x,config:{licenseKey:`GPL`,plugins:[r.Essentials,r.Bold,r.Italic,r.Underline,r.Paragraph,r.Heading,r.Table,r.TableToolbar,r.TableCellProperties,r.TableProperties,r.List,r.Link,r.Undo,X,te],toolbar:{items:[`heading`,`|`,`bold`,`italic`,`underline`,`|`,`bulletedList`,`numberedList`,`|`,`insertTable`,`|`,`link`,`|`,`mathType`,`chemType`,`|`,`undo`,`redo`]},table:{contentToolbar:[`tableColumn`,`tableRow`,`mergeTableCells`,`tableProperties`,`tableCellProperties`]}},onChange:(e,t)=>{a&&a(t.getData())}}),l&&(0,i.jsx)(mt,{mode:l,onInsert:b,onClose:_,initialLatex:m?.latex||``,initialDirection:m?.direction||`ltr`,isEditing:!!m})]})}var _t=gt;exports.CkEditor=gt,exports.CustomCkEditorPackage=gt,exports.default=_t;