@pie-element/math-inline 12.1.1-next.41 → 12.1.1-next.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/author/index.js +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/{dist-gqdwfIdp.js → dist-CuWXpGIy.js} +2 -2
- package/dist/browser/{dist-gqdwfIdp.js.map → dist-CuWXpGIy.js.map} +1 -1
- package/dist/browser/editor-runtime/author/index.js +1 -1
- package/dist/browser/editor-runtime/delivery/index.js +1 -1
- package/dist/browser/editor-runtime/{dist-Dpdlv54W.js → dist-L9vrtTkN.js} +2 -2
- package/dist/browser/editor-runtime/{dist-Dpdlv54W.js.map → dist-L9vrtTkN.js.map} +1 -1
- package/dist/browser/editor-runtime/{main-BUVI2Mb9.js → main-WltpU9HP.js} +2 -2
- package/dist/browser/editor-runtime/{main-BUVI2Mb9.js.map → main-WltpU9HP.js.map} +1 -1
- package/dist/browser/editor-runtime/print/index.js +2 -2
- package/dist/browser/{main-BO4lvRCJ.js → main-CKdHiINt.js} +2 -2
- package/dist/browser/{main-BO4lvRCJ.js.map → main-CKdHiINt.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/index.iife.js +1 -1
- package/module/print.js +1 -1
- package/module/print.js.map +1 -1
- package/package.json +7 -7
package/dist/index.iife.js
CHANGED
|
@@ -45,7 +45,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
45
45
|
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,L.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})]});Ds.propTypes={bgFill:k.string.isRequired,fgFill:k.string.isRequired};var Os=({bgFill:e,fgFill:t,borderFill:n})=>(0,L.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,L.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
|
|
46
46
|
C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,L.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,L.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,L.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
|
|
47
47
|
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,L.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})]});Os.propTypes={bgFill:k.string.isRequired,fgFill:k.string.isRequired,borderFill:k.string.isRequired};var ks=B(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),As=({open:e,size:t})=>(0,L.jsx)(ks,{size:t,children:e?(0,L.jsx)(Ds,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,L.jsx)(Os,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});As.propTypes={open:k.bool,size:k.string},As.defaultProps={open:!1};var js=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,L.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,L.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})]});js.propTypes={fill:k.string.isRequired};var Ms=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,L.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,L.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});Ms.propTypes={fill:k.string.isRequired};var Ns=Cs(js,Ms);Ns.propTypes={iconSet:k.oneOf([`emoji`,`check`]),shape:k.oneOf([`round`,`square`]),category:k.oneOf([`feedback`,void 0]),open:k.bool,fg:k.string,bg:k.string,size:k.oneOfType([k.string,k.number])},Ns.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Ps=({fill:e})=>(0,L.jsxs)(`g`,{children:[(0,L.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,L.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Ps.propTypes={fill:k.string.isRequired};var Fs=({fill:e})=>(0,L.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});Fs.propTypes={fill:k.string.isRequired};var Is=({fill:e})=>(0,L.jsxs)(`g`,{children:[(0,L.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,L.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,L.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
|
|
48
|
-
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Is.propTypes={fill:k.string.isRequired};var Ls=class extends I.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Ps,{fill:t})]}),emoji:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),feedback:{check:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),emoji:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),square:{check:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Ps,{fill:t})]}),emoji:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),open:{check:(0,L.jsx)(_s,{children:(0,L.jsx)(Ps,{fill:n})}),emoji:(0,L.jsx)(_s,{children:(0,L.jsx)(Is,{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]}};Ls.propTypes={iconSet:k.oneOf([`emoji`,`check`,void 0]),shape:k.oneOf([`square`,void 0]),category:k.oneOf([`feedback`,void 0]),open:k.bool,fg:k.string,bg:k.string},Ls.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Rs=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,L.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,L.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Rs.propTypes={fill:k.string.isRequired};var zs=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,L.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.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})]});zs.propTypes={fill:k.string.isRequired};var Bs=Cs(Rs,zs);Bs.propTypes={iconSet:k.oneOf([`emoji`,`check`]),shape:k.oneOf([`round`,`square`]),category:k.oneOf([`feedback`,void 0]),open:k.bool,fg:k.string,bg:k.string,size:k.oneOfType([k.string,k.number])},Bs.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Vs(e){return typeof e==`string`}function Hs(e){return(0,L.jsx)(Ur,{...e,defaultTheme:Oo,themeId:j})}function Us(e){return function(t){return(0,L.jsx)(Hs,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function Ws(e){return zi(e)}function Gs(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Ks=Gs;function qs(e){return e&&e.ownerDocument||document}var Js=qs;function Ys(e){return qs(e).defaultView||window}var Xs=Ys,Zs={};function Qs(e,t){let n=I.useRef(Zs);return n.current===Zs&&(n.current=e(t)),n}var $s=[];function ec(e){I.useEffect(e,$s)}var tc=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function nc(){let e=Qs(tc.create).current;return ec(e.disposeEffect),e}function rc(e){return e?.ref||null}var ic=e=>e.scrollTop;function ac(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function oc(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function sc(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function cc(...e){let t=I.useRef(void 0),n=I.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return I.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var lc=cc;function uc(e){return`scale(${e}, ${e**2})`}var dc={entering:{opacity:1,transform:uc(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:uc(.75)},exited:{opacity:0,transform:uc(.75)}},fc={opacity:0,transform:uc(.75),visibility:`hidden`},pc=I.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=nc(),_=I.useRef(),v=ko(),y=I.useRef(null),b=lc(y,rc(i),t),x=ac(y,l),S=ac(y,(e,t)=>{ic(e);let{duration:n,delay:r,easing:i}=sc({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=ac(y,c),w=ac(y,f),T=ac(y,e=>{let{duration:t,delay:n,easing:r}=sc({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=uc(.75),u&&u(e)}),E=ac(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(ts,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=oc(e,o,dc,fc,p,i.props.style);return I.cloneElement(i,{style:r,ref:b,...n})}})});pc&&(pc.muiSupportAuto=!0);function mc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function hc(e){let t=qs(e);return t.body===e?Ys(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function _c(e){return parseFloat(Ys(e).getComputedStyle(e).paddingRight)||0}function vc(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 yc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!vc(e);t&&n&&gc(e,i)})}function bc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function xc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(hc(r)){let e=mc(Ys(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${_c(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=`${_c(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=qs(r).body;else{let t=r.parentElement,n=Ys(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 Sc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var V=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&&gc(e.modalRef,!1);let r=Sc(t);yc(t,e.mount,e.modalRef,r,!0);let i=bc(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=bc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=xc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=bc(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&&gc(e.modalRef,t),yc(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&&gc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cc(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 wc=Cc;function Tc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Ec=Tc,Dc=`data-mui-focusable`;function Oc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Dc}]`):null}var kc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Ac(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 jc(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 Mc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||jc(e))}function Nc(e){let t=[],n=[];return Array.from(e.querySelectorAll(kc)).forEach((e,r)=>{let i=Ac(e);i===-1||!Mc(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 Pc(){return!0}function Fc(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Nc,isEnabled:o=Pc,open:s}=e,c=I.useRef(!1),l=I.useRef(null),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null),p=I.useRef(!1),m=I.useRef(null),h=cc(rc(t),m),g=I.useRef(null);I.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),I.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Ec(qs(m.current)),t=Oc(m.current)??m.current;return wc(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]),I.useEffect(()=>{if(!s||!m.current)return;let e=qs(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Ec(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Ec(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(wc(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=Ec(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,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),I.cloneElement(t,{ref:h,onFocus:_}),(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function Ic(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Lc(e){return typeof e==`function`?e():e}var Rc=I.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=I.useState(null),s=cc(I.isValidElement(n)?rc(n):null,t);if(li(()=>{i||o(Lc(r)||document.body)},[r,i]),li(()=>{if(a&&!i)return Ic(t,a),()=>{Ic(t,null)}},[t,a,i]),i){if(I.isValidElement(n)){let e={ref:s};return I.cloneElement(n,e)}return n}return a&&Yo.createPortal(n,a)}),zc=Yi;function Bc(e,t,n){return e===void 0||Vs(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Vc(e,t,n){return typeof e==`function`?e(t,n):e}function Hc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Uc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Wc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=R(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Hc({...i,...r}),s=Uc(r),c=Uc(i),l=t(o),u=R(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Gc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Vc(d[e],i),{props:{component:h,...g},internalRef:_}=Wc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=cc(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Bc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Kc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},qc={opacity:0,visibility:`hidden`},Jc=I.forwardRef(function(e,t){let n=ko(),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=I.useRef(null),y=lc(v,rc(o),t),b=ac(v,d),x=ac(v,(e,t)=>{ic(e);let r=sc({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=ac(v,u),C=ac(v,m),w=ac(v,e=>{let t=sc({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=ac(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(ts,{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=oc(e,c,Kc,qc,h,o.props.style);return I.cloneElement(o,{style:r,ref:y,...n})}})});function Yc(e){return Jr(`MuiBackdrop`,e)}Yr(`MuiBackdrop`,[`root`,`invisible`]);var Xc=e=>{let{classes:t,invisible:n}=e;return ga({root:[`root`,n&&`invisible`]},Yc,t)},Zc=B(`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`}}]}),Qc=I.forwardRef(function(e,t){let n=Ws({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=Xc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Gc(`root`,{elementType:Zc,externalForwardedProps:_,className:R(g.root,i),ownerState:h}),[b,x]=Gc(`transition`,{elementType:Jc,externalForwardedProps:_,ownerState:h});return(0,L.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,L.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function $c(e){let t=I.useRef(e);return li(()=>{t.current=e}),I.useRef((...e)=>(0,t.current)(...e)).current}function el(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function tl(e){return typeof e==`function`?e():e}function nl(e){return e?e.props.hasOwnProperty(`in`):!1}var rl=()=>{},il=new V;function al(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=I.useRef({}),f=I.useRef(null),p=I.useRef(null),m=cc(p,u),[h,g]=I.useState(!l),_=nl(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=()=>{il.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=$c(()=>{let e=tl(t)||y().body;il.add(b(),e),p.current&&x()}),C=()=>il.isTopModal(b()),w=$c(e=>{f.current=e,e&&(l&&C()?x():p.current&&gc(p.current,v))}),T=I.useCallback(()=>{il.remove(b(),v)},[v]);I.useEffect(()=>()=>{T()},[T]),I.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=Hc(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:el(()=>{g(!1),a&&a()},s?.props.onEnter??rl),onExited:el(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??rl)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function ol(e){return Jr(`MuiModal`,e)}Yr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var sl=e=>{let{open:t,exited:n,classes:r}=e;return ga({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},ol,r)},cl=B(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(zc(({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`}}]}))),ll=B(Qc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),ul=I.forwardRef(function(e,t){let n=Ws({name:`MuiModal`,props:e}),{BackdropComponent:r=ll,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:k,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:ne,hasTransition:re}=al({...ee,rootRef:t}),N={...ee,exited:ne},ie=sl(N),P={};if(c.props.tabIndex===void 0&&(P.tabIndex=`-1`),re){let{onEnter:e,onExited:t}=j();P.onEnter=e,P.onExited=t}let ae={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[oe,se]=Gc(`root`,{ref:t,elementType:cl,externalForwardedProps:{...ae,...O,component:u},getSlotProps:k,ownerState:N,className:R(o,ie?.root,!N.open&&N.exited&&ie?.hidden)}),[ce,le]=Gc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:R(i?.className,ie?.backdrop),ownerState:N});return!b&&!w&&(!re||ne)?null:(0,L.jsx)(Rc,{ref:te,container:l,disablePortal:g,children:(0,L.jsxs)(oe,{...se,children:[!y&&r?(0,L.jsx)(ce,{...le}):null,(0,L.jsx)(Fc,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:I.cloneElement(c,P)})]})})});function dl(e){return Jr(`MuiPaper`,e)}Yr(`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 fl=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ga({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},dl,i)},pl=B(`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}`]]}})(zc(({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)`}}]}))),ml=I.forwardRef(function(e,t){let n=Ws({props:e,name:`MuiPaper`}),r=ko(),{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=fl(u);return(0,L.jsx)(pl,{as:a,ownerState:u,className:R(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(${bi(`#fff`,lo(o))}, ${bi(`#fff`,lo(o))})`}},...l.style}})});function hl(e){return Jr(`MuiPopover`,e)}Yr(`MuiPopover`,[`root`,`paper`]);var H=In;function gl(e){return Jr(`MuiSvgIcon`,e)}Yr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var _l=e=>{let{color:t,fontSize:n,classes:r}=e;return ga({root:[`root`,t!==`inherit`&&`color${H(t)}`,`fontSize${H(n)}`]},gl,r)},vl=B(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${H(n.color)}`],t[`fontSize${H(n.fontSize)}`]]}})(zc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),yl=I.forwardRef(function(e,t){let n=Ws({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=I.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=_l(m);return(0,L.jsxs)(vl,{as:o,className:R(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,L.jsx)(`title`,{children:u}):null]})});yl.muiName=`SvgIcon`;function bl(e,t){function n(t,n){return(0,L.jsx)(yl,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=yl.muiName,I.memo(I.forwardRef(n))}var xl=_a,Sl=li,Cl=Ui;function wl(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=I.useRef(t!==void 0),[o,s]=I.useState(n);return[a?t:o,I.useCallback(e=>{a||s(e)},[])]}var Tl=wl,El=$c;function Dl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Ol(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Dl(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=R(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=R(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function kl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Al(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function jl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Ml(e){return typeof e==`function`?e():e}var Nl=e=>{let{classes:t}=e;return ga({root:[`root`],paper:[`paper`]},hl,t)},Pl=B(ul,{name:`MuiPopover`,slot:`Root`})({}),Fl=B(ml,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Il=I.forwardRef(function(e,t){let n=Ws({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=I.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Nl(w),E=I.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Ml(i),t=(e&&e.nodeType===1?e:Js(C.current).body).getBoundingClientRect();return{top:t.top+kl(t,a.vertical),left:t.left+Al(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=I.useCallback(e=>({vertical:kl(e,_.vertical),horizontal:Al(e,_.horizontal)}),[_.horizontal,_.vertical]),O=I.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:jl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Xs(Ml(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:jl(n)}},[i,s,E,D,f]),[ee,k]=I.useState(p),A=I.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,k(!0)},[O]);I.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{k(!1)};I.useEffect(()=>{p&&A()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),I.useEffect(()=>{if(!p)return;let e=Ks(()=>{A()}),t=Xs(Ml(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,A]);let M=y,ne={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[re,N]=Gc(`transition`,{elementType:pc,externalForwardedProps:ne,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),te()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!re.muiSupportAuto&&(M=void 0);let ie=u||(i?Js(Ml(i)).body:void 0),[P,{slots:ae,slotProps:oe,...se}]=Gc(`root`,{ref:t,elementType:Pl,externalForwardedProps:{...ne,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Ol(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ie,open:p},ownerState:w,className:R(T.root,l)}),[ce,le]=Gc(`paper`,{ref:C,className:T.paper,elementType:Fl,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(P,{...se,...!Vs(P)&&{slots:ae,slotProps:oe,disableScrollLock:x},children:(0,L.jsx)(re,{...N,timeout:M,children:(0,L.jsx)(ce,{...le,children:c})})})}),Ll={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`},Rl={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`},zl=s({background:()=>lu,backgroundDark:()=>uu,black:()=>Cu,blueGrey100:()=>ju,blueGrey300:()=>Mu,blueGrey600:()=>Nu,blueGrey900:()=>Pu,border:()=>gu,borderDark:()=>vu,borderGray:()=>yu,borderLight:()=>_u,buttonBorder:()=>Vu,buttonFocusOutline:()=>Au,buttonHoverBg:()=>Hu,correct:()=>Gl,correctSecondary:()=>Kl,correctTertiary:()=>ql,correctWithIcon:()=>Jl,defaults:()=>U,disabled:()=>Hl,disabledSecondary:()=>Ul,disabledText:()=>Wl,dropdownBackground:()=>fu,fadedPrimary:()=>iu,focusChecked:()=>Eu,focusCheckedBorder:()=>Du,focusUnchecked:()=>Ou,focusUncheckedBorder:()=>ku,incorrect:()=>Yl,incorrectSecondary:()=>Zl,incorrectWithIcon:()=>Xl,keyBoardFocusIndicator:()=>Bu,keypadButton:()=>Fu,keypadButtonHover:()=>Ru,keypadButtonOperator:()=>Iu,keypadButtonOperatorHover:()=>zu,keypadEmptyPlaceholder:()=>Lu,missing:()=>Ql,missingWithIcon:()=>$l,primary:()=>eu,primaryDark:()=>nu,primaryLight:()=>tu,primaryText:()=>ru,secondary:()=>au,secondaryBackground:()=>du,secondaryDark:()=>su,secondaryLight:()=>ou,secondaryText:()=>cu,surface:()=>pu,tableGrid:()=>bu,tableGridLight:()=>xu,tableStripe:()=>Su,tertiary:()=>mu,tertiaryLight:()=>hu,text:()=>Vl,transparent:()=>Tu,v:()=>Bl,visualElementsColors:()=>Uu,white:()=>wu}),U={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Ta[500],CORRECT_SECONDARY:Ta[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Sa[500],INCORRECT_SECONDARY:xa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:xa[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Rl[500],PRIMARY_LIGHT:Rl[200],PRIMARY_DARK:Rl[800],SECONDARY:Ll.A400,SECONDARY_LIGHT:Ll[200],SECONDARY_DARK:Ll[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:`#C0C3CF`,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(U);var Bl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},W=Bl(`pie`),Vl=()=>W(`text`,U.TEXT),Hl=()=>W(`disabled`,U.DISABLED),Ul=()=>W(`disabled-secondary`,U.DISABLED_SECONDARY),Wl=()=>W(`disabled-text`,`text`,U.DISABLED_TEXT),Gl=()=>W(`correct`,U.CORRECT),Kl=()=>W(`correct-secondary`,U.CORRECT_SECONDARY),ql=()=>W(`correct-tertiary`,U.CORRECT_TERTIARY),Jl=()=>W(`correct-icon`,U.CORRECT_WITH_ICON),Yl=()=>W(`incorrect`,U.INCORRECT),Xl=()=>W(`incorrect-icon`,U.INCORRECT_WITH_ICON),Zl=()=>W(`incorrect-secondary`,U.INCORRECT_SECONDARY),Ql=()=>W(`missing`,U.MISSING),$l=()=>W(`missing-icon`,U.MISSING_WITH_ICON),eu=()=>W(`primary`,U.PRIMARY),tu=()=>W(`primary-light`,U.PRIMARY_LIGHT),nu=()=>W(`primary-dark`,U.PRIMARY_DARK),ru=()=>W(`primary-text`,`text`,U.TEXT),iu=()=>W(`faded-primary`,U.FADED_PRIMARY),au=()=>W(`secondary`,U.SECONDARY),ou=()=>W(`secondary-light`,U.SECONDARY_LIGHT),su=()=>W(`secondary-dark`,U.SECONDARY_DARK),cu=()=>W(`secondary-text`,`text`,U.TEXT),lu=()=>W(`background`,U.BACKGROUND),uu=()=>W(`background-dark`,U.BACKGROUND_DARK),du=()=>W(`secondary-background`,U.SECONDARY_BACKGROUND),fu=()=>W(`dropdown-background`,U.DROPDOWN_BACKGROUND),pu=()=>W(`surface`,U.SURFACE),mu=()=>W(`tertiary`,U.TERTIARY),hu=()=>W(`tertiary-light`,U.TERTIARY_LIGHT),gu=()=>W(`border`,U.BORDER),_u=()=>W(`border-light`,U.BORDER_LIGHT),vu=()=>W(`border-dark`,U.BORDER_DARK),yu=()=>W(`border-gray`,U.BORDER_GRAY),bu=()=>W(`table-grid`,`text`,U.TABLE_GRID),xu=()=>W(`table-grid-light`,`border-light`,U.TABLE_GRID_LIGHT),Su=()=>W(`table-stripe`,`background-dark`,U.TABLE_STRIPE),Cu=()=>W(`black`,U.BLACK),wu=()=>W(`white`,U.WHITE),Tu=()=>U.TRANSPARENT,Eu=()=>W(`focus-checked`,U.FOCUS_CHECKED),Du=()=>W(`focus-checked-border`,U.FOCUS_CHECKED_BORDER),Ou=()=>W(`focus-unchecked`,U.FOCUS_UNCHECKED),ku=()=>W(`focus-unchecked-border`,U.FOCUS_UNCHECKED_BORDER),Au=()=>W(`button-focus-outline`,U.BUTTON_FOCUS_OUTLINE),ju=()=>W(`blue-grey-100`,U.BLUE_GREY100),Mu=()=>W(`blue-grey-300`,U.BLUE_GREY300),Nu=()=>W(`blue-grey-600`,U.BLUE_GREY600),Pu=()=>W(`blue-grey-900`,U.BLUE_GREY900),Fu=()=>W(`keypad-button`,U.KEYPAD_BUTTON),Iu=()=>W(`keypad-button-operator`,U.KEYPAD_BUTTON_OPERATOR),Lu=()=>W(`keypad-empty-placeholder`,U.KEYPAD_EMPTY_PLACEHOLDER),Ru=()=>W(`keypad-button-hover`,U.KEYPAD_BUTTON_HOVER),zu=()=>W(`keypad-button-operator-hover`,U.KEYPAD_BUTTON_OPERATOR_HOVER),Bu=()=>W(`keyboard-focus-indicator`,U.KEY_BOARD_FOCUS_INDICATOR),Vu=()=>W(`button-border`,U.BUTTON_BORDER),Hu=()=>W(`button-hover-bg`,U.BUTTON_HOVER_BG),Uu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Wu=B(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Gu=B(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Hl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Gl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Yl()})`}}),Ku=B(`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`}}),qu=class extends I.Component{static propTypes={correctness:k.string,feedback:k.string};nodeRef=I.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(as,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(Ku,{ref:this.nodeRef,children:(0,L.jsx)(Wu,{children:(0,L.jsx)(Gu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(ms,{children:this.renderFeedback()})})}},Ju=s({Correct:()=>ed,Incorrect:()=>td,NothingSubmitted:()=>rd,PartiallyCorrect:()=>nd}),Yu=v(`pie-libs:render-ui:response-indicators`),Xu=B(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Zu=B(Il)({cursor:`pointer`}),Qu=B(`div`)({padding:`0`,borderRadius:`4px`}),$u=(e,t)=>{class n extends I.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Yu(`[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,L.jsxs)(Xu,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(Zu,{PaperComponent:Qu,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(qu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:k.string},n},ed=$u(Es,`correct`),td=$u(Ns,`incorrect`),nd=$u(Bs,`partially-correct`),rd=$u(Ls,`nothing-submitted`);function id(e){return Jr(`MuiCollapse`,e)}Yr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var ad=e=>{let{orientation:t,classes:n}=e;return ga({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},id,n)},od=B(`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]}})(zc(({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`}}]}))),sd=B(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),cd=B(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),ld=I.forwardRef(function(e,t){let n=Ws({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=Qa.standard,TransitionComponent:x=ts,...S}=n,C={...n,orientation:g,collapsedSize:o},w=ad(C),T=ko(),E=nc(),D=I.useRef(null),O=I.useRef(),ee=typeof o==`number`?`${o}px`:o,k=g===`horizontal`,A=k?`width`:`height`,j=I.useRef(null),te=lc(t,j),M=()=>D.current?D.current[k?`clientWidth`:`clientHeight`]:0,ne=ac(j,(e,t)=>{D.current&&k&&(D.current.style.position=`absolute`),e.style[A]=ee,u&&u(e,t)}),re=ac(j,(e,t)=>{let n=M();D.current&&k&&(D.current.style.position=``);let{duration:r,easing:i}=sc({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[A]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),N=ac(j,(e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),ie=ac(j,e=>{e.style[A]=`${M()}px`,p&&p(e)}),P=ac(j,m),ae=ac(j,e=>{let t=M(),{duration:n,easing:r}=sc({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[A]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),oe=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},se={slots:_,slotProps:v,component:s},[ce,le]=Gc(`root`,{ref:te,className:R(w.root,a),elementType:od,externalForwardedProps:se,ownerState:C,additionalProps:{style:{[k?`minWidth`:`minHeight`]:ee,...y}}}),[ue,de]=Gc(`wrapper`,{ref:D,className:w.wrapper,elementType:sd,externalForwardedProps:se,ownerState:C}),[fe,pe]=Gc(`wrapperInner`,{className:w.wrapperInner,elementType:cd,externalForwardedProps:se,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:ne,onEntered:N,onEntering:re,onExit:ie,onExited:P,onExiting:ae,addEndListener:oe,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(ce,{...le,className:R(le.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(ue,{...de,ownerState:r,children:(0,L.jsx)(fe,{...pe,ownerState:r,children:i})})})}})});ld&&(ld.muiSupportAuto=!0);var ud=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,dd=`pie-mathjax-version-conflict`,fd=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function pd(e,t){if(typeof window>`u`)return;let n=globalThis;n[fd]??={logged:!1,conditions:[]};let r=n[fd];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 ${ud}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(dd,{detail:{condition:e,message:i,docsUrl:ud}}))}function md(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var hd=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,gd={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},_d=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,vd=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,yd=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,bd=/\\embed\{newLine\}\[\]/g,xd=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],Sd=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),Cd=`PIE-MJX-CHTML-styles`,wd=`MJX-CHTML-styles`,Td=[wd,`MJX-SVG-styles`],Ed=201;function Dd(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 Od(){return window.MathJax}function kd(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of xd)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function Ad(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=`\\(${kd(e)}\\)`.replace(bd,`\\newline `),t.dataset.mathHandled=`true`)}}function jd(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?yd:vd).test(e.textContent??``)}function Md(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=Od(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&Nd(e),r?.defaultReady?.(),i&&Pd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...gd}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(_d),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||hd,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function Nd(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=Cd)}function Pd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Dd(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Ed,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Dd(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===wd&&(r.id=Cd),Ld()}function Fd(e){return e instanceof HTMLStyleElement&&Td.includes(e.id)}function Id(e){pd(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Ld(){let e=document.head,t=[...e.children].find(Fd);if(t){Id(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(Fd);if(e){Id(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Rd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=Od()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function zd(e){let t=Od();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Rd(t):Md(e)}function Bd(e){return zd(e).then(()=>{typeof Od()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Vd(e){let t=globalThis,n=t[Sd];return n||(n=Bd(e),t[Sd]=n),n}function Hd(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=md();r&&pd(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),Ad(n);let i=Vd(e);if(!jd(n,t)){i.catch(()=>{});return}await i;let a=Od();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),Dd(n))}}var Ud=`@pie-lib/math-rendering`,Wd=`@pie-lib/math-rendering@2`,Gd=null;function Kd(){return!!window[Wd]?.opts?.useSingleDollar}function qd(){return Gd||=Hd({useSingleDollar:Kd()}),Gd}function Jd(){if(typeof window>`u`)return null;let e=window[Ud];return typeof e?.renderMath==`function`?e:null}var Yd=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=Jd();return r?await r.renderMath?.(n):await qd()(n),t?n.innerHTML:void 0},Xd=B(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Zd=B(ld)(({theme:e})=>({paddingTop:e.spacing(2)})),Qd=class extends I.Component{static propTypes={className:k.string,children:k.object,labels:k.shape({visible:k.string,hidden:k.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Yd(this.root)}componentDidUpdate(){Yd(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,L.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,L.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,L.jsx)(Xd,{children:r})}),(0,L.jsx)(Zd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function $d(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var ef=class e{static create(){return new e}static use(){let t=Qs(e.create).current,[n,r]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=r,I.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nf(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function tf(){return ef.use()}function nf(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function rf(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=I.useState(!1),f=R(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=R(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),I.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,L.jsx)(`span`,{className:f,style:p,children:(0,L.jsx)(`span`,{className:m})})}var af=Yr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),of=550,sf=qt`
|
|
48
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Is.propTypes={fill:k.string.isRequired};var Ls=class extends I.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Ps,{fill:t})]}),emoji:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),feedback:{check:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),emoji:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),square:{check:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Ps,{fill:t})]}),emoji:(0,L.jsxs)(_s,{children:[(0,L.jsx)(Fs,{fill:n}),(0,L.jsx)(Is,{fill:t})]}),open:{check:(0,L.jsx)(_s,{children:(0,L.jsx)(Ps,{fill:n})}),emoji:(0,L.jsx)(_s,{children:(0,L.jsx)(Is,{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]}};Ls.propTypes={iconSet:k.oneOf([`emoji`,`check`,void 0]),shape:k.oneOf([`square`,void 0]),category:k.oneOf([`feedback`,void 0]),open:k.bool,fg:k.string,bg:k.string},Ls.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Rs=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,L.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,L.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Rs.propTypes={fill:k.string.isRequired};var zs=({fill:e})=>(0,L.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,L.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,L.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})]});zs.propTypes={fill:k.string.isRequired};var Bs=Cs(Rs,zs);Bs.propTypes={iconSet:k.oneOf([`emoji`,`check`]),shape:k.oneOf([`round`,`square`]),category:k.oneOf([`feedback`,void 0]),open:k.bool,fg:k.string,bg:k.string,size:k.oneOfType([k.string,k.number])},Bs.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Vs(e){return typeof e==`string`}function Hs(e){return(0,L.jsx)(Ur,{...e,defaultTheme:Oo,themeId:j})}function Us(e){return function(t){return(0,L.jsx)(Hs,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function Ws(e){return zi(e)}function Gs(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Ks=Gs;function qs(e){return e&&e.ownerDocument||document}var Js=qs;function Ys(e){return qs(e).defaultView||window}var Xs=Ys,Zs={};function Qs(e,t){let n=I.useRef(Zs);return n.current===Zs&&(n.current=e(t)),n}var $s=[];function ec(e){I.useEffect(e,$s)}var tc=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function nc(){let e=Qs(tc.create).current;return ec(e.disposeEffect),e}function rc(e){return e?.ref||null}var ic=e=>e.scrollTop;function ac(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function oc(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function sc(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function cc(...e){let t=I.useRef(void 0),n=I.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return I.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var lc=cc;function uc(e){return`scale(${e}, ${e**2})`}var dc={entering:{opacity:1,transform:uc(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:uc(.75)},exited:{opacity:0,transform:uc(.75)}},fc={opacity:0,transform:uc(.75),visibility:`hidden`},pc=I.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,...h}=e,g=nc(),_=I.useRef(),v=ko(),y=I.useRef(null),b=lc(y,rc(i),t),x=ac(y,l),S=ac(y,(e,t)=>{ic(e);let{duration:n,delay:r,easing:i}=sc({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=o):o=n,e.style.transition=[v.transitions.create(`opacity`,{duration:o,delay:r}),v.transitions.create(`transform`,{duration:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),C=ac(y,c),w=ac(y,f),T=ac(y,e=>{let{duration:t,delay:n,easing:r}=sc({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):i=t,e.style.transition=[v.transitions.create(`opacity`,{duration:i,delay:n}),v.transitions.create(`transform`,{duration:i*.666,delay:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=uc(.75),u&&u(e)}),E=ac(y,e=>{e.style.transition=``,d&&d(e)});return(0,L.jsx)(ts,{appear:r,in:o,nodeRef:y,onEnter:S,onEntered:C,onEntering:x,onExit:T,onExited:E,onExiting:w,addEndListener:e=>{m===`auto`&&g.start(_.current||0,e),n&&n(y.current,e)},timeout:m===`auto`?null:m,...h,children:(e,{ownerState:t,...n})=>{let r=oc(e,o,dc,fc,p,i.props.style);return I.cloneElement(i,{style:r,ref:b,...n})}})});pc&&(pc.muiSupportAuto=!0);function mc(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function hc(e){let t=qs(e);return t.body===e?Ys(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gc(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function _c(e){return parseFloat(Ys(e).getComputedStyle(e).paddingRight)||0}function vc(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 yc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!vc(e);t&&n&&gc(e,i)})}function bc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function xc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(hc(r)){let e=mc(Ys(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${_c(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=`${_c(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=qs(r).body;else{let t=r.parentElement,n=Ys(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 Sc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var V=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&&gc(e.modalRef,!1);let r=Sc(t);yc(t,e.mount,e.modalRef,r,!0);let i=bc(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=bc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=xc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=bc(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&&gc(e.modalRef,t),yc(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&&gc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cc(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 wc=Cc;function Tc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Ec=Tc,Dc=`data-mui-focusable`;function Oc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Dc}]`):null}var kc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function Ac(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 jc(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 Mc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||jc(e))}function Nc(e){let t=[],n=[];return Array.from(e.querySelectorAll(kc)).forEach((e,r)=>{let i=Ac(e);i===-1||!Mc(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 Pc(){return!0}function Fc(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Nc,isEnabled:o=Pc,open:s}=e,c=I.useRef(!1),l=I.useRef(null),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null),p=I.useRef(!1),m=I.useRef(null),h=cc(rc(t),m),g=I.useRef(null);I.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),I.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Ec(qs(m.current)),t=Oc(m.current)??m.current;return wc(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]),I.useEffect(()=>{if(!s||!m.current)return;let e=qs(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Ec(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Ec(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(wc(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=Ec(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,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),I.cloneElement(t,{ref:h,onFocus:_}),(0,L.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function Ic(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Lc(e){return typeof e==`function`?e():e}var Rc=I.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=I.useState(null),s=cc(I.isValidElement(n)?rc(n):null,t);if(li(()=>{i||o(Lc(r)||document.body)},[r,i]),li(()=>{if(a&&!i)return Ic(t,a),()=>{Ic(t,null)}},[t,a,i]),i){if(I.isValidElement(n)){let e={ref:s};return I.cloneElement(n,e)}return n}return a&&Yo.createPortal(n,a)}),zc=Yi;function Bc(e,t,n){return e===void 0||Vs(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Vc(e,t,n){return typeof e==`function`?e(t,n):e}function Hc(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Uc(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function Wc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=R(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Hc({...i,...r}),s=Uc(r),c=Uc(i),l=t(o),u=R(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function Gc(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Vc(d[e],i),{props:{component:h,...g},internalRef:_}=Wc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=cc(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Bc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Kc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},qc={opacity:0,visibility:`hidden`},Jc=I.forwardRef(function(e,t){let n=ko(),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=I.useRef(null),y=lc(v,rc(o),t),b=ac(v,d),x=ac(v,(e,t)=>{ic(e);let r=sc({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=ac(v,u),C=ac(v,m),w=ac(v,e=>{let t=sc({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=ac(v,e=>{e.style.transition=``,p&&p(e)});return(0,L.jsx)(ts,{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=oc(e,c,Kc,qc,h,o.props.style);return I.cloneElement(o,{style:r,ref:y,...n})}})});function Yc(e){return Jr(`MuiBackdrop`,e)}Yr(`MuiBackdrop`,[`root`,`invisible`]);var Xc=e=>{let{classes:t,invisible:n}=e;return ga({root:[`root`,n&&`invisible`]},Yc,t)},Zc=B(`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`}}]}),Qc=I.forwardRef(function(e,t){let n=Ws({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=Xc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Gc(`root`,{elementType:Zc,externalForwardedProps:_,className:R(g.root,i),ownerState:h}),[b,x]=Gc(`transition`,{elementType:Jc,externalForwardedProps:_,ownerState:h});return(0,L.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,L.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function $c(e){let t=I.useRef(e);return li(()=>{t.current=e}),I.useRef((...e)=>(0,t.current)(...e)).current}function el(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function tl(e){return typeof e==`function`?e():e}function nl(e){return e?e.props.hasOwnProperty(`in`):!1}var rl=()=>{},il=new V;function al(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=I.useRef({}),f=I.useRef(null),p=I.useRef(null),m=cc(p,u),[h,g]=I.useState(!l),_=nl(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=()=>{il.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=$c(()=>{let e=tl(t)||y().body;il.add(b(),e),p.current&&x()}),C=()=>il.isTopModal(b()),w=$c(e=>{f.current=e,e&&(l&&C()?x():p.current&&gc(p.current,v))}),T=I.useCallback(()=>{il.remove(b(),v)},[v]);I.useEffect(()=>()=>{T()},[T]),I.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=Hc(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:el(()=>{g(!1),a&&a()},s?.props.onEnter??rl),onExited:el(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??rl)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function ol(e){return Jr(`MuiModal`,e)}Yr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var sl=e=>{let{open:t,exited:n,classes:r}=e;return ga({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},ol,r)},cl=B(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(zc(({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`}}]}))),ll=B(Qc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),ul=I.forwardRef(function(e,t){let n=Ws({name:`MuiModal`,props:e}),{BackdropComponent:r=ll,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:k,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:ne,hasTransition:re}=al({...ee,rootRef:t}),N={...ee,exited:ne},ie=sl(N),P={};if(c.props.tabIndex===void 0&&(P.tabIndex=`-1`),re){let{onEnter:e,onExited:t}=j();P.onEnter=e,P.onExited=t}let ae={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[oe,se]=Gc(`root`,{ref:t,elementType:cl,externalForwardedProps:{...ae,...O,component:u},getSlotProps:k,ownerState:N,className:R(o,ie?.root,!N.open&&N.exited&&ie?.hidden)}),[ce,le]=Gc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:R(i?.className,ie?.backdrop),ownerState:N});return!b&&!w&&(!re||ne)?null:(0,L.jsx)(Rc,{ref:te,container:l,disablePortal:g,children:(0,L.jsxs)(oe,{...se,children:[!y&&r?(0,L.jsx)(ce,{...le}):null,(0,L.jsx)(Fc,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:I.cloneElement(c,P)})]})})});function dl(e){return Jr(`MuiPaper`,e)}Yr(`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 fl=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ga({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},dl,i)},pl=B(`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}`]]}})(zc(({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)`}}]}))),ml=I.forwardRef(function(e,t){let n=Ws({props:e,name:`MuiPaper`}),r=ko(),{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=fl(u);return(0,L.jsx)(pl,{as:a,ownerState:u,className:R(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(${bi(`#fff`,lo(o))}, ${bi(`#fff`,lo(o))})`}},...l.style}})});function hl(e){return Jr(`MuiPopover`,e)}Yr(`MuiPopover`,[`root`,`paper`]);var H=In;function gl(e){return Jr(`MuiSvgIcon`,e)}Yr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var _l=e=>{let{color:t,fontSize:n,classes:r}=e;return ga({root:[`root`,t!==`inherit`&&`color${H(t)}`,`fontSize${H(n)}`]},gl,r)},vl=B(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${H(n.color)}`],t[`fontSize${H(n.fontSize)}`]]}})(zc(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),yl=I.forwardRef(function(e,t){let n=Ws({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=I.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=_l(m);return(0,L.jsxs)(vl,{as:o,className:R(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,L.jsx)(`title`,{children:u}):null]})});yl.muiName=`SvgIcon`;function bl(e,t){function n(t,n){return(0,L.jsx)(yl,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=yl.muiName,I.memo(I.forwardRef(n))}var xl=_a,Sl=li,Cl=Ui;function wl(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=I.useRef(t!==void 0),[o,s]=I.useState(n);return[a?t:o,I.useCallback(e=>{a||s(e)},[])]}var Tl=wl,El=$c;function Dl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Ol(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Dl(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=R(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=R(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function kl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Al(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function jl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Ml(e){return typeof e==`function`?e():e}var Nl=e=>{let{classes:t}=e;return ga({root:[`root`],paper:[`paper`]},hl,t)},Pl=B(ul,{name:`MuiPopover`,slot:`Root`})({}),Fl=B(ml,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Il=I.forwardRef(function(e,t){let n=Ws({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=I.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Nl(w),E=I.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Ml(i),t=(e&&e.nodeType===1?e:Js(C.current).body).getBoundingClientRect();return{top:t.top+kl(t,a.vertical),left:t.left+Al(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=I.useCallback(e=>({vertical:kl(e,_.vertical),horizontal:Al(e,_.horizontal)}),[_.horizontal,_.vertical]),O=I.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:jl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=Xs(Ml(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:jl(n)}},[i,s,E,D,f]),[ee,k]=I.useState(p),A=I.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,k(!0)},[O]);I.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{k(!1)};I.useEffect(()=>{p&&A()}),I.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),I.useEffect(()=>{if(!p)return;let e=Ks(()=>{A()}),t=Xs(Ml(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,A]);let M=y,ne={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[re,N]=Gc(`transition`,{elementType:pc,externalForwardedProps:ne,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),te()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!re.muiSupportAuto&&(M=void 0);let ie=u||(i?Js(Ml(i)).body:void 0),[P,{slots:ae,slotProps:oe,...se}]=Gc(`root`,{ref:t,elementType:Pl,externalForwardedProps:{...ne,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Ol(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:ie,open:p},ownerState:w,className:R(T.root,l)}),[ce,le]=Gc(`paper`,{ref:C,className:T.paper,elementType:Fl,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,L.jsx)(P,{...se,...!Vs(P)&&{slots:ae,slotProps:oe,disableScrollLock:x},children:(0,L.jsx)(re,{...N,timeout:M,children:(0,L.jsx)(ce,{...le,children:c})})})}),Ll={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`},Rl={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`},zl=s({background:()=>lu,backgroundDark:()=>uu,black:()=>Cu,blueGrey100:()=>ju,blueGrey300:()=>Mu,blueGrey600:()=>Nu,blueGrey900:()=>Pu,border:()=>gu,borderDark:()=>vu,borderGray:()=>yu,borderLight:()=>_u,buttonBorder:()=>Vu,buttonFocusOutline:()=>Au,buttonHoverBg:()=>Hu,correct:()=>Gl,correctSecondary:()=>Kl,correctTertiary:()=>ql,correctWithIcon:()=>Jl,defaults:()=>U,disabled:()=>Hl,disabledSecondary:()=>Ul,disabledText:()=>Wl,dropdownBackground:()=>fu,fadedPrimary:()=>iu,focusChecked:()=>Eu,focusCheckedBorder:()=>Du,focusUnchecked:()=>Ou,focusUncheckedBorder:()=>ku,incorrect:()=>Yl,incorrectSecondary:()=>Zl,incorrectWithIcon:()=>Xl,keyBoardFocusIndicator:()=>Bu,keypadButton:()=>Fu,keypadButtonHover:()=>Ru,keypadButtonOperator:()=>Iu,keypadButtonOperatorHover:()=>zu,keypadEmptyPlaceholder:()=>Lu,missing:()=>Ql,missingWithIcon:()=>$l,primary:()=>eu,primaryDark:()=>nu,primaryLight:()=>tu,primaryText:()=>ru,secondary:()=>au,secondaryBackground:()=>du,secondaryDark:()=>su,secondaryLight:()=>ou,secondaryText:()=>cu,surface:()=>pu,tableGrid:()=>bu,tableGridLight:()=>xu,tableStripe:()=>Su,tertiary:()=>mu,tertiaryLight:()=>hu,text:()=>Vl,transparent:()=>Tu,v:()=>Bl,visualElementsColors:()=>Uu,white:()=>wu}),U={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Ta[500],CORRECT_SECONDARY:Ta[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Sa[500],INCORRECT_SECONDARY:xa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:xa[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Rl[500],PRIMARY_LIGHT:Rl[200],PRIMARY_DARK:Rl[800],SECONDARY:Ll.A400,SECONDARY_LIGHT:Ll[200],SECONDARY_DARK:Ll[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(U);var Bl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},W=Bl(`pie`),Vl=()=>W(`text`,U.TEXT),Hl=()=>W(`disabled`,U.DISABLED),Ul=()=>W(`disabled-secondary`,U.DISABLED_SECONDARY),Wl=()=>W(`disabled-text`,`text`,U.DISABLED_TEXT),Gl=()=>W(`correct`,U.CORRECT),Kl=()=>W(`correct-secondary`,U.CORRECT_SECONDARY),ql=()=>W(`correct-tertiary`,U.CORRECT_TERTIARY),Jl=()=>W(`correct-icon`,U.CORRECT_WITH_ICON),Yl=()=>W(`incorrect`,U.INCORRECT),Xl=()=>W(`incorrect-icon`,U.INCORRECT_WITH_ICON),Zl=()=>W(`incorrect-secondary`,U.INCORRECT_SECONDARY),Ql=()=>W(`missing`,U.MISSING),$l=()=>W(`missing-icon`,U.MISSING_WITH_ICON),eu=()=>W(`primary`,U.PRIMARY),tu=()=>W(`primary-light`,U.PRIMARY_LIGHT),nu=()=>W(`primary-dark`,U.PRIMARY_DARK),ru=()=>W(`primary-text`,`text`,U.TEXT),iu=()=>W(`faded-primary`,U.FADED_PRIMARY),au=()=>W(`secondary`,U.SECONDARY),ou=()=>W(`secondary-light`,U.SECONDARY_LIGHT),su=()=>W(`secondary-dark`,U.SECONDARY_DARK),cu=()=>W(`secondary-text`,`text`,U.TEXT),lu=()=>W(`background`,U.BACKGROUND),uu=()=>W(`background-dark`,U.BACKGROUND_DARK),du=()=>W(`secondary-background`,U.SECONDARY_BACKGROUND),fu=()=>W(`dropdown-background`,U.DROPDOWN_BACKGROUND),pu=()=>W(`surface`,U.SURFACE),mu=()=>W(`tertiary`,U.TERTIARY),hu=()=>W(`tertiary-light`,U.TERTIARY_LIGHT),gu=()=>W(`border`,U.BORDER),_u=()=>W(`border-light`,U.BORDER_LIGHT),vu=()=>W(`border-dark`,U.BORDER_DARK),yu=()=>W(`border-gray`,U.BORDER_GRAY),bu=()=>W(`table-grid`,`text`,U.TABLE_GRID),xu=()=>W(`table-grid-light`,`border-light`,U.TABLE_GRID_LIGHT),Su=()=>W(`table-stripe`,`background-dark`,U.TABLE_STRIPE),Cu=()=>W(`black`,U.BLACK),wu=()=>W(`white`,U.WHITE),Tu=()=>U.TRANSPARENT,Eu=()=>W(`focus-checked`,U.FOCUS_CHECKED),Du=()=>W(`focus-checked-border`,U.FOCUS_CHECKED_BORDER),Ou=()=>W(`focus-unchecked`,U.FOCUS_UNCHECKED),ku=()=>W(`focus-unchecked-border`,U.FOCUS_UNCHECKED_BORDER),Au=()=>W(`button-focus-outline`,U.BUTTON_FOCUS_OUTLINE),ju=()=>W(`blue-grey-100`,U.BLUE_GREY100),Mu=()=>W(`blue-grey-300`,U.BLUE_GREY300),Nu=()=>W(`blue-grey-600`,U.BLUE_GREY600),Pu=()=>W(`blue-grey-900`,U.BLUE_GREY900),Fu=()=>W(`keypad-button`,U.KEYPAD_BUTTON),Iu=()=>W(`keypad-button-operator`,U.KEYPAD_BUTTON_OPERATOR),Lu=()=>W(`keypad-empty-placeholder`,U.KEYPAD_EMPTY_PLACEHOLDER),Ru=()=>W(`keypad-button-hover`,U.KEYPAD_BUTTON_HOVER),zu=()=>W(`keypad-button-operator-hover`,U.KEYPAD_BUTTON_OPERATOR_HOVER),Bu=()=>W(`keyboard-focus-indicator`,U.KEY_BOARD_FOCUS_INDICATOR),Vu=()=>W(`button-border`,U.BUTTON_BORDER),Hu=()=>W(`button-hover-bg`,U.BUTTON_HOVER_BG),Uu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Wu=B(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Gu=B(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Hl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Gl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Yl()})`}}),Ku=B(`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`}}),qu=class extends I.Component{static propTypes={correctness:k.string,feedback:k.string};nodeRef=I.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,L.jsx)(as,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,L.jsx)(Ku,{ref:this.nodeRef,children:(0,L.jsx)(Wu,{children:(0,L.jsx)(Gu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,L.jsx)(`div`,{children:(0,L.jsx)(ms,{children:this.renderFeedback()})})}},Ju=s({Correct:()=>ed,Incorrect:()=>td,NothingSubmitted:()=>rd,PartiallyCorrect:()=>nd}),Yu=v(`pie-libs:render-ui:response-indicators`),Xu=B(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Zu=B(Il)({cursor:`pointer`}),Qu=B(`div`)({padding:`0`,borderRadius:`4px`}),$u=(e,t)=>{class n extends I.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Yu(`[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,L.jsxs)(Xu,{hasFeedback:!!n,children:[(0,L.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,L.jsx)(e,{})}),n&&(0,L.jsx)(Zu,{PaperComponent:Qu,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,L.jsx)(qu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:k.string},n},ed=$u(Es,`correct`),td=$u(Ns,`incorrect`),nd=$u(Bs,`partially-correct`),rd=$u(Ls,`nothing-submitted`);function id(e){return Jr(`MuiCollapse`,e)}Yr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var ad=e=>{let{orientation:t,classes:n}=e;return ga({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},id,n)},od=B(`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]}})(zc(({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`}}]}))),sd=B(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),cd=B(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),ld=I.forwardRef(function(e,t){let n=Ws({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=Qa.standard,TransitionComponent:x=ts,...S}=n,C={...n,orientation:g,collapsedSize:o},w=ad(C),T=ko(),E=nc(),D=I.useRef(null),O=I.useRef(),ee=typeof o==`number`?`${o}px`:o,k=g===`horizontal`,A=k?`width`:`height`,j=I.useRef(null),te=lc(t,j),M=()=>D.current?D.current[k?`clientWidth`:`clientHeight`]:0,ne=ac(j,(e,t)=>{D.current&&k&&(D.current.style.position=`absolute`),e.style[A]=ee,u&&u(e,t)}),re=ac(j,(e,t)=>{let n=M();D.current&&k&&(D.current.style.position=``);let{duration:r,easing:i}=sc({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[A]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),N=ac(j,(e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),ie=ac(j,e=>{e.style[A]=`${M()}px`,p&&p(e)}),P=ac(j,m),ae=ac(j,e=>{let t=M(),{duration:n,easing:r}=sc({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[A]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),oe=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},se={slots:_,slotProps:v,component:s},[ce,le]=Gc(`root`,{ref:te,className:R(w.root,a),elementType:od,externalForwardedProps:se,ownerState:C,additionalProps:{style:{[k?`minWidth`:`minHeight`]:ee,...y}}}),[ue,de]=Gc(`wrapper`,{ref:D,className:w.wrapper,elementType:sd,externalForwardedProps:se,ownerState:C}),[fe,pe]=Gc(`wrapperInner`,{className:w.wrapperInner,elementType:cd,externalForwardedProps:se,ownerState:C});return(0,L.jsx)(x,{in:l,onEnter:ne,onEntered:N,onEntering:re,onExit:ie,onExited:P,onExiting:ae,addEndListener:oe,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,L.jsx)(ce,{...le,className:R(le.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,L.jsx)(ue,{...de,ownerState:r,children:(0,L.jsx)(fe,{...pe,ownerState:r,children:i})})})}})});ld&&(ld.muiSupportAuto=!0);var ud=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,dd=`pie-mathjax-version-conflict`,fd=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function pd(e,t){if(typeof window>`u`)return;let n=globalThis;n[fd]??={logged:!1,conditions:[]};let r=n[fd];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 ${ud}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(dd,{detail:{condition:e,message:i,docsUrl:ud}}))}function md(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var hd=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,gd={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},_d=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,vd=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,yd=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,bd=/\\embed\{newLine\}\[\]/g,xd=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],Sd=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),Cd=`PIE-MJX-CHTML-styles`,wd=`MJX-CHTML-styles`,Td=[wd,`MJX-SVG-styles`],Ed=201;function Dd(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 Od(){return window.MathJax}function kd(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of xd)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function Ad(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=`\\(${kd(e)}\\)`.replace(bd,`\\newline `),t.dataset.mathHandled=`true`)}}function jd(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?yd:vd).test(e.textContent??``)}function Md(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=Od(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&Nd(e),r?.defaultReady?.(),i&&Pd(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...gd}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(_d),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||hd,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function Nd(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=Cd)}function Pd(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Dd(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Ed,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Dd(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===wd&&(r.id=Cd),Ld()}function Fd(e){return e instanceof HTMLStyleElement&&Td.includes(e.id)}function Id(e){pd(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Ld(){let e=document.head,t=[...e.children].find(Fd);if(t){Id(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(Fd);if(e){Id(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Rd(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=Od()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function zd(e){let t=Od();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Rd(t):Md(e)}function Bd(e){return zd(e).then(()=>{typeof Od()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function Vd(e){let t=globalThis,n=t[Sd];return n||(n=Bd(e),t[Sd]=n),n}function Hd(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=md();r&&pd(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),Ad(n);let i=Vd(e);if(!jd(n,t)){i.catch(()=>{});return}await i;let a=Od();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),Dd(n))}}var Ud=`@pie-lib/math-rendering`,Wd=`@pie-lib/math-rendering@2`,Gd=null;function Kd(){return!!window[Wd]?.opts?.useSingleDollar}function qd(){return Gd||=Hd({useSingleDollar:Kd()}),Gd}function Jd(){if(typeof window>`u`)return null;let e=window[Ud];return typeof e?.renderMath==`function`?e:null}var Yd=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=Jd();return r?await r.renderMath?.(n):await qd()(n),t?n.innerHTML:void 0},Xd=B(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),Zd=B(ld)(({theme:e})=>({paddingTop:e.spacing(2)})),Qd=class extends I.Component{static propTypes={className:k.string,children:k.object,labels:k.shape({visible:k.string,hidden:k.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Yd(this.root)}componentDidUpdate(){Yd(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,L.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,L.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,L.jsx)(Xd,{children:r})}),(0,L.jsx)(Zd,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function $d(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var ef=class e{static create(){return new e}static use(){let t=Qs(e.create).current,[n,r]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=r,I.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=nf(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function tf(){return ef.use()}function nf(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function rf(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=I.useState(!1),f=R(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=R(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),I.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,L.jsx)(`span`,{className:f,style:p,children:(0,L.jsx)(`span`,{className:m})})}var af=Yr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),of=550,sf=qt`
|
|
49
49
|
0% {
|
|
50
50
|
transform: scale(0);
|
|
51
51
|
opacity: 0.1;
|
package/module/print.js
CHANGED
|
@@ -10580,7 +10580,7 @@ var Us = Object.defineProperty, Ws = (e, t) => {
|
|
|
10580
10580
|
FOCUS_UNCHECKED_BORDER: "#757575",
|
|
10581
10581
|
BUTTON_FOCUS_OUTLINE: "#3B82F6",
|
|
10582
10582
|
BLUE_GREY100: "#F3F5F7",
|
|
10583
|
-
BLUE_GREY300: "#
|
|
10583
|
+
BLUE_GREY300: "#81848F",
|
|
10584
10584
|
BLUE_GREY600: "#7E8494",
|
|
10585
10585
|
BLUE_GREY900: "#152452",
|
|
10586
10586
|
FADED_PRIMARY: "#DCDAFB",
|