@pie-element/match-list 7.1.2-next.17 → 7.1.2-next.18

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.
@@ -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,B.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})]});Po.propTypes={bgFill:y.string.isRequired,fgFill:y.string.isRequired};var Fo=({bgFill:e,fgFill:t,borderFill:n})=>(0,B.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,B.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,B.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,B.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,B.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,B.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})]});Fo.propTypes={bgFill:y.string.isRequired,fgFill:y.string.isRequired,borderFill:y.string.isRequired};var Io=K(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),Lo=({open:e,size:t})=>(0,B.jsx)(Io,{size:t,children:e?(0,B.jsx)(Po,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,B.jsx)(Fo,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});Lo.propTypes={open:y.bool,size:y.string},Lo.defaultProps={open:!1};var Ro=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,B.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,B.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})]});Ro.propTypes={fill:y.string.isRequired};var zo=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,B.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,B.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,B.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});zo.propTypes={fill:y.string.isRequired};var Bo=Ao(Ro,zo);Bo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},Bo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Vo=({fill:e})=>(0,B.jsxs)(`g`,{children:[(0,B.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,B.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Vo.propTypes={fill:y.string.isRequired};var Ho=({fill:e})=>(0,B.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});Ho.propTypes={fill:y.string.isRequired};var Uo=({fill:e})=>(0,B.jsxs)(`g`,{children:[(0,B.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,B.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,B.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})]});Uo.propTypes={fill:y.string.isRequired};var Wo=class extends R.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Vo,{fill:t})]}),emoji:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),feedback:{check:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),emoji:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),square:{check:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Vo,{fill:t})]}),emoji:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),open:{check:(0,B.jsx)(wo,{children:(0,B.jsx)(Vo,{fill:n})}),emoji:(0,B.jsx)(wo,{children:(0,B.jsx)(Uo,{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]}};Wo.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},Wo.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Go=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,B.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,B.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Go.propTypes={fill:y.string.isRequired};var Ko=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,B.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,B.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,B.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})]});Ko.propTypes={fill:y.string.isRequired};var qo=Ao(Go,Ko);qo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},qo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Jo(e){return typeof e==`string`}function Yo(e){return Si(e)}function Xo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Zo=Xo;function Qo(e){return e&&e.ownerDocument||document}var $o=Qo;function es(e){return Qo(e).defaultView||window}var ts=es,ns={};function rs(e,t){let n=R.useRef(ns);return n.current===ns&&(n.current=e(t)),n}var is=[];function as(e){R.useEffect(e,is)}var os=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 ss(){let e=rs(os.create).current;return as(e.disposeEffect),e}function cs(e){return e?.ref||null}function ls(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function us(e,t){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},us(e,t)}function ds(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function fs(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ps(e,t){e.classList?e.classList.add(t):fs(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function ms(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function hs(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=ms(e.className,t):e.setAttribute(`class`,ms(e.className&&e.className.baseVal||``,t))}var gs={disabled:!1},_s=R.createContext(null),vs=function(e){return e.scrollTop},ys=l(h()),bs=`unmounted`,xs=`exited`,Ss=`entering`,Cs=`entered`,ws=`exiting`,Ts=function(e){ds(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=xs,r.appearStatus=Ss):o=Cs:o=t.unmountOnExit||t.mountOnEnter?bs:xs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:xs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Ss):(n===`entering`||n===`entered`)&&(t=ws)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ys.findDOMNode(this);n&&vs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:bs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ys.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||gs.disabled){this.safeSetState({status:Cs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Ss},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Cs},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ys.findDOMNode(this);if(!t||gs.disabled){this.safeSetState({status:xs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:ws},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:xs},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ys.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ls(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return R.createElement(_s.Provider,{value:null},typeof n==`function`?n(e,r):R.cloneElement(R.Children.only(n),r))},t}(R.Component);Ts.contextType=_s,Ts.propTypes={};function Es(){}Ts.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Es,onEntering:Es,onEntered:Es,onExit:Es,onExiting:Es,onExited:Es},Ts.UNMOUNTED=bs,Ts.EXITED=xs,Ts.ENTERING=Ss,Ts.ENTERED=Cs,Ts.EXITING=ws;var Ds=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ps(e,t)})},Os=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return hs(e,t)})},ks=function(e){ds(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&vs(e),r&&(this.appliedClasses[t][n]=r,Ds(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Os(e,r),i&&Os(e,i),a&&Os(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ls(e,[`classNames`]);return R.createElement(Ts,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(R.Component);ks.defaultProps={classNames:``},ks.propTypes={};function As(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function js(e,t){var n=function(e){return t&&(0,R.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&R.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Ms(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function Ns(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ps(e,t){return js(e.children,function(n){return(0,R.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Ns(n,`appear`,e),enter:Ns(n,`enter`,e),exit:Ns(n,`exit`,e)})})}function Fs(e,t,n){var r=js(e.children),i=Ms(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,R.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,R.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Ns(o,`exit`,e),enter:Ns(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,R.cloneElement)(o,{in:!1}):c&&s&&(0,R.isValidElement)(l)&&(i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Ns(o,`exit`,e),enter:Ns(o,`enter`,e)}))}}),i}var Is=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ls={component:`div`,childFactory:function(e){return e}},Rs=function(e){ds(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(As(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Ps(e,r):Fs(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=js(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ls(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Is(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?R.createElement(_s.Provider,{value:i},a):R.createElement(_s.Provider,{value:i},R.createElement(t,r,a))},t}(R.Component);Rs.propTypes={},Rs.defaultProps=Ls;var zs=e=>e.scrollTop;function Bs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Vs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Hs(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 Us(...e){let t=R.useRef(void 0),n=R.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 R.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Ws=Us;function Gs(e){return`scale(${e}, ${e**2})`}var Ks={entering:{opacity:1,transform:Gs(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Gs(.75)},exited:{opacity:0,transform:Gs(.75)}},qs={opacity:0,transform:Gs(.75),visibility:`hidden`},Js=R.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=ss(),_=R.useRef(),v=fo(),y=R.useRef(null),b=Ws(y,cs(i),t),x=Bs(y,l),S=Bs(y,(e,t)=>{zs(e);let{duration:n,delay:r,easing:i}=Hs({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=Bs(y,c),w=Bs(y,f),T=Bs(y,e=>{let{duration:t,delay:n,easing:r}=Hs({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=Gs(.75),u&&u(e)}),E=Bs(y,e=>{e.style.transition=``,d&&d(e)});return(0,B.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=Vs(e,o,Ks,qs,p,i.props.style);return R.cloneElement(i,{style:r,ref:b,...n})}})});Js&&(Js.muiSupportAuto=!0);function Ys(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Xs(e){let t=Qo(e);return t.body===e?es(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Zs(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Qs(e){return parseFloat(es(e).getComputedStyle(e).paddingRight)||0}function $s(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 ec(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!$s(e);t&&n&&Zs(e,i)})}function tc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function nc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Xs(r)){let e=Ys(es(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Qs(r)+e}px`;let t=Qo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Qs(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Qo(r).body;else{let t=r.parentElement,n=es(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 rc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var ic=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&&Zs(e.modalRef,!1);let r=rc(t);ec(t,e.mount,e.modalRef,r,!0);let i=tc(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=tc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=nc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=tc(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&&Zs(e.modalRef,t),ec(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&&Zs(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ac(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 oc=ac;function sc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var cc=sc,lc=`data-mui-focusable`;function uc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${lc}]`):null}var dc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function fc(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 pc(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`||pc(e))}function hc(e){let t=[],n=[];return Array.from(e.querySelectorAll(dc)).forEach((e,r)=>{let i=fc(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 gc(){return!0}function q(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=hc,isEnabled:o=gc,open:s}=e,c=R.useRef(!1),l=R.useRef(null),u=R.useRef(null),d=R.useRef(null),f=R.useRef(null),p=R.useRef(!1),m=R.useRef(null),h=Us(cs(t),m),g=R.useRef(null);R.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),R.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=cc(Qo(m.current)),t=uc(m.current)??m.current;return oc(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]),R.useEffect(()=>{if(!s||!m.current)return;let e=Qo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&cc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=cc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(oc(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=cc(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,B.jsxs)(R.Fragment,{children:[(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),R.cloneElement(t,{ref:h,onFocus:_}),(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function _c(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function vc(e){return typeof e==`function`?e():e}var yc=R.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=R.useState(null),s=Us(R.isValidElement(n)?cs(n):null,t);if(Yr(()=>{i||o(vc(r)||document.body)},[r,i]),Yr(()=>{if(a&&!i)return _c(t,a),()=>{_c(t,null)}},[t,a,i]),i){if(R.isValidElement(n)){let e={ref:s};return R.cloneElement(n,e)}return n}return a&&ys.createPortal(n,a)}),bc=Mi;function xc(e,t,n){return e===void 0||Jo(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Sc(e,t,n){return typeof e==`function`?e(t,n):e}function Cc(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 wc(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 Tc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=V(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=Cc({...i,...r}),s=wc(r),c=wc(i),l=t(o),u=V(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 Ec(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=Sc(d[e],i),{props:{component:h,...g},internalRef:_}=Tc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Us(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,xc(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 Dc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Oc={opacity:0,visibility:`hidden`},kc=R.forwardRef(function(e,t){let n=fo(),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=R.useRef(null),y=Ws(v,cs(o),t),b=Bs(v,d),x=Bs(v,(e,t)=>{zs(e);let r=Hs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Bs(v,u),C=Bs(v,m),w=Bs(v,e=>{let t=Hs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Bs(v,e=>{e.style.transition=``,p&&p(e)});return(0,B.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=Vs(e,c,Dc,Oc,h,o.props.style);return R.cloneElement(o,{style:r,ref:y,...n})}})});function Ac(e){return Pr(`MuiBackdrop`,e)}Fr(`MuiBackdrop`,[`root`,`invisible`]);var jc=e=>{let{classes:t,invisible:n}=e;return $i({root:[`root`,n&&`invisible`]},Ac,t)},Mc=K(`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`}}]}),Nc=R.forwardRef(function(e,t){let n=Yo({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=jc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Ec(`root`,{elementType:Mc,externalForwardedProps:_,className:V(g.root,i),ownerState:h}),[b,x]=Ec(`transition`,{elementType:kc,externalForwardedProps:_,ownerState:h});return(0,B.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,B.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Pc(e){let t=R.useRef(e);return Yr(()=>{t.current=e}),R.useRef((...e)=>(0,t.current)(...e)).current}function Fc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Ic(e){return typeof e==`function`?e():e}function Lc(e){return e?e.props.hasOwnProperty(`in`):!1}var Rc=()=>{},zc=new ic;function Bc(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=R.useRef({}),f=R.useRef(null),p=R.useRef(null),m=Us(p,u),[h,g]=R.useState(!l),_=Lc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Qo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{zc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Pc(()=>{let e=Ic(t)||y().body;zc.add(b(),e),p.current&&x()}),C=()=>zc.isTopModal(b()),w=Pc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Zs(p.current,v))}),T=R.useCallback(()=>{zc.remove(b(),v)},[v]);R.useEffect(()=>()=>{T()},[T]),R.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=Cc(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:Fc(()=>{g(!1),a&&a()},s?.props.onEnter??Rc),onExited:Fc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Rc)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Vc(e){return Pr(`MuiModal`,e)}Fr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Hc=e=>{let{open:t,exited:n,classes:r}=e;return $i({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Vc,r)},Uc=K(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(bc(({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`}}]}))),Wc=K(Nc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Gc=R.forwardRef(function(e,t){let n=Yo({name:`MuiModal`,props:e}),{BackdropComponent:r=Wc,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,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:ee,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:ne,hasTransition:N}=Bc({...k,rootRef:t}),re={...k,exited:ne},ie=Hc(re),P={};if(c.props.tabIndex===void 0&&(P.tabIndex=`-1`),N){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}},[F,oe]=Ec(`root`,{ref:t,elementType:Uc,externalForwardedProps:{...ae,...O,component:u},getSlotProps:ee,ownerState:re,className:V(o,ie?.root,!re.open&&re.exited&&ie?.hidden)}),[se,ce]=Ec(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:V(i?.className,ie?.backdrop),ownerState:re});return!b&&!w&&(!N||ne)?null:(0,B.jsx)(yc,{ref:te,container:l,disablePortal:g,children:(0,B.jsxs)(F,{...oe,children:[!y&&r?(0,B.jsx)(se,{...ce}):null,(0,B.jsx)(q,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:R.cloneElement(c,P)})]})})});function J(e){return Pr(`MuiPaper`,e)}Fr(`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 Kc=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return $i({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},J,i)},qc=K(`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}`]]}})(bc(({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)`}}]}))),Jc=R.forwardRef(function(e,t){let n=Yo({props:e,name:`MuiPaper`}),r=fo(),{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=Kc(u);return(0,B.jsx)(qc,{as:a,ownerState:u,className:V(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(${oi(`#fff`,Ka(o))}, ${oi(`#fff`,Ka(o))})`}},...l.style}})});function Yc(e){return Pr(`MuiPopover`,e)}Fr(`MuiPopover`,[`root`,`paper`]);var Y=Sn;function Xc(e){return Pr(`MuiSvgIcon`,e)}Fr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Zc=e=>{let{color:t,fontSize:n,classes:r}=e;return $i({root:[`root`,t!==`inherit`&&`color${Y(t)}`,`fontSize${Y(n)}`]},Xc,r)},Qc=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(bc(({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}}]}))),$c=R.forwardRef(function(e,t){let n=Yo({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=R.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=Zc(m);return(0,B.jsxs)(Qc,{as:o,className:V(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,B.jsx)(`title`,{children:u}):null]})});$c.muiName=`SvgIcon`;function el(e,t){function n(t,n){return(0,B.jsx)($c,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=$c.muiName,R.memo(R.forwardRef(n))}var tl=ea,nl=Yr,rl=Ei,il=Pc;function al(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=>{al(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=V(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=V(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 sl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function cl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function ll(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function ul(e){return typeof e==`function`?e():e}var dl=e=>{let{classes:t}=e;return $i({root:[`root`],paper:[`paper`]},Yc,t)},fl=K(Gc,{name:`MuiPopover`,slot:`Root`})({}),pl=K(Jc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),ml=R.forwardRef(function(e,t){let n=Yo({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=R.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=dl(w),E=R.useCallback(()=>{if(s===`anchorPosition`)return o;let e=ul(i),t=(e&&e.nodeType===1?e:$o(C.current).body).getBoundingClientRect();return{top:t.top+sl(t,a.vertical),left:t.left+cl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=R.useCallback(e=>({vertical:sl(e,_.vertical),horizontal:cl(e,_.horizontal)}),[_.horizontal,_.vertical]),O=R.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:ll(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=ts(ul(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:ll(n)}},[i,s,E,D,f]),[k,ee]=R.useState(p),A=R.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,ee(!0)},[O]);R.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{ee(!1)};R.useEffect(()=>{p&&A()}),R.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),R.useEffect(()=>{if(!p)return;let e=Zo(()=>{A()}),t=ts(ul(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}},[N,re]=Ec(`transition`,{elementType:Js,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`&&!N.muiSupportAuto&&(M=void 0);let ie=u||(i?$o(ul(i)).body:void 0),[P,{slots:ae,slotProps:F,...oe}]=Ec(`root`,{ref:t,elementType:fl,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:V(T.root,l)}),[se,ce]=Ec(`paper`,{ref:C,className:T.paper,elementType:pl,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,B.jsx)(P,{...oe,...!Jo(P)&&{slots:ae,slotProps:F,disableScrollLock:x},children:(0,B.jsx)(N,{...re,timeout:M,children:(0,B.jsx)(se,{...ce,children:c})})})}),hl={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`},gl={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`},_l=s({background:()=>Vl,backgroundDark:()=>Hl,black:()=>tu,blueGrey100:()=>lu,blueGrey300:()=>uu,blueGrey600:()=>du,blueGrey900:()=>fu,border:()=>Jl,borderDark:()=>Xl,borderGray:()=>Zl,borderLight:()=>Yl,buttonBorder:()=>yu,buttonFocusOutline:()=>cu,buttonHoverBg:()=>bu,correct:()=>Cl,correctSecondary:()=>wl,correctTertiary:()=>Tl,correctWithIcon:()=>El,defaults:()=>X,disabled:()=>bl,disabledSecondary:()=>xl,disabledText:()=>Sl,dropdownBackground:()=>Wl,fadedPrimary:()=>Il,focusChecked:()=>iu,focusCheckedBorder:()=>au,focusUnchecked:()=>ou,focusUncheckedBorder:()=>su,incorrect:()=>Dl,incorrectSecondary:()=>kl,incorrectWithIcon:()=>Ol,keyBoardFocusIndicator:()=>vu,keypadButton:()=>pu,keypadButtonHover:()=>gu,keypadButtonOperator:()=>mu,keypadButtonOperatorHover:()=>_u,keypadEmptyPlaceholder:()=>hu,missing:()=>Al,missingWithIcon:()=>jl,primary:()=>Ml,primaryDark:()=>Pl,primaryLight:()=>Nl,primaryText:()=>Fl,secondary:()=>Ll,secondaryBackground:()=>Ul,secondaryDark:()=>zl,secondaryLight:()=>Rl,secondaryText:()=>Bl,surface:()=>Gl,tableGrid:()=>Ql,tableGridLight:()=>$l,tableStripe:()=>eu,tertiary:()=>Kl,tertiaryLight:()=>ql,text:()=>yl,transparent:()=>ru,v:()=>vl,visualElementsColors:()=>xu,white:()=>nu}),X={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:ca[500],CORRECT_SECONDARY:ca[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:aa[500],INCORRECT_SECONDARY:ia[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ia[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:gl[500],PRIMARY_LIGHT:gl[200],PRIMARY_DARK:gl[800],SECONDARY:hl.A400,SECONDARY_LIGHT:hl[200],SECONDARY_DARK:hl[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(X);var vl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Z=vl(`pie`),yl=()=>Z(`text`,X.TEXT),bl=()=>Z(`disabled`,X.DISABLED),xl=()=>Z(`disabled-secondary`,X.DISABLED_SECONDARY),Sl=()=>Z(`disabled-text`,`text`,X.DISABLED_TEXT),Cl=()=>Z(`correct`,X.CORRECT),wl=()=>Z(`correct-secondary`,X.CORRECT_SECONDARY),Tl=()=>Z(`correct-tertiary`,X.CORRECT_TERTIARY),El=()=>Z(`correct-icon`,X.CORRECT_WITH_ICON),Dl=()=>Z(`incorrect`,X.INCORRECT),Ol=()=>Z(`incorrect-icon`,X.INCORRECT_WITH_ICON),kl=()=>Z(`incorrect-secondary`,X.INCORRECT_SECONDARY),Al=()=>Z(`missing`,X.MISSING),jl=()=>Z(`missing-icon`,X.MISSING_WITH_ICON),Ml=()=>Z(`primary`,X.PRIMARY),Nl=()=>Z(`primary-light`,X.PRIMARY_LIGHT),Pl=()=>Z(`primary-dark`,X.PRIMARY_DARK),Fl=()=>Z(`primary-text`,`text`,X.TEXT),Il=()=>Z(`faded-primary`,X.FADED_PRIMARY),Ll=()=>Z(`secondary`,X.SECONDARY),Rl=()=>Z(`secondary-light`,X.SECONDARY_LIGHT),zl=()=>Z(`secondary-dark`,X.SECONDARY_DARK),Bl=()=>Z(`secondary-text`,`text`,X.TEXT),Vl=()=>Z(`background`,X.BACKGROUND),Hl=()=>Z(`background-dark`,X.BACKGROUND_DARK),Ul=()=>Z(`secondary-background`,X.SECONDARY_BACKGROUND),Wl=()=>Z(`dropdown-background`,X.DROPDOWN_BACKGROUND),Gl=()=>Z(`surface`,X.SURFACE),Kl=()=>Z(`tertiary`,X.TERTIARY),ql=()=>Z(`tertiary-light`,X.TERTIARY_LIGHT),Jl=()=>Z(`border`,X.BORDER),Yl=()=>Z(`border-light`,X.BORDER_LIGHT),Xl=()=>Z(`border-dark`,X.BORDER_DARK),Zl=()=>Z(`border-gray`,X.BORDER_GRAY),Ql=()=>Z(`table-grid`,`text`,X.TABLE_GRID),$l=()=>Z(`table-grid-light`,`border-light`,X.TABLE_GRID_LIGHT),eu=()=>Z(`table-stripe`,`background-dark`,X.TABLE_STRIPE),tu=()=>Z(`black`,X.BLACK),nu=()=>Z(`white`,X.WHITE),ru=()=>X.TRANSPARENT,iu=()=>Z(`focus-checked`,X.FOCUS_CHECKED),au=()=>Z(`focus-checked-border`,X.FOCUS_CHECKED_BORDER),ou=()=>Z(`focus-unchecked`,X.FOCUS_UNCHECKED),su=()=>Z(`focus-unchecked-border`,X.FOCUS_UNCHECKED_BORDER),cu=()=>Z(`button-focus-outline`,X.BUTTON_FOCUS_OUTLINE),lu=()=>Z(`blue-grey-100`,X.BLUE_GREY100),uu=()=>Z(`blue-grey-300`,X.BLUE_GREY300),du=()=>Z(`blue-grey-600`,X.BLUE_GREY600),fu=()=>Z(`blue-grey-900`,X.BLUE_GREY900),pu=()=>Z(`keypad-button`,X.KEYPAD_BUTTON),mu=()=>Z(`keypad-button-operator`,X.KEYPAD_BUTTON_OPERATOR),hu=()=>Z(`keypad-empty-placeholder`,X.KEYPAD_EMPTY_PLACEHOLDER),gu=()=>Z(`keypad-button-hover`,X.KEYPAD_BUTTON_HOVER),_u=()=>Z(`keypad-button-operator-hover`,X.KEYPAD_BUTTON_OPERATOR_HOVER),vu=()=>Z(`keyboard-focus-indicator`,X.KEY_BOARD_FOCUS_INDICATOR),yu=()=>Z(`button-border`,X.BUTTON_BORDER),bu=()=>Z(`button-hover-bg`,X.BUTTON_HOVER_BG),xu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Su=K(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Cu=K(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${bl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Cl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Dl()})`}}),wu=K(`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`}}),Tu=class extends R.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=R.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,B.jsx)(ks,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,B.jsx)(wu,{ref:this.nodeRef,children:(0,B.jsx)(Su,{children:(0,B.jsx)(Cu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,B.jsx)(`div`,{children:(0,B.jsx)(Rs,{children:this.renderFeedback()})})}},Eu=s({Correct:()=>Mu,Incorrect:()=>Nu,NothingSubmitted:()=>Fu,PartiallyCorrect:()=>Pu}),Du=_(`pie-libs:render-ui:response-indicators`),Ou=K(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),ku=K(ml)({cursor:`pointer`}),Au=K(`div`)({padding:`0`,borderRadius:`4px`}),ju=(e,t)=>{class n extends R.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Du(`[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,B.jsxs)(Ou,{hasFeedback:!!n,children:[(0,B.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,B.jsx)(e,{})}),n&&(0,B.jsx)(ku,{PaperComponent:Au,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,B.jsx)(Tu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Mu=ju(No,`correct`),Nu=ju(Bo,`incorrect`),Pu=ju(qo,`partially-correct`),Fu=ju(Wo,`nothing-submitted`);function Iu(e){return Pr(`MuiCollapse`,e)}Fr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Lu=e=>{let{orientation:t,classes:n}=e;return $i({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Iu,n)},Ru=K(`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]}})(bc(({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`}}]}))),zu=K(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Bu=K(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Vu=R.forwardRef(function(e,t){let n=Yo({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=Fa.standard,TransitionComponent:x=Ts,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Lu(C),T=fo(),E=ss(),D=R.useRef(null),O=R.useRef(),k=typeof o==`number`?`${o}px`:o,ee=g===`horizontal`,A=ee?`width`:`height`,j=R.useRef(null),te=Ws(t,j),M=()=>D.current?D.current[ee?`clientWidth`:`clientHeight`]:0,ne=Bs(j,(e,t)=>{D.current&&ee&&(D.current.style.position=`absolute`),e.style[A]=k,u&&u(e,t)}),N=Bs(j,(e,t)=>{let n=M();D.current&&ee&&(D.current.style.position=``);let{duration:r,easing:i}=Hs({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)}),re=Bs(j,(e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),ie=Bs(j,e=>{e.style[A]=`${M()}px`,p&&p(e)}),P=Bs(j,m),ae=Bs(j,e=>{let t=M(),{duration:n,easing:r}=Hs({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]=k,e.style.transitionTimingFunction=r,h&&h(e)}),F=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},oe={slots:_,slotProps:v,component:s},[se,ce]=Ec(`root`,{ref:te,className:V(w.root,a),elementType:Ru,externalForwardedProps:oe,ownerState:C,additionalProps:{style:{[ee?`minWidth`:`minHeight`]:k,...y}}}),[le,ue]=Ec(`wrapper`,{ref:D,className:w.wrapper,elementType:zu,externalForwardedProps:oe,ownerState:C}),[de,fe]=Ec(`wrapperInner`,{className:w.wrapperInner,elementType:Bu,externalForwardedProps:oe,ownerState:C});return(0,B.jsx)(x,{in:l,onEnter:ne,onEntered:re,onEntering:N,onExit:ie,onExited:P,onExiting:ae,addEndListener:F,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,B.jsx)(se,{...ce,className:V(ce.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,B.jsx)(le,{...ue,ownerState:r,children:(0,B.jsx)(de,{...fe,ownerState:r,children:i})})})}})});Vu&&(Vu.muiSupportAuto=!0);var Hu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Uu=null;function Wu(e){return typeof window>`u`||window.MathJax?.typesetPromise?Promise.resolve():Uu||(Uu=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Hu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),Uu)}function Gu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Ku(e={}){return async t=>{if(await Wu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Gu()}}var qu=`@pie-lib/math-rendering`,Ju=null;function Yu(){return Ju||=Ku({accessibility:!0,useSingleDollar:!0}),Ju}function Xu(){if(typeof window>`u`)return null;let e=window[qu];return typeof e?.renderMath==`function`?e:null}var Zu=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=Xu();return r?await r.renderMath?.(n):await Yu()(n),t?n.innerHTML:void 0},Qu=K(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),$u=K(Vu)(({theme:e})=>({paddingTop:e.spacing(2)})),ed=class extends R.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Zu(this.root)}componentDidUpdate(){Zu(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,B.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,B.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,B.jsx)(Qu,{children:r})}),(0,B.jsx)($u,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function td(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var nd=class e{static create(){return new e}static use(){let t=rs(e.create).current,[n,r]=R.useState(!1);return t.shouldMount=n,t.setShouldMount=r,R.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=id(),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 rd(){return nd.use()}function id(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function ad(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=R.useState(!1),f=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=V(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),R.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,B.jsx)(`span`,{className:f,style:p,children:(0,B.jsx)(`span`,{className:m})})}var od=Fr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),sd=550,cd=Pt`
48
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Uo.propTypes={fill:y.string.isRequired};var Wo=class extends R.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Vo,{fill:t})]}),emoji:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),feedback:{check:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),emoji:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),square:{check:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Vo,{fill:t})]}),emoji:(0,B.jsxs)(wo,{children:[(0,B.jsx)(Ho,{fill:n}),(0,B.jsx)(Uo,{fill:t})]}),open:{check:(0,B.jsx)(wo,{children:(0,B.jsx)(Vo,{fill:n})}),emoji:(0,B.jsx)(wo,{children:(0,B.jsx)(Uo,{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]}};Wo.propTypes={iconSet:y.oneOf([`emoji`,`check`,void 0]),shape:y.oneOf([`square`,void 0]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string},Wo.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Go=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,B.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,B.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Go.propTypes={fill:y.string.isRequired};var Ko=({fill:e})=>(0,B.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,B.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,B.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,B.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})]});Ko.propTypes={fill:y.string.isRequired};var qo=Ao(Go,Ko);qo.propTypes={iconSet:y.oneOf([`emoji`,`check`]),shape:y.oneOf([`round`,`square`]),category:y.oneOf([`feedback`,void 0]),open:y.bool,fg:y.string,bg:y.string,size:y.oneOfType([y.string,y.number])},qo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Jo(e){return typeof e==`string`}function Yo(e){return Si(e)}function Xo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var Zo=Xo;function Qo(e){return e&&e.ownerDocument||document}var $o=Qo;function es(e){return Qo(e).defaultView||window}var ts=es,ns={};function rs(e,t){let n=R.useRef(ns);return n.current===ns&&(n.current=e(t)),n}var is=[];function as(e){R.useEffect(e,is)}var os=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 ss(){let e=rs(os.create).current;return as(e.disposeEffect),e}function cs(e){return e?.ref||null}function ls(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function us(e,t){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},us(e,t)}function ds(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function fs(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ps(e,t){e.classList?e.classList.add(t):fs(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function ms(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function hs(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=ms(e.className,t):e.setAttribute(`class`,ms(e.className&&e.className.baseVal||``,t))}var gs={disabled:!1},_s=R.createContext(null),vs=function(e){return e.scrollTop},ys=l(h()),bs=`unmounted`,xs=`exited`,Ss=`entering`,Cs=`entered`,ws=`exiting`,Ts=function(e){ds(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=xs,r.appearStatus=Ss):o=Cs:o=t.unmountOnExit||t.mountOnEnter?bs:xs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:xs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Ss):(n===`entering`||n===`entered`)&&(t=ws)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:ys.findDOMNode(this);n&&vs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:bs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[ys.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||gs.disabled){this.safeSetState({status:Cs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Ss},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Cs},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ys.findDOMNode(this);if(!t||gs.disabled){this.safeSetState({status:xs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:ws},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:xs},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:ys.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ls(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return R.createElement(_s.Provider,{value:null},typeof n==`function`?n(e,r):R.cloneElement(R.Children.only(n),r))},t}(R.Component);Ts.contextType=_s,Ts.propTypes={};function Es(){}Ts.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Es,onEntering:Es,onEntered:Es,onExit:Es,onExiting:Es,onExited:Es},Ts.UNMOUNTED=bs,Ts.EXITED=xs,Ts.ENTERING=Ss,Ts.ENTERED=Cs,Ts.EXITING=ws;var Ds=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ps(e,t)})},Os=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return hs(e,t)})},ks=function(e){ds(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&vs(e),r&&(this.appliedClasses[t][n]=r,Ds(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Os(e,r),i&&Os(e,i),a&&Os(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ls(e,[`classNames`]);return R.createElement(Ts,S({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(R.Component);ks.defaultProps={classNames:``},ks.propTypes={};function As(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function js(e,t){var n=function(e){return t&&(0,R.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&R.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Ms(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function Ns(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ps(e,t){return js(e.children,function(n){return(0,R.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Ns(n,`appear`,e),enter:Ns(n,`enter`,e),exit:Ns(n,`exit`,e)})})}function Fs(e,t,n){var r=js(e.children),i=Ms(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,R.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,R.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Ns(o,`exit`,e),enter:Ns(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,R.cloneElement)(o,{in:!1}):c&&s&&(0,R.isValidElement)(l)&&(i[a]=(0,R.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Ns(o,`exit`,e),enter:Ns(o,`enter`,e)}))}}),i}var Is=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ls={component:`div`,childFactory:function(e){return e}},Rs=function(e){ds(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(As(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Ps(e,r):Fs(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=js(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=S({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ls(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Is(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?R.createElement(_s.Provider,{value:i},a):R.createElement(_s.Provider,{value:i},R.createElement(t,r,a))},t}(R.Component);Rs.propTypes={},Rs.defaultProps=Ls;var zs=e=>e.scrollTop;function Bs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Vs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Hs(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 Us(...e){let t=R.useRef(void 0),n=R.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 R.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Ws=Us;function Gs(e){return`scale(${e}, ${e**2})`}var Ks={entering:{opacity:1,transform:Gs(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Gs(.75)},exited:{opacity:0,transform:Gs(.75)}},qs={opacity:0,transform:Gs(.75),visibility:`hidden`},Js=R.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=ss(),_=R.useRef(),v=fo(),y=R.useRef(null),b=Ws(y,cs(i),t),x=Bs(y,l),S=Bs(y,(e,t)=>{zs(e);let{duration:n,delay:r,easing:i}=Hs({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=Bs(y,c),w=Bs(y,f),T=Bs(y,e=>{let{duration:t,delay:n,easing:r}=Hs({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=Gs(.75),u&&u(e)}),E=Bs(y,e=>{e.style.transition=``,d&&d(e)});return(0,B.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=Vs(e,o,Ks,qs,p,i.props.style);return R.cloneElement(i,{style:r,ref:b,...n})}})});Js&&(Js.muiSupportAuto=!0);function Ys(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Xs(e){let t=Qo(e);return t.body===e?es(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Zs(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Qs(e){return parseFloat(es(e).getComputedStyle(e).paddingRight)||0}function $s(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 ec(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!$s(e);t&&n&&Zs(e,i)})}function tc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function nc(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Xs(r)){let e=Ys(es(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Qs(r)+e}px`;let t=Qo(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Qs(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Qo(r).body;else{let t=r.parentElement,n=es(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 rc(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var ic=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&&Zs(e.modalRef,!1);let r=rc(t);ec(t,e.mount,e.modalRef,r,!0);let i=tc(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=tc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=nc(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=tc(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&&Zs(e.modalRef,t),ec(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&&Zs(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ac(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 oc=ac;function sc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var cc=sc,lc=`data-mui-focusable`;function uc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${lc}]`):null}var dc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function fc(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 pc(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`||pc(e))}function hc(e){let t=[],n=[];return Array.from(e.querySelectorAll(dc)).forEach((e,r)=>{let i=fc(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 gc(){return!0}function q(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=hc,isEnabled:o=gc,open:s}=e,c=R.useRef(!1),l=R.useRef(null),u=R.useRef(null),d=R.useRef(null),f=R.useRef(null),p=R.useRef(!1),m=R.useRef(null),h=Us(cs(t),m),g=R.useRef(null);R.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),R.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=cc(Qo(m.current)),t=uc(m.current)??m.current;return oc(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]),R.useEffect(()=>{if(!s||!m.current)return;let e=Qo(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&cc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=cc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(oc(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=cc(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,B.jsxs)(R.Fragment,{children:[(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),R.cloneElement(t,{ref:h,onFocus:_}),(0,B.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function _c(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function vc(e){return typeof e==`function`?e():e}var yc=R.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=R.useState(null),s=Us(R.isValidElement(n)?cs(n):null,t);if(Yr(()=>{i||o(vc(r)||document.body)},[r,i]),Yr(()=>{if(a&&!i)return _c(t,a),()=>{_c(t,null)}},[t,a,i]),i){if(R.isValidElement(n)){let e={ref:s};return R.cloneElement(n,e)}return n}return a&&ys.createPortal(n,a)}),bc=Mi;function xc(e,t,n){return e===void 0||Jo(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Sc(e,t,n){return typeof e==`function`?e(t,n):e}function Cc(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 wc(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 Tc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=V(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=Cc({...i,...r}),s=wc(r),c=wc(i),l=t(o),u=V(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 Ec(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=Sc(d[e],i),{props:{component:h,...g},internalRef:_}=Tc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Us(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,xc(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 Dc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Oc={opacity:0,visibility:`hidden`},kc=R.forwardRef(function(e,t){let n=fo(),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=R.useRef(null),y=Ws(v,cs(o),t),b=Bs(v,d),x=Bs(v,(e,t)=>{zs(e);let r=Hs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Bs(v,u),C=Bs(v,m),w=Bs(v,e=>{let t=Hs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Bs(v,e=>{e.style.transition=``,p&&p(e)});return(0,B.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=Vs(e,c,Dc,Oc,h,o.props.style);return R.cloneElement(o,{style:r,ref:y,...n})}})});function Ac(e){return Pr(`MuiBackdrop`,e)}Fr(`MuiBackdrop`,[`root`,`invisible`]);var jc=e=>{let{classes:t,invisible:n}=e;return $i({root:[`root`,n&&`invisible`]},Ac,t)},Mc=K(`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`}}]}),Nc=R.forwardRef(function(e,t){let n=Yo({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=jc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Ec(`root`,{elementType:Mc,externalForwardedProps:_,className:V(g.root,i),ownerState:h}),[b,x]=Ec(`transition`,{elementType:kc,externalForwardedProps:_,ownerState:h});return(0,B.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,B.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Pc(e){let t=R.useRef(e);return Yr(()=>{t.current=e}),R.useRef((...e)=>(0,t.current)(...e)).current}function Fc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Ic(e){return typeof e==`function`?e():e}function Lc(e){return e?e.props.hasOwnProperty(`in`):!1}var Rc=()=>{},zc=new ic;function Bc(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=R.useRef({}),f=R.useRef(null),p=R.useRef(null),m=Us(p,u),[h,g]=R.useState(!l),_=Lc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Qo(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{zc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Pc(()=>{let e=Ic(t)||y().body;zc.add(b(),e),p.current&&x()}),C=()=>zc.isTopModal(b()),w=Pc(e=>{f.current=e,e&&(l&&C()?x():p.current&&Zs(p.current,v))}),T=R.useCallback(()=>{zc.remove(b(),v)},[v]);R.useEffect(()=>()=>{T()},[T]),R.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=Cc(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:Fc(()=>{g(!1),a&&a()},s?.props.onEnter??Rc),onExited:Fc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Rc)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Vc(e){return Pr(`MuiModal`,e)}Fr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Hc=e=>{let{open:t,exited:n,classes:r}=e;return $i({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Vc,r)},Uc=K(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(bc(({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`}}]}))),Wc=K(Nc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Gc=R.forwardRef(function(e,t){let n=Yo({name:`MuiModal`,props:e}),{BackdropComponent:r=Wc,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,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:ee,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:ne,hasTransition:N}=Bc({...k,rootRef:t}),re={...k,exited:ne},ie=Hc(re),P={};if(c.props.tabIndex===void 0&&(P.tabIndex=`-1`),N){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}},[F,oe]=Ec(`root`,{ref:t,elementType:Uc,externalForwardedProps:{...ae,...O,component:u},getSlotProps:ee,ownerState:re,className:V(o,ie?.root,!re.open&&re.exited&&ie?.hidden)}),[se,ce]=Ec(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ae,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:V(i?.className,ie?.backdrop),ownerState:re});return!b&&!w&&(!N||ne)?null:(0,B.jsx)(yc,{ref:te,container:l,disablePortal:g,children:(0,B.jsxs)(F,{...oe,children:[!y&&r?(0,B.jsx)(se,{...ce}):null,(0,B.jsx)(q,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:R.cloneElement(c,P)})]})})});function J(e){return Pr(`MuiPaper`,e)}Fr(`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 Kc=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return $i({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},J,i)},qc=K(`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}`]]}})(bc(({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)`}}]}))),Jc=R.forwardRef(function(e,t){let n=Yo({props:e,name:`MuiPaper`}),r=fo(),{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=Kc(u);return(0,B.jsx)(qc,{as:a,ownerState:u,className:V(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(${oi(`#fff`,Ka(o))}, ${oi(`#fff`,Ka(o))})`}},...l.style}})});function Yc(e){return Pr(`MuiPopover`,e)}Fr(`MuiPopover`,[`root`,`paper`]);var Y=Sn;function Xc(e){return Pr(`MuiSvgIcon`,e)}Fr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Zc=e=>{let{color:t,fontSize:n,classes:r}=e;return $i({root:[`root`,t!==`inherit`&&`color${Y(t)}`,`fontSize${Y(n)}`]},Xc,r)},Qc=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(bc(({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}}]}))),$c=R.forwardRef(function(e,t){let n=Yo({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=R.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=Zc(m);return(0,B.jsxs)(Qc,{as:o,className:V(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,B.jsx)(`title`,{children:u}):null]})});$c.muiName=`SvgIcon`;function el(e,t){function n(t,n){return(0,B.jsx)($c,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=$c.muiName,R.memo(R.forwardRef(n))}var tl=ea,nl=Yr,rl=Ei,il=Pc;function al(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=>{al(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=V(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=V(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 sl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function cl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function ll(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function ul(e){return typeof e==`function`?e():e}var dl=e=>{let{classes:t}=e;return $i({root:[`root`],paper:[`paper`]},Yc,t)},fl=K(Gc,{name:`MuiPopover`,slot:`Root`})({}),pl=K(Jc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),ml=R.forwardRef(function(e,t){let n=Yo({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=R.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=dl(w),E=R.useCallback(()=>{if(s===`anchorPosition`)return o;let e=ul(i),t=(e&&e.nodeType===1?e:$o(C.current).body).getBoundingClientRect();return{top:t.top+sl(t,a.vertical),left:t.left+cl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=R.useCallback(e=>({vertical:sl(e,_.vertical),horizontal:cl(e,_.horizontal)}),[_.horizontal,_.vertical]),O=R.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:ll(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=ts(ul(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:ll(n)}},[i,s,E,D,f]),[k,ee]=R.useState(p),A=R.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,ee(!0)},[O]);R.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{ee(!1)};R.useEffect(()=>{p&&A()}),R.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),R.useEffect(()=>{if(!p)return;let e=Zo(()=>{A()}),t=ts(ul(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}},[N,re]=Ec(`transition`,{elementType:Js,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`&&!N.muiSupportAuto&&(M=void 0);let ie=u||(i?$o(ul(i)).body:void 0),[P,{slots:ae,slotProps:F,...oe}]=Ec(`root`,{ref:t,elementType:fl,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:V(T.root,l)}),[se,ce]=Ec(`paper`,{ref:C,className:T.paper,elementType:pl,externalForwardedProps:ne,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,B.jsx)(P,{...oe,...!Jo(P)&&{slots:ae,slotProps:F,disableScrollLock:x},children:(0,B.jsx)(N,{...re,timeout:M,children:(0,B.jsx)(se,{...ce,children:c})})})}),hl={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`},gl={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`},_l=s({background:()=>Vl,backgroundDark:()=>Hl,black:()=>tu,blueGrey100:()=>lu,blueGrey300:()=>uu,blueGrey600:()=>du,blueGrey900:()=>fu,border:()=>Jl,borderDark:()=>Xl,borderGray:()=>Zl,borderLight:()=>Yl,buttonBorder:()=>yu,buttonFocusOutline:()=>cu,buttonHoverBg:()=>bu,correct:()=>Cl,correctSecondary:()=>wl,correctTertiary:()=>Tl,correctWithIcon:()=>El,defaults:()=>X,disabled:()=>bl,disabledSecondary:()=>xl,disabledText:()=>Sl,dropdownBackground:()=>Wl,fadedPrimary:()=>Il,focusChecked:()=>iu,focusCheckedBorder:()=>au,focusUnchecked:()=>ou,focusUncheckedBorder:()=>su,incorrect:()=>Dl,incorrectSecondary:()=>kl,incorrectWithIcon:()=>Ol,keyBoardFocusIndicator:()=>vu,keypadButton:()=>pu,keypadButtonHover:()=>gu,keypadButtonOperator:()=>mu,keypadButtonOperatorHover:()=>_u,keypadEmptyPlaceholder:()=>hu,missing:()=>Al,missingWithIcon:()=>jl,primary:()=>Ml,primaryDark:()=>Pl,primaryLight:()=>Nl,primaryText:()=>Fl,secondary:()=>Ll,secondaryBackground:()=>Ul,secondaryDark:()=>zl,secondaryLight:()=>Rl,secondaryText:()=>Bl,surface:()=>Gl,tableGrid:()=>Ql,tableGridLight:()=>$l,tableStripe:()=>eu,tertiary:()=>Kl,tertiaryLight:()=>ql,text:()=>yl,transparent:()=>ru,v:()=>vl,visualElementsColors:()=>xu,white:()=>nu}),X={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:ca[500],CORRECT_SECONDARY:ca[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:aa[500],INCORRECT_SECONDARY:ia[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ia[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:gl[500],PRIMARY_LIGHT:gl[200],PRIMARY_DARK:gl[800],SECONDARY:hl.A400,SECONDARY_LIGHT:hl[200],SECONDARY_DARK:hl[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(X);var vl=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Z=vl(`pie`),yl=()=>Z(`text`,X.TEXT),bl=()=>Z(`disabled`,X.DISABLED),xl=()=>Z(`disabled-secondary`,X.DISABLED_SECONDARY),Sl=()=>Z(`disabled-text`,`text`,X.DISABLED_TEXT),Cl=()=>Z(`correct`,X.CORRECT),wl=()=>Z(`correct-secondary`,X.CORRECT_SECONDARY),Tl=()=>Z(`correct-tertiary`,X.CORRECT_TERTIARY),El=()=>Z(`correct-icon`,X.CORRECT_WITH_ICON),Dl=()=>Z(`incorrect`,X.INCORRECT),Ol=()=>Z(`incorrect-icon`,X.INCORRECT_WITH_ICON),kl=()=>Z(`incorrect-secondary`,X.INCORRECT_SECONDARY),Al=()=>Z(`missing`,X.MISSING),jl=()=>Z(`missing-icon`,X.MISSING_WITH_ICON),Ml=()=>Z(`primary`,X.PRIMARY),Nl=()=>Z(`primary-light`,X.PRIMARY_LIGHT),Pl=()=>Z(`primary-dark`,X.PRIMARY_DARK),Fl=()=>Z(`primary-text`,`text`,X.TEXT),Il=()=>Z(`faded-primary`,X.FADED_PRIMARY),Ll=()=>Z(`secondary`,X.SECONDARY),Rl=()=>Z(`secondary-light`,X.SECONDARY_LIGHT),zl=()=>Z(`secondary-dark`,X.SECONDARY_DARK),Bl=()=>Z(`secondary-text`,`text`,X.TEXT),Vl=()=>Z(`background`,X.BACKGROUND),Hl=()=>Z(`background-dark`,X.BACKGROUND_DARK),Ul=()=>Z(`secondary-background`,X.SECONDARY_BACKGROUND),Wl=()=>Z(`dropdown-background`,X.DROPDOWN_BACKGROUND),Gl=()=>Z(`surface`,X.SURFACE),Kl=()=>Z(`tertiary`,X.TERTIARY),ql=()=>Z(`tertiary-light`,X.TERTIARY_LIGHT),Jl=()=>Z(`border`,X.BORDER),Yl=()=>Z(`border-light`,X.BORDER_LIGHT),Xl=()=>Z(`border-dark`,X.BORDER_DARK),Zl=()=>Z(`border-gray`,X.BORDER_GRAY),Ql=()=>Z(`table-grid`,`text`,X.TABLE_GRID),$l=()=>Z(`table-grid-light`,`border-light`,X.TABLE_GRID_LIGHT),eu=()=>Z(`table-stripe`,`background-dark`,X.TABLE_STRIPE),tu=()=>Z(`black`,X.BLACK),nu=()=>Z(`white`,X.WHITE),ru=()=>X.TRANSPARENT,iu=()=>Z(`focus-checked`,X.FOCUS_CHECKED),au=()=>Z(`focus-checked-border`,X.FOCUS_CHECKED_BORDER),ou=()=>Z(`focus-unchecked`,X.FOCUS_UNCHECKED),su=()=>Z(`focus-unchecked-border`,X.FOCUS_UNCHECKED_BORDER),cu=()=>Z(`button-focus-outline`,X.BUTTON_FOCUS_OUTLINE),lu=()=>Z(`blue-grey-100`,X.BLUE_GREY100),uu=()=>Z(`blue-grey-300`,X.BLUE_GREY300),du=()=>Z(`blue-grey-600`,X.BLUE_GREY600),fu=()=>Z(`blue-grey-900`,X.BLUE_GREY900),pu=()=>Z(`keypad-button`,X.KEYPAD_BUTTON),mu=()=>Z(`keypad-button-operator`,X.KEYPAD_BUTTON_OPERATOR),hu=()=>Z(`keypad-empty-placeholder`,X.KEYPAD_EMPTY_PLACEHOLDER),gu=()=>Z(`keypad-button-hover`,X.KEYPAD_BUTTON_HOVER),_u=()=>Z(`keypad-button-operator-hover`,X.KEYPAD_BUTTON_OPERATOR_HOVER),vu=()=>Z(`keyboard-focus-indicator`,X.KEY_BOARD_FOCUS_INDICATOR),yu=()=>Z(`button-border`,X.BUTTON_BORDER),bu=()=>Z(`button-hover-bg`,X.BUTTON_HOVER_BG),xu={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Su=K(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Cu=K(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${bl()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Cl()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Dl()})`}}),wu=K(`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`}}),Tu=class extends R.Component{static propTypes={correctness:y.string,feedback:y.string};nodeRef=R.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,B.jsx)(ks,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,B.jsx)(wu,{ref:this.nodeRef,children:(0,B.jsx)(Su,{children:(0,B.jsx)(Cu,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,B.jsx)(`div`,{children:(0,B.jsx)(Rs,{children:this.renderFeedback()})})}},Eu=s({Correct:()=>Mu,Incorrect:()=>Nu,NothingSubmitted:()=>Fu,PartiallyCorrect:()=>Pu}),Du=_(`pie-libs:render-ui:response-indicators`),Ou=K(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),ku=K(ml)({cursor:`pointer`}),Au=K(`div`)({padding:`0`,borderRadius:`4px`}),ju=(e,t)=>{class n extends R.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Du(`[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,B.jsxs)(Ou,{hasFeedback:!!n,children:[(0,B.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,B.jsx)(e,{})}),n&&(0,B.jsx)(ku,{PaperComponent:Au,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,B.jsx)(Tu,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:y.string},n},Mu=ju(No,`correct`),Nu=ju(Bo,`incorrect`),Pu=ju(qo,`partially-correct`),Fu=ju(Wo,`nothing-submitted`);function Iu(e){return Pr(`MuiCollapse`,e)}Fr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Lu=e=>{let{orientation:t,classes:n}=e;return $i({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},Iu,n)},Ru=K(`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]}})(bc(({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`}}]}))),zu=K(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Bu=K(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Vu=R.forwardRef(function(e,t){let n=Yo({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=Fa.standard,TransitionComponent:x=Ts,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Lu(C),T=fo(),E=ss(),D=R.useRef(null),O=R.useRef(),k=typeof o==`number`?`${o}px`:o,ee=g===`horizontal`,A=ee?`width`:`height`,j=R.useRef(null),te=Ws(t,j),M=()=>D.current?D.current[ee?`clientWidth`:`clientHeight`]:0,ne=Bs(j,(e,t)=>{D.current&&ee&&(D.current.style.position=`absolute`),e.style[A]=k,u&&u(e,t)}),N=Bs(j,(e,t)=>{let n=M();D.current&&ee&&(D.current.style.position=``);let{duration:r,easing:i}=Hs({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)}),re=Bs(j,(e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),ie=Bs(j,e=>{e.style[A]=`${M()}px`,p&&p(e)}),P=Bs(j,m),ae=Bs(j,e=>{let t=M(),{duration:n,easing:r}=Hs({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]=k,e.style.transitionTimingFunction=r,h&&h(e)}),F=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},oe={slots:_,slotProps:v,component:s},[se,ce]=Ec(`root`,{ref:te,className:V(w.root,a),elementType:Ru,externalForwardedProps:oe,ownerState:C,additionalProps:{style:{[ee?`minWidth`:`minHeight`]:k,...y}}}),[le,ue]=Ec(`wrapper`,{ref:D,className:w.wrapper,elementType:zu,externalForwardedProps:oe,ownerState:C}),[de,fe]=Ec(`wrapperInner`,{className:w.wrapperInner,elementType:Bu,externalForwardedProps:oe,ownerState:C});return(0,B.jsx)(x,{in:l,onEnter:ne,onEntered:re,onEntering:N,onExit:ie,onExited:P,onExiting:ae,addEndListener:F,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,B.jsx)(se,{...ce,className:V(ce.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,B.jsx)(le,{...ue,ownerState:r,children:(0,B.jsx)(de,{...fe,ownerState:r,children:i})})})}})});Vu&&(Vu.muiSupportAuto=!0);var Hu=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,Uu=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`);function Wu(e){if(typeof window>`u`||window.MathJax?.typesetPromise)return Promise.resolve();let t=globalThis,n=t[Uu];if(n)return n;let r=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[]},tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i,enableAssistiveMml:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||Hu,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)});return t[Uu]=r,r}function Gu(){let e=window.MathJax?.startup?.document;if(typeof e?.assistiveMml==`function`)try{e.assistiveMml().updateDocument?.()}catch(e){console.warn(`[mathjax-renderer] Failed to attach assistive MathML:`,e)}}function Ku(e={}){return async t=>{if(await Wu(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t]),Gu()}}var qu=`@pie-lib/math-rendering`,Ju=null;function Yu(){return Ju||=Ku({accessibility:!0,useSingleDollar:!0}),Ju}function Xu(){if(typeof window>`u`)return null;let e=window[qu];return typeof e?.renderMath==`function`?e:null}var Zu=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=Xu();return r?await r.renderMath?.(n):await Yu()(n),t?n.innerHTML:void 0},Qu=K(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),$u=K(Vu)(({theme:e})=>({paddingTop:e.spacing(2)})),ed=class extends R.Component{static propTypes={className:y.string,children:y.object,labels:y.shape({visible:y.string,hidden:y.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){Zu(this.root)}componentDidUpdate(){Zu(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,B.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,B.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,B.jsx)(Qu,{children:r})}),(0,B.jsx)($u,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}};function td(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var nd=class e{static create(){return new e}static use(){let t=rs(e.create).current,[n,r]=R.useState(!1);return t.shouldMount=n,t.setShouldMount=r,R.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=id(),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 rd(){return nd.use()}function id(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function ad(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=R.useState(!1),f=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=V(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),R.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,B.jsx)(`span`,{className:f,style:p,children:(0,B.jsx)(`span`,{className:m})})}var od=Fr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),sd=550,cd=Pt`
49
49
  0% {
50
50
  transform: scale(0);
51
51
  opacity: 0.1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/match-list",
3
- "version": "7.1.2-next.17",
3
+ "version": "7.1.2-next.18",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,25 +11,24 @@
11
11
  "@dnd-kit/core": "6.3.1",
12
12
  "@dnd-kit/modifiers": "9.0.0",
13
13
  "@emotion/react": "^11.14.0",
14
- "@emotion/style": "^0.8.0",
15
14
  "@mui/icons-material": "^7.3.4",
16
15
  "@mui/material": "^7.3.4",
17
- "@pie-lib/correct-answer-toggle": "5.0.0-next.47",
18
- "@pie-lib/drag": "4.1.0-next.45",
19
- "@pie-lib/render-ui": "6.2.0-next.45",
16
+ "@pie-lib/correct-answer-toggle": "5.0.0-next.48",
17
+ "@pie-lib/drag": "4.1.0-next.46",
18
+ "@pie-lib/render-ui": "6.2.0-next.46",
20
19
  "debug": "^4.1.1",
21
20
  "prop-types": "^15.8.1",
22
21
  "@pie-element/shared-lodash": "0.1.1-next.2",
23
22
  "@pie-element/shared-feedback": "0.1.1-next.0",
24
- "@pie-element/shared-controller-utils": "0.1.1-next.2",
23
+ "@pie-element/shared-controller-utils": "0.1.1-next.3",
25
24
  "@pie-element/shared-player-events": "0.1.1-next.1",
26
- "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.1",
25
+ "@pie-element/shared-math-rendering-mathjax": "0.1.1-next.2",
27
26
  "react": "^18.2.0",
28
27
  "react-dom": "^18.2.0"
29
28
  },
30
29
  "peerDependencies": {
31
- "react": "^18.0.0",
32
- "react-dom": "^18.0.0"
30
+ "react": "^18.2.0 || ^19.0.0",
31
+ "react-dom": "^18.2.0 || ^19.0.0"
33
32
  },
34
33
  "exports": {
35
34
  ".": {
@@ -57,7 +56,8 @@
57
56
  "./runtime-support": {
58
57
  "types": "./dist/runtime-support.d.ts",
59
58
  "default": "./dist/runtime-support.js"
60
- }
59
+ },
60
+ "./package.json": "./package.json"
61
61
  },
62
62
  "type": "module",
63
63
  "main": "./dist/index.js",