@pie-element/math-templated 7.1.1-next.45 → 7.1.1-next.46

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.
@@ -145,21 +145,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
145
145
  M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,F.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});wm.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired};var Tm=({bgFill:e,fgFill:t,borderFill:n})=>(0,F.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,F.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
146
146
  C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,F.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,F.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,F.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
147
147
  M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,F.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});Tm.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired,borderFill:O.string.isRequired};var Em=L(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),Dm=({open:e,size:t})=>(0,F.jsx)(Em,{size:t,children:e?(0,F.jsx)(wm,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,F.jsx)(Tm,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});Dm.propTypes={open:O.bool,size:O.string},Dm.defaultProps={open:!1};var Om=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,F.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,F.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});Om.propTypes={fill:O.string.isRequired};var km=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,F.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});km.propTypes={fill:O.string.isRequired};var Am=bm(Om,km);Am.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Am.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var jm=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,F.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});jm.propTypes={fill:O.string.isRequired};var Mm=({fill:e})=>(0,F.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});Mm.propTypes={fill:O.string.isRequired};var Nm=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
148
- C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Nm.propTypes={fill:O.string.isRequired};var Pm=class extends P.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(jm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),feedback:{check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),square:{check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(jm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),open:{check:(0,F.jsx)(mm,{children:(0,F.jsx)(jm,{fill:n})}),emoji:(0,F.jsx)(mm,{children:(0,F.jsx)(Nm,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};Pm.propTypes={iconSet:O.oneOf([`emoji`,`check`,void 0]),shape:O.oneOf([`square`,void 0]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string},Pm.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Fm=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,F.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,F.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Fm.propTypes={fill:O.string.isRequired};var Im=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,F.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Im.propTypes={fill:O.string.isRequired};var Lm=bm(Fm,Im);Lm.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Lm.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Rm(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function zm(e){let t=qs(e);return t.body===e?cp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bm(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Vm(e){return parseFloat(cp(e).getComputedStyle(e).paddingRight)||0}function Hm(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Um(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Hm(e);t&&n&&Bm(e,i)})}function Wm(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Gm(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(zm(r)){let e=Rm(cp(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Vm(r)+e}px`;let t=qs(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Vm(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=qs(r).body;else{let t=r.parentElement,n=cp(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Km(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var qm=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bm(e.modalRef,!1);let r=Km(t);Um(t,e.mount,e.modalRef,r,!0);let i=Wm(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Wm(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Gm(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Wm(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Bm(e.modalRef,t),Um(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Bm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Jm(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Ym=Jm;function Xm(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Zm=Xm,Qm=`data-mui-focusable`;function $m(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Qm}]`):null}var eh=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function th(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function nh(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function rh(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||nh(e))}function ih(e){let t=[],n=[];return Array.from(e.querySelectorAll(eh)).forEach((e,r)=>{let i=th(e);i===-1||!rh(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ah(){return!0}function oh(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ih,isEnabled:o=ah,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(!1),m=P.useRef(null),h=Vs(rs(t),m),g=P.useRef(null);P.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),P.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Zm(qs(m.current)),t=$m(m.current)??m.current;return Ym(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!m.current)return;let e=qs(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Zm(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Zm(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Ym(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Zm(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),P.cloneElement(t,{ref:h,onFocus:_}),(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var sh={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},ch={opacity:0,visibility:`hidden`},lh=P.forwardRef(function(e,t){let n=Bo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=P.useRef(null),y=Hs(v,rs(o),t),b=Rs(v,d),x=Rs(v,(e,t)=>{Ls(e);let r=Bs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Rs(v,u),C=Rs(v,m),w=Rs(v,e=>{let t=Bs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Rs(v,e=>{e.style.transition=``,p&&p(e)});return(0,F.jsx)(Cs,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=zs(e,c,sh,ch,h,o.props.style);return P.cloneElement(o,{style:r,ref:y,...n})}})});function uh(e){return ai(`MuiBackdrop`,e)}oi(`MuiBackdrop`,[`root`,`invisible`]);var dh=e=>{let{classes:t,invisible:n}=e;return Da({root:[`root`,n&&`invisible`]},uh,t)},fh=L(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),ph=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=dh(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=du(`root`,{elementType:fh,externalForwardedProps:_,className:ri(g.root,i),ownerState:h}),[b,x]=du(`transition`,{elementType:lh,externalForwardedProps:_,ownerState:h});return(0,F.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,F.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function mh(e){return typeof e==`function`?e():e}function hh(e){return e?e.props.hasOwnProperty(`in`):!1}var gh=()=>{},_h=new qm;function vh(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=P.useRef({}),f=P.useRef(null),p=P.useRef(null),m=Vs(p,u),[h,g]=P.useState(!l),_=hh(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>qs(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{_h.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=ou(()=>{let e=mh(t)||y().body;_h.add(b(),e),p.current&&x()}),C=()=>_h.isTopModal(b()),w=ou(e=>{f.current=e,e&&(l&&C()?x():p.current&&Bm(p.current,v))}),T=P.useCallback(()=>{_h.remove(b(),v)},[v]);P.useEffect(()=>()=>{T()},[T]),P.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Ul(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Qf(()=>{g(!1),a&&a()},s?.props.onEnter??gh),onExited:Qf(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??gh)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function yh(e){return ai(`MuiModal`,e)}oi(`MuiModal`,[`root`,`hidden`,`backdrop`]);var bh=e=>{let{open:t,exited:n,classes:r}=e;return Da({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},yh,r)},xh=L(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(is(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Sh=L(ph,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Ch=P.forwardRef(function(e,t){let n=as({name:`MuiModal`,props:e}),{BackdropComponent:r=Sh,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=vh({...ee,rootRef:t}),ae={...ee,exited:re},oe=bh(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ce,le]=du(`root`,{ref:t,elementType:xh,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:ri(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ue,de]=du(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ri(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,F.jsx)(Xl,{ref:ne,container:l,disablePortal:g,children:(0,F.jsxs)(ce,{...le,children:[!y&&r?(0,F.jsx)(ue,{...de}):null,(0,F.jsx)(oh,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:P.cloneElement(c,M)})]})})});function wh(e){return ai(`MuiPaper`,e)}oi(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var Th=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Da({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},wh,i)},Eh=L(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(is(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Dh=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiPaper`}),r=Bo(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=Th(u);return(0,F.jsx)(Eh,{as:a,ownerState:u,className:ri(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${ji(`#fff`,xo(o))}, ${ji(`#fff`,xo(o))})`}},...l.style}})});function Oh(e){return ai(`MuiPopover`,e)}oi(`MuiPopover`,[`root`,`paper`]);function kh(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Ah(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function jh(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Mh(e){return typeof e==`function`?e():e}var Nh=e=>{let{classes:t}=e;return Da({root:[`root`],paper:[`paper`]},Oh,t)},Ph=L(Ch,{name:`MuiPopover`,slot:`Root`})({}),Fh=L(Dh,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Ih=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=P.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Nh(w),E=P.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Mh(i),t=(e&&e.nodeType===1?e:sp(C.current).body).getBoundingClientRect();return{top:t.top+kh(t,a.vertical),left:t.left+Ah(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=P.useCallback(e=>({vertical:kh(e,_.vertical),horizontal:Ah(e,_.horizontal)}),[_.horizontal,_.vertical]),O=P.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:jh(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=lp(Mh(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:jh(n)}},[i,s,E,D,f]),[ee,te]=P.useState(p),k=P.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);P.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};P.useEffect(()=>{p&&k()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),P.useEffect(()=>{if(!p)return;let e=ap(()=>{k()}),t=lp(Mh(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=du(`transition`,{elementType:Ks,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?sp(Mh(i)).body:void 0),[M,{slots:se,slotProps:ce,...le}]=du(`root`,{ref:t,elementType:Ph,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:fp(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:ri(T.root,l)}),[ue,de]=du(`paper`,{ref:C,className:T.paper,elementType:Fh,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,F.jsx)(M,{...le,...!Vl(M)&&{slots:se,slotProps:ce,disableScrollLock:x},children:(0,F.jsx)(ie,{...ae,timeout:j,children:(0,F.jsx)(ue,{...de,children:c})})})}),Lh={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},Rh={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},zh=s({background:()=>lg,backgroundDark:()=>ug,black:()=>Cg,blueGrey100:()=>jg,blueGrey300:()=>Mg,blueGrey600:()=>Ng,blueGrey900:()=>Pg,border:()=>gg,borderDark:()=>vg,borderGray:()=>yg,borderLight:()=>_g,buttonBorder:()=>Vg,buttonFocusOutline:()=>Ag,buttonHoverBg:()=>Hg,correct:()=>Gh,correctSecondary:()=>Kh,correctTertiary:()=>qh,correctWithIcon:()=>Jh,defaults:()=>B,disabled:()=>Hh,disabledSecondary:()=>Uh,disabledText:()=>Wh,dropdownBackground:()=>fg,fadedPrimary:()=>ig,focusChecked:()=>Eg,focusCheckedBorder:()=>Dg,focusUnchecked:()=>Og,focusUncheckedBorder:()=>kg,incorrect:()=>Yh,incorrectSecondary:()=>Zh,incorrectWithIcon:()=>Xh,keyBoardFocusIndicator:()=>Bg,keypadButton:()=>Fg,keypadButtonHover:()=>Rg,keypadButtonOperator:()=>Ig,keypadButtonOperatorHover:()=>zg,keypadEmptyPlaceholder:()=>Lg,missing:()=>Qh,missingWithIcon:()=>$h,primary:()=>eg,primaryDark:()=>ng,primaryLight:()=>tg,primaryText:()=>rg,secondary:()=>ag,secondaryBackground:()=>dg,secondaryDark:()=>sg,secondaryLight:()=>og,secondaryText:()=>cg,surface:()=>pg,tableGrid:()=>bg,tableGridLight:()=>xg,tableStripe:()=>Sg,tertiary:()=>mg,tertiaryLight:()=>hg,text:()=>Vh,transparent:()=>Tg,v:()=>Bh,visualElementsColors:()=>Ug,white:()=>wg}),B={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Ia[500],CORRECT_SECONDARY:Ia[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Na[500],INCORRECT_SECONDARY:Ma[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Ma[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Rh[500],PRIMARY_LIGHT:Rh[200],PRIMARY_DARK:Rh[800],SECONDARY:Lh.A400,SECONDARY_LIGHT:Lh[200],SECONDARY_DARK:Lh[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(B);var Bh=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},V=Bh(`pie`),Vh=()=>V(`text`,B.TEXT),Hh=()=>V(`disabled`,B.DISABLED),Uh=()=>V(`disabled-secondary`,B.DISABLED_SECONDARY),Wh=()=>V(`disabled-text`,`text`,B.DISABLED_TEXT),Gh=()=>V(`correct`,B.CORRECT),Kh=()=>V(`correct-secondary`,B.CORRECT_SECONDARY),qh=()=>V(`correct-tertiary`,B.CORRECT_TERTIARY),Jh=()=>V(`correct-icon`,B.CORRECT_WITH_ICON),Yh=()=>V(`incorrect`,B.INCORRECT),Xh=()=>V(`incorrect-icon`,B.INCORRECT_WITH_ICON),Zh=()=>V(`incorrect-secondary`,B.INCORRECT_SECONDARY),Qh=()=>V(`missing`,B.MISSING),$h=()=>V(`missing-icon`,B.MISSING_WITH_ICON),eg=()=>V(`primary`,B.PRIMARY),tg=()=>V(`primary-light`,B.PRIMARY_LIGHT),ng=()=>V(`primary-dark`,B.PRIMARY_DARK),rg=()=>V(`primary-text`,`text`,B.TEXT),ig=()=>V(`faded-primary`,B.FADED_PRIMARY),ag=()=>V(`secondary`,B.SECONDARY),og=()=>V(`secondary-light`,B.SECONDARY_LIGHT),sg=()=>V(`secondary-dark`,B.SECONDARY_DARK),cg=()=>V(`secondary-text`,`text`,B.TEXT),lg=()=>V(`background`,B.BACKGROUND),ug=()=>V(`background-dark`,B.BACKGROUND_DARK),dg=()=>V(`secondary-background`,B.SECONDARY_BACKGROUND),fg=()=>V(`dropdown-background`,B.DROPDOWN_BACKGROUND),pg=()=>V(`surface`,B.SURFACE),mg=()=>V(`tertiary`,B.TERTIARY),hg=()=>V(`tertiary-light`,B.TERTIARY_LIGHT),gg=()=>V(`border`,B.BORDER),_g=()=>V(`border-light`,B.BORDER_LIGHT),vg=()=>V(`border-dark`,B.BORDER_DARK),yg=()=>V(`border-gray`,B.BORDER_GRAY),bg=()=>V(`table-grid`,`text`,B.TABLE_GRID),xg=()=>V(`table-grid-light`,`border-light`,B.TABLE_GRID_LIGHT),Sg=()=>V(`table-stripe`,`background-dark`,B.TABLE_STRIPE),Cg=()=>V(`black`,B.BLACK),wg=()=>V(`white`,B.WHITE),Tg=()=>B.TRANSPARENT,Eg=()=>V(`focus-checked`,B.FOCUS_CHECKED),Dg=()=>V(`focus-checked-border`,B.FOCUS_CHECKED_BORDER),Og=()=>V(`focus-unchecked`,B.FOCUS_UNCHECKED),kg=()=>V(`focus-unchecked-border`,B.FOCUS_UNCHECKED_BORDER),Ag=()=>V(`button-focus-outline`,B.BUTTON_FOCUS_OUTLINE),jg=()=>V(`blue-grey-100`,B.BLUE_GREY100),Mg=()=>V(`blue-grey-300`,B.BLUE_GREY300),Ng=()=>V(`blue-grey-600`,B.BLUE_GREY600),Pg=()=>V(`blue-grey-900`,B.BLUE_GREY900),Fg=()=>V(`keypad-button`,B.KEYPAD_BUTTON),Ig=()=>V(`keypad-button-operator`,B.KEYPAD_BUTTON_OPERATOR),Lg=()=>V(`keypad-empty-placeholder`,B.KEYPAD_EMPTY_PLACEHOLDER),Rg=()=>V(`keypad-button-hover`,B.KEYPAD_BUTTON_HOVER),zg=()=>V(`keypad-button-operator-hover`,B.KEYPAD_BUTTON_OPERATOR_HOVER),Bg=()=>V(`keyboard-focus-indicator`,B.KEY_BOARD_FOCUS_INDICATOR),Vg=()=>V(`button-border`,B.BUTTON_BORDER),Hg=()=>V(`button-hover-bg`,B.BUTTON_HOVER_BG),Ug={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Wg=L(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Gg=L(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Hh()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Gh()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Yh()})`}}),Kg=L(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),qg=class extends P.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(Ds,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(Kg,{ref:this.nodeRef,children:(0,F.jsx)(Wg,{children:(0,F.jsx)(Gg,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(Is,{children:this.renderFeedback()})})}},Jg=s({Correct:()=>e_,Incorrect:()=>t_,NothingSubmitted:()=>r_,PartiallyCorrect:()=>n_}),Yg=dm(`pie-libs:render-ui:response-indicators`),Xg=L(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Zg=L(Ih)({cursor:`pointer`}),Qg=L(`div`)({padding:`0`,borderRadius:`4px`}),$g=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Yg(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,F.jsxs)(Xg,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(Zg,{PaperComponent:Qg,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(qg,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},e_=$g(Cm,`correct`),t_=$g(Am,`incorrect`),n_=$g(Lm,`partially-correct`),r_=$g(Pm,`nothing-submitted`);function i_(e){return ai(`MuiCollapse`,e)}oi(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var a_=e=>{let{orientation:t,classes:n}=e;return Da({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},i_,n)},o_=L(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(is(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),s_=L(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),c_=L(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),l_=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=lo.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=a_(C),T=Bo(),E=ts(),D=P.useRef(null),O=P.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=P.useRef(null),ne=Hs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Rs(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Rs(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=Bs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Rs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Rs(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Rs(A,m),se=Rs(A,e=>{let t=j(),{duration:n,easing:r}=Bs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=du(`root`,{ref:ne,className:ri(w.root,a),elementType:o_,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=du(`wrapper`,{ref:D,className:w.wrapper,elementType:s_,externalForwardedProps:le,ownerState:C}),[N,me]=du(`wrapperInner`,{className:w.wrapperInner,elementType:c_,externalForwardedProps:le,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(ue,{...de,className:ri(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(fe,{...pe,ownerState:r,children:(0,F.jsx)(N,{...me,ownerState:r,children:i})})})}})});l_&&(l_.muiSupportAuto=!0);var u_=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,d_=`pie-mathjax-version-conflict`,f_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function p_(e,t){if(typeof window>`u`)return;let n=globalThis;n[f_]??={logged:!1,conditions:[]};let r=n[f_];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${u_}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(d_,{detail:{condition:e,message:i,docsUrl:u_}}))}function m_(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var h_=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,g_={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},__=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,v_=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,y_=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,b_=/\\embed\{newLine\}\[\]/g,x_=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],S_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),C_=`PIE-MJX-CHTML-styles`,w_=`MJX-CHTML-styles`,T_=[w_,`MJX-SVG-styles`],E_=201;function D_(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function O_(){return window.MathJax}function k_(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of x_)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function A_(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${k_(e)}\\)`.replace(b_,`\\newline `),t.dataset.mathHandled=`true`)}}function j_(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?y_:v_).test(e.textContent??``)}function M_(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=O_(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&N_(e),r?.defaultReady?.(),i&&P_(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...g_}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(__),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||h_,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function N_(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=C_)}function P_(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(D_(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,E_,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&D_(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===w_&&(r.id=C_),L_()}function F_(e){return e instanceof HTMLStyleElement&&T_.includes(e.id)}function I_(e){p_(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function L_(){let e=document.head,t=[...e.children].find(F_);if(t){I_(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(F_);if(e){I_(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function R_(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=O_()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function z_(e){let t=O_();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():R_(t):M_(e)}function B_(e){return z_(e).then(()=>{typeof O_()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function V_(e){let t=globalThis,n=t[S_];return n||(n=B_(e),t[S_]=n),n}function H_(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=m_();r&&p_(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),A_(n);let i=V_(e);if(!j_(n,t)){i.catch(()=>{});return}await i;let a=O_();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),D_(n))}}var U_=`@pie-lib/math-rendering`,W_=`@pie-lib/math-rendering@2`,G_=`pie-print`,K_=50,q_=1e4,J_=null;function Y_(){return!!window[W_]?.opts?.useSingleDollar}function X_(){return J_||=H_({useSingleDollar:Y_()}),J_}function Z_(){if(typeof window>`u`)return null;let e=window[U_];return typeof e?.renderMath==`function`?e:null}function Q_(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===G_)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function $_(){let e=window.renderMath;return typeof e==`function`?e:null}async function ev(e){let t=Q_(e);if(!t)return null;let n=$_();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+q_;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,K_));let e=$_();if(e)return e}return null}var tv=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=Z_(),i=r||t?null:await ev(n);return r?await r.renderMath?.(n):i?await i(n):await X_()(n),t?n.innerHTML:void 0},nv=L(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),rv=L(l_)(({theme:e})=>({paddingTop:e.spacing(2)})),iv=class extends P.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){tv(this.root)}componentDidUpdate(){tv(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,F.jsx)(nv,{children:r})}),(0,F.jsx)(rv,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}},av=rp((0,F.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),ov=rp((0,F.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),sv=L(`div`)({display:`flex`,flexDirection:`column`}),cv=L(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),lv=L(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),uv=L(rm)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),dv=e=>{class t extends P.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,F.jsxs)(sv,{children:[(0,F.jsxs)(cv,{children:[(0,F.jsxs)(uv,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,F.jsx)(lv,{children:(0,F.jsx)(ov,{})}),`Undo`]}),(0,F.jsxs)(uv,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,F.jsx)(lv,{children:(0,F.jsx)(av,{})}),`Start Over`]})]}),(0,F.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},fv=Ro({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),pv=L(`div`)({"& table, th, td":{fontSize:`inherit`}}),mv=class extends P.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,F.jsx)(bn,{injectFirst:!0,children:(0,F.jsxs)(Yo,{theme:fv,children:[i?.rules?(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,F.jsx)(pv,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}},hv=L(mv)({display:`flex`,flexDirection:`column`,position:`relative`}),gv=class extends P.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,F.jsx)(hv,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},_v=class extends P.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,F.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function vv({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var yv=P.createContext(void 0);function bv(){return P.useContext(yv)}function xv(e){return ai(`MuiFormLabel`,e)}var Sv=oi(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Cv=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return Da({root:[`root`,`color${os(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},xv,t)},wv=L(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(is(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Np()).map(([t])=>({props:{color:t},style:{[`&.${Sv.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Sv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sv.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Tv=L(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(is(({theme:e})=>({[`&.${Sv.error}`]:{color:(e.vars||e).palette.error.main}}))),Ev=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=vv({props:n,muiFormControl:bv(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Cv(m);return(0,F.jsxs)(wv,{as:o,ownerState:m,className:ri(h.root,i),ref:t,...f,children:[r,p.required&&(0,F.jsxs)(Tv,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function Dv(e){return ai(`MuiInputLabel`,e)}oi(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var Ov=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=Da({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${os(r)}`,o],asterisk:[s&&`asterisk`]},Dv,t);return{...t,...c}},kv=L(Ev,{shouldForwardProp:e=>Ho(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Sv.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(is(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Av=P.forwardRef(function(e,t){let n=as({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=bv(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=vv({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=Ov(f);return(0,F.jsx)(kv,{"data-shrink":u,ref:t,className:ri(p.root,s),...c,ownerState:f,classes:p})});function jv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Mv(e,t=!1){return e&&(jv(e.value)&&e.value!==``||t&&jv(e.defaultValue)&&e.defaultValue!==``)}function Nv(e){return e.startAdornment}function Pv(e){return ai(`MuiFormControl`,e)}oi(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var Fv=e=>{let{classes:t,margin:n,fullWidth:r}=e;return Da({root:[`root`,n!==`none`&&`margin${os(n)}`,r&&`fullWidth`]},Pv,t)},Iv=L(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${os(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Lv=L(P.forwardRef(function(e,t){let n=as({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=Fv(_),[y,b]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{if(!op(t,[`Input`,`Select`]))return;let n=op(t,[`Select`])?t.props.input:t;n&&Nv(n.props)&&(e=!0)}),e}),[x,S]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{op(t,[`Input`,`Select`])&&(Mv(t.props,!0)||Mv(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=P.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;P.useRef(!1);let E=P.useCallback(()=>{S(!0)},[]),D=P.useCallback(()=>{S(!1)},[]),O=P.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,F.jsx)(yv.Provider,{value:O,children:(0,F.jsx)(Iv,{as:o,ownerState:_,className:ri(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Rv=L(Av)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),zv=({label:e,className:t,children:n})=>(0,F.jsxs)(Lv,{className:t,children:[(0,F.jsx)(Rv,{shrink:!0,children:e}),n]});zv.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var Bv=L(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table:not([role="presentation"])':{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:bg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:Sg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:Sg()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:Vh()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${Vh()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),Vv=/\\embed\{newLine\}\[\]/g,Hv=`\\newline `,Uv=`preview-prompt`,Wv=class extends P.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string})};static defaultProps={onClick:()=>{}};promptRef=P.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof tv==`function`&&tv(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${Uv}`.trim();return(0,F.jsx)(Bv,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(Vv,Hv)}})}},Gv=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-readable":e.false===void 0}))});Gv.propTypes={children:O.node,false:O.bool};var Kv=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-purpose":e.purpose}))});Kv.propTypes={children:O.node,purpose:O.string};var qv;typeof window<`u`&&(qv=new DOMParser);var Jv=e=>qv.parseFromString(e,`text/html`).body.textContent,Yv=e=>{if(!e)return!1;let t=Jv(e);return!!(t&&t.trim())},Xv;typeof window<`u`&&(Xv=new DOMParser);var Zv=e=>{if(!e)return!1;let t=Xv.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},Qv=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2w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tq+YBO6Tat5gKAAAAAAAAAjVwKAAjdrecCgAAAAAAARrhra30gUAAAARtLVuwFAAAAAAAAAAAAAAAltbgUCJ3SbVvMBQAAAAAAAAAAAAltb3+YCgAI3ZNvkBQAAAAAAAAAAAAivzYFAAAAETTuk+HECgAAAAAAAAJZXvbVcwCvrdegCgAAAAAAAAAAAAAltbgUCN2TaV/MBQAAAAAAAAAAAAjV+dgKAAAAIndJrmBQAAAAAAAAACO+ln6QKAAAAAEaTs2uHACgAAAAAAAAAEbSTbdkuLAoEd+SAoAAAAjVwKAAAAAAAAAAAAAABG+Gl7/AEAUAAAltb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function $v(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var ey=P.createContext({});function ty(e){return ai(`MuiList`,e)}oi(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var ny=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Da({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},ty,t)},ry=L(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),iy=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=P.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=ny(d);return(0,F.jsx)(ey.Provider,{value:u,children:(0,F.jsxs)(ry,{as:a,className:ri(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),ay=Rm;function oy(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function cy(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function ly(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!cy(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var uy=P.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=P.useRef(null),p=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});up(()=>{r&&f.current.focus()},[r]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${ay(lp(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Zm(sp(t));if(n===`ArrowDown`)e.preventDefault(),ly(t,r,c,s,oy);else if(n===`ArrowUp`)e.preventDefault(),ly(t,r,c,s,sy);else if(n===`Home`)e.preventDefault(),ly(t,null,c,s,oy);else if(n===`End`)e.preventDefault(),ly(t,null,c,s,sy);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&cy(r,i);i.previousKeyMatched&&(c||ly(t,r,!1,s,oy,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Hs(f,t),g=-1;P.Children.forEach(a,(e,t)=>{if(!P.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=P.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),P.cloneElement(e,t)}return e});return(0,F.jsx)(iy,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function dy(e){return ai(`MuiMenu`,e)}oi(`MuiMenu`,[`root`,`paper`,`list`]);var fy={vertical:`top`,horizontal:`right`},py={vertical:`top`,horizontal:`left`},my=e=>{let{classes:t}=e;return Da({root:[`root`],paper:[`paper`],list:[`list`]},dy,t)},hy=L(Ih,{shouldForwardProp:e=>Ho(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),gy=L(Fh,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),_y=L(uy,{name:`MuiMenu`,slot:`List`})({outline:0}),vy=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=Ki(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=my(b),S=r&&!o&&l,C=P.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;P.Children.map(i,(e,t)=>{P.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=ql({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=du(`paper`,{className:x.paper,elementType:gy,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=du(`list`,{className:ri(x.list,s.className),elementType:_y,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,F.jsx)(hy,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?fy:py,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,F.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),yy=({slotProps:e,...t})=>(0,F.jsx)(vy,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),by=s({Collapsible:()=>iv,EnableAudioAutoplayImage:()=>Qv,Feedback:()=>qg,HtmlAndMath:()=>_v,InlineMenu:()=>yy,InputContainer:()=>zv,PreviewLayout:()=>gv,PreviewPrompt:()=>Wv,Purpose:()=>Kv,Readable:()=>Gv,UiLayout:()=>mv,color:()=>zh,hasMedia:()=>Zv,hasText:()=>Yv,indicators:()=>Jg,transformDataHeadings:()=>$v,withUndoReset:()=>dv});function H(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}H.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},H.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},H.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},H.prototype.attr=function(e,t){return t===wy?this.elements[0]?this.elements[0].getAttribute(e):wy:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},H.prototype.html=function(e){return e===wy?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},H.prototype.append=function(e){var t=e instanceof H?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},H.prototype.prepend=function(e){var t=e instanceof H?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},H.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof H)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},H.prototype.appendTo=function(e){var t=e instanceof H?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},H.prototype.prependTo=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},H.prototype.insertBefore=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},H.prototype.insertAfter=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},H.prototype.replaceWith=function(e){var t=[];return e instanceof H?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},H.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},H.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},H.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new H(t)},H.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new H(t)},H.prototype.closest=function(e){return new H(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},H.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new H(e)},H.prototype.filter=function(e){return new H(this.elements.filter(function(t,n){return e(n,t)}))},H.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},H.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},H.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function xy(e){return(e||``).split(`.`)[0]}H.prototype.on=function(e,t){var n=xy(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},H.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=xy(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},H.prototype.off=function(e,t){var n=xy(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},H.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=xy(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},H.prototype.trigger=function(e){var t=new Event(xy(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},H.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},H.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){H.prototype[e]=function(t){return this.on(e,t)}}),H.prototype.next=function(e){return new H(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},H.prototype.prev=function(e){return new H(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},H.prototype.parent=function(){return new H(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},H.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},H.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},H.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},H.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},H.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},H.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},H.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},H.prototype.css=function(e,t){if(t===wy){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):wy}}else this.elements.forEach(function(n){n.style[e]=t});return this},H.prototype.scrollTop=function(e){var t=this.elements[0];return e===wy?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},H.prototype.scrollLeft=function(e){var t=this.elements[0];return e===wy?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},H.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},H.prototype.eq=function(e){return new H([this.elements[e]])},H.prototype.get=function(e){return e===wy?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},H.prototype.add=function(e){var t=this.elements.slice();return e instanceof H?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new H(t)},H.prototype.first=function(){return new H([this.elements[0]])},H.prototype.last=function(){return new H([this.elements[this.elements.length-1]])},H.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof H?e.elements[0]:e;return this.elements.indexOf(n)},H.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},H.prototype.text=function(e){return e===wy?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},H.prototype.val=function(e){var t=this.elements[0];return t?e===wy?t.value===wy?t.textContent:t.value:(this.elements.forEach(function(t){t.value===wy?t.textContent=e:t.value=e}),this):wy};function Sy(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(H.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var U=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof H?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof H?e.elements:e.length===wy?[]:Array.from(e);return Sy(n)};U.contains=function(e,t){return e!==t&&e.contains(t)};var Cy=U,wy,Ty=`mathquill-command-id`,Ey=`mathquill-block-id`,Dy=Math.min,Oy=Math.max;function ky(){}var Ay=[].slice;function jy(e){var t=e.length-1;return function(){var n=Ay.call(arguments,0,t),r=Ay.call(arguments,t);return e.apply(this,n.concat([r]))}}var My=jy(function(e,t){return jy(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function Ny(e){return jy(function(t,n){return typeof t!=`function`&&(t=My(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function W(e){var t=Ay.call(arguments,1);return function(){return e.apply(this,t)}}function Py(e,t){if(!t)throw Error(`prayer failed: `+e)}var G=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),K=-1,q=1;function Fy(e){Py(`a direction was passed`,e===K||e===q)}var Iy=G(function(e){e.parent=0,e[K]=0,e[q]=0,e.init=function(e,t,n){this.parent=e,this[K]=t,this[q]=n},this.copy=function(e){return Iy(e.parent,e[K],e[q])}}),Ly=G(function(e){e[K]=0,e[q]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),Ly.byId[this.id]=this,this.ends={},this.ends[K]=0,this.ends[q]=0},e.dispose=function(){delete Ly.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=U(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=U(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&Ly.byId[n].jQadd(e),r&&Ly.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){Fy(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[K],t[q]),n},e.createLeftOf=function(e){return this.createDir(K,e)},e.selectChildren=function(e,t){return Uy(e,t)},e.bubble=Ny(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=Ny(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[K]===0&&this.ends[q]===0},e.isStyleBlock=function(){return!1},e.children=function(){return zy(this.ends[K],this.ends[q])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return zy(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return zy(this,this).adopt(e,t,n),this},e.disown=function(){return zy(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function Ry(e,t,n){Py(`a parent is always present`,e),t&&(t[q]!==n&&(t[q]=n),t.parent!==e&&(t.parent=e)),n&&(n[K]!==t&&(n[K]=t),n.parent!==e&&(n.parent=e)),Py(`leftward is properly set up`,(function(){return t?t[q]===n&&t.parent===e:e.ends[K]===n})()),Py(`rightward is properly set up`,(function(){return n?n[K]===t&&n.parent===e:e.ends[q]===t})())}var zy=G(function(e){e.init=function(e,t,n){if(n===wy&&(n=K),Fy(n),Py(`no half-empty fragments`,!e==!t),this.ends={},e){Py(`withDir is passed to Fragment`,e instanceof Ly),Py(`oppDir is passed to Fragment`,t instanceof Ly),Py(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=U(),e.withDirAdopt=function(e,t,n,r){return e===K?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){Ry(e,t,n);var r=this;r.disowned=!1;var i=r.ends[K];if(!i)return this;var a=r.ends[q];return t||(e.ends[K]=i),n?n[K]=a:e.ends[q]=a,r.ends[q][q]=n,r.each(function(n){n[K]=t,n.parent=e,t&&(t[q]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[K];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[q],r=t.parent;return Ry(r,t[K],t),Ry(r,n,n[q]),t[K]?t[K][q]=n[q]:r.ends[K]=n[q],n[q]?n[q][K]=t[K]:r.ends[q]=t[K],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=Ny(function(e){var t=this,n=t.ends[K];if(!n)return t;for(;n!==t.ends[q][q]&&e(n)!==!1;n=n[q]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),J={},By={},Vy={},Hy=G(Iy,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=U(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[q]?this.selection&&this.selection.ends[K][K]===this[K]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[q].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=U(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return Fy(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(K,e)},e.insRightOf=function(e){return this.insDirOf(q,e)},e.insAtDirEnd=function(e,t){return Fy(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(K,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(q,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=Iy.copy(n);var r=n.upDownCache[t.id];if(r)r[q]?n.insLeftOf(r[q]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[q],r=this,i=e[K];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[q])}),!this[q])if(this[K])this[q]=this[K][q];else for(;!this[q];)if(this.parent=this.parent[q],this.parent)this[q]=this.parent.ends[K];else{this[q]=e[q],this.parent=t;break}this[q]?this.insLeftOf(this[q]):this.insAtRightEnd(t),e.jQ.remove(),e[K].siblingDeleted&&e[K].siblingDeleted(r.options,q),e[q].siblingDeleted&&e[q].siblingDeleted(r.options,K)},e.startSelection=function(){for(var e=this.anticursor=Iy.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[K]===e[K]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=q;if(n[K]!==r){for(var s=n;s;s=s[q])if(s[q]===r[q]){o=K,i=n,a=r;break}}return o===q&&(i=r,a=n),i instanceof Iy&&(i=i[q]),a instanceof Iy&&(a=a[K]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[K]=this.selection.ends[K][K],this[q]=this.selection.ends[q][q],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[K]=e.ends[K][K],this[q]=e.ends[q][q],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof cb);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==wy)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),Uy=G(zy,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),Wy=G(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=Hy(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===K||t===q?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),Gy={},Ky=G(),qy={},Jy=G(),Yy={};function Xy(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
148
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Nm.propTypes={fill:O.string.isRequired};var Pm=class extends P.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(jm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),feedback:{check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),square:{check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(jm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),open:{check:(0,F.jsx)(mm,{children:(0,F.jsx)(jm,{fill:n})}),emoji:(0,F.jsx)(mm,{children:(0,F.jsx)(Nm,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};Pm.propTypes={iconSet:O.oneOf([`emoji`,`check`,void 0]),shape:O.oneOf([`square`,void 0]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string},Pm.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Fm=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,F.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,F.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Fm.propTypes={fill:O.string.isRequired};var Im=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,F.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Im.propTypes={fill:O.string.isRequired};var Lm=bm(Fm,Im);Lm.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Lm.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Rm(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function zm(e){let t=qs(e);return t.body===e?cp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bm(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Vm(e){return parseFloat(cp(e).getComputedStyle(e).paddingRight)||0}function Hm(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Um(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Hm(e);t&&n&&Bm(e,i)})}function Wm(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Gm(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(zm(r)){let e=Rm(cp(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Vm(r)+e}px`;let t=qs(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Vm(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=qs(r).body;else{let t=r.parentElement,n=cp(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Km(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var qm=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bm(e.modalRef,!1);let r=Km(t);Um(t,e.mount,e.modalRef,r,!0);let i=Wm(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Wm(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Gm(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Wm(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Bm(e.modalRef,t),Um(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Bm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Jm(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Ym=Jm;function Xm(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Zm=Xm,Qm=`data-mui-focusable`;function $m(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Qm}]`):null}var eh=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function th(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function nh(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function rh(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||nh(e))}function ih(e){let t=[],n=[];return Array.from(e.querySelectorAll(eh)).forEach((e,r)=>{let i=th(e);i===-1||!rh(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ah(){return!0}function oh(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ih,isEnabled:o=ah,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(!1),m=P.useRef(null),h=Vs(rs(t),m),g=P.useRef(null);P.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),P.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Zm(qs(m.current)),t=$m(m.current)??m.current;return Ym(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!m.current)return;let e=qs(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Zm(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Zm(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Ym(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Zm(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),P.cloneElement(t,{ref:h,onFocus:_}),(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var sh={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},ch={opacity:0,visibility:`hidden`},lh=P.forwardRef(function(e,t){let n=Bo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=P.useRef(null),y=Hs(v,rs(o),t),b=Rs(v,d),x=Rs(v,(e,t)=>{Ls(e);let r=Bs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Rs(v,u),C=Rs(v,m),w=Rs(v,e=>{let t=Bs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Rs(v,e=>{e.style.transition=``,p&&p(e)});return(0,F.jsx)(Cs,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=zs(e,c,sh,ch,h,o.props.style);return P.cloneElement(o,{style:r,ref:y,...n})}})});function uh(e){return ai(`MuiBackdrop`,e)}oi(`MuiBackdrop`,[`root`,`invisible`]);var dh=e=>{let{classes:t,invisible:n}=e;return Da({root:[`root`,n&&`invisible`]},uh,t)},fh=L(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),ph=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=dh(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=du(`root`,{elementType:fh,externalForwardedProps:_,className:ri(g.root,i),ownerState:h}),[b,x]=du(`transition`,{elementType:lh,externalForwardedProps:_,ownerState:h});return(0,F.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,F.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function mh(e){return typeof e==`function`?e():e}function hh(e){return e?e.props.hasOwnProperty(`in`):!1}var gh=()=>{},_h=new qm;function vh(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=P.useRef({}),f=P.useRef(null),p=P.useRef(null),m=Vs(p,u),[h,g]=P.useState(!l),_=hh(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>qs(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{_h.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=ou(()=>{let e=mh(t)||y().body;_h.add(b(),e),p.current&&x()}),C=()=>_h.isTopModal(b()),w=ou(e=>{f.current=e,e&&(l&&C()?x():p.current&&Bm(p.current,v))}),T=P.useCallback(()=>{_h.remove(b(),v)},[v]);P.useEffect(()=>()=>{T()},[T]),P.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Ul(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Qf(()=>{g(!1),a&&a()},s?.props.onEnter??gh),onExited:Qf(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??gh)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function yh(e){return ai(`MuiModal`,e)}oi(`MuiModal`,[`root`,`hidden`,`backdrop`]);var bh=e=>{let{open:t,exited:n,classes:r}=e;return Da({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},yh,r)},xh=L(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(is(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Sh=L(ph,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Ch=P.forwardRef(function(e,t){let n=as({name:`MuiModal`,props:e}),{BackdropComponent:r=Sh,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=vh({...ee,rootRef:t}),ae={...ee,exited:re},oe=bh(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ce,le]=du(`root`,{ref:t,elementType:xh,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:ri(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ue,de]=du(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ri(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,F.jsx)(Xl,{ref:ne,container:l,disablePortal:g,children:(0,F.jsxs)(ce,{...le,children:[!y&&r?(0,F.jsx)(ue,{...de}):null,(0,F.jsx)(oh,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:P.cloneElement(c,M)})]})})});function wh(e){return ai(`MuiPaper`,e)}oi(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var Th=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Da({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},wh,i)},Eh=L(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(is(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Dh=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiPaper`}),r=Bo(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=Th(u);return(0,F.jsx)(Eh,{as:a,ownerState:u,className:ri(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${ji(`#fff`,xo(o))}, ${ji(`#fff`,xo(o))})`}},...l.style}})});function Oh(e){return ai(`MuiPopover`,e)}oi(`MuiPopover`,[`root`,`paper`]);function kh(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Ah(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function jh(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Mh(e){return typeof e==`function`?e():e}var Nh=e=>{let{classes:t}=e;return Da({root:[`root`],paper:[`paper`]},Oh,t)},Ph=L(Ch,{name:`MuiPopover`,slot:`Root`})({}),Fh=L(Dh,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Ih=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=P.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Nh(w),E=P.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Mh(i),t=(e&&e.nodeType===1?e:sp(C.current).body).getBoundingClientRect();return{top:t.top+kh(t,a.vertical),left:t.left+Ah(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=P.useCallback(e=>({vertical:kh(e,_.vertical),horizontal:Ah(e,_.horizontal)}),[_.horizontal,_.vertical]),O=P.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:jh(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=lp(Mh(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:jh(n)}},[i,s,E,D,f]),[ee,te]=P.useState(p),k=P.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);P.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};P.useEffect(()=>{p&&k()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),P.useEffect(()=>{if(!p)return;let e=ap(()=>{k()}),t=lp(Mh(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=du(`transition`,{elementType:Ks,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?sp(Mh(i)).body:void 0),[M,{slots:se,slotProps:ce,...le}]=du(`root`,{ref:t,elementType:Ph,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:fp(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:ri(T.root,l)}),[ue,de]=du(`paper`,{ref:C,className:T.paper,elementType:Fh,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,F.jsx)(M,{...le,...!Vl(M)&&{slots:se,slotProps:ce,disableScrollLock:x},children:(0,F.jsx)(ie,{...ae,timeout:j,children:(0,F.jsx)(ue,{...de,children:c})})})}),Lh={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},Rh={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},zh=s({background:()=>lg,backgroundDark:()=>ug,black:()=>Cg,blueGrey100:()=>jg,blueGrey300:()=>Mg,blueGrey600:()=>Ng,blueGrey900:()=>Pg,border:()=>gg,borderDark:()=>vg,borderGray:()=>yg,borderLight:()=>_g,buttonBorder:()=>Vg,buttonFocusOutline:()=>Ag,buttonHoverBg:()=>Hg,correct:()=>Gh,correctSecondary:()=>Kh,correctTertiary:()=>qh,correctWithIcon:()=>Jh,defaults:()=>B,disabled:()=>Hh,disabledSecondary:()=>Uh,disabledText:()=>Wh,dropdownBackground:()=>fg,fadedPrimary:()=>ig,focusChecked:()=>Eg,focusCheckedBorder:()=>Dg,focusUnchecked:()=>Og,focusUncheckedBorder:()=>kg,incorrect:()=>Yh,incorrectSecondary:()=>Zh,incorrectWithIcon:()=>Xh,keyBoardFocusIndicator:()=>Bg,keypadButton:()=>Fg,keypadButtonHover:()=>Rg,keypadButtonOperator:()=>Ig,keypadButtonOperatorHover:()=>zg,keypadEmptyPlaceholder:()=>Lg,missing:()=>Qh,missingWithIcon:()=>$h,primary:()=>eg,primaryDark:()=>ng,primaryLight:()=>tg,primaryText:()=>rg,secondary:()=>ag,secondaryBackground:()=>dg,secondaryDark:()=>sg,secondaryLight:()=>og,secondaryText:()=>cg,surface:()=>pg,tableGrid:()=>bg,tableGridLight:()=>xg,tableStripe:()=>Sg,tertiary:()=>mg,tertiaryLight:()=>hg,text:()=>Vh,transparent:()=>Tg,v:()=>Bh,visualElementsColors:()=>Ug,white:()=>wg}),B={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Ia[500],CORRECT_SECONDARY:Ia[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Na[500],INCORRECT_SECONDARY:Ma[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Ma[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Rh[500],PRIMARY_LIGHT:Rh[200],PRIMARY_DARK:Rh[800],SECONDARY:Lh.A400,SECONDARY_LIGHT:Lh[200],SECONDARY_DARK:Lh[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(B);var Bh=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},V=Bh(`pie`),Vh=()=>V(`text`,B.TEXT),Hh=()=>V(`disabled`,B.DISABLED),Uh=()=>V(`disabled-secondary`,B.DISABLED_SECONDARY),Wh=()=>V(`disabled-text`,`text`,B.DISABLED_TEXT),Gh=()=>V(`correct`,B.CORRECT),Kh=()=>V(`correct-secondary`,B.CORRECT_SECONDARY),qh=()=>V(`correct-tertiary`,B.CORRECT_TERTIARY),Jh=()=>V(`correct-icon`,B.CORRECT_WITH_ICON),Yh=()=>V(`incorrect`,B.INCORRECT),Xh=()=>V(`incorrect-icon`,B.INCORRECT_WITH_ICON),Zh=()=>V(`incorrect-secondary`,B.INCORRECT_SECONDARY),Qh=()=>V(`missing`,B.MISSING),$h=()=>V(`missing-icon`,B.MISSING_WITH_ICON),eg=()=>V(`primary`,B.PRIMARY),tg=()=>V(`primary-light`,B.PRIMARY_LIGHT),ng=()=>V(`primary-dark`,B.PRIMARY_DARK),rg=()=>V(`primary-text`,`text`,B.TEXT),ig=()=>V(`faded-primary`,B.FADED_PRIMARY),ag=()=>V(`secondary`,B.SECONDARY),og=()=>V(`secondary-light`,B.SECONDARY_LIGHT),sg=()=>V(`secondary-dark`,B.SECONDARY_DARK),cg=()=>V(`secondary-text`,`text`,B.TEXT),lg=()=>V(`background`,B.BACKGROUND),ug=()=>V(`background-dark`,B.BACKGROUND_DARK),dg=()=>V(`secondary-background`,B.SECONDARY_BACKGROUND),fg=()=>V(`dropdown-background`,B.DROPDOWN_BACKGROUND),pg=()=>V(`surface`,B.SURFACE),mg=()=>V(`tertiary`,B.TERTIARY),hg=()=>V(`tertiary-light`,B.TERTIARY_LIGHT),gg=()=>V(`border`,B.BORDER),_g=()=>V(`border-light`,B.BORDER_LIGHT),vg=()=>V(`border-dark`,B.BORDER_DARK),yg=()=>V(`border-gray`,B.BORDER_GRAY),bg=()=>V(`table-grid`,`text`,B.TABLE_GRID),xg=()=>V(`table-grid-light`,`border-light`,B.TABLE_GRID_LIGHT),Sg=()=>V(`table-stripe`,`background-dark`,B.TABLE_STRIPE),Cg=()=>V(`black`,B.BLACK),wg=()=>V(`white`,B.WHITE),Tg=()=>B.TRANSPARENT,Eg=()=>V(`focus-checked`,B.FOCUS_CHECKED),Dg=()=>V(`focus-checked-border`,B.FOCUS_CHECKED_BORDER),Og=()=>V(`focus-unchecked`,B.FOCUS_UNCHECKED),kg=()=>V(`focus-unchecked-border`,B.FOCUS_UNCHECKED_BORDER),Ag=()=>V(`button-focus-outline`,B.BUTTON_FOCUS_OUTLINE),jg=()=>V(`blue-grey-100`,B.BLUE_GREY100),Mg=()=>V(`blue-grey-300`,B.BLUE_GREY300),Ng=()=>V(`blue-grey-600`,B.BLUE_GREY600),Pg=()=>V(`blue-grey-900`,B.BLUE_GREY900),Fg=()=>V(`keypad-button`,B.KEYPAD_BUTTON),Ig=()=>V(`keypad-button-operator`,B.KEYPAD_BUTTON_OPERATOR),Lg=()=>V(`keypad-empty-placeholder`,B.KEYPAD_EMPTY_PLACEHOLDER),Rg=()=>V(`keypad-button-hover`,B.KEYPAD_BUTTON_HOVER),zg=()=>V(`keypad-button-operator-hover`,B.KEYPAD_BUTTON_OPERATOR_HOVER),Bg=()=>V(`keyboard-focus-indicator`,B.KEY_BOARD_FOCUS_INDICATOR),Vg=()=>V(`button-border`,B.BUTTON_BORDER),Hg=()=>V(`button-hover-bg`,B.BUTTON_HOVER_BG),Ug={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Wg=L(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Gg=L(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Hh()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Gh()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Yh()})`}}),Kg=L(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),qg=class extends P.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(Ds,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(Kg,{ref:this.nodeRef,children:(0,F.jsx)(Wg,{children:(0,F.jsx)(Gg,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(Is,{children:this.renderFeedback()})})}},Jg=s({Correct:()=>e_,Incorrect:()=>t_,NothingSubmitted:()=>r_,PartiallyCorrect:()=>n_}),Yg=dm(`pie-libs:render-ui:response-indicators`),Xg=L(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Zg=L(Ih)({cursor:`pointer`}),Qg=L(`div`)({padding:`0`,borderRadius:`4px`}),$g=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Yg(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,F.jsxs)(Xg,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(Zg,{PaperComponent:Qg,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(qg,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},e_=$g(Cm,`correct`),t_=$g(Am,`incorrect`),n_=$g(Lm,`partially-correct`),r_=$g(Pm,`nothing-submitted`);function i_(e){return ai(`MuiCollapse`,e)}oi(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var a_=e=>{let{orientation:t,classes:n}=e;return Da({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},i_,n)},o_=L(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(is(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),s_=L(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),c_=L(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),l_=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=lo.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=a_(C),T=Bo(),E=ts(),D=P.useRef(null),O=P.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=P.useRef(null),ne=Hs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Rs(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Rs(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=Bs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Rs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Rs(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Rs(A,m),se=Rs(A,e=>{let t=j(),{duration:n,easing:r}=Bs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=du(`root`,{ref:ne,className:ri(w.root,a),elementType:o_,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=du(`wrapper`,{ref:D,className:w.wrapper,elementType:s_,externalForwardedProps:le,ownerState:C}),[N,me]=du(`wrapperInner`,{className:w.wrapperInner,elementType:c_,externalForwardedProps:le,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(ue,{...de,className:ri(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(fe,{...pe,ownerState:r,children:(0,F.jsx)(N,{...me,ownerState:r,children:i})})})}})});l_&&(l_.muiSupportAuto=!0);var u_=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,d_=`pie-mathjax-version-conflict`,f_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function p_(e,t){if(typeof window>`u`)return;let n=globalThis;n[f_]??={logged:!1,conditions:[]};let r=n[f_];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${u_}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(d_,{detail:{condition:e,message:i,docsUrl:u_}}))}function m_(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var h_=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,g_={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},__=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,v_=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,y_=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,b_=/\\embed\{newLine\}\[\]/g,x_=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],S_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),C_=`PIE-MJX-CHTML-styles`,w_=`MJX-CHTML-styles`,T_=[w_,`MJX-SVG-styles`],E_=201;function D_(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function O_(){return window.MathJax}function k_(e){for(let[t,n]of x_)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function A_(e){return k_(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var j_=`mathjax_ignore`,M_=`mathjax_process`;function N_(e,t){let n=e.closest(`.${j_}, .${M_}`);return n!==null&&t.contains(n)&&!n.classList.contains(M_)}function P_(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||N_(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${A_(n)}\\)`.replace(b_,`\\newline `),t.dataset.mathHandled=`true`)}}function F_(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?y_:v_).test(e.textContent??``)}function I_(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=O_(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&L_(e),r?.defaultReady?.(),i&&R_(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...g_}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(__),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||h_,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function L_(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=C_)}function R_(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(D_(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,E_,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&D_(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===w_&&(r.id=C_),V_()}function z_(e){return e instanceof HTMLStyleElement&&T_.includes(e.id)}function B_(e){p_(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function V_(){let e=document.head,t=[...e.children].find(z_);if(t){B_(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(z_);if(e){B_(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function H_(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=O_()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function U_(e){let t=O_();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():H_(t):I_(e)}function W_(e){return U_(e).then(()=>{typeof O_()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function G_(e){let t=globalThis,n=t[S_];return n||(n=W_(e),t[S_]=n),n}function K_(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=m_();r&&p_(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),P_(n);let i=G_(e);if(!F_(n,t)){i.catch(()=>{});return}await i;let a=O_();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),D_(n))}}var q_=`@pie-lib/math-rendering`,J_=`@pie-lib/math-rendering@2`,Y_=`pie-print`,X_=50,Z_=1e4,Q_=null;function $_(){return!!window[J_]?.opts?.useSingleDollar}function ev(){return Q_||=K_({useSingleDollar:$_()}),Q_}function tv(){if(typeof window>`u`)return null;let e=window[q_];return typeof e?.renderMath==`function`&&e.renderMath!==av?e:null}function nv(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===Y_)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function rv(){let e=window.renderMath;return typeof e==`function`?e:null}async function iv(e){let t=nv(e);if(!t)return null;let n=rv();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+Z_;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,X_));let e=rv();if(e)return e}return null}var av=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=tv(),i=r||t?null:await iv(n);return r?await r.renderMath?.(n):i&&i!==av?await i(n):await ev()(n),t?n.innerHTML:void 0},ov=L(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),sv=L(l_)(({theme:e})=>({paddingTop:e.spacing(2)})),cv=class extends P.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){av(this.root)}componentDidUpdate(){av(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,F.jsx)(ov,{children:r})}),(0,F.jsx)(sv,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}},lv=rp((0,F.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),uv=rp((0,F.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),dv=L(`div`)({display:`flex`,flexDirection:`column`}),fv=L(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),pv=L(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),mv=L(rm)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),hv=e=>{class t extends P.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,F.jsxs)(dv,{children:[(0,F.jsxs)(fv,{children:[(0,F.jsxs)(mv,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,F.jsx)(pv,{children:(0,F.jsx)(uv,{})}),`Undo`]}),(0,F.jsxs)(mv,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,F.jsx)(pv,{children:(0,F.jsx)(lv,{})}),`Start Over`]})]}),(0,F.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},gv=Ro({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),_v=L(`div`)({"& table, th, td":{fontSize:`inherit`}}),vv=class extends P.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,F.jsx)(bn,{injectFirst:!0,children:(0,F.jsxs)(Yo,{theme:gv,children:[i?.rules?(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,F.jsx)(_v,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}},yv=L(vv)({display:`flex`,flexDirection:`column`,position:`relative`}),bv=class extends P.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,F.jsx)(yv,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},xv=class extends P.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,F.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function Sv({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var Cv=P.createContext(void 0);function wv(){return P.useContext(Cv)}function Tv(e){return ai(`MuiFormLabel`,e)}var Ev=oi(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Dv=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return Da({root:[`root`,`color${os(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Tv,t)},Ov=L(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(is(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Np()).map(([t])=>({props:{color:t},style:{[`&.${Ev.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ev.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ev.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kv=L(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(is(({theme:e})=>({[`&.${Ev.error}`]:{color:(e.vars||e).palette.error.main}}))),Av=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=Sv({props:n,muiFormControl:wv(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Dv(m);return(0,F.jsxs)(Ov,{as:o,ownerState:m,className:ri(h.root,i),ref:t,...f,children:[r,p.required&&(0,F.jsxs)(kv,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function jv(e){return ai(`MuiInputLabel`,e)}oi(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var Mv=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=Da({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${os(r)}`,o],asterisk:[s&&`asterisk`]},jv,t);return{...t,...c}},Nv=L(Av,{shouldForwardProp:e=>Ho(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Ev.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(is(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Pv=P.forwardRef(function(e,t){let n=as({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=wv(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=Sv({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=Mv(f);return(0,F.jsx)(Nv,{"data-shrink":u,ref:t,className:ri(p.root,s),...c,ownerState:f,classes:p})});function Fv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Iv(e,t=!1){return e&&(Fv(e.value)&&e.value!==``||t&&Fv(e.defaultValue)&&e.defaultValue!==``)}function Lv(e){return e.startAdornment}function Rv(e){return ai(`MuiFormControl`,e)}oi(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var zv=e=>{let{classes:t,margin:n,fullWidth:r}=e;return Da({root:[`root`,n!==`none`&&`margin${os(n)}`,r&&`fullWidth`]},Rv,t)},Bv=L(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${os(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Vv=L(P.forwardRef(function(e,t){let n=as({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=zv(_),[y,b]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{if(!op(t,[`Input`,`Select`]))return;let n=op(t,[`Select`])?t.props.input:t;n&&Lv(n.props)&&(e=!0)}),e}),[x,S]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{op(t,[`Input`,`Select`])&&(Iv(t.props,!0)||Iv(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=P.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;P.useRef(!1);let E=P.useCallback(()=>{S(!0)},[]),D=P.useCallback(()=>{S(!1)},[]),O=P.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,F.jsx)(Cv.Provider,{value:O,children:(0,F.jsx)(Bv,{as:o,ownerState:_,className:ri(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Hv=L(Pv)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),Uv=({label:e,className:t,children:n})=>(0,F.jsxs)(Vv,{className:t,children:[(0,F.jsx)(Hv,{shrink:!0,children:e}),n]});Uv.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var Wv=L(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table:not([role="presentation"])':{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:bg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:Sg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:Sg()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:Vh()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${Vh()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),Gv=/\\embed\{newLine\}\[\]/g,Kv=`\\newline `,qv=`preview-prompt`,Jv=class extends P.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string})};static defaultProps={onClick:()=>{}};promptRef=P.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof av==`function`&&av(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${qv}`.trim();return(0,F.jsx)(Wv,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(Gv,Kv)}})}},Yv=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-readable":e.false===void 0}))});Yv.propTypes={children:O.node,false:O.bool};var Xv=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-purpose":e.purpose}))});Xv.propTypes={children:O.node,purpose:O.string};var Zv;typeof window<`u`&&(Zv=new DOMParser);var Qv=e=>Zv.parseFromString(e,`text/html`).body.textContent,$v=e=>{if(!e)return!1;let t=Qv(e);return!!(t&&t.trim())},ey;typeof window<`u`&&(ey=new DOMParser);var ty=e=>{if(!e)return!1;let t=ey.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},ny=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTc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Altb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function ry(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var iy=P.createContext({});function ay(e){return ai(`MuiList`,e)}oi(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var oy=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Da({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},ay,t)},sy=L(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),cy=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=P.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=oy(d);return(0,F.jsx)(iy.Provider,{value:u,children:(0,F.jsxs)(sy,{as:a,className:ri(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),ly=Rm;function uy(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fy(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function py(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!fy(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var my=P.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=P.useRef(null),p=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});up(()=>{r&&f.current.focus()},[r]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${ly(lp(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Zm(sp(t));if(n===`ArrowDown`)e.preventDefault(),py(t,r,c,s,uy);else if(n===`ArrowUp`)e.preventDefault(),py(t,r,c,s,dy);else if(n===`Home`)e.preventDefault(),py(t,null,c,s,uy);else if(n===`End`)e.preventDefault(),py(t,null,c,s,dy);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&fy(r,i);i.previousKeyMatched&&(c||py(t,r,!1,s,uy,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Hs(f,t),g=-1;P.Children.forEach(a,(e,t)=>{if(!P.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=P.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),P.cloneElement(e,t)}return e});return(0,F.jsx)(cy,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function hy(e){return ai(`MuiMenu`,e)}oi(`MuiMenu`,[`root`,`paper`,`list`]);var gy={vertical:`top`,horizontal:`right`},_y={vertical:`top`,horizontal:`left`},vy=e=>{let{classes:t}=e;return Da({root:[`root`],paper:[`paper`],list:[`list`]},hy,t)},yy=L(Ih,{shouldForwardProp:e=>Ho(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),by=L(Fh,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),xy=L(my,{name:`MuiMenu`,slot:`List`})({outline:0}),Sy=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=Ki(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=vy(b),S=r&&!o&&l,C=P.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;P.Children.map(i,(e,t)=>{P.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=ql({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=du(`paper`,{className:x.paper,elementType:by,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=du(`list`,{className:ri(x.list,s.className),elementType:xy,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,F.jsx)(yy,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?gy:_y,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,F.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),Cy=({slotProps:e,...t})=>(0,F.jsx)(Sy,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),wy=s({Collapsible:()=>cv,EnableAudioAutoplayImage:()=>ny,Feedback:()=>qg,HtmlAndMath:()=>xv,InlineMenu:()=>Cy,InputContainer:()=>Uv,PreviewLayout:()=>bv,PreviewPrompt:()=>Jv,Purpose:()=>Xv,Readable:()=>Yv,UiLayout:()=>vv,color:()=>zh,hasMedia:()=>ty,hasText:()=>$v,indicators:()=>Jg,transformDataHeadings:()=>ry,withUndoReset:()=>hv});function H(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}H.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},H.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},H.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},H.prototype.attr=function(e,t){return t===Oy?this.elements[0]?this.elements[0].getAttribute(e):Oy:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},H.prototype.html=function(e){return e===Oy?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},H.prototype.append=function(e){var t=e instanceof H?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},H.prototype.prepend=function(e){var t=e instanceof H?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},H.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof H)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},H.prototype.appendTo=function(e){var t=e instanceof H?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},H.prototype.prependTo=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},H.prototype.insertBefore=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},H.prototype.insertAfter=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},H.prototype.replaceWith=function(e){var t=[];return e instanceof H?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},H.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},H.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},H.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new H(t)},H.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new H(t)},H.prototype.closest=function(e){return new H(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},H.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new H(e)},H.prototype.filter=function(e){return new H(this.elements.filter(function(t,n){return e(n,t)}))},H.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},H.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},H.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function Ty(e){return(e||``).split(`.`)[0]}H.prototype.on=function(e,t){var n=Ty(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},H.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=Ty(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},H.prototype.off=function(e,t){var n=Ty(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},H.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=Ty(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},H.prototype.trigger=function(e){var t=new Event(Ty(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},H.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},H.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){H.prototype[e]=function(t){return this.on(e,t)}}),H.prototype.next=function(e){return new H(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},H.prototype.prev=function(e){return new H(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},H.prototype.parent=function(){return new H(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},H.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},H.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},H.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},H.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},H.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},H.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},H.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},H.prototype.css=function(e,t){if(t===Oy){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):Oy}}else this.elements.forEach(function(n){n.style[e]=t});return this},H.prototype.scrollTop=function(e){var t=this.elements[0];return e===Oy?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},H.prototype.scrollLeft=function(e){var t=this.elements[0];return e===Oy?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},H.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},H.prototype.eq=function(e){return new H([this.elements[e]])},H.prototype.get=function(e){return e===Oy?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},H.prototype.add=function(e){var t=this.elements.slice();return e instanceof H?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new H(t)},H.prototype.first=function(){return new H([this.elements[0]])},H.prototype.last=function(){return new H([this.elements[this.elements.length-1]])},H.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof H?e.elements[0]:e;return this.elements.indexOf(n)},H.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},H.prototype.text=function(e){return e===Oy?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},H.prototype.val=function(e){var t=this.elements[0];return t?e===Oy?t.value===Oy?t.textContent:t.value:(this.elements.forEach(function(t){t.value===Oy?t.textContent=e:t.value=e}),this):Oy};function Ey(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(H.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var U=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof H?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof H?e.elements:e.length===Oy?[]:Array.from(e);return Ey(n)};U.contains=function(e,t){return e!==t&&e.contains(t)};var Dy=U,Oy,ky=`mathquill-command-id`,Ay=`mathquill-block-id`,jy=Math.min,My=Math.max;function Ny(){}var Py=[].slice;function Fy(e){var t=e.length-1;return function(){var n=Py.call(arguments,0,t),r=Py.call(arguments,t);return e.apply(this,n.concat([r]))}}var Iy=Fy(function(e,t){return Fy(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function Ly(e){return Fy(function(t,n){return typeof t!=`function`&&(t=Iy(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function W(e){var t=Py.call(arguments,1);return function(){return e.apply(this,t)}}function Ry(e,t){if(!t)throw Error(`prayer failed: `+e)}var G=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),K=-1,q=1;function zy(e){Ry(`a direction was passed`,e===K||e===q)}var By=G(function(e){e.parent=0,e[K]=0,e[q]=0,e.init=function(e,t,n){this.parent=e,this[K]=t,this[q]=n},this.copy=function(e){return By(e.parent,e[K],e[q])}}),Vy=G(function(e){e[K]=0,e[q]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),Vy.byId[this.id]=this,this.ends={},this.ends[K]=0,this.ends[q]=0},e.dispose=function(){delete Vy.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=U(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=U(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&Vy.byId[n].jQadd(e),r&&Vy.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){zy(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[K],t[q]),n},e.createLeftOf=function(e){return this.createDir(K,e)},e.selectChildren=function(e,t){return qy(e,t)},e.bubble=Ly(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=Ly(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[K]===0&&this.ends[q]===0},e.isStyleBlock=function(){return!1},e.children=function(){return Uy(this.ends[K],this.ends[q])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return Uy(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return Uy(this,this).adopt(e,t,n),this},e.disown=function(){return Uy(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function Hy(e,t,n){Ry(`a parent is always present`,e),t&&(t[q]!==n&&(t[q]=n),t.parent!==e&&(t.parent=e)),n&&(n[K]!==t&&(n[K]=t),n.parent!==e&&(n.parent=e)),Ry(`leftward is properly set up`,(function(){return t?t[q]===n&&t.parent===e:e.ends[K]===n})()),Ry(`rightward is properly set up`,(function(){return n?n[K]===t&&n.parent===e:e.ends[q]===t})())}var Uy=G(function(e){e.init=function(e,t,n){if(n===Oy&&(n=K),zy(n),Ry(`no half-empty fragments`,!e==!t),this.ends={},e){Ry(`withDir is passed to Fragment`,e instanceof Vy),Ry(`oppDir is passed to Fragment`,t instanceof Vy),Ry(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=U(),e.withDirAdopt=function(e,t,n,r){return e===K?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){Hy(e,t,n);var r=this;r.disowned=!1;var i=r.ends[K];if(!i)return this;var a=r.ends[q];return t||(e.ends[K]=i),n?n[K]=a:e.ends[q]=a,r.ends[q][q]=n,r.each(function(n){n[K]=t,n.parent=e,t&&(t[q]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[K];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[q],r=t.parent;return Hy(r,t[K],t),Hy(r,n,n[q]),t[K]?t[K][q]=n[q]:r.ends[K]=n[q],n[q]?n[q][K]=t[K]:r.ends[q]=t[K],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=Ly(function(e){var t=this,n=t.ends[K];if(!n)return t;for(;n!==t.ends[q][q]&&e(n)!==!1;n=n[q]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),J={},Wy={},Gy={},Ky=G(By,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=U(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[q]?this.selection&&this.selection.ends[K][K]===this[K]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[q].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=U(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return zy(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(K,e)},e.insRightOf=function(e){return this.insDirOf(q,e)},e.insAtDirEnd=function(e,t){return zy(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(K,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(q,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=By.copy(n);var r=n.upDownCache[t.id];if(r)r[q]?n.insLeftOf(r[q]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[q],r=this,i=e[K];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[q])}),!this[q])if(this[K])this[q]=this[K][q];else for(;!this[q];)if(this.parent=this.parent[q],this.parent)this[q]=this.parent.ends[K];else{this[q]=e[q],this.parent=t;break}this[q]?this.insLeftOf(this[q]):this.insAtRightEnd(t),e.jQ.remove(),e[K].siblingDeleted&&e[K].siblingDeleted(r.options,q),e[q].siblingDeleted&&e[q].siblingDeleted(r.options,K)},e.startSelection=function(){for(var e=this.anticursor=By.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[K]===e[K]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=q;if(n[K]!==r){for(var s=n;s;s=s[q])if(s[q]===r[q]){o=K,i=n,a=r;break}}return o===q&&(i=r,a=n),i instanceof By&&(i=i[q]),a instanceof By&&(a=a[K]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[K]=this.selection.ends[K][K],this[q]=this.selection.ends[q][q],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[K]=e.ends[K][K],this[q]=e.ends[q][q],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof fb);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==Oy)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),qy=G(Uy,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),Jy=G(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=Ky(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===K||t===q?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),Yy={},Xy=G(),Zy={},Qy=G(),$y={};function eb(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
149
149
 
150
150
  MathQuill = MathQuill.getInterface(1);
151
151
  // now MathQuill.MathField() works like it used to
152
152
 
153
153
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
154
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function Zy(e){return Xy(),ax(e)}Zy.prototype=Jy.p,Zy.VERSION=`v1.2.1-beta.1`,Zy.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return Xy=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
154
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function tb(e){return eb(),lx(e)}tb.prototype=Qy.p,tb.VERSION=`v1.2.1-beta.1`,tb.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return eb=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
155
155
 
156
156
  MathQuill = MathQuill.getInterface(1);
157
157
  // now MathQuill.MathField() works like it used to
158
158
 
159
159
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
160
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},Xy(),Zy},Zy.getInterface=eb;var Qy=eb.MIN=1,$y=eb.MAX=3;function eb(e){if(!(Qy<=e&&e<=$y))throw`Only interface versions between `+Qy+` and `+$y+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=U(e).children(`.mq-root-block`).attr(Ey),r=t&&Ly.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=K,t.R=q,t.saneKeyboardEvents=rb;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=qy[r];e[r]=a?a(i):i}}t.config=function(e){return r(Ky.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;Yy[e]=t};var i=n.AbstractMathQuill=G(Jy,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=U(`<span class="mq-root-block"/>`).attr(Ey,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=G(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[K]=e.ends[q]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=J[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[K];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(K)},e.moveToRightEnd=function(){return this.moveToDirEnd(q)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:ky});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-U(window).scrollLeft(),i=t-U(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(U(a),e,t),rx().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return Cy.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(U(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,Gy)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=Wy(a.RootBlock(),U(n),Ky());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,Gy[a]);return t}Zy.noConflict=function(){return window.MathQuill=tb,Zy};var tb=window.MathQuill;window.MathQuill=Zy;function nb(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var Y=G(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){Py(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return Py(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){Py(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),rb=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=Cy(e),o=Cy(n.container||a),s=ky,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=ky,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=ky,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();Wy.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),Wy.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),U(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),U(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),Wy.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),Ly.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(K);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(q,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(K,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[q];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[q]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[K];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[K]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[K])for(;r[K];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[q])for(;r[q];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(q);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[K];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){Py(`overridden or never called on this node`)}}),Wy.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){Fy(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},qy.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){Fy(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(K)},e.moveRight=function(){return this.moveDir(q)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[q][r]?n.insAtLeftEnd(n[q][r]):n[K][r]?n.insAtRightEnd(n[K][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof Ly&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){Fy(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[K].siblingDeleted&&t[K].siblingDeleted(t.options,q),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,K),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){Fy(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===K?zy(t.parent.ends[K],t[K]).remove():zy(t[q],t.parent.ends[q]).remove(),t.insAtDirEnd(e,t.parent),t[K].siblingDeleted&&t[K].siblingDeleted(t.options,q),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,K),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(K)},e.deleteForward=function(){return this.deleteDir(q)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;Fy(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(K)},e.selectRight=function(){return this.selectDir(q)}});var ib=/[\\]{2,}/gm,ab=(function(){function e(e){var t=cb();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||cb(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[q],0);return t}var n=Y.string,r=Y.regex,i=Y.letter,a=Y.any,o=Y.optWhitespace,s=Y.succeed,c=Y.fail,l=i.map(function(e){return _b(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Z(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return Vy[e]&&Vy[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=J[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();Wy.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return ab.parse(e).postOrder(`finalizeTree`,Ky.p).join(`latex`).trim()},qy.maxDepth=function(e){return typeof e==`number`?e:wy},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=Y.all,r=Y.eof,i=ab.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[K],t[q]),i.jQize().insertBefore(t.jQ),t[K]=i.ends[q],i.finalizeInsert(t.options,t),i.ends[q][q].siblingCreated&&i.ends[q][q].siblingCreated(t.options,K),i.ends[K][K].siblingCreated&&i.ends[K][K].siblingCreated(t.options,q),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(ib,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=Y.all,a=Y.eof,o=ab.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[K]=t.ends[q]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[K]=t.ends[q]=0,delete n.selection,n.show().insAtRightEnd(t);var r=Y.regex,i=Y.string,a=Y.eof,o=Y.all,s=i(`$`).then(ab).skip(i(`$`).or(a)).map(function(e){var t=pb(n);t.createBlocks();var r=t.ends[K];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Z),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[q],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),Wy.open(function(e){Ky.p.ignoreNextMousedown=ky,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=U(t.target).closest(`.mq-root-block`),r=Ly.byId[n.attr(Ey)||e.attr(Ey)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=ky;function s(e){i.anticursor||i.startSelection(),r.seek(U(e.target),e.pageX,e.pageY).cursor.select(),e.target&&U(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),U(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(U(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),U(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),Wy.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(Ey)||e.attr(Ty);if(!i){var a=e.parent();i=a.attr(Ey)||a.attr(Ty)}}var o=i&&Ly.byId[i]?Ly.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),Wy.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[K]===e[q])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),Wy.open(function(e){Ky.p.substituteTextarea=function(){return U(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=U(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=U(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;jb(e.container[0]),e.textareaSelectionTimeout===wy&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=wy;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(Cy(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},Ky.p.substituteKeyboardEvents=rb,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
161
- `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var ob=G(Ly,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[q].siblingCreated&&n[q].siblingCreated(e,K),n[K].siblingCreated&&n[K].siblingCreated(e,q),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==wy){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof cb);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),X=G(ob,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=ab.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[q],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[K],0,0),r.jQ.appendTo(n.ends[K].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=cb()).adopt(e,e.ends[q],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[K],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return Uy(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[K]=e.jQ.offset().left,t[q]=t[K]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[K])return t.insLeftOf(r);if(e>i[q])return t.insRightOf(r);var a=i[K];r.eachChild(function(o){var s=n(o);if(e<s[K])return e-a<s[K]-e?o[K]?t.insAtRightEnd(o[K]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[q])o[q]?a=s[q]:i[q]-e<e-s[q]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);Py(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){Py(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],Py(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),sb=G(X,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return Y.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=ky,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=ky,e.isEmpty=function(){return!0}}),Z=G(sb,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),Q=G(sb,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),cb=G(ob,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[K]===this.ends[q]&&this.ends[K]!==0?this.ends[K].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?K:q,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[q];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[K].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[K];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?_b(e):/^\d$/.test(e)?hb(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?J[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?J[`×`](e):(n=By[e]||J[e])?n(e):Z(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});Ky.p.mouseEvents=!0,Gy.StaticMath=function(e){return G(e.AbstractMathQuill,function(t,n){this.RootBlock=cb,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var lb=G(cb,nb);Gy.MathField=function(e){return G(e.EditableField,function(e,t){this.RootBlock=lb,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=ky),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var ub=G(Ly,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof zy?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[K]&&this.ends[K].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[q].siblingCreated&&n[q].siblingCreated(e.options,K),n[K].siblingCreated&&n[K].siblingCreated(e.options,q),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=Y.string,n=Y.regex;return Y.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?zy():(db(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=X.prototype.selectTowards,e.deleteTowards=X.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[K]?(e[K].appendText(n),this.bubble(`reflow`)):db(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Z(`\\$`,`$`).createLeftOf(e);else if(!e[q])e.insRightOf(this);else if(!e[K])e.insLeftOf(this);else{var r=ub(),i=this.ends[K];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?K:q,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[K]&&t[K].text.length;else if(t.anticursor.parent===this){var l=t[K]&&t[K].text.length;if(this.anticursorPosition===l)t.anticursor=Iy.copy(t);else{if(this.anticursorPosition<l){var u=t[K].splitRight(this.anticursorPosition);t[K]=u}else var u=t[q].splitRight(this.anticursorPosition-l);t.anticursor=Iy(this,u[K],u)}}},e.blur=function(e){cb.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[K]===this?e[K]=this[K]:e[q]===this&&(e[q]=this[q])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},Py(`only node in TextBlock span is Text node`,t.nodeType===3);var n=db(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=cb.prototype.focus}),db=G(Ly,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=U(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){Fy(t),t===q?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=db(this.text.slice(e)).adopt(this.parent,this,this[q]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===K?0:-1+t.length)}e.moveTowards=function(e,t){Fy(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):db(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===q?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){Fy(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=db(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=db(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});J.text=J.textnormal=J.textrm=J.textup=J.textmd=ub;function fb(e,t,n){return G(ub,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}J.em=J.italic=J.italics=J.emph=J.textit=J.textsl=fb(`\\textit`,`i`,`class="mq-text-mode"`),J.strong=J.bold=J.textbf=fb(`\\textbf`,`b`,`class="mq-text-mode"`),J.sf=J.textsf=fb(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),J.tt=J.texttt=fb(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),J.textsc=fb(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),J.uppercase=fb(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),J.lowercase=fb(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var pb=G(X,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[K].cursor=this.cursor,this.ends[K].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Z(`\\$`,`$`).createLeftOf(e.show())):e[q]?e[K]?cb.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):cb.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[K].latex()+`$`}}),mb=G(lb,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)pb(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Z(t,n).createLeftOf(e)}}});Gy.TextField=function(e){return G(e.EditableField,function(e,t){this.RootBlock=mb,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},By[`\\`]=G(X,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[K].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[K].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[K].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Z(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[K].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return U(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[K].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[q]?e.insLeftOf(this[q]):e.insAtRightEnd(this.parent);var t=this.ends[K].latex();t||=` `;var n=J[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=ub(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),J[`∉`]=J.notin=W(Q,`\\notin `,`&#8713;`),J[`≅`]=J.cong=W(Q,`\\cong `,`&#8773;`),J[`≡`]=J.equiv=W(Q,`\\equiv `,`&#8801;`),J[`⊕`]=J.oplus=W(Q,`\\oplus `,`&#8853;`),J[`⊗`]=J.otimes=W(Q,`\\otimes `,`&#8855;`),J[`≠`]=J.ne=J.neq=W(Q,`\\ne `,`&ne;`),J[`≇`]=J.ncong=W(Q,`\\ncong `,`&ncong;`),J[`∗`]=J.ast=J.star=J.loast=J.lowast=W(Q,`\\ast `,`&lowast;`),J.therefor=J.therefore=W(Q,`\\therefore `,`&there4;`),J.cuz=J.because=W(Q,`\\because `,`&#8757;`),J.prop=J.propto=W(Q,`\\propto `,`&prop;`),J[`≈`]=J.asymp=J.approx=W(Q,`\\approx `,`&asymp;`),J[`≉`]=J.nasymp=J.napprox=W(Q,`\\napprox `,`&nap;`),J.isin=J.in=W(Q,`\\in `,`&isin;`),J.ni=J.contains=W(Q,`\\ni `,`&ni;`),J.notni=J.niton=J.notcontains=J.doesnotcontain=Vy[`\\not\\ni`]=W(Q,`\\not\\ni `,`&#8716;`),J.sub=J.subset=W(Q,`\\subset `,`&sub;`),J.sup=J.supset=J.superset=W(Q,`\\supset `,`&sup;`),J.nsub=J.notsub=J.nsubset=J.notsubset=Vy[`\\not\\subset`]=W(Q,`\\not\\subset `,`&#8836;`),J.nsup=J.notsup=J.nsupset=J.notsupset=J.nsuperset=J.notsuperset=Vy[`\\not\\supset`]=W(Q,`\\not\\supset `,`&#8837;`),J.sube=J.subeq=J.subsete=J.subseteq=W(Q,`\\subseteq `,`&sube;`),J.supe=J.supeq=J.supsete=J.supseteq=J.supersete=J.superseteq=W(Q,`\\supseteq `,`&supe;`),J.nsube=J.nsubeq=J.notsube=J.notsubeq=J.nsubsete=J.nsubseteq=J.notsubsete=J.notsubseteq=Vy[`\\not\\subseteq`]=W(Q,`\\not\\subseteq `,`&#8840;`),J.nsupe=J.nsupeq=J.notsupe=J.notsupeq=J.nsupsete=J.nsupseteq=J.notsupsete=J.notsupseteq=J.nsupersete=J.nsuperseteq=J.notsupersete=J.notsuperseteq=Vy[`\\not\\supseteq`]=W(Q,`\\not\\supseteq `,`&#8841;`),J.N=J.naturals=J.Naturals=W(Z,`\\mathbb{N}`,`&#8469;`),J.P=J.primes=J.Primes=J.projective=J.Projective=J.probability=J.Probability=W(Z,`\\mathbb{P}`,`&#8473;`),J.Z=J.integers=J.Integers=W(Z,`\\mathbb{Z}`,`&#8484;`),J.Q=J.rationals=J.Rationals=W(Z,`\\mathbb{Q}`,`&#8474;`),J.R=J.reals=J.Reals=W(Z,`\\mathbb{R}`,`&#8477;`),J.C=J.complex=J.Complex=J.complexes=J.Complexes=J.complexplane=J.Complexplane=J.ComplexPlane=W(Z,`\\mathbb{C}`,`&#8450;`),J.H=J.Hamiltonian=J.quaternions=J.Quaternions=W(Z,`\\mathbb{H}`,`&#8461;`),J.quad=J.emsp=W(Z,`\\quad `,` `),J.qquad=W(Z,`\\qquad `,` `),J.diamond=W(Z,`\\diamond `,`&#9671;`),J.bigtriangleup=W(Z,`\\bigtriangleup `,`&#9651;`),J.ominus=W(Z,`\\ominus `,`&#8854;`),J.uplus=W(Z,`\\uplus `,`&#8846;`),J.bigtriangledown=W(Z,`\\bigtriangledown `,`&#9661;`),J.sqcap=W(Z,`\\sqcap `,`&#8851;`),J.triangleleft=W(Z,`\\triangleleft `,`&#8882;`),J.sqcup=W(Z,`\\sqcup `,`&#8852;`),J.triangleright=W(Z,`\\triangleright `,`&#8883;`),J.odot=J.circledot=W(Z,`\\odot `,`&#8857;`),J.bigcirc=W(Z,`\\bigcirc `,`&#9711;`),J.dagger=W(Z,`\\dagger `,`&#0134;`),J.ddagger=W(Z,`\\ddagger `,`&#135;`),J.wr=W(Z,`\\wr `,`&#8768;`),J.amalg=W(Z,`\\amalg `,`&#8720;`),J.models=W(Z,`\\models `,`&#8872;`),J.prec=W(Z,`\\prec `,`&#8826;`),J.succ=W(Z,`\\succ `,`&#8827;`),J.preceq=W(Z,`\\preceq `,`&#8828;`),J.succeq=W(Z,`\\succeq `,`&#8829;`),J.simeq=W(Z,`\\simeq `,`&#8771;`),J.mid=W(Z,`\\mid `,`&#8739;`),J.ll=W(Z,`\\ll `,`&#8810;`),J.gg=W(Z,`\\gg `,`&#8811;`),J.parallel=W(Z,`\\parallel `,`&#8741;`),J.nparallel=W(Z,`\\nparallel `,`&#8742;`),J.bowtie=W(Z,`\\bowtie `,`&#8904;`),J.sqsubset=W(Z,`\\sqsubset `,`&#8847;`),J.sqsupset=W(Z,`\\sqsupset `,`&#8848;`),J.smile=W(Z,`\\smile `,`&#8995;`),J.sqsubseteq=W(Z,`\\sqsubseteq `,`&#8849;`),J.sqsupseteq=W(Z,`\\sqsupseteq `,`&#8850;`),J.doteq=W(Z,`\\doteq `,`&#8784;`),J.frown=W(Z,`\\frown `,`&#8994;`),J.vdash=W(Z,`\\vdash `,`&#8870;`),J.dashv=W(Z,`\\dashv `,`&#8867;`),J.nless=W(Z,`\\nless `,`&#8814;`),J.ngtr=W(Z,`\\ngtr `,`&#8815;`),J.longleftarrow=W(Z,`\\longleftarrow `,`&#8592;`),J.longrightarrow=W(Z,`\\longrightarrow `,`&#8594;`),J.Longleftarrow=W(Z,`\\Longleftarrow `,`&#8656;`),J.Longrightarrow=W(Z,`\\Longrightarrow `,`&#8658;`),J.longleftrightarrow=W(Z,`\\longleftrightarrow `,`&#8596;`),J.updownarrow=W(Z,`\\updownarrow `,`&#8597;`),J.Longleftrightarrow=W(Z,`\\Longleftrightarrow `,`&#8660;`),J.Updownarrow=W(Z,`\\Updownarrow `,`&#8661;`),J.mapsto=W(Z,`\\mapsto `,`&#8614;`),J.nearrow=W(Z,`\\nearrow `,`&#8599;`),J.hookleftarrow=W(Z,`\\hookleftarrow `,`&#8617;`),J.hookrightarrow=W(Z,`\\hookrightarrow `,`&#8618;`),J.searrow=W(Z,`\\searrow `,`&#8600;`),J.leftharpoonup=W(Z,`\\leftharpoonup `,`&#8636;`),J.rightharpoonup=W(Z,`\\rightharpoonup `,`&#8640;`),J.swarrow=W(Z,`\\swarrow `,`&#8601;`),J.leftharpoondown=W(Z,`\\leftharpoondown `,`&#8637;`),J.rightharpoondown=W(Z,`\\rightharpoondown `,`&#8641;`),J.nwarrow=W(Z,`\\nwarrow `,`&#8598;`),J.ldots=W(Z,`\\ldots `,`&#8230;`),J.cdots=W(Z,`\\cdots `,`&#8943;`),J.vdots=W(Z,`\\vdots `,`&#8942;`),J.ddots=W(Z,`\\ddots `,`&#8945;`),J.surd=W(Z,`\\surd `,`&#8730;`),J.triangle=W(Z,`\\triangle `,`&#9651;`),J.ell=W(Z,`\\ell `,`&#8467;`),J.top=W(Z,`\\top `,`&#8868;`),J.flat=W(Z,`\\flat `,`&#9837;`),J.natural=W(Z,`\\natural `,`&#9838;`),J.sharp=W(Z,`\\sharp `,`&#9839;`),J.wp=W(Z,`\\wp `,`&#8472;`),J.bot=W(Z,`\\bot `,`&#8869;`),J.clubsuit=W(Z,`\\clubsuit `,`&#9827;`),J.diamondsuit=W(Z,`\\diamondsuit `,`&#9826;`),J.heartsuit=W(Z,`\\heartsuit `,`&#9825;`),J.spadesuit=W(Z,`\\spadesuit `,`&#9824;`),J.circledot=W(Z,`\\circledot `,`&#8857;`),J.middot=W(Z,`\\middot `,`&middot;`),J.dottedsquare=W(Z,`\\dottedsquare `,`&#11034;`),J.square=W(Z,`\\square `,`&#11036;`),J.rectangle=W(Z,`\\rectangle `,`&#9647;`),J.oint=W(Z,`\\oint `,`&#8750;`),J.bigcap=W(Z,`\\bigcap `,`&#8745;`),J.bigcup=W(Z,`\\bigcup `,`&#8746;`),J.bigsqcup=W(Z,`\\bigsqcup `,`&#8852;`),J.bigvee=W(Z,`\\bigvee `,`&#8744;`),J.bigwedge=W(Z,`\\bigwedge `,`&#8743;`),J.bigodot=W(Z,`\\bigodot `,`&#8857;`),J.bigotimes=W(Z,`\\bigotimes `,`&#8855;`),J.bigoplus=W(Z,`\\bigoplus `,`&#8853;`),J.biguplus=W(Z,`\\biguplus `,`&#8846;`),J.lfloor=W(Z,`\\lfloor `,`&#8970;`),J.rfloor=W(Z,`\\rfloor `,`&#8971;`),J.lceil=W(Z,`\\lceil `,`&#8968;`),J.rceil=W(Z,`\\rceil `,`&#8969;`),J.opencurlybrace=J.lbrace=W(Z,`\\lbrace `,`{`),J.closecurlybrace=J.rbrace=W(Z,`\\rbrace `,`}`),J.lbrack=W(Z,`[`),J.rbrack=W(Z,`]`),J.mug=W(Z,`\\mug `,`µg`),J.mus=W(Z,`\\mus `,`µs`),J.mum=W(Z,`\\mum `,`µm`),J.muL=W(Z,`\\muL `,`µL`),J.slash=W(Z,`/`),J.vert=W(Z,`|`),J.perp=J.perpendicular=W(Z,`\\perp `,`&perp;`),J.nabla=J.del=W(Z,`\\nabla `,`&nabla;`),J.hbar=W(Z,`\\hbar `,`&#8463;`),J.AA=J.Angstrom=J.angstrom=W(Z,`\\text\\AA `,`&#8491;`),J.ring=J.circ=J.circle=W(Z,`\\circ `,`&#8728;`),J.bull=J.bullet=W(Z,`\\bullet `,`&bull;`),J.setminus=J.smallsetminus=W(Z,`\\setminus `,`&#8726;`),J.not=J[`¬`]=J.neg=W(Z,`\\neg `,`&not;`),J[`…`]=J.dots=J.ellip=J.hellip=J.ellipsis=J.hellipsis=W(Z,`\\dots `,`&hellip;`),J.converges=J.darr=J.dnarr=J.dnarrow=J.downarrow=W(Z,`\\downarrow `,`&darr;`),J.dArr=J.dnArr=J.dnArrow=J.Downarrow=W(Z,`\\Downarrow `,`&dArr;`),J.diverges=J.uarr=J.uparrow=W(Z,`\\uparrow `,`&uarr;`),J.uArr=J.Uparrow=W(Z,`\\Uparrow `,`&uArr;`),J.to=W(Q,`\\to `,`&rarr;`),J.rarr=J.rightarrow=W(Z,`\\rightarrow `,`&rarr;`),J.implies=W(Q,`\\Rightarrow `,`&rArr;`),J.rArr=J.Rightarrow=W(Z,`\\Rightarrow `,`&rArr;`),J.gets=W(Q,`\\gets `,`&larr;`),J.larr=J.leftarrow=W(Z,`\\leftarrow `,`&larr;`),J.impliedby=W(Q,`\\Leftarrow `,`&lArr;`),J.lArr=J.Leftarrow=W(Z,`\\Leftarrow `,`&lArr;`),J.harr=J.lrarr=J.leftrightarrow=W(Z,`\\leftrightarrow `,`&harr;`),J.iff=W(Q,`\\Leftrightarrow `,`&hArr;`),J.hArr=J.lrArr=J.Leftrightarrow=W(Z,`\\Leftrightarrow `,`&hArr;`),J.Re=J.Real=J.real=W(Z,`\\Re `,`&real;`),J.Im=J.imag=J.image=J.imagin=J.imaginary=J.Imaginary=W(Z,`\\Im `,`&image;`),J.part=J.partial=W(Z,`\\partial `,`&part;`),J.infty=J.infin=J.infinity=W(Z,`\\infty `,`&infin;`),J.pounds=W(Z,`\\pounds `,`&pound;`),J.alef=J.alefsym=J.aleph=J.alephsym=W(Z,`\\aleph `,`&alefsym;`),J.xist=J.xists=J.exist=J.exists=W(Z,`\\exists `,`&exist;`),J.nexists=J.nexist=W(Z,`\\nexists `,`&#8708;`),J.and=J.land=J.wedge=W(Q,`\\wedge `,`&and;`),J.or=J.lor=J.vee=W(Q,`\\vee `,`&or;`),J.o=J.O=J.empty=J.emptyset=J.oslash=J.Oslash=J.nothing=J.varnothing=W(Q,`\\varnothing `,`&empty;`),J.cup=J.union=W(Q,`\\cup `,`&cup;`),J.cap=J.intersect=J.intersection=W(Q,`\\cap `,`&cap;`),J.deg=J.degree=W(Z,`\\degree `,`&deg;`),J.ang=J.angle=W(Z,`\\angle `,`&ang;`),J.measuredangle=W(Z,`\\measuredangle `,`m&ang;`);var hb=G(Z,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[K]instanceof gb&&e[K].isItalic!==!1||e[K]instanceof Gb&&e[K][K]instanceof gb&&e[K][K].isItalic!==!1)?(J._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),gb=G(sb,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[K]&&!(this[K]instanceof gb)&&!(this[K]instanceof Q)&&this[K].ctrlSeq!==`\\ `&&(e=`*`+e),this[q]&&!(this[q]instanceof Q)&&!(this[q]instanceof Gb)&&(e+=`*`)),e}});Ky.p.autoCommands={_maxLength:0},qy.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(J[a]===xb)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=Oy(r,a.length)}return n._maxLength=r,n};var _b=G(gb,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof _b&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[K],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[K]);return zy(a,this).remove(),e[K]=a[K],J[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==K&&this[q]instanceof _b||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[K];i instanceof _b;i=i[K])r=i.letter+r;for(var a=this[q];a instanceof _b;a=a[q])r+=a.letter;zy(i[q]||this.parent.ends[K],a[K]||this.parent.ends[q]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[q]||this.parent.ends[K];o<r.length;o+=1,s=s[q])for(var c=Dy(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[q]){d.italicize(!1);var f=d}var p=vb.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,bb.hasOwnProperty(l)&&f[K][K][K].jQ.addClass(`mq-last`),n(s[K])||s.jQ.addClass(`mq-first`),!n(f[q]))if(f[q]instanceof Gb){var m=f[q];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[q]instanceof ex))})()}else f.jQ.toggleClass(`mq-last`,!(f[q]instanceof ex));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof Q||e instanceof Jb}}),vb={},yb=Ky.p.autoOperatorNames={_maxLength:9},bb={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)vb[e[t]]=yb[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)vb[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)yb[r[t]]=yb[`arc`+r[t]]=yb[r[t]+`h`]=yb[`ar`+r[t]+`h`]=yb[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)yb[i[t]]=1})(),qy.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=Oy(r,a.length)}return n._maxLength=r,n};var xb=G(sb,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)_b(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=cb(),n=0;n<e.length;n+=1)_b(e.charAt(n)).adopt(t,t.ends[q],0);return Y.succeed(t.children())}});for(var Sb in yb)yb.hasOwnProperty(Sb)&&(J[Sb]=xb);J.operatorname=G(X,function(e){e.createLeftOf=ky,e.numBlocks=function(){return 1},e.parser=function(){return ab.block.map(function(e){return e.children()})}}),J.f=G(_b,function(e,t){e.init=function(){sb.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),J[` `]=J.space=W(Z,`\\ `,`&nbsp;`),J[`'`]=J.prime=W(Z,`'`,`&prime;`),J[`″`]=J.dprime=W(Z,`″`,`&Prime;`),J[`"`]=J.doublePrime=W(Z,`"`,`&Prime;`),J.backslash=W(Z,`\\backslash `,`\\`),By[`\\`]||=J.backslash,J.$=W(Z,`\\$`,`$`);var Cb=G(sb,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});J[`@`]=Cb,J[`&`]=W(Cb,`\\&`,`&amp;`),J[`%`]=W(Cb,`\\%`,`%`),J.alpha=J.beta=J.gamma=J.delta=J.zeta=J.eta=J.theta=J.iota=J.kappa=J.mu=J.nu=J.xi=J.rho=J.sigma=J.tau=J.chi=J.psi=J.omega=G(gb,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),J.phi=W(gb,`\\phi `,`&#981;`),J.phiv=J.varphi=W(gb,`\\varphi `,`&phi;`),J.epsilon=W(gb,`\\epsilon `,`&#1013;`),J.epsiv=J.varepsilon=W(gb,`\\varepsilon `,`&epsilon;`),J.piv=J.varpi=W(gb,`\\varpi `,`&piv;`),J.sigmaf=J.sigmav=J.varsigma=W(gb,`\\varsigma `,`&sigmaf;`),J.thetav=J.vartheta=J.thetasym=W(gb,`\\vartheta `,`&thetasym;`),J.upsilon=J.upsi=W(gb,`\\upsilon `,`&upsilon;`),J.gammad=J.Gammad=J.digamma=W(gb,`\\digamma `,`&#989;`),J.kappav=J.varkappa=W(gb,`\\varkappa `,`&#1008;`),J.rhov=J.varrho=W(gb,`\\varrho `,`&#1009;`),J.pi=J.π=W(Cb,`\\pi `,`&pi;`),J.lambda=W(Cb,`\\lambda `,`&lambda;`),J.Upsilon=J.Upsi=J.upsih=J.Upsih=W(sb,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),J.Gamma=J.Delta=J.Theta=J.Lambda=J.Xi=J.Pi=J.Sigma=J.Phi=J.Psi=J.Omega=G(Z,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),J.forall=J[`∀`]=W(Z,`\\forall `,`&#8704;`);var wb=G(X,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=ab.parse(this.latex);t.children().adopt(e.parent,e[K],e[q]),e[K]=t.ends[q],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[q][q].siblingCreated&&t.ends[q][q].siblingCreated(e.options,K),t.ends[K][K].siblingCreated&&t.ends[K][K].siblingCreated(e.options,q),e.parent.bubble(`reflow`)},e.parser=function(){var e=ab.parse(this.latex).children();return Y.succeed(e)}});J[`¹`]=W(wb,`^1`),J[`²`]=W(wb,`^2`),J[`³`]=W(wb,`^3`),J[`¼`]=W(wb,`\\frac14`),J[`½`]=W(wb,`\\frac12`),J[`¾`]=W(wb,`\\frac34`);var Tb=G(Q,function(e){e.init=Z.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[K]){if(e[K]instanceof Q||/^[,;:\(\[]$/.test(e[K].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==q)return this.jQ[0].className=n(this),this}});J[`+`]=W(Tb,`+`,`+`),J[`–`]=J[`-`]=W(Tb,`-`,`&minus;`),J[`±`]=J.pm=J.plusmn=J.plusminus=W(Tb,`\\pm `,`&plusmn;`),J.mp=J.mnplus=J.minusplus=W(Tb,`\\mp `,`&#8723;`),By[`*`]=J.sdot=J.cdot=W(Q,`\\cdot `,`&middot;`,`*`);var Eb=G(Q,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===K&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),Db={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},Ob={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};J[`<`]=J.lt=W(Eb,Db,!0),J[`>`]=J.gt=W(Eb,Ob,!0),J[`≤`]=J.le=J.leq=W(Eb,Db,!1),J[`≥`]=J.ge=J.geq=W(Eb,Ob,!1);var kb=G(Q,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[K]instanceof Eb&&e[K].strict){e[K].swap(!1),e[K].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});J[`=`]=kb,J[`×`]=J.times=W(Q,`\\times `,`&times;`,`[x]`),J[`÷`]=J.div=J.divide=J.divides=W(Q,`\\div `,`&divide;`,`[/]`),By[`~`]=J.sim=W(Q,`\\sim `,`~`,`~`),By[`≁`]=J.nsim=W(Q,`\\nsim `,`≁`,`≁`),J.complement=J[`∁`]=W(Z,`\\complement `,`&#8705;`),J.nexists=J[`∄`]=W(Z,`\\nexists `,`&#8708;`),J.sphericalangle=J[`∢`]=W(Z,`\\sphericalangle `,`&#8738;`),J.iint=J[`∬`]=W(Z,`\\iint `,`&#8748;`),J.iiint=J[`∭`]=W(Z,`\\iiint `,`&#8749;`),J.oiint=J[`∯`]=W(Z,`\\oiint `,`&#8751;`),J.oiiint=J[`∰`]=W(Z,`\\oiiint `,`&#8752;`),J.backsim=J[`∽`]=W(Z,`\\backsim `,`&#8765;`),J.backsimeq=J[`⋍`]=W(Z,`\\backsimeq `,`&#8909;`),J.eqsim=J[`≂`]=W(Z,`\\eqsim `,`&#8770;`),J.ncong=J[`≇`]=W(Z,`\\ncong `,`&#8775;`),J.approxeq=J[`≊`]=W(Z,`\\approxeq `,`&#8778;`),J.bumpeq=J[`≏`]=W(Z,`\\bumpeq `,`&#8783;`),J.Bumpeq=J[`≎`]=W(Z,`\\Bumpeq `,`&#8782;`),J.doteqdot=J[`≑`]=W(Z,`\\doteqdot `,`&#8785;`),J.fallingdotseq=J[`≒`]=W(Z,`\\fallingdotseq `,`&#8786;`),J.risingdotseq=J[`≓`]=W(Z,`\\risingdotseq `,`&#8787;`),J.eqcirc=J[`≖`]=W(Z,`\\eqcirc `,`&#8790;`),J.circeq=J[`≗`]=W(Z,`\\circeq `,`&#8791;`),J.triangleq=J[`≜`]=W(Z,`\\triangleq `,`&#8796;`),J.leqq=J[`≦`]=W(Z,`\\leqq `,`&#8806;`),J.geqq=J[`≧`]=W(Z,`\\geqq `,`&#8807;`),J.lneqq=J[`≨`]=W(Z,`\\lneqq `,`&#8808;`),J.gneqq=J[`≩`]=W(Z,`\\gneqq `,`&#8809;`),J.between=J[`≬`]=W(Z,`\\between `,`&#8812;`),J.nleq=J[`≰`]=W(Z,`\\nleq `,`&#8816;`),J.ngeq=J[`≱`]=W(Z,`\\ngeq `,`&#8817;`),J.lesssim=J[`≲`]=W(Z,`\\lesssim `,`&#8818;`),J.gtrsim=J[`≳`]=W(Z,`\\gtrsim `,`&#8819;`),J.lessgtr=J[`≶`]=W(Z,`\\lessgtr `,`&#8822;`),J.gtrless=J[`≷`]=W(Z,`\\gtrless `,`&#8823;`),J.preccurlyeq=J[`≼`]=W(Z,`\\preccurlyeq `,`&#8828;`),J.succcurlyeq=J[`≽`]=W(Z,`\\succcurlyeq `,`&#8829;`),J.precsim=J[`≾`]=W(Z,`\\precsim `,`&#8830;`),J.succsim=J[`≿`]=W(Z,`\\succsim `,`&#8831;`),J.nprec=J[`⊀`]=W(Z,`\\nprec `,`&#8832;`),J.nsucc=J[`⊁`]=W(Z,`\\nsucc `,`&#8833;`),J.subsetneq=J[`⊊`]=W(Z,`\\subsetneq `,`&#8842;`),J.supsetneq=J[`⊋`]=W(Z,`\\supsetneq `,`&#8843;`),J.vDash=J[`⊨`]=W(Z,`\\vDash `,`&#8872;`),J.Vdash=J[`⊩`]=W(Z,`\\Vdash `,`&#8873;`),J.Vvdash=J[`⊪`]=W(Z,`\\Vvdash `,`&#8874;`),J.VDash=J[`⊫`]=W(Z,`\\VDash `,`&#8875;`),J.nvdash=J[`⊬`]=W(Z,`\\nvdash `,`&#8876;`),J.nvDash=J[`⊭`]=W(Z,`\\nvDash `,`&#8877;`),J.nVdash=J[`⊮`]=W(Z,`\\nVdash `,`&#8878;`),J.nVDash=J[`⊯`]=W(Z,`\\nVDash `,`&#8879;`),J.vartriangleleft=J[`⊲`]=W(Z,`\\vartriangleleft `,`&#8882;`),J.vartriangleright=J[`⊳`]=W(Z,`\\vartriangleright `,`&#8883;`),J.trianglelefteq=J[`⊴`]=W(Z,`\\trianglelefteq `,`&#8884;`),J.trianglerighteq=J[`⊵`]=W(Z,`\\trianglerighteq `,`&#8885;`),J.multimap=J[`⊸`]=W(Z,`\\multimap `,`&#8888;`),J.Subset=J[`⋐`]=W(Z,`\\Subset `,`&#8912;`),J.Supset=J[`⋑`]=W(Z,`\\Supset `,`&#8913;`),J.Cap=J[`⋒`]=W(Z,`\\Cap `,`&#8914;`),J.Cup=J[`⋓`]=W(Z,`\\Cup `,`&#8915;`),J.pitchfork=J[`⋔`]=W(Z,`\\pitchfork `,`&#8916;`),J.lessdot=J[`⋖`]=W(Z,`\\lessdot `,`&#8918;`),J.gtrdot=J[`⋗`]=W(Z,`\\gtrdot `,`&#8919;`),J.lll=J[`⋘`]=W(Z,`\\lll `,`&#8920;`),J.ggg=J[`⋙`]=W(Z,`\\ggg `,`&#8921;`),J.lesseqgtr=J[`⋚`]=W(Z,`\\lesseqgtr `,`&#8922;`),J.gtreqless=J[`⋛`]=W(Z,`\\gtreqless `,`&#8923;`),J.curlyeqprec=J[`⋞`]=W(Z,`\\curlyeqprec `,`&#8926;`),J.curlyeqsucc=J[`⋟`]=W(Z,`\\curlyeqsucc `,`&#8927;`),J.nsim=J[`≁`]=W(Z,`\\nsim `,`&#8769;`),J.lnsim=J[`⋦`]=W(Z,`\\lnsim `,`&#8934;`),J.gnsim=J[`⋧`]=W(Z,`\\gnsim `,`&#8935;`),J.precnsim=J[`⋨`]=W(Z,`\\precnsim `,`&#8936;`),J.succnsim=J[`⋩`]=W(Z,`\\succnsim `,`&#8937;`),J.ntriangleleft=J[`⋪`]=W(Z,`\\ntriangleleft `,`&#8938;`),J.ntriangleright=J[`⋫`]=W(Z,`\\ntriangleright `,`&#8939;`),J.ntrianglelefteq=J[`⋬`]=W(Z,`\\ntrianglelefteq `,`&#8940;`),J.ntrianglerighteq=J[`⋭`]=W(Z,`\\ntrianglerighteq `,`&#8941;`),J.blacksquare=J[`∎`]=W(Z,`\\blacksquare `,`&#8718;`),J.colon=J[`∶`]=W(Z,`\\colon `,`&#8758;`),J.llcorner=J[`∟`]=W(Z,`\\llcorner `,`&#8735;`),J.dotplus=J[`∔`]=W(Q,`\\dotplus `,`&#8724;`),J.nmid=J[`∤`]=W(Q,`
162
- mid `,`&#8740;`),J.intercal=J[`⊺`]=W(Q,`\\intercal `,`&#8890;`),J.veebar=J[`⊻`]=W(Q,`\\veebar `,`&#8891;`),J.barwedge=J[`⊼`]=W(Q,`\\barwedge `,`&#8892;`),J.ltimes=J[`⋉`]=W(Q,`\\ltimes `,`&#8905;`),J.rtimes=J[`⋊`]=W(Q,`\\rtimes `,`&#8906;`),J.leftthreetimes=J[`⋋`]=W(Q,`\\leftthreetimes `,`&#8907;`),J.rightthreetimes=J[`⋌`]=W(Q,`\\rightthreetimes `,`&#8908;`),J.curlyvee=J[`⋎`]=W(Q,`\\curlyvee `,`&#8910;`),J.curlywedge=J[`⋏`]=W(Q,`\\curlywedge `,`&#8911;`),J.circledcirc=J[`⊚`]=W(Q,`\\circledcirc `,`&#8858;`),J.circledast=J[`⊛`]=W(Q,`\\circledast `,`&#8859;`),J.circleddash=J[`⊝`]=W(Q,`\\circleddash `,`&#8861;`),J.boxplus=J[`⊞`]=W(Q,`\\boxplus `,`&#8862;`),J.boxminus=J[`⊟`]=W(Q,`\\boxminus `,`&#8863;`),J.boxtimes=J[`⊠`]=W(Q,`\\boxtimes `,`&#8864;`),J.boxdot=J[`⊡`]=W(Q,`\\boxdot `,`&#8865;`),J[`∂`]=J.partial,J[`∃`]=J.exists,J[`∅`]=J.varnothing,J[`∆`]=J.triangle,J[`∇`]=J.nabla,J[`∈`]=J.in,J[`∊`]=J.in,J[`∋`]=J.ni,J[`∌`]=J.notni,J[`∍`]=J.ni,J[`∐`]=J.amalg,J[`−`]=J[`-`],J[`∓`]=J.mp,J[`∖`]=J.setminus,J[`∘`]=J.circ,J[`∙`]=J.bullet,J[`∝`]=J.propto,J[`∞`]=J.infty,J[`∠`]=J.angle,J[`∡`]=J.measuredangle,J[`∣`]=J.divides,J[`∥`]=J.parallel,J[`∦`]=J.nparallel,J[`∧`]=J.wedge,J[`∨`]=J.vee,J[`∩`]=J.cap,J[`∪`]=J.cup,J[`∮`]=J.oint,J[`∴`]=J.therefore,J[`∵`]=J.because,J[`∼`]=J.sim,J[`≀`]=J.wr,J[`≃`]=J.simeq,J[`≍`]=J.asymp,J[`≐`]=J.doteq,J[`≪`]=J.ll,J[`≫`]=J.gg,J[`≺`]=J.prec,J[`≻`]=J.succ,J[`⊂`]=J.subset,J[`⊃`]=J.supset,J[`⊆`]=J.subseteq,J[`⊇`]=J.supseteq,J[`⊈`]=J.nsubseteq,J[`⊉`]=J.nsupseteq,J[`⊏`]=J.sqsubset,J[`⊐`]=J.sqsupset,J[`⊓`]=J.sqcap,J[`⊔`]=J.sqcup,J[`⊖`]=J.ominus,J[`⊘`]=J.oslash,J[`⊙`]=J.odot,J[`⊢`]=J.vdash,J[`⊣`]=J.dashv,J[`⊤`]=J.top,J[`⊥`]=J.bot,J[`⊧`]=J.models,J[`⋀`]=J.wedge,J[`⋁`]=J.vee,J[`⋂`]=J.cap,J[`⋃`]=J.cup,J[`⋄`]=J.diamond,J[`⋅`]=J.cdot,J[`⋆`]=J.star,J[`⋈`]=J.bowtie,J[`⋮`]=J.vdots,J[`⋯`]=J.cdots,J[`⋱`]=J.ddots;var Ab,jb=ky,Mb=document.createElement(`div`).style,Nb={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},Pb;for(var Fb in Nb)if(Fb in Mb){Pb=Fb;break}Pb?Ab=function(e,t,n){e.css(Pb,`scale(`+t+`,`+n+`)`)}:`filter`in Mb?(jb=function(e){e.className=e.className},Ab=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);U(window).load(function(){clearTimeout(a),i()})}):Ab=function(e,t,n){e.css(`fontSize`,n+`em`)};var Ib=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),Lb=G(X,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return ab.optBlock.then(function(t){return ab.block.map(function(n){var r=Rb.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),Rb=G(Lb,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,X.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[K].latex()+`]{`+this.ends[q].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[K].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[K]}}),zb=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return G(X,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},Bb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),Vb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Hb=G(X,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),Ub=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Wb=function(e,t){return G(sb,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};J.mathrm=W(Ib,`\\mathrm`,`span`,`class="mq-roman mq-font"`),J.mathit=W(Ib,`\\mathit`,`i`,`class="mq-font"`),J.mathbf=W(Ib,`\\mathbf`,`b`,`class="mq-font"`),J.mathsf=W(Ib,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),J.mathtt=W(Ib,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),J.underline=W(Ib,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),J.overline=J.bar=W(zb(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),J.longdiv=W(Bb,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),J.overrightarrow=W(zb(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),J.overleftarrow=W(zb(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),J.xleftarrow=W(Lb,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),J.xrightarrow=W(Lb,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),J.overleftrightarrow=W(Ib,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),J.overarc=W(Ib,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),J.dot=G(X,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),J.addmatrixrow=W(Vb,`\\addmatrixrow`,`span`,`+`),J.addmatrixcol=W(Ub,`\\addmatrixcol`,`span`,`+`),J.ngtr=J[`≯`]=W(Wb(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),J.nless=J[`≮`]=W(Wb(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),J.dot=W(Hb,`\\dot`),J.parallelogram=W(Wb(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),J.textcolor=G(X,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=Y.optWhitespace,r=Y.string,i=Y.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),J.class=G(X,function(e,t){e.parser=function(){var e=this,n=Y.string,r=Y.regex;return Y.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var Gb=G(X,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[K]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=K;t;t=t===K&&q)if(this[t]instanceof Gb){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=Iy(i,0,i.ends[K]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=Iy(i,o.ends[q],i.ends[K]);t===K?o.adopt(i,i.ends[q],0):o.adopt(i,0,i.ends[K])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[K]===this&&(t===q&&a?a[K]?e.insRightOf(a[K]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},Ky.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[K].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof sb?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[K]&&!e[q]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),cb.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof sb?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(K,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=U(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(Ey,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=U(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(Ey,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=Kb,delete e[n].deleteOutOf,t===`sub`&&U(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function Kb(e){var t=this.parent,n=e;do{if(n[q])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}J.subscript=J._=G(Gb,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[K],this.sub.upOutOf=Kb,t.finalizeTree.call(this)}}),J.superscript=J.supscript=J[`^`]=G(Gb,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[q],this.sup.downOutOf=Kb,t.finalizeTree.call(this)}});var qb=G(X,function(e,t){e.parser=function(){for(var e=Y.string,t=Y.optWhitespace,n=Y.succeed,r=ab.block,i=this,a=i.blocks=[cb(),cb()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[q],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[q],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[K],this.upInto=this.ends[q],this.ends[K].upOutOf=this.ends[q],this.ends[q].downOutOf=this.ends[K]}}),Jb=G(qb,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;sb.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[K].latex())+`^`+e(this.ends[q].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(_b(`n`).createLeftOf(e),kb().createLeftOf(e))}});J[`∑`]=J.sum=J.summation=W(Jb,`\\sum `,`&sum;`),J[`∏`]=J.prod=J.product=W(Jb,`\\prod `,`&prod;`),J.coprod=J.coproduct=W(Jb,`\\coprod `,`&#8720;`),J[`∫`]=J.int=J.integral=G(Jb,function(e,t){e.init=function(){sb.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=X.p.createLeftOf}),J.lim=J.limit=G(qb,function(e,t){e.init=function(){sb.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[K].latex())}});var Yb=J.over=By[`/`]=G(J.frac=J.dfrac=J.cfrac=J.fraction=G(X,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[q].upOutOf=this.ends[K],this.downInto=this.ends[K].downOutOf=this.ends[q]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[K];n&&!(n instanceof Q||n instanceof(J.text||ky)||n instanceof Jb||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[K];n instanceof Jb&&n[q]instanceof Gb&&(n=n[q],n[q]instanceof Gb&&n[q].ctrlSeq!=n.ctrlSeq&&(n=n[q])),n!==e[K]&&!e.isTooDeep(1)&&(this.replaces(zy(n[q]||e.parent.ends[K],e[K])),e[K]=n)}t.createLeftOf.call(this,e)}});J.underset=G(X,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[K].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[K]}}),J.overset=G(X,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[q].upOutOf=this.ends[K],this.upInto=this.ends[K].downOutOf=this.ends[q]}});var Xb=J.sqrt=J[`√`]=G(X,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return ab.optBlock.then(function(e){return ab.block.map(function(t){var n=Zb();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[q].jQ.parent();Ab(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});J.hat=G(X,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var Zb=J.nthroot=G(Xb,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[K].latex()+`]{`+this.ends[q].latex()+`}`}}),Qb=G(X,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});J.vec=W(Qb,`\\vec`,`&rarr;`,[`vec(`,`)`]),J.tilde=W(Qb,`\\tilde`,`~`,[`tilde(`,`)`]),J.lrncuberoot=G(Xb,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[K].latex()+`}`}}),J.abs=G(X,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),J.lrnplaceholder=G(X,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[K].latex()}}),J.lrnexponent=G(X,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[q].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[K].latex()+`^`+e}}),J.lrnsquaredexponent=G(X,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[K].latex()+`^2`}}),J.lrnsubscript=G(X,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[K].latex()+`_`+this.ends[q].latex()}});function $b(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));Ab(this.delimjQs,Dy(1+.2*(e-1),1.2),1.2*e)}}var ex=G(G(X,$b),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,wy,[n,r]),this.side=e,this.sides={},this.sides[K]={ch:n,ctrlSeq:i},this.sides[q]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===q?` mq-ghost`:``)+`">`+this.sides[K].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===K?` mq-ghost`:``)+`">`+this.sides[q].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[K].ctrlSeq+this.ends[K].latex()+`\\right`+this.sides[q].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof ex&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||tx[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[K].ch]===n.sides[q].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===K?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[K].ch===`|`)var r=this.matchBrack(n,q,e[q])||this.matchBrack(n,K,e[K])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&zy(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(zy(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===K?e.insAtLeftEnd(r.ends[K]):e.insRightOf(r)},e.placeCursor=ky,e.unwrap=function(){this.ends[K].children().disown().adopt(this.parent,this,this[q]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[K].ends[this.side])){this.closeOpposing(this.ends[K].ends[this.side]);var c=this.ends[K].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:tx[this.sides[this.side].ch],ctrlSeq:tx[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===K?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[K].ends[e];zy(i,a,-e).disown().withDirAdopt(-e,this.ends[K],c,0).jQ.insAtDirEnd(e,this.ends[K].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[K])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[K].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===K)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),tx={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function nx(e,t){var t=t||e,n=tx[e],r=tx[t];By[e]=W(ex,K,e,n,t,r),By[n]=W(ex,q,e,n,t,r)}nx(`(`),nx(`[`),nx(`{`,`\\{`),J.langle=W(ex,K,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),J.rangle=W(ex,q,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),By[`|`]=W(ex,K,`|`,`|`,`|`,`|`),J.lVert=W(ex,K,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),J.rVert=W(ex,q,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),J.left=G(X,function(e){e.parser=function(){var e=Y.regex,t=Y.string;Y.succeed;var n=Y.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),ab.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=ex(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),J.right=G(X,function(e){e.parser=function(){return Y.fail(`unmatched \\right`)}}),J.choose=G(J.binom=J.binomial=G(G(X,$b),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=Yb.prototype.createLeftOf}),J.editable=J.MathQuillMathField=G(X,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=Y.string,r=Y.regex,i=Y.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=Wy(this.ends[K],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),nb(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[K].controller))},e.latex=function(){return this.ends[K].latex()},e.text=function(){return this.ends[K].text()}});var rx=J.embed=G(sb,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=Y.string,n=Y.regex,r=Y.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions(Yy[i](t))})})}});J.MathQuillResponseContainer=G(X,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[K].text()}}),J.MathQuillResponseContainerIcon=G(X,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[K].text()}});var ix=J.matrix=G(X,function(e,t){var n=G(cb,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[q],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&Ab(n,Dy(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=Y.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);ab.parse(u[e]||` `).children().adopt(f,f.ends[q],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[q],0);return Y.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=Ly.byId[e.first().attr(Ey)],n=Ly.byId[e.last().attr(Ey)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=Ly.byId[U(this).attr(Ey)],a=e.eq(t+1),o=U(this).closest(`tr`).next(`tr`),s=U(this).closest(`tr`).index(),c=U(this).index(),l;if(a.length){var u=Ly.byId[a.attr(Ey)];n[q]=u,u[K]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=Ly.byId[l.attr(Ey)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[K]=t,this.ends[q]=n,t&&t[K]&&delete t[K],n&&n[q]&&delete n[q],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return U(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return Ly.byId[U(this).attr(Ey)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=Ly.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(Ey)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=U(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=U(`<td class="mq-empty">`).attr(Ey,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=U(`<td class="mq-empty">`).attr(Ey,a.id),a.jQ.insertAfter(U(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});J.pmatrix=G(ix,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),J.bmatrix=G(ix,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),J.Bmatrix=G(ix,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),J.vmatrix=G(ix,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),J.Vmatrix=G(ix,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var ax=eb(3);for(var ox in ax)(function(e,t){typeof t==`function`?(Zy[e]=function(){return Xy(),t.apply(this,arguments)},Zy[e].prototype=t.prototype):Zy[e]=t})(ox,ax[ox]);var sx=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},cx;typeof window<`u`&&(cx=Zy.getInterface(3),cx&&cx.registerEmbed&&sx(cx));function lx(e,t){!cx||!cx.registerEmbed||cx.registerEmbed(e,t)}function ux(e,t,n){if(!(!cx||!e))return t!=null&&(e.textContent=t),cx.StaticMath(e,n)}var dx=dm(`pie-lib:math-input:mq:static`),fx=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,px=/ /g;function mx(e=``){return e.replace(px,``)}function hx(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var gx=class extends P.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=P.createRef()}componentDidMount(){this.update(),Rf(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),Rf()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(hx(e)>hx(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!cx)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=cx.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}};blur=()=>{dx(`blur mathfield`),this.mathField.blur()};focus=()=>{dx(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=mx(this.mathField.parseLatex(e.latex)),n=(e.latex.match(fx)||[]).length,r=t!==mx(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return dx(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,F.jsx)(`span`,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},_x={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},vx={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},yx={"& *":{..._x,...vx,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},bx=e=>(ae(5-e.length,()=>e.push([])),oe.apply(null,e)),xx=dm(`pie-lib:math-inline:keypad`),Sx=L(gx)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:Vh(),"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${Lg()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid black`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid black`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid black !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});Sx.propTypes={latex:O.string.isRequired};var Cx=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},wx=L(`div`)(()=>({...yx,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),Tx=L(rm)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:Vh(),backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()},borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),Ex=L(rm)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()}})),Dx=L(lm)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()},borderRadius:0,"& .icon":{height:`30px`}})),Ox=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:Zf,noDecimal:!1};constructor(e){super(e),this.keypadRef=P.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{xx(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>A([...bx(e),...bx(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,...Cx(r)};return(0,F.jsx)(wx,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,F.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,F.jsx)(Ex,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(Sx,{latex:e.latex})},r.key);if(e.label)return(0,F.jsx)(Tx,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,F.jsx)(Dx,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(t,{className:`icon`})},r.key)}})})}},kx=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},Ax=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(kx(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=Lf(a);return(0,F.jsx)(Ox,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:Nu(Ff(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},jx=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),Mx=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),Nx=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),Px=o(((e,t)=>{var n=Nx(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),Fx=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),Ix=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=Fx();t.exports=function(e){return e?e.replace(r,n):``}})),Lx=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),Rx=o(((e,t)=>{var n=Lx();t.exports=function(e){return n(e).toLowerCase()}})),zx=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),Bx=o(((e,t)=>{var n=Ix(),r=Rx(),i=zx(),a=Nx(),o=Px(),s=jx(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),Vx=o(((e,t)=>{t.exports=Bx()()})),Hx=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),Ux=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),Wx=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),Gx=o(((e,t)=>{Px();var n=Vx(),r=Rx(),i=Ix(),a=Hx(),o=Ux(),s=Wx(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:Mx()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),Kx=o(((e,t)=>{var n=Gx(),r=Hx();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),qx=o(((e,t)=>{t.exports={prefixProperties:jx(),cssUnitless:Mx(),object:Gx(),string:Kx()}}))(),Jx=dm(`@pie-lib:mask-markup:serialization`),Yx=[`span`],Xx=[`em`,`strong`,`u`],Zx=3,Qx=8,$x=1,eS=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},tS=e=>Yx.includes(e)?`inline`:Xx.includes(e)?`mark`:`block`,nS=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},rS=e=>(0,qx.object)(e,{camelize:!0,addUnits:!1}),iS=(e,t)=>rS(nS(e.getAttribute(t))),aS=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},oS=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=iS(e,n);break;case`class`:t.className=aS(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},sS=[`border`,`class`,`style`],cS={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},lS=(e,t=[])=>{if(e.nodeType===Qx)return null;if(e.nodeType===Zx){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===$x){let n=e.tagName.toLowerCase(),r=cS[n];if(r)return Jx(`[deserialize] mark: `,r),{_flatten:!0,nodes:uS(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=eS(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=sS.reduce(oS(e),{...i}),o=tS(n),s=uS(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},uS=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=lS(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},dS=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=uS(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},fS=L(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),pS=L(`span`)(()=>({display:`inline-block`,width:`.75em`})),mS=[`tbody`,`tr`],hS=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&mS.includes(r)))return t},gS=e=>{let t=e.leaves.find(e=>ne(e,`marks`,[]).length);return t?t.marks:null},_S=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`}})),o;if(r){let i=r(e,t,n);if(i){let t=e.data?.dataset?.component===`blank`;t&&o.push((0,F.jsx)(pS,{},`spacer-${s}-before`)),o.push(i),t&&o.push((0,F.jsx)(pS,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=hS(i,n);return r?e+r:e},``),n=gS(e);if(n?.length>0){let e=n.map(e=>Object.keys(cS).find(t=>cS[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,F.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=_S(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,F.jsx)(fS,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,F.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,F.jsx)(t,{...e.data.attributes},c))}}}),o},vS=L(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),yS=class extends P.Component{constructor(e){super(e),this.internalContainerRef=P.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof tv==`function`&&tv(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=_S(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,F.jsx)(vS,{ref:a,children:i})}},bS=/\{\{(\d+)\}\}/g,xS=(e,t)=>e?{markup:e.replace(bS,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},SS=(e,t)=>{let{markup:n}=xS(e,t);return dS(n).document},CS=((e,t)=>class extends P.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=P.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.innerHTML=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||SS(n,e);return(0,F.jsx)(yS,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),wS=`height ease-in 300ms, opacity ease-in 300ms`,TS=L(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:wS,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:wS,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),ES=e=>{let{show:t,children:n,className:r}=e,i=(0,P.useRef)(null);return(0,F.jsx)(Ds,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,F.jsx)(TS,{ref:i,className:r,children:n})})};ES.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var DS={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,redo:`Redo`,reset:`Reset`},mathInline:{primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`}},OS={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`}},graphing:{point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`}},$=e=>typeof e==`string`,kS=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},AS=e=>e==null?``:``+e,jS=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},MS=/###/g,NS=e=>e&&e.indexOf(`###`)>-1?e.replace(MS,`.`):e,PS=e=>!e||$(e),FS=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(PS(e))return{};let t=NS(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return PS(e)?{}:{obj:e,k:NS(r[i])}},IS=(e,t,n)=>{let{obj:r,k:i}=FS(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=FS(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=FS(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},LS=(e,t,n,r)=>{let{obj:i,k:a}=FS(e,t,Object);i[a]=i[a]||[],i[a].push(n)},RS=(e,t)=>{let{obj:n,k:r}=FS(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},zS=(e,t,n)=>{let r=RS(e,n);return r===void 0?RS(t,n):r},BS=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):BS(e[r],t[r],n):e[r]=t[r]);return e},VS=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),HS={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},US=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>HS[e]):e,WS=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},GS=[` `,`,`,`?`,`!`,`;`],KS=new WS(20),qS=(e,t,n)=>{t||=``,n||=``;let r=GS.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=KS.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},JS=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},YS=e=>e?.replace(/_/g,`-`),XS={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},ZS=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||XS,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},QS=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},$S=class extends QS{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=RS(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:JS(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),IS(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=RS(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?BS(s,n,i):s={...s,...n},IS(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},eC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},tC=Symbol(`i18next/PATH_KEY`);function nC(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===tC?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function rC(e,t){let{[tC]:n}=e(nC()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var iC={},aC=e=>!$(e)&&typeof e!=`boolean`&&typeof e!=`number`,oC=class e extends QS{constructor(e,t={}){super(),jS([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=ZS.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=aC(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!qS(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=rC(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?rC(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!$(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=aC(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!($(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:aC(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&$(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=$(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=$(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=eC.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return $(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?rC(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!iC[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(iC[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},sC=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ZS.create(`languageUtils`)}getScriptPartFromCode(e){if(e=YS(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=YS(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},cC={zero:0,one:1,two:2,few:3,many:4,other:5},lC={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},uC=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ZS.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=YS(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),lC;if(!e.match(/-|_/))return lC;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>cC[e]-cC[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},dC=(e,t,n,r=`.`,i=!0)=>{let a=zS(e,t,n);return!a&&i&&$(n)&&(a=JS(e,n,r),a===void 0&&(a=JS(t,n,r))),a},fC=e=>e.replace(/\$/g,`$$$$`),pC=class{constructor(e={}){this.logger=ZS.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?US:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?VS(i):a||`{{`,this.suffix=o?VS(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?VS(d):f||VS(`$t(`),this.nestingSuffix=p?VS(p):m||VS(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=dC(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(dC(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>fC(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?fC(this.escape(e)):fC(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!$(a)&&!this.useRawValueToEscape&&(a=AS(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${VS(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=AS(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},mC=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},hC=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(YS(r),i),t[o]=s),s(n)}},gC=e=>(t,n,r)=>e(YS(n),r)(t),_C=class{constructor(e={}){this.logger=ZS.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?hC:gC;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=hC(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=mC(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},vC=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},yC=class extends QS{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ZS.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{LS(n.loaded,[i],a),vC(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},bC=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),xC=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),SC=()=>{},CC=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},wC=`__i18next_supportNoticeShown`,TC=()=>!!(typeof globalThis<`u`&&globalThis[wC]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),EC=()=>{typeof globalThis<`u`&&(globalThis[wC]=!0)},DC=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),OC=class e extends QS{constructor(e={},t){if(super(),this.options=xC(e),this.services={},this.logger=ZS,this.modules={external:[]},CC(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&($(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=bC();this.options={...n,...this.options,...xC(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!DC(this)&&!TC()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),EC());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?ZS.init(r(this.modules.logger),this.options):ZS.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:_C;let t=new sC(this.options);this.store=new $S(this.options.resources,this.options);let i=this.services;i.logger=ZS,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new uC(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new pC(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new yC(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new oC(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=SC,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=kS(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=SC){let n=t,r=$(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=kS();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=SC,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&eC.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=kS();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes($(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=rC(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=rC(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=rC(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return $(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=kS();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=kS();$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new sC(bC());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=SC){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new $S(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...bC().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new pC(n)}return a.translator=new oC(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();OC.createInstance,OC.dir,OC.init,OC.loadResources,OC.reloadResources,OC.use,OC.changeLanguage,OC.getFixedT,OC.t,OC.exists,OC.setDefaultNamespace,OC.hasLoadedNamespace,OC.loadNamespaces,OC.loadLanguages,OC.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:DS,es:OS}});var kC={translator:{...OC,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return OC.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]};function AC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function jC(e,t){return!e||AC(e)?e:AC(e.default)?e.default:t&&AC(e[t])?e[t]:t&&AC(e[t]?.default)?e[t].default:e}var MC=jC(Gv,`Readable`)||jC(FC.Readable,`Readable`),NC=by,PC=NC.default,FC=PC&&typeof PC==`object`?PC:NC,{translator:IC}=kC,LC={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},RC=L(`div`)(()=>({width:`100%`,cursor:`pointer`})),zC=L(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),BC=L(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${Vh()})`,fontWeight:`normal`,...LC})),VC=L(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),HC=L(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),UC=class e extends P.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=P.createRef(),this.closedIconRef=P.createRef(),e.defaultProps={...e.defaultProps,showMessage:IC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:IC.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:IC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:IC.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,F.jsx)(RC,{className:e,children:(0,F.jsx)(ES,{show:this.state.show,children:(0,F.jsxs)(zC,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,F.jsxs)(HC,{children:[(0,F.jsx)(Ds,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(VC,{ref:this.openIconRef,children:(0,F.jsx)(Dm,{open:t},`correct-open`)})}),(0,F.jsx)(Ds,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(VC,{ref:this.closedIconRef,children:(0,F.jsx)(Dm,{open:t},`correct-closed`)})})]}),(0,F.jsx)(MC,{false:!0,children:(0,F.jsx)(BC,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function WC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function GC(e,t){return!e||WC(e)?e:WC(e.default)?e.default:t&&WC(e[t])?e[t]:t&&WC(e[t]?.default)?e[t].default:e}var KC=GC(mv,`UiLayout`)||GC(QC.UiLayout,`UiLayout`),qC=GC(Wv,`PreviewPrompt`)||GC(QC.PreviewPrompt,`PreviewPrompt`),JC=GC(Gv,`Readable`)||GC(QC.Readable,`Readable`),YC=GC(iv,`Collapsible`)||GC(QC.Collapsible,`Collapsible`),XC=by,ZC=XC.default,QC=ZC&&typeof ZC==`object`?ZC:XC,$C=L(KC)({color:Vh(),backgroundColor:lg(),display:`inline-block`}),ew=L(`div`)({width:`100%`,position:`relative`,backgroundColor:lg(),color:Vh()}),tw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),nw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),rw=L(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),iw=L(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${Yh()} !important`},...n&&{borderColor:`${Gh()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),aw=L(gx)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:Vh()}}}),ow=L(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),sw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),cw=L(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),lw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),uw=L(UC)(({theme:e})=>({color:Vh(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
160
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},eb(),tb},tb.getInterface=ib;var nb=ib.MIN=1,rb=ib.MAX=3;function ib(e){if(!(nb<=e&&e<=rb))throw`Only interface versions between `+nb+` and `+rb+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=U(e).children(`.mq-root-block`).attr(Ay),r=t&&Vy.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=K,t.R=q,t.saneKeyboardEvents=sb;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=Zy[r];e[r]=a?a(i):i}}t.config=function(e){return r(Xy.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;$y[e]=t};var i=n.AbstractMathQuill=G(Qy,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=U(`<span class="mq-root-block"/>`).attr(Ay,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=G(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[K]=e.ends[q]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=J[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[K];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(K)},e.moveToRightEnd=function(){return this.moveToDirEnd(q)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:Ny});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-U(window).scrollLeft(),i=t-U(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(U(a),e,t),sx().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return Dy.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(U(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,Yy)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=Jy(a.RootBlock(),U(n),Xy());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,Yy[a]);return t}tb.noConflict=function(){return window.MathQuill=ab,tb};var ab=window.MathQuill;window.MathQuill=tb;function ob(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var Y=G(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){Ry(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return Ry(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){Ry(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),sb=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=Dy(e),o=Dy(n.container||a),s=Ny,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=Ny,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=Ny,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();Jy.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),Jy.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),U(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),U(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),Jy.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),Vy.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(K);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(q,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(K,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[q];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[q]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[K];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[K]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[K])for(;r[K];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[q])for(;r[q];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(q);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[K];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){Ry(`overridden or never called on this node`)}}),Jy.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){zy(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},Zy.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){zy(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(K)},e.moveRight=function(){return this.moveDir(q)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[q][r]?n.insAtLeftEnd(n[q][r]):n[K][r]?n.insAtRightEnd(n[K][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof Vy&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){zy(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[K].siblingDeleted&&t[K].siblingDeleted(t.options,q),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,K),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){zy(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===K?Uy(t.parent.ends[K],t[K]).remove():Uy(t[q],t.parent.ends[q]).remove(),t.insAtDirEnd(e,t.parent),t[K].siblingDeleted&&t[K].siblingDeleted(t.options,q),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,K),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(K)},e.deleteForward=function(){return this.deleteDir(q)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;zy(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(K)},e.selectRight=function(){return this.selectDir(q)}});var cb=/[\\]{2,}/gm,lb=(function(){function e(e){var t=fb();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||fb(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[q],0);return t}var n=Y.string,r=Y.regex,i=Y.letter,a=Y.any,o=Y.optWhitespace,s=Y.succeed,c=Y.fail,l=i.map(function(e){return xb(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Z(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return Gy[e]&&Gy[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=J[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();Jy.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return lb.parse(e).postOrder(`finalizeTree`,Xy.p).join(`latex`).trim()},Zy.maxDepth=function(e){return typeof e==`number`?e:Oy},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=Y.all,r=Y.eof,i=lb.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[K],t[q]),i.jQize().insertBefore(t.jQ),t[K]=i.ends[q],i.finalizeInsert(t.options,t),i.ends[q][q].siblingCreated&&i.ends[q][q].siblingCreated(t.options,K),i.ends[K][K].siblingCreated&&i.ends[K][K].siblingCreated(t.options,q),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(cb,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=Y.all,a=Y.eof,o=lb.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[K]=t.ends[q]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[K]=t.ends[q]=0,delete n.selection,n.show().insAtRightEnd(t);var r=Y.regex,i=Y.string,a=Y.eof,o=Y.all,s=i(`$`).then(lb).skip(i(`$`).or(a)).map(function(e){var t=_b(n);t.createBlocks();var r=t.ends[K];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Z),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[q],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),Jy.open(function(e){Xy.p.ignoreNextMousedown=Ny,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=U(t.target).closest(`.mq-root-block`),r=Vy.byId[n.attr(Ay)||e.attr(Ay)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=Ny;function s(e){i.anticursor||i.startSelection(),r.seek(U(e.target),e.pageX,e.pageY).cursor.select(),e.target&&U(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),U(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(U(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),U(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),Jy.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(Ay)||e.attr(ky);if(!i){var a=e.parent();i=a.attr(Ay)||a.attr(ky)}}var o=i&&Vy.byId[i]?Vy.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),Jy.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[K]===e[q])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),Jy.open(function(e){Xy.p.substituteTextarea=function(){return U(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=U(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=U(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;Fb(e.container[0]),e.textareaSelectionTimeout===Oy&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=Oy;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(Dy(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},Xy.p.substituteKeyboardEvents=sb,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
161
+ `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var ub=G(Vy,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[q].siblingCreated&&n[q].siblingCreated(e,K),n[K].siblingCreated&&n[K].siblingCreated(e,q),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==Oy){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof fb);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),X=G(ub,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=lb.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[q],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[K],0,0),r.jQ.appendTo(n.ends[K].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=fb()).adopt(e,e.ends[q],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[K],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return qy(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[K]=e.jQ.offset().left,t[q]=t[K]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[K])return t.insLeftOf(r);if(e>i[q])return t.insRightOf(r);var a=i[K];r.eachChild(function(o){var s=n(o);if(e<s[K])return e-a<s[K]-e?o[K]?t.insAtRightEnd(o[K]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[q])o[q]?a=s[q]:i[q]-e<e-s[q]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);Ry(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){Ry(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],Ry(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),db=G(X,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return Y.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=Ny,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=Ny,e.isEmpty=function(){return!0}}),Z=G(db,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),Q=G(db,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),fb=G(ub,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[K]===this.ends[q]&&this.ends[K]!==0?this.ends[K].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?K:q,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[q];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[K].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[K];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?xb(e):/^\d$/.test(e)?yb(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?J[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?J[`×`](e):(n=Wy[e]||J[e])?n(e):Z(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});Xy.p.mouseEvents=!0,Yy.StaticMath=function(e){return G(e.AbstractMathQuill,function(t,n){this.RootBlock=fb,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var pb=G(fb,ob);Yy.MathField=function(e){return G(e.EditableField,function(e,t){this.RootBlock=pb,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=Ny),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var mb=G(Vy,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof Uy?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[K]&&this.ends[K].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[q].siblingCreated&&n[q].siblingCreated(e.options,K),n[K].siblingCreated&&n[K].siblingCreated(e.options,q),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=Y.string,n=Y.regex;return Y.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?Uy():(hb(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=X.prototype.selectTowards,e.deleteTowards=X.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[K]?(e[K].appendText(n),this.bubble(`reflow`)):hb(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Z(`\\$`,`$`).createLeftOf(e);else if(!e[q])e.insRightOf(this);else if(!e[K])e.insLeftOf(this);else{var r=mb(),i=this.ends[K];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?K:q,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[K]&&t[K].text.length;else if(t.anticursor.parent===this){var l=t[K]&&t[K].text.length;if(this.anticursorPosition===l)t.anticursor=By.copy(t);else{if(this.anticursorPosition<l){var u=t[K].splitRight(this.anticursorPosition);t[K]=u}else var u=t[q].splitRight(this.anticursorPosition-l);t.anticursor=By(this,u[K],u)}}},e.blur=function(e){fb.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[K]===this?e[K]=this[K]:e[q]===this&&(e[q]=this[q])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},Ry(`only node in TextBlock span is Text node`,t.nodeType===3);var n=hb(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=fb.prototype.focus}),hb=G(Vy,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=U(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){zy(t),t===q?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=hb(this.text.slice(e)).adopt(this.parent,this,this[q]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===K?0:-1+t.length)}e.moveTowards=function(e,t){zy(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):hb(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===q?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){zy(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=hb(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=hb(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});J.text=J.textnormal=J.textrm=J.textup=J.textmd=mb;function gb(e,t,n){return G(mb,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}J.em=J.italic=J.italics=J.emph=J.textit=J.textsl=gb(`\\textit`,`i`,`class="mq-text-mode"`),J.strong=J.bold=J.textbf=gb(`\\textbf`,`b`,`class="mq-text-mode"`),J.sf=J.textsf=gb(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),J.tt=J.texttt=gb(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),J.textsc=gb(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),J.uppercase=gb(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),J.lowercase=gb(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var _b=G(X,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[K].cursor=this.cursor,this.ends[K].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Z(`\\$`,`$`).createLeftOf(e.show())):e[q]?e[K]?fb.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):fb.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[K].latex()+`$`}}),vb=G(pb,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)_b(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Z(t,n).createLeftOf(e)}}});Yy.TextField=function(e){return G(e.EditableField,function(e,t){this.RootBlock=vb,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},Wy[`\\`]=G(X,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[K].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[K].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[K].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Z(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[K].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return U(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[K].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[q]?e.insLeftOf(this[q]):e.insAtRightEnd(this.parent);var t=this.ends[K].latex();t||=` `;var n=J[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=mb(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),J[`∉`]=J.notin=W(Q,`\\notin `,`&#8713;`),J[`≅`]=J.cong=W(Q,`\\cong `,`&#8773;`),J[`≡`]=J.equiv=W(Q,`\\equiv `,`&#8801;`),J[`⊕`]=J.oplus=W(Q,`\\oplus `,`&#8853;`),J[`⊗`]=J.otimes=W(Q,`\\otimes `,`&#8855;`),J[`≠`]=J.ne=J.neq=W(Q,`\\ne `,`&ne;`),J[`≇`]=J.ncong=W(Q,`\\ncong `,`&ncong;`),J[`∗`]=J.ast=J.star=J.loast=J.lowast=W(Q,`\\ast `,`&lowast;`),J.therefor=J.therefore=W(Q,`\\therefore `,`&there4;`),J.cuz=J.because=W(Q,`\\because `,`&#8757;`),J.prop=J.propto=W(Q,`\\propto `,`&prop;`),J[`≈`]=J.asymp=J.approx=W(Q,`\\approx `,`&asymp;`),J[`≉`]=J.nasymp=J.napprox=W(Q,`\\napprox `,`&nap;`),J.isin=J.in=W(Q,`\\in `,`&isin;`),J.ni=J.contains=W(Q,`\\ni `,`&ni;`),J.notni=J.niton=J.notcontains=J.doesnotcontain=Gy[`\\not\\ni`]=W(Q,`\\not\\ni `,`&#8716;`),J.sub=J.subset=W(Q,`\\subset `,`&sub;`),J.sup=J.supset=J.superset=W(Q,`\\supset `,`&sup;`),J.nsub=J.notsub=J.nsubset=J.notsubset=Gy[`\\not\\subset`]=W(Q,`\\not\\subset `,`&#8836;`),J.nsup=J.notsup=J.nsupset=J.notsupset=J.nsuperset=J.notsuperset=Gy[`\\not\\supset`]=W(Q,`\\not\\supset `,`&#8837;`),J.sube=J.subeq=J.subsete=J.subseteq=W(Q,`\\subseteq `,`&sube;`),J.supe=J.supeq=J.supsete=J.supseteq=J.supersete=J.superseteq=W(Q,`\\supseteq `,`&supe;`),J.nsube=J.nsubeq=J.notsube=J.notsubeq=J.nsubsete=J.nsubseteq=J.notsubsete=J.notsubseteq=Gy[`\\not\\subseteq`]=W(Q,`\\not\\subseteq `,`&#8840;`),J.nsupe=J.nsupeq=J.notsupe=J.notsupeq=J.nsupsete=J.nsupseteq=J.notsupsete=J.notsupseteq=J.nsupersete=J.nsuperseteq=J.notsupersete=J.notsuperseteq=Gy[`\\not\\supseteq`]=W(Q,`\\not\\supseteq `,`&#8841;`),J.N=J.naturals=J.Naturals=W(Z,`\\mathbb{N}`,`&#8469;`),J.P=J.primes=J.Primes=J.projective=J.Projective=J.probability=J.Probability=W(Z,`\\mathbb{P}`,`&#8473;`),J.Z=J.integers=J.Integers=W(Z,`\\mathbb{Z}`,`&#8484;`),J.Q=J.rationals=J.Rationals=W(Z,`\\mathbb{Q}`,`&#8474;`),J.R=J.reals=J.Reals=W(Z,`\\mathbb{R}`,`&#8477;`),J.C=J.complex=J.Complex=J.complexes=J.Complexes=J.complexplane=J.Complexplane=J.ComplexPlane=W(Z,`\\mathbb{C}`,`&#8450;`),J.H=J.Hamiltonian=J.quaternions=J.Quaternions=W(Z,`\\mathbb{H}`,`&#8461;`),J.quad=J.emsp=W(Z,`\\quad `,` `),J.qquad=W(Z,`\\qquad `,` `),J.diamond=W(Z,`\\diamond `,`&#9671;`),J.bigtriangleup=W(Z,`\\bigtriangleup `,`&#9651;`),J.ominus=W(Z,`\\ominus `,`&#8854;`),J.uplus=W(Z,`\\uplus `,`&#8846;`),J.bigtriangledown=W(Z,`\\bigtriangledown `,`&#9661;`),J.sqcap=W(Z,`\\sqcap `,`&#8851;`),J.triangleleft=W(Z,`\\triangleleft `,`&#8882;`),J.sqcup=W(Z,`\\sqcup `,`&#8852;`),J.triangleright=W(Z,`\\triangleright `,`&#8883;`),J.odot=J.circledot=W(Z,`\\odot `,`&#8857;`),J.bigcirc=W(Z,`\\bigcirc `,`&#9711;`),J.dagger=W(Z,`\\dagger `,`&#0134;`),J.ddagger=W(Z,`\\ddagger `,`&#135;`),J.wr=W(Z,`\\wr `,`&#8768;`),J.amalg=W(Z,`\\amalg `,`&#8720;`),J.models=W(Z,`\\models `,`&#8872;`),J.prec=W(Z,`\\prec `,`&#8826;`),J.succ=W(Z,`\\succ `,`&#8827;`),J.preceq=W(Z,`\\preceq `,`&#8828;`),J.succeq=W(Z,`\\succeq `,`&#8829;`),J.simeq=W(Z,`\\simeq `,`&#8771;`),J.mid=W(Z,`\\mid `,`&#8739;`),J.ll=W(Z,`\\ll `,`&#8810;`),J.gg=W(Z,`\\gg `,`&#8811;`),J.parallel=W(Z,`\\parallel `,`&#8741;`),J.nparallel=W(Z,`\\nparallel `,`&#8742;`),J.bowtie=W(Z,`\\bowtie `,`&#8904;`),J.sqsubset=W(Z,`\\sqsubset `,`&#8847;`),J.sqsupset=W(Z,`\\sqsupset `,`&#8848;`),J.smile=W(Z,`\\smile `,`&#8995;`),J.sqsubseteq=W(Z,`\\sqsubseteq `,`&#8849;`),J.sqsupseteq=W(Z,`\\sqsupseteq `,`&#8850;`),J.doteq=W(Z,`\\doteq `,`&#8784;`),J.frown=W(Z,`\\frown `,`&#8994;`),J.vdash=W(Z,`\\vdash `,`&#8870;`),J.dashv=W(Z,`\\dashv `,`&#8867;`),J.nless=W(Z,`\\nless `,`&#8814;`),J.ngtr=W(Z,`\\ngtr `,`&#8815;`),J.longleftarrow=W(Z,`\\longleftarrow `,`&#8592;`),J.longrightarrow=W(Z,`\\longrightarrow `,`&#8594;`),J.Longleftarrow=W(Z,`\\Longleftarrow `,`&#8656;`),J.Longrightarrow=W(Z,`\\Longrightarrow `,`&#8658;`),J.longleftrightarrow=W(Z,`\\longleftrightarrow `,`&#8596;`),J.updownarrow=W(Z,`\\updownarrow `,`&#8597;`),J.Longleftrightarrow=W(Z,`\\Longleftrightarrow `,`&#8660;`),J.Updownarrow=W(Z,`\\Updownarrow `,`&#8661;`),J.mapsto=W(Z,`\\mapsto `,`&#8614;`),J.nearrow=W(Z,`\\nearrow `,`&#8599;`),J.hookleftarrow=W(Z,`\\hookleftarrow `,`&#8617;`),J.hookrightarrow=W(Z,`\\hookrightarrow `,`&#8618;`),J.searrow=W(Z,`\\searrow `,`&#8600;`),J.leftharpoonup=W(Z,`\\leftharpoonup `,`&#8636;`),J.rightharpoonup=W(Z,`\\rightharpoonup `,`&#8640;`),J.swarrow=W(Z,`\\swarrow `,`&#8601;`),J.leftharpoondown=W(Z,`\\leftharpoondown `,`&#8637;`),J.rightharpoondown=W(Z,`\\rightharpoondown `,`&#8641;`),J.nwarrow=W(Z,`\\nwarrow `,`&#8598;`),J.ldots=W(Z,`\\ldots `,`&#8230;`),J.cdots=W(Z,`\\cdots `,`&#8943;`),J.vdots=W(Z,`\\vdots `,`&#8942;`),J.ddots=W(Z,`\\ddots `,`&#8945;`),J.surd=W(Z,`\\surd `,`&#8730;`),J.triangle=W(Z,`\\triangle `,`&#9651;`),J.ell=W(Z,`\\ell `,`&#8467;`),J.top=W(Z,`\\top `,`&#8868;`),J.flat=W(Z,`\\flat `,`&#9837;`),J.natural=W(Z,`\\natural `,`&#9838;`),J.sharp=W(Z,`\\sharp `,`&#9839;`),J.wp=W(Z,`\\wp `,`&#8472;`),J.bot=W(Z,`\\bot `,`&#8869;`),J.clubsuit=W(Z,`\\clubsuit `,`&#9827;`),J.diamondsuit=W(Z,`\\diamondsuit `,`&#9826;`),J.heartsuit=W(Z,`\\heartsuit `,`&#9825;`),J.spadesuit=W(Z,`\\spadesuit `,`&#9824;`),J.circledot=W(Z,`\\circledot `,`&#8857;`),J.middot=W(Z,`\\middot `,`&middot;`),J.dottedsquare=W(Z,`\\dottedsquare `,`&#11034;`),J.square=W(Z,`\\square `,`&#11036;`),J.rectangle=W(Z,`\\rectangle `,`&#9647;`),J.oint=W(Z,`\\oint `,`&#8750;`),J.bigcap=W(Z,`\\bigcap `,`&#8745;`),J.bigcup=W(Z,`\\bigcup `,`&#8746;`),J.bigsqcup=W(Z,`\\bigsqcup `,`&#8852;`),J.bigvee=W(Z,`\\bigvee `,`&#8744;`),J.bigwedge=W(Z,`\\bigwedge `,`&#8743;`),J.bigodot=W(Z,`\\bigodot `,`&#8857;`),J.bigotimes=W(Z,`\\bigotimes `,`&#8855;`),J.bigoplus=W(Z,`\\bigoplus `,`&#8853;`),J.biguplus=W(Z,`\\biguplus `,`&#8846;`),J.lfloor=W(Z,`\\lfloor `,`&#8970;`),J.rfloor=W(Z,`\\rfloor `,`&#8971;`),J.lceil=W(Z,`\\lceil `,`&#8968;`),J.rceil=W(Z,`\\rceil `,`&#8969;`),J.opencurlybrace=J.lbrace=W(Z,`\\lbrace `,`{`),J.closecurlybrace=J.rbrace=W(Z,`\\rbrace `,`}`),J.lbrack=W(Z,`[`),J.rbrack=W(Z,`]`),J.mug=W(Z,`\\mug `,`µg`),J.mus=W(Z,`\\mus `,`µs`),J.mum=W(Z,`\\mum `,`µm`),J.muL=W(Z,`\\muL `,`µL`),J.slash=W(Z,`/`),J.vert=W(Z,`|`),J.perp=J.perpendicular=W(Z,`\\perp `,`&perp;`),J.nabla=J.del=W(Z,`\\nabla `,`&nabla;`),J.hbar=W(Z,`\\hbar `,`&#8463;`),J.AA=J.Angstrom=J.angstrom=W(Z,`\\text\\AA `,`&#8491;`),J.ring=J.circ=J.circle=W(Z,`\\circ `,`&#8728;`),J.bull=J.bullet=W(Z,`\\bullet `,`&bull;`),J.setminus=J.smallsetminus=W(Z,`\\setminus `,`&#8726;`),J.not=J[`¬`]=J.neg=W(Z,`\\neg `,`&not;`),J[`…`]=J.dots=J.ellip=J.hellip=J.ellipsis=J.hellipsis=W(Z,`\\dots `,`&hellip;`),J.converges=J.darr=J.dnarr=J.dnarrow=J.downarrow=W(Z,`\\downarrow `,`&darr;`),J.dArr=J.dnArr=J.dnArrow=J.Downarrow=W(Z,`\\Downarrow `,`&dArr;`),J.diverges=J.uarr=J.uparrow=W(Z,`\\uparrow `,`&uarr;`),J.uArr=J.Uparrow=W(Z,`\\Uparrow `,`&uArr;`),J.to=W(Q,`\\to `,`&rarr;`),J.rarr=J.rightarrow=W(Z,`\\rightarrow `,`&rarr;`),J.implies=W(Q,`\\Rightarrow `,`&rArr;`),J.rArr=J.Rightarrow=W(Z,`\\Rightarrow `,`&rArr;`),J.gets=W(Q,`\\gets `,`&larr;`),J.larr=J.leftarrow=W(Z,`\\leftarrow `,`&larr;`),J.impliedby=W(Q,`\\Leftarrow `,`&lArr;`),J.lArr=J.Leftarrow=W(Z,`\\Leftarrow `,`&lArr;`),J.harr=J.lrarr=J.leftrightarrow=W(Z,`\\leftrightarrow `,`&harr;`),J.iff=W(Q,`\\Leftrightarrow `,`&hArr;`),J.hArr=J.lrArr=J.Leftrightarrow=W(Z,`\\Leftrightarrow `,`&hArr;`),J.Re=J.Real=J.real=W(Z,`\\Re `,`&real;`),J.Im=J.imag=J.image=J.imagin=J.imaginary=J.Imaginary=W(Z,`\\Im `,`&image;`),J.part=J.partial=W(Z,`\\partial `,`&part;`),J.infty=J.infin=J.infinity=W(Z,`\\infty `,`&infin;`),J.pounds=W(Z,`\\pounds `,`&pound;`),J.alef=J.alefsym=J.aleph=J.alephsym=W(Z,`\\aleph `,`&alefsym;`),J.xist=J.xists=J.exist=J.exists=W(Z,`\\exists `,`&exist;`),J.nexists=J.nexist=W(Z,`\\nexists `,`&#8708;`),J.and=J.land=J.wedge=W(Q,`\\wedge `,`&and;`),J.or=J.lor=J.vee=W(Q,`\\vee `,`&or;`),J.o=J.O=J.empty=J.emptyset=J.oslash=J.Oslash=J.nothing=J.varnothing=W(Q,`\\varnothing `,`&empty;`),J.cup=J.union=W(Q,`\\cup `,`&cup;`),J.cap=J.intersect=J.intersection=W(Q,`\\cap `,`&cap;`),J.deg=J.degree=W(Z,`\\degree `,`&deg;`),J.ang=J.angle=W(Z,`\\angle `,`&ang;`),J.measuredangle=W(Z,`\\measuredangle `,`m&ang;`);var yb=G(Z,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[K]instanceof bb&&e[K].isItalic!==!1||e[K]instanceof Yb&&e[K][K]instanceof bb&&e[K][K].isItalic!==!1)?(J._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),bb=G(db,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[K]&&!(this[K]instanceof bb)&&!(this[K]instanceof Q)&&this[K].ctrlSeq!==`\\ `&&(e=`*`+e),this[q]&&!(this[q]instanceof Q)&&!(this[q]instanceof Yb)&&(e+=`*`)),e}});Xy.p.autoCommands={_maxLength:0},Zy.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(J[a]===Tb)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=My(r,a.length)}return n._maxLength=r,n};var xb=G(bb,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof xb&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[K],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[K]);return Uy(a,this).remove(),e[K]=a[K],J[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==K&&this[q]instanceof xb||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[K];i instanceof xb;i=i[K])r=i.letter+r;for(var a=this[q];a instanceof xb;a=a[q])r+=a.letter;Uy(i[q]||this.parent.ends[K],a[K]||this.parent.ends[q]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[q]||this.parent.ends[K];o<r.length;o+=1,s=s[q])for(var c=jy(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[q]){d.italicize(!1);var f=d}var p=Sb.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,wb.hasOwnProperty(l)&&f[K][K][K].jQ.addClass(`mq-last`),n(s[K])||s.jQ.addClass(`mq-first`),!n(f[q]))if(f[q]instanceof Yb){var m=f[q];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[q]instanceof ix))})()}else f.jQ.toggleClass(`mq-last`,!(f[q]instanceof ix));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof Q||e instanceof Qb}}),Sb={},Cb=Xy.p.autoOperatorNames={_maxLength:9},wb={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)Sb[e[t]]=Cb[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)Sb[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)Cb[r[t]]=Cb[`arc`+r[t]]=Cb[r[t]+`h`]=Cb[`ar`+r[t]+`h`]=Cb[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)Cb[i[t]]=1})(),Zy.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=My(r,a.length)}return n._maxLength=r,n};var Tb=G(db,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)xb(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=fb(),n=0;n<e.length;n+=1)xb(e.charAt(n)).adopt(t,t.ends[q],0);return Y.succeed(t.children())}});for(var Eb in Cb)Cb.hasOwnProperty(Eb)&&(J[Eb]=Tb);J.operatorname=G(X,function(e){e.createLeftOf=Ny,e.numBlocks=function(){return 1},e.parser=function(){return lb.block.map(function(e){return e.children()})}}),J.f=G(xb,function(e,t){e.init=function(){db.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),J[` `]=J.space=W(Z,`\\ `,`&nbsp;`),J[`'`]=J.prime=W(Z,`'`,`&prime;`),J[`″`]=J.dprime=W(Z,`″`,`&Prime;`),J[`"`]=J.doublePrime=W(Z,`"`,`&Prime;`),J.backslash=W(Z,`\\backslash `,`\\`),Wy[`\\`]||=J.backslash,J.$=W(Z,`\\$`,`$`);var Db=G(db,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});J[`@`]=Db,J[`&`]=W(Db,`\\&`,`&amp;`),J[`%`]=W(Db,`\\%`,`%`),J.alpha=J.beta=J.gamma=J.delta=J.zeta=J.eta=J.theta=J.iota=J.kappa=J.mu=J.nu=J.xi=J.rho=J.sigma=J.tau=J.chi=J.psi=J.omega=G(bb,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),J.phi=W(bb,`\\phi `,`&#981;`),J.phiv=J.varphi=W(bb,`\\varphi `,`&phi;`),J.epsilon=W(bb,`\\epsilon `,`&#1013;`),J.epsiv=J.varepsilon=W(bb,`\\varepsilon `,`&epsilon;`),J.piv=J.varpi=W(bb,`\\varpi `,`&piv;`),J.sigmaf=J.sigmav=J.varsigma=W(bb,`\\varsigma `,`&sigmaf;`),J.thetav=J.vartheta=J.thetasym=W(bb,`\\vartheta `,`&thetasym;`),J.upsilon=J.upsi=W(bb,`\\upsilon `,`&upsilon;`),J.gammad=J.Gammad=J.digamma=W(bb,`\\digamma `,`&#989;`),J.kappav=J.varkappa=W(bb,`\\varkappa `,`&#1008;`),J.rhov=J.varrho=W(bb,`\\varrho `,`&#1009;`),J.pi=J.π=W(Db,`\\pi `,`&pi;`),J.lambda=W(Db,`\\lambda `,`&lambda;`),J.Upsilon=J.Upsi=J.upsih=J.Upsih=W(db,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),J.Gamma=J.Delta=J.Theta=J.Lambda=J.Xi=J.Pi=J.Sigma=J.Phi=J.Psi=J.Omega=G(Z,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),J.forall=J[`∀`]=W(Z,`\\forall `,`&#8704;`);var Ob=G(X,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=lb.parse(this.latex);t.children().adopt(e.parent,e[K],e[q]),e[K]=t.ends[q],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[q][q].siblingCreated&&t.ends[q][q].siblingCreated(e.options,K),t.ends[K][K].siblingCreated&&t.ends[K][K].siblingCreated(e.options,q),e.parent.bubble(`reflow`)},e.parser=function(){var e=lb.parse(this.latex).children();return Y.succeed(e)}});J[`¹`]=W(Ob,`^1`),J[`²`]=W(Ob,`^2`),J[`³`]=W(Ob,`^3`),J[`¼`]=W(Ob,`\\frac14`),J[`½`]=W(Ob,`\\frac12`),J[`¾`]=W(Ob,`\\frac34`);var kb=G(Q,function(e){e.init=Z.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[K]){if(e[K]instanceof Q||/^[,;:\(\[]$/.test(e[K].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==q)return this.jQ[0].className=n(this),this}});J[`+`]=W(kb,`+`,`+`),J[`–`]=J[`-`]=W(kb,`-`,`&minus;`),J[`±`]=J.pm=J.plusmn=J.plusminus=W(kb,`\\pm `,`&plusmn;`),J.mp=J.mnplus=J.minusplus=W(kb,`\\mp `,`&#8723;`),Wy[`*`]=J.sdot=J.cdot=W(Q,`\\cdot `,`&middot;`,`*`);var Ab=G(Q,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===K&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),jb={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},Mb={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};J[`<`]=J.lt=W(Ab,jb,!0),J[`>`]=J.gt=W(Ab,Mb,!0),J[`≤`]=J.le=J.leq=W(Ab,jb,!1),J[`≥`]=J.ge=J.geq=W(Ab,Mb,!1);var Nb=G(Q,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[K]instanceof Ab&&e[K].strict){e[K].swap(!1),e[K].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});J[`=`]=Nb,J[`×`]=J.times=W(Q,`\\times `,`&times;`,`[x]`),J[`÷`]=J.div=J.divide=J.divides=W(Q,`\\div `,`&divide;`,`[/]`),Wy[`~`]=J.sim=W(Q,`\\sim `,`~`,`~`),Wy[`≁`]=J.nsim=W(Q,`\\nsim `,`≁`,`≁`),J.complement=J[`∁`]=W(Z,`\\complement `,`&#8705;`),J.nexists=J[`∄`]=W(Z,`\\nexists `,`&#8708;`),J.sphericalangle=J[`∢`]=W(Z,`\\sphericalangle `,`&#8738;`),J.iint=J[`∬`]=W(Z,`\\iint `,`&#8748;`),J.iiint=J[`∭`]=W(Z,`\\iiint `,`&#8749;`),J.oiint=J[`∯`]=W(Z,`\\oiint `,`&#8751;`),J.oiiint=J[`∰`]=W(Z,`\\oiiint `,`&#8752;`),J.backsim=J[`∽`]=W(Z,`\\backsim `,`&#8765;`),J.backsimeq=J[`⋍`]=W(Z,`\\backsimeq `,`&#8909;`),J.eqsim=J[`≂`]=W(Z,`\\eqsim `,`&#8770;`),J.ncong=J[`≇`]=W(Z,`\\ncong `,`&#8775;`),J.approxeq=J[`≊`]=W(Z,`\\approxeq `,`&#8778;`),J.bumpeq=J[`≏`]=W(Z,`\\bumpeq `,`&#8783;`),J.Bumpeq=J[`≎`]=W(Z,`\\Bumpeq `,`&#8782;`),J.doteqdot=J[`≑`]=W(Z,`\\doteqdot `,`&#8785;`),J.fallingdotseq=J[`≒`]=W(Z,`\\fallingdotseq `,`&#8786;`),J.risingdotseq=J[`≓`]=W(Z,`\\risingdotseq `,`&#8787;`),J.eqcirc=J[`≖`]=W(Z,`\\eqcirc `,`&#8790;`),J.circeq=J[`≗`]=W(Z,`\\circeq `,`&#8791;`),J.triangleq=J[`≜`]=W(Z,`\\triangleq `,`&#8796;`),J.leqq=J[`≦`]=W(Z,`\\leqq `,`&#8806;`),J.geqq=J[`≧`]=W(Z,`\\geqq `,`&#8807;`),J.lneqq=J[`≨`]=W(Z,`\\lneqq `,`&#8808;`),J.gneqq=J[`≩`]=W(Z,`\\gneqq `,`&#8809;`),J.between=J[`≬`]=W(Z,`\\between `,`&#8812;`),J.nleq=J[`≰`]=W(Z,`\\nleq `,`&#8816;`),J.ngeq=J[`≱`]=W(Z,`\\ngeq `,`&#8817;`),J.lesssim=J[`≲`]=W(Z,`\\lesssim `,`&#8818;`),J.gtrsim=J[`≳`]=W(Z,`\\gtrsim `,`&#8819;`),J.lessgtr=J[`≶`]=W(Z,`\\lessgtr `,`&#8822;`),J.gtrless=J[`≷`]=W(Z,`\\gtrless `,`&#8823;`),J.preccurlyeq=J[`≼`]=W(Z,`\\preccurlyeq `,`&#8828;`),J.succcurlyeq=J[`≽`]=W(Z,`\\succcurlyeq `,`&#8829;`),J.precsim=J[`≾`]=W(Z,`\\precsim `,`&#8830;`),J.succsim=J[`≿`]=W(Z,`\\succsim `,`&#8831;`),J.nprec=J[`⊀`]=W(Z,`\\nprec `,`&#8832;`),J.nsucc=J[`⊁`]=W(Z,`\\nsucc `,`&#8833;`),J.subsetneq=J[`⊊`]=W(Z,`\\subsetneq `,`&#8842;`),J.supsetneq=J[`⊋`]=W(Z,`\\supsetneq `,`&#8843;`),J.vDash=J[`⊨`]=W(Z,`\\vDash `,`&#8872;`),J.Vdash=J[`⊩`]=W(Z,`\\Vdash `,`&#8873;`),J.Vvdash=J[`⊪`]=W(Z,`\\Vvdash `,`&#8874;`),J.VDash=J[`⊫`]=W(Z,`\\VDash `,`&#8875;`),J.nvdash=J[`⊬`]=W(Z,`\\nvdash `,`&#8876;`),J.nvDash=J[`⊭`]=W(Z,`\\nvDash `,`&#8877;`),J.nVdash=J[`⊮`]=W(Z,`\\nVdash `,`&#8878;`),J.nVDash=J[`⊯`]=W(Z,`\\nVDash `,`&#8879;`),J.vartriangleleft=J[`⊲`]=W(Z,`\\vartriangleleft `,`&#8882;`),J.vartriangleright=J[`⊳`]=W(Z,`\\vartriangleright `,`&#8883;`),J.trianglelefteq=J[`⊴`]=W(Z,`\\trianglelefteq `,`&#8884;`),J.trianglerighteq=J[`⊵`]=W(Z,`\\trianglerighteq `,`&#8885;`),J.multimap=J[`⊸`]=W(Z,`\\multimap `,`&#8888;`),J.Subset=J[`⋐`]=W(Z,`\\Subset `,`&#8912;`),J.Supset=J[`⋑`]=W(Z,`\\Supset `,`&#8913;`),J.Cap=J[`⋒`]=W(Z,`\\Cap `,`&#8914;`),J.Cup=J[`⋓`]=W(Z,`\\Cup `,`&#8915;`),J.pitchfork=J[`⋔`]=W(Z,`\\pitchfork `,`&#8916;`),J.lessdot=J[`⋖`]=W(Z,`\\lessdot `,`&#8918;`),J.gtrdot=J[`⋗`]=W(Z,`\\gtrdot `,`&#8919;`),J.lll=J[`⋘`]=W(Z,`\\lll `,`&#8920;`),J.ggg=J[`⋙`]=W(Z,`\\ggg `,`&#8921;`),J.lesseqgtr=J[`⋚`]=W(Z,`\\lesseqgtr `,`&#8922;`),J.gtreqless=J[`⋛`]=W(Z,`\\gtreqless `,`&#8923;`),J.curlyeqprec=J[`⋞`]=W(Z,`\\curlyeqprec `,`&#8926;`),J.curlyeqsucc=J[`⋟`]=W(Z,`\\curlyeqsucc `,`&#8927;`),J.nsim=J[`≁`]=W(Z,`\\nsim `,`&#8769;`),J.lnsim=J[`⋦`]=W(Z,`\\lnsim `,`&#8934;`),J.gnsim=J[`⋧`]=W(Z,`\\gnsim `,`&#8935;`),J.precnsim=J[`⋨`]=W(Z,`\\precnsim `,`&#8936;`),J.succnsim=J[`⋩`]=W(Z,`\\succnsim `,`&#8937;`),J.ntriangleleft=J[`⋪`]=W(Z,`\\ntriangleleft `,`&#8938;`),J.ntriangleright=J[`⋫`]=W(Z,`\\ntriangleright `,`&#8939;`),J.ntrianglelefteq=J[`⋬`]=W(Z,`\\ntrianglelefteq `,`&#8940;`),J.ntrianglerighteq=J[`⋭`]=W(Z,`\\ntrianglerighteq `,`&#8941;`),J.blacksquare=J[`∎`]=W(Z,`\\blacksquare `,`&#8718;`),J.colon=J[`∶`]=W(Z,`\\colon `,`&#8758;`),J.llcorner=J[`∟`]=W(Z,`\\llcorner `,`&#8735;`),J.dotplus=J[`∔`]=W(Q,`\\dotplus `,`&#8724;`),J.nmid=J[`∤`]=W(Q,`
162
+ mid `,`&#8740;`),J.intercal=J[`⊺`]=W(Q,`\\intercal `,`&#8890;`),J.veebar=J[`⊻`]=W(Q,`\\veebar `,`&#8891;`),J.barwedge=J[`⊼`]=W(Q,`\\barwedge `,`&#8892;`),J.ltimes=J[`⋉`]=W(Q,`\\ltimes `,`&#8905;`),J.rtimes=J[`⋊`]=W(Q,`\\rtimes `,`&#8906;`),J.leftthreetimes=J[`⋋`]=W(Q,`\\leftthreetimes `,`&#8907;`),J.rightthreetimes=J[`⋌`]=W(Q,`\\rightthreetimes `,`&#8908;`),J.curlyvee=J[`⋎`]=W(Q,`\\curlyvee `,`&#8910;`),J.curlywedge=J[`⋏`]=W(Q,`\\curlywedge `,`&#8911;`),J.circledcirc=J[`⊚`]=W(Q,`\\circledcirc `,`&#8858;`),J.circledast=J[`⊛`]=W(Q,`\\circledast `,`&#8859;`),J.circleddash=J[`⊝`]=W(Q,`\\circleddash `,`&#8861;`),J.boxplus=J[`⊞`]=W(Q,`\\boxplus `,`&#8862;`),J.boxminus=J[`⊟`]=W(Q,`\\boxminus `,`&#8863;`),J.boxtimes=J[`⊠`]=W(Q,`\\boxtimes `,`&#8864;`),J.boxdot=J[`⊡`]=W(Q,`\\boxdot `,`&#8865;`),J[`∂`]=J.partial,J[`∃`]=J.exists,J[`∅`]=J.varnothing,J[`∆`]=J.triangle,J[`∇`]=J.nabla,J[`∈`]=J.in,J[`∊`]=J.in,J[`∋`]=J.ni,J[`∌`]=J.notni,J[`∍`]=J.ni,J[`∐`]=J.amalg,J[`−`]=J[`-`],J[`∓`]=J.mp,J[`∖`]=J.setminus,J[`∘`]=J.circ,J[`∙`]=J.bullet,J[`∝`]=J.propto,J[`∞`]=J.infty,J[`∠`]=J.angle,J[`∡`]=J.measuredangle,J[`∣`]=J.divides,J[`∥`]=J.parallel,J[`∦`]=J.nparallel,J[`∧`]=J.wedge,J[`∨`]=J.vee,J[`∩`]=J.cap,J[`∪`]=J.cup,J[`∮`]=J.oint,J[`∴`]=J.therefore,J[`∵`]=J.because,J[`∼`]=J.sim,J[`≀`]=J.wr,J[`≃`]=J.simeq,J[`≍`]=J.asymp,J[`≐`]=J.doteq,J[`≪`]=J.ll,J[`≫`]=J.gg,J[`≺`]=J.prec,J[`≻`]=J.succ,J[`⊂`]=J.subset,J[`⊃`]=J.supset,J[`⊆`]=J.subseteq,J[`⊇`]=J.supseteq,J[`⊈`]=J.nsubseteq,J[`⊉`]=J.nsupseteq,J[`⊏`]=J.sqsubset,J[`⊐`]=J.sqsupset,J[`⊓`]=J.sqcap,J[`⊔`]=J.sqcup,J[`⊖`]=J.ominus,J[`⊘`]=J.oslash,J[`⊙`]=J.odot,J[`⊢`]=J.vdash,J[`⊣`]=J.dashv,J[`⊤`]=J.top,J[`⊥`]=J.bot,J[`⊧`]=J.models,J[`⋀`]=J.wedge,J[`⋁`]=J.vee,J[`⋂`]=J.cap,J[`⋃`]=J.cup,J[`⋄`]=J.diamond,J[`⋅`]=J.cdot,J[`⋆`]=J.star,J[`⋈`]=J.bowtie,J[`⋮`]=J.vdots,J[`⋯`]=J.cdots,J[`⋱`]=J.ddots;var Pb,Fb=Ny,Ib=document.createElement(`div`).style,Lb={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},Rb;for(var zb in Lb)if(zb in Ib){Rb=zb;break}Rb?Pb=function(e,t,n){e.css(Rb,`scale(`+t+`,`+n+`)`)}:`filter`in Ib?(Fb=function(e){e.className=e.className},Pb=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);U(window).load(function(){clearTimeout(a),i()})}):Pb=function(e,t,n){e.css(`fontSize`,n+`em`)};var Bb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),Vb=G(X,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return lb.optBlock.then(function(t){return lb.block.map(function(n){var r=Hb.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),Hb=G(Vb,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,X.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[K].latex()+`]{`+this.ends[q].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[K].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[K]}}),Ub=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return G(X,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},Wb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),Gb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Kb=G(X,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),qb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Jb=function(e,t){return G(db,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};J.mathrm=W(Bb,`\\mathrm`,`span`,`class="mq-roman mq-font"`),J.mathit=W(Bb,`\\mathit`,`i`,`class="mq-font"`),J.mathbf=W(Bb,`\\mathbf`,`b`,`class="mq-font"`),J.mathsf=W(Bb,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),J.mathtt=W(Bb,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),J.underline=W(Bb,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),J.overline=J.bar=W(Ub(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),J.longdiv=W(Wb,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),J.overrightarrow=W(Ub(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),J.overleftarrow=W(Ub(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),J.xleftarrow=W(Vb,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),J.xrightarrow=W(Vb,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),J.overleftrightarrow=W(Bb,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),J.overarc=W(Bb,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),J.dot=G(X,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),J.addmatrixrow=W(Gb,`\\addmatrixrow`,`span`,`+`),J.addmatrixcol=W(qb,`\\addmatrixcol`,`span`,`+`),J.ngtr=J[`≯`]=W(Jb(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),J.nless=J[`≮`]=W(Jb(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),J.dot=W(Kb,`\\dot`),J.parallelogram=W(Jb(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),J.textcolor=G(X,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=Y.optWhitespace,r=Y.string,i=Y.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),J.class=G(X,function(e,t){e.parser=function(){var e=this,n=Y.string,r=Y.regex;return Y.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var Yb=G(X,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[K]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=K;t;t=t===K&&q)if(this[t]instanceof Yb){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=By(i,0,i.ends[K]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=By(i,o.ends[q],i.ends[K]);t===K?o.adopt(i,i.ends[q],0):o.adopt(i,0,i.ends[K])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[K]===this&&(t===q&&a?a[K]?e.insRightOf(a[K]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},Xy.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[K].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof db?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[K]&&!e[q]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),fb.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof db?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(K,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=U(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(Ay,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=U(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(Ay,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=Xb,delete e[n].deleteOutOf,t===`sub`&&U(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function Xb(e){var t=this.parent,n=e;do{if(n[q])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}J.subscript=J._=G(Yb,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[K],this.sub.upOutOf=Xb,t.finalizeTree.call(this)}}),J.superscript=J.supscript=J[`^`]=G(Yb,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[q],this.sup.downOutOf=Xb,t.finalizeTree.call(this)}});var Zb=G(X,function(e,t){e.parser=function(){for(var e=Y.string,t=Y.optWhitespace,n=Y.succeed,r=lb.block,i=this,a=i.blocks=[fb(),fb()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[q],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[q],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[K],this.upInto=this.ends[q],this.ends[K].upOutOf=this.ends[q],this.ends[q].downOutOf=this.ends[K]}}),Qb=G(Zb,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;db.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[K].latex())+`^`+e(this.ends[q].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(xb(`n`).createLeftOf(e),Nb().createLeftOf(e))}});J[`∑`]=J.sum=J.summation=W(Qb,`\\sum `,`&sum;`),J[`∏`]=J.prod=J.product=W(Qb,`\\prod `,`&prod;`),J.coprod=J.coproduct=W(Qb,`\\coprod `,`&#8720;`),J[`∫`]=J.int=J.integral=G(Qb,function(e,t){e.init=function(){db.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=X.p.createLeftOf}),J.lim=J.limit=G(Zb,function(e,t){e.init=function(){db.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[K].latex())}});var $b=J.over=Wy[`/`]=G(J.frac=J.dfrac=J.cfrac=J.fraction=G(X,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[q].upOutOf=this.ends[K],this.downInto=this.ends[K].downOutOf=this.ends[q]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[K];n&&!(n instanceof Q||n instanceof(J.text||Ny)||n instanceof Qb||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[K];n instanceof Qb&&n[q]instanceof Yb&&(n=n[q],n[q]instanceof Yb&&n[q].ctrlSeq!=n.ctrlSeq&&(n=n[q])),n!==e[K]&&!e.isTooDeep(1)&&(this.replaces(Uy(n[q]||e.parent.ends[K],e[K])),e[K]=n)}t.createLeftOf.call(this,e)}});J.underset=G(X,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[K].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[K]}}),J.overset=G(X,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[q].upOutOf=this.ends[K],this.upInto=this.ends[K].downOutOf=this.ends[q]}});var ex=J.sqrt=J[`√`]=G(X,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return lb.optBlock.then(function(e){return lb.block.map(function(t){var n=tx();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[q].jQ.parent();Pb(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});J.hat=G(X,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var tx=J.nthroot=G(ex,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[K].latex()+`]{`+this.ends[q].latex()+`}`}}),nx=G(X,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});J.vec=W(nx,`\\vec`,`&rarr;`,[`vec(`,`)`]),J.tilde=W(nx,`\\tilde`,`~`,[`tilde(`,`)`]),J.lrncuberoot=G(ex,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[K].latex()+`}`}}),J.abs=G(X,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),J.lrnplaceholder=G(X,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[K].latex()}}),J.lrnexponent=G(X,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[q].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[K].latex()+`^`+e}}),J.lrnsquaredexponent=G(X,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[K].latex()+`^2`}}),J.lrnsubscript=G(X,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[K].latex()+`_`+this.ends[q].latex()}});function rx(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));Pb(this.delimjQs,jy(1+.2*(e-1),1.2),1.2*e)}}var ix=G(G(X,rx),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,Oy,[n,r]),this.side=e,this.sides={},this.sides[K]={ch:n,ctrlSeq:i},this.sides[q]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===q?` mq-ghost`:``)+`">`+this.sides[K].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===K?` mq-ghost`:``)+`">`+this.sides[q].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[K].ctrlSeq+this.ends[K].latex()+`\\right`+this.sides[q].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof ix&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||ax[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[K].ch]===n.sides[q].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===K?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[K].ch===`|`)var r=this.matchBrack(n,q,e[q])||this.matchBrack(n,K,e[K])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&Uy(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(Uy(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===K?e.insAtLeftEnd(r.ends[K]):e.insRightOf(r)},e.placeCursor=Ny,e.unwrap=function(){this.ends[K].children().disown().adopt(this.parent,this,this[q]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[K].ends[this.side])){this.closeOpposing(this.ends[K].ends[this.side]);var c=this.ends[K].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:ax[this.sides[this.side].ch],ctrlSeq:ax[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===K?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[K].ends[e];Uy(i,a,-e).disown().withDirAdopt(-e,this.ends[K],c,0).jQ.insAtDirEnd(e,this.ends[K].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[K])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[K].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===K)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),ax={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function ox(e,t){var t=t||e,n=ax[e],r=ax[t];Wy[e]=W(ix,K,e,n,t,r),Wy[n]=W(ix,q,e,n,t,r)}ox(`(`),ox(`[`),ox(`{`,`\\{`),J.langle=W(ix,K,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),J.rangle=W(ix,q,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),Wy[`|`]=W(ix,K,`|`,`|`,`|`,`|`),J.lVert=W(ix,K,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),J.rVert=W(ix,q,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),J.left=G(X,function(e){e.parser=function(){var e=Y.regex,t=Y.string;Y.succeed;var n=Y.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),lb.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=ix(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),J.right=G(X,function(e){e.parser=function(){return Y.fail(`unmatched \\right`)}}),J.choose=G(J.binom=J.binomial=G(G(X,rx),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=$b.prototype.createLeftOf}),J.editable=J.MathQuillMathField=G(X,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=Y.string,r=Y.regex,i=Y.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=Jy(this.ends[K],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),ob(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[K].controller))},e.latex=function(){return this.ends[K].latex()},e.text=function(){return this.ends[K].text()}});var sx=J.embed=G(db,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=Y.string,n=Y.regex,r=Y.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions($y[i](t))})})}});J.MathQuillResponseContainer=G(X,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[K].text()}}),J.MathQuillResponseContainerIcon=G(X,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[K].text()}});var cx=J.matrix=G(X,function(e,t){var n=G(fb,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[q],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&Pb(n,jy(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=Y.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);lb.parse(u[e]||` `).children().adopt(f,f.ends[q],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[q],0);return Y.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=Vy.byId[e.first().attr(Ay)],n=Vy.byId[e.last().attr(Ay)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=Vy.byId[U(this).attr(Ay)],a=e.eq(t+1),o=U(this).closest(`tr`).next(`tr`),s=U(this).closest(`tr`).index(),c=U(this).index(),l;if(a.length){var u=Vy.byId[a.attr(Ay)];n[q]=u,u[K]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=Vy.byId[l.attr(Ay)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[K]=t,this.ends[q]=n,t&&t[K]&&delete t[K],n&&n[q]&&delete n[q],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return U(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return Vy.byId[U(this).attr(Ay)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=Vy.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(Ay)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=U(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=U(`<td class="mq-empty">`).attr(Ay,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=U(`<td class="mq-empty">`).attr(Ay,a.id),a.jQ.insertAfter(U(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});J.pmatrix=G(cx,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),J.bmatrix=G(cx,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),J.Bmatrix=G(cx,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),J.vmatrix=G(cx,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),J.Vmatrix=G(cx,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var lx=ib(3);for(var ux in lx)(function(e,t){typeof t==`function`?(tb[e]=function(){return eb(),t.apply(this,arguments)},tb[e].prototype=t.prototype):tb[e]=t})(ux,lx[ux]);var dx=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},fx;typeof window<`u`&&(fx=tb.getInterface(3),fx&&fx.registerEmbed&&dx(fx));function px(e,t){!fx||!fx.registerEmbed||fx.registerEmbed(e,t)}function mx(e,t,n){if(!(!fx||!e))return t!=null&&(e.textContent=t),fx.StaticMath(e,n)}var hx=dm(`pie-lib:math-input:mq:static`),gx=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,_x=/ /g;function vx(e=``){return e.replace(_x,``)}function yx(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var bx=class extends P.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=P.createRef()}componentDidMount(){this.update(),Rf(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),Rf()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(yx(e)>yx(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!fx)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=fx.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}};blur=()=>{hx(`blur mathfield`),this.mathField.blur()};focus=()=>{hx(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=vx(this.mathField.parseLatex(e.latex)),n=(e.latex.match(gx)||[]).length,r=t!==vx(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return hx(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,F.jsx)(`span`,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},xx={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},Sx={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},Cx={"& *":{...xx,...Sx,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},wx=e=>(ae(5-e.length,()=>e.push([])),oe.apply(null,e)),Tx=dm(`pie-lib:math-inline:keypad`),Ex=L(bx)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:Vh(),"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${Lg()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid black`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid black`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid black !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});Ex.propTypes={latex:O.string.isRequired};var Dx=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},Ox=L(`div`)(()=>({...Cx,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),kx=L(rm)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:Vh(),backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()},borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),Ax=L(rm)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()}})),jx=L(lm)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()},borderRadius:0,"& .icon":{height:`30px`}})),Mx=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:Zf,noDecimal:!1};constructor(e){super(e),this.keypadRef=P.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{Tx(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>A([...wx(e),...wx(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,...Dx(r)};return(0,F.jsx)(Ox,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,F.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,F.jsx)(Ax,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(Ex,{latex:e.latex})},r.key);if(e.label)return(0,F.jsx)(kx,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,F.jsx)(jx,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(t,{className:`icon`})},r.key)}})})}},Nx=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},Px=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(Nx(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=Lf(a);return(0,F.jsx)(Mx,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:Nu(Ff(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},Fx=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),Ix=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),Lx=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),Rx=o(((e,t)=>{var n=Lx(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),zx=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),Bx=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=zx();t.exports=function(e){return e?e.replace(r,n):``}})),Vx=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),Hx=o(((e,t)=>{var n=Vx();t.exports=function(e){return n(e).toLowerCase()}})),Ux=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),Wx=o(((e,t)=>{var n=Bx(),r=Hx(),i=Ux(),a=Lx(),o=Rx(),s=Fx(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),Gx=o(((e,t)=>{t.exports=Wx()()})),Kx=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),qx=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),Jx=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),Yx=o(((e,t)=>{Rx();var n=Gx(),r=Hx(),i=Bx(),a=Kx(),o=qx(),s=Jx(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:Ix()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),Xx=o(((e,t)=>{var n=Yx(),r=Kx();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),Zx=o(((e,t)=>{t.exports={prefixProperties:Fx(),cssUnitless:Ix(),object:Yx(),string:Xx()}}))(),Qx=dm(`@pie-lib:mask-markup:serialization`),$x=[`span`],eS=[`em`,`strong`,`u`],tS=3,nS=8,rS=1,iS=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},aS=e=>$x.includes(e)?`inline`:eS.includes(e)?`mark`:`block`,oS=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},sS=e=>(0,Zx.object)(e,{camelize:!0,addUnits:!1}),cS=(e,t)=>sS(oS(e.getAttribute(t))),lS=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},uS=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=cS(e,n);break;case`class`:t.className=lS(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},dS=[`border`,`class`,`style`],fS={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},pS=(e,t=[])=>{if(e.nodeType===nS)return null;if(e.nodeType===tS){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===rS){let n=e.tagName.toLowerCase(),r=fS[n];if(r)return Qx(`[deserialize] mark: `,r),{_flatten:!0,nodes:mS(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=iS(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=dS.reduce(uS(e),{...i}),o=aS(n),s=mS(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},mS=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=pS(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},hS=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=mS(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},gS=L(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),_S=L(`span`)(()=>({display:`inline-block`,width:`.75em`})),vS=[`tbody`,`tr`],yS=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&vS.includes(r)))return t},bS=e=>{let t=e.leaves.find(e=>ne(e,`marks`,[]).length);return t?t.marks:null},xS=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`}})),o;if(r){let i=r(e,t,n);if(i){let t=e.data?.dataset?.component===`blank`;t&&o.push((0,F.jsx)(_S,{},`spacer-${s}-before`)),o.push(i),t&&o.push((0,F.jsx)(_S,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=yS(i,n);return r?e+r:e},``),n=bS(e);if(n?.length>0){let e=n.map(e=>Object.keys(fS).find(t=>fS[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,F.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=xS(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,F.jsx)(gS,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,F.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,F.jsx)(t,{...e.data.attributes},c))}}}),o},SS=L(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),CS=class extends P.Component{constructor(e){super(e),this.internalContainerRef=P.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof av==`function`&&av(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=xS(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,F.jsx)(SS,{ref:a,children:i})}},wS=/\{\{(\d+)\}\}/g,TS=(e,t)=>e?{markup:e.replace(wS,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},ES=(e,t)=>{let{markup:n}=TS(e,t);return hS(n).document},DS=((e,t)=>class extends P.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=P.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.innerHTML=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||ES(n,e);return(0,F.jsx)(CS,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),OS=`height ease-in 300ms, opacity ease-in 300ms`,kS=L(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:OS,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:OS,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),AS=e=>{let{show:t,children:n,className:r}=e,i=(0,P.useRef)(null);return(0,F.jsx)(Ds,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,F.jsx)(kS,{ref:i,className:r,children:n})})};AS.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var jS={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,redo:`Redo`,reset:`Reset`},mathInline:{primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`}},MS={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`}},graphing:{point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`}},$=e=>typeof e==`string`,NS=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},PS=e=>e==null?``:``+e,FS=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},IS=/###/g,LS=e=>e&&e.indexOf(`###`)>-1?e.replace(IS,`.`):e,RS=e=>!e||$(e),zS=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(RS(e))return{};let t=LS(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return RS(e)?{}:{obj:e,k:LS(r[i])}},BS=(e,t,n)=>{let{obj:r,k:i}=zS(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=zS(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=zS(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},VS=(e,t,n,r)=>{let{obj:i,k:a}=zS(e,t,Object);i[a]=i[a]||[],i[a].push(n)},HS=(e,t)=>{let{obj:n,k:r}=zS(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},US=(e,t,n)=>{let r=HS(e,n);return r===void 0?HS(t,n):r},WS=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):WS(e[r],t[r],n):e[r]=t[r]);return e},GS=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),KS={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},qS=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>KS[e]):e,JS=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},YS=[` `,`,`,`?`,`!`,`;`],XS=new JS(20),ZS=(e,t,n)=>{t||=``,n||=``;let r=YS.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=XS.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},QS=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},$S=e=>e?.replace(/_/g,`-`),eC={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},tC=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||eC,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},nC=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},rC=class extends nC{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=HS(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:QS(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),BS(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=HS(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?WS(s,n,i):s={...s,...n},BS(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},iC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},aC=Symbol(`i18next/PATH_KEY`);function oC(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===aC?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function sC(e,t){let{[aC]:n}=e(oC()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var cC={},lC=e=>!$(e)&&typeof e!=`boolean`&&typeof e!=`number`,uC=class e extends nC{constructor(e,t={}){super(),FS([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=tC.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=lC(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ZS(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=sC(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?sC(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!$(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=lC(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!($(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:lC(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&$(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=$(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=$(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=iC.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return $(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?sC(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!cC[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(cC[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},dC=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tC.create(`languageUtils`)}getScriptPartFromCode(e){if(e=$S(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=$S(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},fC={zero:0,one:1,two:2,few:3,many:4,other:5},pC={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},mC=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=tC.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=$S(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),pC;if(!e.match(/-|_/))return pC;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>fC[e]-fC[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},hC=(e,t,n,r=`.`,i=!0)=>{let a=US(e,t,n);return!a&&i&&$(n)&&(a=QS(e,n,r),a===void 0&&(a=QS(t,n,r))),a},gC=e=>e.replace(/\$/g,`$$$$`),_C=class{constructor(e={}){this.logger=tC.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?qS:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?GS(i):a||`{{`,this.suffix=o?GS(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?GS(d):f||GS(`$t(`),this.nestingSuffix=p?GS(p):m||GS(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=hC(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(hC(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>gC(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?gC(this.escape(e)):gC(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!$(a)&&!this.useRawValueToEscape&&(a=PS(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${GS(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=PS(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},vC=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},yC=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e($S(r),i),t[o]=s),s(n)}},bC=e=>(t,n,r)=>e($S(n),r)(t),xC=class{constructor(e={}){this.logger=tC.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?yC:bC;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=yC(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=vC(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},SC=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},CC=class extends nC{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=tC.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{VS(n.loaded,[i],a),SC(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},wC=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),TC=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),EC=()=>{},DC=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},OC=`__i18next_supportNoticeShown`,kC=()=>!!(typeof globalThis<`u`&&globalThis[OC]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),AC=()=>{typeof globalThis<`u`&&(globalThis[OC]=!0)},jC=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),MC=class e extends nC{constructor(e={},t){if(super(),this.options=TC(e),this.services={},this.logger=tC,this.modules={external:[]},DC(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&($(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=wC();this.options={...n,...this.options,...TC(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!jC(this)&&!kC()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),AC());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?tC.init(r(this.modules.logger),this.options):tC.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:xC;let t=new dC(this.options);this.store=new rC(this.options.resources,this.options);let i=this.services;i.logger=tC,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new mC(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new _C(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new CC(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new uC(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=EC,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=NS(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=EC){let n=t,r=$(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=NS();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=EC,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&iC.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=NS();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes($(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=sC(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=sC(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=sC(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return $(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=NS();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=NS();$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new dC(wC());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=EC){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new rC(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...wC().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new _C(n)}return a.translator=new uC(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();MC.createInstance,MC.dir,MC.init,MC.loadResources,MC.reloadResources,MC.use,MC.changeLanguage,MC.getFixedT,MC.t,MC.exists,MC.setDefaultNamespace,MC.hasLoadedNamespace,MC.loadNamespaces,MC.loadLanguages,MC.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:jS,es:MS}});var NC={translator:{...MC,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return MC.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]};function PC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function FC(e,t){return!e||PC(e)?e:PC(e.default)?e.default:t&&PC(e[t])?e[t]:t&&PC(e[t]?.default)?e[t].default:e}var IC=FC(Yv,`Readable`)||FC(zC.Readable,`Readable`),LC=wy,RC=LC.default,zC=RC&&typeof RC==`object`?RC:LC,{translator:BC}=NC,VC={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},HC=L(`div`)(()=>({width:`100%`,cursor:`pointer`})),UC=L(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),WC=L(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${Vh()})`,fontWeight:`normal`,...VC})),GC=L(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),KC=L(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),qC=class e extends P.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=P.createRef(),this.closedIconRef=P.createRef(),e.defaultProps={...e.defaultProps,showMessage:BC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:BC.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:BC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:BC.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,F.jsx)(HC,{className:e,children:(0,F.jsx)(AS,{show:this.state.show,children:(0,F.jsxs)(UC,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,F.jsxs)(KC,{children:[(0,F.jsx)(Ds,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(GC,{ref:this.openIconRef,children:(0,F.jsx)(Dm,{open:t},`correct-open`)})}),(0,F.jsx)(Ds,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(GC,{ref:this.closedIconRef,children:(0,F.jsx)(Dm,{open:t},`correct-closed`)})})]}),(0,F.jsx)(IC,{false:!0,children:(0,F.jsx)(WC,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function JC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function YC(e,t){return!e||JC(e)?e:JC(e.default)?e.default:t&&JC(e[t])?e[t]:t&&JC(e[t]?.default)?e[t].default:e}var XC=YC(vv,`UiLayout`)||YC(nw.UiLayout,`UiLayout`),ZC=YC(Jv,`PreviewPrompt`)||YC(nw.PreviewPrompt,`PreviewPrompt`),QC=YC(Yv,`Readable`)||YC(nw.Readable,`Readable`),$C=YC(cv,`Collapsible`)||YC(nw.Collapsible,`Collapsible`),ew=wy,tw=ew.default,nw=tw&&typeof tw==`object`?tw:ew,rw=L(XC)({color:Vh(),backgroundColor:lg(),display:`inline-block`}),iw=L(`div`)({width:`100%`,position:`relative`,backgroundColor:lg(),color:Vh()}),aw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),ow=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),sw=L(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),cw=L(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${Yh()} !important`},...n&&{borderColor:`${Gh()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),lw=L(bx)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:Vh()}}}),uw=L(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),dw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),fw=L(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),pw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),mw=L(qC)(({theme:e})=>({color:Vh(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
163
163
  .block-container {
164
164
  margin: 8px !important;
165
165
  display: inline-flex;
@@ -194,9 +194,9 @@ mid `,`&#8740;`),J.intercal=J[`⊺`]=W(Q,`\\intercal `,`&#8890;`),J.veebar=J[`
194
194
  .incorrect {
195
195
  border-color: ${Yh()} !important;
196
196
  }
197
- `,document.head.appendChild(t)}}var dw=!1,fw=/(\{\{\d+\}\})/gm,pw=6,mw=8,hw=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function gw(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function _w(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function vw(e){return e.split(fw).filter(e=>e)}function yw(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):vw(i).reduce((e,n)=>{if(n.match(fw)){let i=xw.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var bw={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+mw,d=l+n-r-mw;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},xw=class e extends P.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(fw,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:P.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(dw||=(lx(`answerBlock`,e=>({htmlString:`<div class="block-container">
197
+ `,document.head.appendChild(t)}}var hw=!1,gw=/(\{\{\d+\}\})/gm,_w=6,vw=8,yw=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function bw(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function xw(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function Sw(e){return e.split(gw).filter(e=>e)}function Cw(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):Sw(i).reduce((e,n)=>{if(n.match(gw)){let i=Tw.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var ww={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+vw,d=l+n-r-vw;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},Tw=class e extends P.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(gw,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:P.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(hw||=(px(`answerBlock`,e=>({htmlString:`<div class="block-container">
198
198
  <div class="block-response" id="${e}Index">R</div>
199
199
  <div class="block-math">
200
200
  <span id="${e}"></span>
201
201
  </div>
202
- </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`#${t}`),i=this.root.querySelector(`#${t}Index`);if(n){let a=r[t];ux(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),tv(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(fw),d=o.match(fw);if(!ie(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=ie(this.props.model,e.model),r=ie(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>tv(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{Rf(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&hw){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&(Yv(t)||Zv(t)),i=(0,F.jsx)(qC,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,F.jsx)(nw,{children:n?i:(0,F.jsx)(YC,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,F.jsx)(qC,{prompt:t});return t&&(Yv(t)||Zv(t))&&(0,F.jsx)(nw,{children:n?r:(0,F.jsx)(YC,{labels:{hidden:`Show Rationale`,visible:`Hide Rationale`},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m}=e||{},h=j(c),g=gw(u),_=yw(e,this.state)||``,v=p&&!m;return(0,F.jsx)(rw,{children:(0,F.jsx)(CS,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,F.jsx)(aw,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:_[e],onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,F.jsx)(iw,{ref:i,$incorrect:!h&&!c&&!n,$correct:!h&&(c||n),$showCorrectness:!h&&o&&a&&!s,$correctAnswerShown:n,children:(0,F.jsx)(Cu,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},bw]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,F.jsx)(ow,{"data-keypad":!0,style:{width:_w(g,l)},children:(0,F.jsx)(Ax,{additionalKeys:g,mode:l||pw,onClick:this.onClick})},e)||null),children:v?(0,F.jsx)(sw,{children:u}):(0,F.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!j(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,F.jsx)($C,{extraCSSRules:a,ref:e=>{let t=_s.findDOMNode(e);this.root=t||this.root},children:(0,F.jsxs)(ew,{children:[r===`gather`&&(0,F.jsx)(cw,{children:`Math Equation Response Question`}),(0,F.jsx)(ew,{children:d&&(0,F.jsx)(uw,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,F.jsx)(tw,{children:(0,F.jsx)(qC,{prompt:n})}),(0,F.jsx)(JC,{false:!0,children:this.renderPlayerContent()}),f&&(0,F.jsx)(lw,{className:`note`,dangerouslySetInnerHTML:{__html:u}}),this.renderRationale()]})})}},Sw=g(),Cw=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=P.createElement(xw,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,Sw.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,Cw),Cw})();
202
+ </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`#${t}`),i=this.root.querySelector(`#${t}Index`);if(n){let a=r[t];mx(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),av(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(gw),d=o.match(gw);if(!ie(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=ie(this.props.model,e.model),r=ie(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>av(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{Rf(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&yw){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&($v(t)||ty(t)),i=(0,F.jsx)(ZC,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,F.jsx)(ow,{children:n?i:(0,F.jsx)($C,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,F.jsx)(ZC,{prompt:t});return t&&($v(t)||ty(t))&&(0,F.jsx)(ow,{children:n?r:(0,F.jsx)($C,{labels:{hidden:`Show Rationale`,visible:`Hide Rationale`},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m}=e||{},h=j(c),g=bw(u),_=Cw(e,this.state)||``,v=p&&!m;return(0,F.jsx)(sw,{children:(0,F.jsx)(DS,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,F.jsx)(lw,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:_[e],onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,F.jsx)(cw,{ref:i,$incorrect:!h&&!c&&!n,$correct:!h&&(c||n),$showCorrectness:!h&&o&&a&&!s,$correctAnswerShown:n,children:(0,F.jsx)(Cu,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},ww]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,F.jsx)(uw,{"data-keypad":!0,style:{width:xw(g,l)},children:(0,F.jsx)(Px,{additionalKeys:g,mode:l||_w,onClick:this.onClick})},e)||null),children:v?(0,F.jsx)(dw,{children:u}):(0,F.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!j(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,F.jsx)(rw,{extraCSSRules:a,ref:e=>{let t=_s.findDOMNode(e);this.root=t||this.root},children:(0,F.jsxs)(iw,{children:[r===`gather`&&(0,F.jsx)(fw,{children:`Math Equation Response Question`}),(0,F.jsx)(iw,{children:d&&(0,F.jsx)(mw,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,F.jsx)(aw,{children:(0,F.jsx)(ZC,{prompt:n})}),(0,F.jsx)(QC,{false:!0,children:this.renderPlayerContent()}),f&&(0,F.jsx)(pw,{className:`note`,dangerouslySetInnerHTML:{__html:u}}),this.renderRationale()]})})}},Ew=g(),Dw=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=P.createElement(Tw,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,Ew.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,Dw),Dw})();