@pie-element/match-list 8.0.2 → 8.0.3-next.20261007075859
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/delivery/index.js +2049 -2010
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/index.iife.js +37 -37
- package/package.json +10 -10
package/dist/index.iife.js
CHANGED
|
@@ -47,42 +47,42 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
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,H.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})]});Lo.propTypes={bgFill:x.string.isRequired,fgFill:x.string.isRequired,borderFill:x.string.isRequired};var Ro=K(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),zo=({open:e,size:t})=>(0,H.jsx)(Ro,{size:t,children:e?(0,H.jsx)(Io,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,H.jsx)(Lo,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});zo.propTypes={open:x.bool,size:x.string},zo.defaultProps={open:!1};var Bo=({fill:e})=>(0,H.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,H.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,H.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})]});Bo.propTypes={fill:x.string.isRequired};var Vo=({fill:e})=>(0,H.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,H.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,H.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,H.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});Vo.propTypes={fill:x.string.isRequired};var Ho=Mo(Bo,Vo);Ho.propTypes={iconSet:x.oneOf([`emoji`,`check`]),shape:x.oneOf([`round`,`square`]),category:x.oneOf([`feedback`,void 0]),open:x.bool,fg:x.string,bg:x.string,size:x.oneOfType([x.string,x.number])},Ho.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Uo=({fill:e})=>(0,H.jsxs)(`g`,{children:[(0,H.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,H.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Uo.propTypes={fill:x.string.isRequired};var Wo=({fill:e})=>(0,H.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});Wo.propTypes={fill:x.string.isRequired};var Go=({fill:e})=>(0,H.jsxs)(`g`,{children:[(0,H.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,H.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,H.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
48
|
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Go.propTypes={fill:x.string.isRequired};var Ko=class extends V.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,H.jsxs)(Eo,{children:[(0,H.jsx)(Wo,{fill:n}),(0,H.jsx)(Uo,{fill:t})]}),emoji:(0,H.jsxs)(Eo,{children:[(0,H.jsx)(Wo,{fill:n}),(0,H.jsx)(Go,{fill:t})]}),feedback:{check:(0,H.jsxs)(Eo,{children:[(0,H.jsx)(Wo,{fill:n}),(0,H.jsx)(Go,{fill:t})]}),emoji:(0,H.jsxs)(Eo,{children:[(0,H.jsx)(Wo,{fill:n}),(0,H.jsx)(Go,{fill:t})]}),square:{check:(0,H.jsxs)(Eo,{children:[(0,H.jsx)(Wo,{fill:n}),(0,H.jsx)(Uo,{fill:t})]}),emoji:(0,H.jsxs)(Eo,{children:[(0,H.jsx)(Wo,{fill:n}),(0,H.jsx)(Go,{fill:t})]}),open:{check:(0,H.jsx)(Eo,{children:(0,H.jsx)(Uo,{fill:n})}),emoji:(0,H.jsx)(Eo,{children:(0,H.jsx)(Go,{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]}};Ko.propTypes={iconSet:x.oneOf([`emoji`,`check`,void 0]),shape:x.oneOf([`square`,void 0]),category:x.oneOf([`feedback`,void 0]),open:x.bool,fg:x.string,bg:x.string},Ko.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var qo=({fill:e})=>(0,H.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,H.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,H.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});qo.propTypes={fill:x.string.isRequired};var Jo=({fill:e})=>(0,H.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,H.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,H.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,H.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})]});Jo.propTypes={fill:x.string.isRequired};var Yo=Mo(qo,Jo);Yo.propTypes={iconSet:x.oneOf([`emoji`,`check`]),shape:x.oneOf([`round`,`square`]),category:x.oneOf([`feedback`,void 0]),open:x.bool,fg:x.string,bg:x.string,size:x.oneOfType([x.string,x.number])},Yo.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Xo(e){return typeof e==`string`}function Zo(e){return wi(e)}function Qo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var $o=Qo;function es(e){return e&&e.ownerDocument||document}var ts=es;function ns(e){return es(e).defaultView||window}var rs=ns,is={};function as(e,t){let n=V.useRef(is);return n.current===is&&(n.current=e(t)),n}var os=[];function ss(e){V.useEffect(e,os)}var cs=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 ls(){let e=as(cs.create).current;return ss(e.disposeEffect),e}function us(e){return e?.ref||null}function ds(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 fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fs(e,t)}function ps(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}function ms(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function hs(e,t){e.classList?e.classList.add(t):ms(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function gs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function _s(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=gs(e.className,t):e.setAttribute(`class`,gs(e.className&&e.className.baseVal||``,t))}var vs={disabled:!1},ys=V.createContext(null),bs=function(e){return e.scrollTop},xs=l(h()),Ss=`unmounted`,Cs=`exited`,ws=`entering`,Ts=`entered`,Es=`exiting`,Ds=function(e){ps(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=Cs,r.appearStatus=ws):o=Ts:o=t.unmountOnExit||t.mountOnEnter?Ss:Cs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Cs}: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=ws):(n===`entering`||n===`entered`)&&(t=Es)}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:xs.findDOMNode(this);n&&bs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Ss})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[xs.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||vs.disabled){this.safeSetState({status:Ts},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:ws},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Ts},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:xs.findDOMNode(this);if(!t||vs.disabled){this.safeSetState({status:Cs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Es},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Cs},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:xs.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=ds(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return V.createElement(ys.Provider,{value:null},typeof n==`function`?n(e,r):V.cloneElement(V.Children.only(n),r))},t}(V.Component);Ds.contextType=ys,Ds.propTypes={};function Os(){}Ds.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Os,onEntering:Os,onEntered:Os,onExit:Os,onExiting:Os,onExited:Os},Ds.UNMOUNTED=Ss,Ds.EXITED=Cs,Ds.ENTERING=ws,Ds.ENTERED=Ts,Ds.EXITING=Es;var ks=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return hs(e,t)})},As=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return _s(e,t)})},js=function(e){ps(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&&bs(e),r&&(this.appliedClasses[t][n]=r,ks(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&&As(e,r),i&&As(e,i),a&&As(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ds(e,[`classNames`]);return V.createElement(Ds,w({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(V.Component);js.defaultProps={classNames:``},js.propTypes={};function Ms(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ns(e,t){var n=function(e){return t&&(0,V.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&V.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Ps(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 Fs(e,t,n){return n[t]==null?e.props[t]:n[t]}function Is(e,t){return Ns(e.children,function(n){return(0,V.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Fs(n,`appear`,e),enter:Fs(n,`enter`,e),exit:Fs(n,`exit`,e)})})}function Ls(e,t,n){var r=Ns(e.children),i=Ps(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,V.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,V.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,V.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Fs(o,`exit`,e),enter:Fs(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,V.cloneElement)(o,{in:!1}):c&&s&&(0,V.isValidElement)(l)&&(i[a]=(0,V.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Fs(o,`exit`,e),enter:Fs(o,`enter`,e)}))}}),i}var Rs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},zs={component:`div`,childFactory:function(e){return e}},Bs=function(e){ps(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Ms(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?Is(e,r):Ls(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Ns(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=w({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ds(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Rs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?V.createElement(ys.Provider,{value:i},a):V.createElement(ys.Provider,{value:i},V.createElement(t,r,a))},t}(V.Component);Bs.propTypes={},Bs.defaultProps=zs;var Vs=e=>e.scrollTop;function Hs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Us(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Ws(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 Gs(...e){let t=V.useRef(void 0),n=V.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 V.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Ks=Gs;function qs(e){return`scale(${e}, ${e**2})`}var Js={entering:{opacity:1,transform:qs(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:qs(.75)},exited:{opacity:0,transform:qs(.75)}},Ys={opacity:0,transform:qs(.75),visibility:`hidden`},Xs=V.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=ls(),_=V.useRef(),v=mo(),y=V.useRef(null),b=Ks(y,us(i),t),x=Hs(y,l),S=Hs(y,(e,t)=>{Vs(e);let{duration:n,delay:r,easing:i}=Ws({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=Hs(y,c),w=Hs(y,f),T=Hs(y,e=>{let{duration:t,delay:n,easing:r}=Ws({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=qs(.75),u&&u(e)}),E=Hs(y,e=>{e.style.transition=``,d&&d(e)});return(0,H.jsx)(Ds,{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=Us(e,o,Js,Ys,p,i.props.style);return V.cloneElement(i,{style:r,ref:b,...n})}})});Xs&&(Xs.muiSupportAuto=!0);function Zs(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Qs(e){let t=es(e);return t.body===e?ns(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function $s(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function ec(e){return parseFloat(ns(e).getComputedStyle(e).paddingRight)||0}function tc(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 nc(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!tc(e);t&&n&&$s(e,i)})}function rc(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function ic(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Qs(r)){let e=Zs(ns(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${ec(r)+e}px`;let t=es(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${ec(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=es(r).body;else{let t=r.parentElement,n=ns(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 ac(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var oc=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&&$s(e.modalRef,!1);let r=ac(t);nc(t,e.mount,e.modalRef,r,!0);let i=rc(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=rc(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=ic(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=rc(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&&$s(e.modalRef,t),nc(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&&$s(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function sc(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 cc=sc;function lc(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var uc=lc,dc=`data-mui-focusable`;function fc(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${dc}]`):null}var pc=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function mc(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 hc(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 gc(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||hc(e))}function q(e){let t=[],n=[];return Array.from(e.querySelectorAll(pc)).forEach((e,r)=>{let i=mc(e);i===-1||!gc(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 _c(){return!0}function vc(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=q,isEnabled:o=_c,open:s}=e,c=V.useRef(!1),l=V.useRef(null),u=V.useRef(null),d=V.useRef(null),f=V.useRef(null),p=V.useRef(!1),m=V.useRef(null),h=Gs(us(t),m),g=V.useRef(null);V.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),V.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=uc(es(m.current)),t=fc(m.current)??m.current;return cc(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]),V.useEffect(()=>{if(!s||!m.current)return;let e=es(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&uc(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=uc(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(cc(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=uc(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,H.jsxs)(V.Fragment,{children:[(0,H.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),V.cloneElement(t,{ref:h,onFocus:_}),(0,H.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function yc(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function bc(e){return typeof e==`function`?e():e}var xc=V.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=V.useState(null),s=Gs(V.isValidElement(n)?us(n):null,t);if(Yr(()=>{i||o(bc(r)||document.body)},[r,i]),Yr(()=>{if(a&&!i)return yc(t,a),()=>{yc(t,null)}},[t,a,i]),i){if(V.isValidElement(n)){let e={ref:s};return V.cloneElement(n,e)}return n}return a&&xs.createPortal(n,a)}),Sc=Pi;function Cc(e,t,n){return e===void 0||Xo(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function wc(e,t,n){return typeof e==`function`?e(t,n):e}function Tc(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 Ec(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 Dc(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=U(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=Tc({...i,...r}),s=Ec(r),c=Ec(i),l=t(o),u=U(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 Oc(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=wc(d[e],i),{props:{component:h,...g},internalRef:_}=Dc({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Gs(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Cc(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var kc={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Ac={opacity:0,visibility:`hidden`},jc=V.forwardRef(function(e,t){let n=mo(),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=V.useRef(null),y=Ks(v,us(o),t),b=Hs(v,d),x=Hs(v,(e,t)=>{Vs(e);let r=Ws({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Hs(v,u),C=Hs(v,m),w=Hs(v,e=>{let t=Ws({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Hs(v,e=>{e.style.transition=``,p&&p(e)});return(0,H.jsx)(Ds,{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=Us(e,c,kc,Ac,h,o.props.style);return V.cloneElement(o,{style:r,ref:y,...n})}})});function Mc(e){return Pr(`MuiBackdrop`,e)}Fr(`MuiBackdrop`,[`root`,`invisible`]);var Nc=e=>{let{classes:t,invisible:n}=e;return ta({root:[`root`,n&&`invisible`]},Mc,t)},Pc=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`}}]}),Fc=V.forwardRef(function(e,t){let n=Zo({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=Nc(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=Oc(`root`,{elementType:Pc,externalForwardedProps:_,className:U(g.root,i),ownerState:h}),[b,x]=Oc(`transition`,{elementType:jc,externalForwardedProps:_,ownerState:h});return(0,H.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,H.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function Ic(e){let t=V.useRef(e);return Yr(()=>{t.current=e}),V.useRef((...e)=>(0,t.current)(...e)).current}function Lc(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Rc(e){return typeof e==`function`?e():e}function zc(e){return e?e.props.hasOwnProperty(`in`):!1}var Bc=()=>{},Vc=new oc;function Hc(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=V.useRef({}),f=V.useRef(null),p=V.useRef(null),m=Gs(p,u),[h,g]=V.useState(!l),_=zc(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>es(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Vc.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=Ic(()=>{let e=Rc(t)||y().body;Vc.add(b(),e),p.current&&x()}),C=()=>Vc.isTopModal(b()),w=Ic(e=>{f.current=e,e&&(l&&C()?x():p.current&&$s(p.current,v))}),T=V.useCallback(()=>{Vc.remove(b(),v)},[v]);V.useEffect(()=>()=>{T()},[T]),V.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=Tc(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:Lc(()=>{g(!1),a&&a()},s?.props.onEnter??Bc),onExited:Lc(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??Bc)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Uc(e){return Pr(`MuiModal`,e)}Fr(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Wc=e=>{let{open:t,exited:n,classes:r}=e;return ta({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Uc,r)},Gc=K(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Sc(({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`}}]}))),J=K(Fc,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Kc=V.forwardRef(function(e,t){let n=Zo({name:`MuiModal`,props:e}),{BackdropComponent:r=J,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:A,getBackdropProps:j,getTransitionProps:M,portalRef:ee,isTopModal:N,exited:te,hasTransition:P}=Hc({...k,rootRef:t}),ne={...k,exited:te},re=Wc(ne),F={};if(c.props.tabIndex===void 0&&(F.tabIndex=`-1`),P){let{onEnter:e,onExited:t}=M();F.onEnter=e,F.onExited=t}let I={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ie,ae]=Oc(`root`,{ref:t,elementType:Gc,externalForwardedProps:{...I,...O,component:u},getSlotProps:A,ownerState:ne,className:U(o,re?.root,!ne.open&&ne.exited&&re?.hidden)}),[L,oe]=Oc(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>j({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:U(i?.className,re?.backdrop),ownerState:ne});return!b&&!w&&(!P||te)?null:(0,H.jsx)(xc,{ref:ee,container:l,disablePortal:g,children:(0,H.jsxs)(ie,{...ae,children:[!y&&r?(0,H.jsx)(L,{...oe}):null,(0,H.jsx)(vc,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:N,open:w,children:V.cloneElement(c,F)})]})})});function qc(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 Jc=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return ta({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},qc,i)},Yc=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}`]]}})(Sc(({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)`}}]}))),Xc=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiPaper`}),r=mo(),{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=Jc(u);return(0,H.jsx)(Yc,{as:a,ownerState:u,className:U(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`,Ja(o))}, ${oi(`#fff`,Ja(o))})`}},...l.style}})});function Zc(e){return Pr(`MuiPopover`,e)}Fr(`MuiPopover`,[`root`,`paper`]);var Qc=Sn;function $c(e){return Pr(`MuiSvgIcon`,e)}Fr(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var el=e=>{let{color:t,fontSize:n,classes:r}=e;return ta({root:[`root`,t!==`inherit`&&`color${Qc(t)}`,`fontSize${Qc(n)}`]},$c,r)},tl=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Qc(n.color)}`],t[`fontSize${Qc(n.fontSize)}`]]}})(Sc(({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}}]}))),nl=V.forwardRef(function(e,t){let n=Zo({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=V.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=el(m);return(0,H.jsxs)(tl,{as:o,className:U(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,H.jsx)(`title`,{children:u}):null]})});nl.muiName=`SvgIcon`;function rl(e,t){function n(t,n){return(0,H.jsx)(nl,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=nl.muiName,V.memo(V.forwardRef(n))}var il=na,al=Yr,ol=Oi,sl=Ic;function cl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function ll(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{cl(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=U(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=U(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 ul(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function dl(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function fl(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function pl(e){return typeof e==`function`?e():e}var ml=e=>{let{classes:t}=e;return ta({root:[`root`],paper:[`paper`]},Zc,t)},hl=K(Kc,{name:`MuiPopover`,slot:`Root`})({}),gl=K(Xc,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),_l=V.forwardRef(function(e,t){let n=Zo({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=V.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=ml(w),E=V.useCallback(()=>{if(s===`anchorPosition`)return o;let e=pl(i),t=(e&&e.nodeType===1?e:ts(C.current).body).getBoundingClientRect();return{top:t.top+ul(t,a.vertical),left:t.left+dl(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=V.useCallback(e=>({vertical:ul(e,_.vertical),horizontal:dl(e,_.horizontal)}),[_.horizontal,_.vertical]),O=V.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:fl(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=rs(pl(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:fl(n)}},[i,s,E,D,f]),[k,A]=V.useState(p),j=V.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,A(!0)},[O]);V.useEffect(()=>(x&&window.addEventListener(`scroll`,j),()=>window.removeEventListener(`scroll`,j)),[i,x,j]);let M=()=>{j()},ee=()=>{A(!1)};V.useEffect(()=>{p&&j()}),V.useImperativeHandle(r,()=>p?{updatePosition:()=>{j()}}:null,[p,j]),V.useEffect(()=>{if(!p)return;let e=$o(()=>{j()}),t=rs(pl(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,j]);let N=y,te={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[P,ne]=Oc(`transition`,{elementType:Xs,externalForwardedProps:te,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),ee()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!P.muiSupportAuto&&(N=void 0);let re=u||(i?ts(pl(i)).body:void 0),[F,{slots:I,slotProps:ie,...ae}]=Oc(`root`,{ref:t,elementType:hl,externalForwardedProps:{...te,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:ll(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:re,open:p},ownerState:w,className:U(T.root,l)}),[L,oe]=Oc(`paper`,{ref:C,className:T.paper,elementType:gl,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,H.jsx)(F,{...ae,...!Xo(F)&&{slots:I,slotProps:ie,disableScrollLock:x},children:(0,H.jsx)(P,{...ne,timeout:N,children:(0,H.jsx)(L,{...oe,children:c})})})});function vl(e,t){this.v=e,this.k=t}function yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bl(e){if(Array.isArray(e))return e}function xl(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Sl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
49
49
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cl(e,t){return bl(e)||xl(e,t)||wl(e,t)||Sl()}function wl(e,t){if(e){if(typeof e==`string`)return yl(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yl(e,t):void 0}}function Tl(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof vl;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}Tl.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Tl.prototype.next=function(e){return this._invoke(`next`,e)},Tl.prototype.throw=function(e){return this._invoke(`throw`,e)},Tl.prototype.return=function(e){return this._invoke(`return`,e)};var El=Object.entries,Dl=Object.setPrototypeOf,Ol=Object.isFrozen,kl=Object.getPrototypeOf,Al=Object.getOwnPropertyDescriptor,jl=Object.freeze,Ml=Object.seal,Nl=Object.create,Pl=typeof Reflect<`u`&&Reflect,Fl=Pl.apply,Il=Pl.construct;jl||=function(e){return e},Ml||=function(e){return e},Fl||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},Il||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var Ll=ru(Array.prototype.forEach);Array.prototype.indexOf;var Rl=ru(Array.prototype.lastIndexOf),zl=ru(Array.prototype.pop),Bl=ru(Array.prototype.push);Array.prototype.slice;var Vl=ru(Array.prototype.splice),Hl=Array.isArray,Ul=ru(String.prototype.toLowerCase),Wl=ru(String.prototype.toString),Gl=ru(String.prototype.match),Kl=ru(String.prototype.replace),ql=ru(String.prototype.indexOf),Jl=ru(String.prototype.trim),Yl=ru(Number.prototype.toString),Xl=ru(Boolean.prototype.toString),Zl=typeof BigInt>`u`?null:ru(BigInt.prototype.toString),Ql=typeof Symbol>`u`?null:ru(Symbol.prototype.toString),$l=ru(Object.prototype.hasOwnProperty),eu=ru(Object.prototype.toString),tu=ru(RegExp.prototype.test),nu=iu(TypeError);function ru(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Fl(e,t,r)}}function iu(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return Il(e,n)}}function Y(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ul;if(Dl&&Dl(e,null),!Hl(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Ol(t)||(t[r]=e),i=e)}e[i]=!0}return e}function au(e){for(let t=0;t<e.length;t++)$l(e,t)||(e[t]=null);return e}function ou(e){let t=Nl(null);for(let r of El(e)){var n=Cl(r,2);let i=n[0],a=n[1];$l(e,i)&&(Hl(a)?t[i]=au(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=ou(a):t[i]=a)}return t}function su(e){switch(typeof e){case`string`:return e;case`number`:return Yl(e);case`boolean`:return Xl(e);case`bigint`:return Zl?Zl(e):`0`;case`symbol`:return Ql?Ql(e):`Symbol()`;case`undefined`:return eu(e);case`function`:case`object`:{if(e===null)return eu(e);let t=e,n=cu(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:eu(e)}return eu(e)}default:return eu(e)}}function cu(e,t){for(;e!==null;){let n=Al(e,t);if(n){if(n.get)return ru(n.get);if(typeof n.value==`function`)return ru(n.value)}e=kl(e)}function n(){return null}return n}function lu(e){try{return tu(e,``),!0}catch{return!1}}var uu=jl(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),du=jl(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),fu=jl([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),pu=jl([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),mu=jl(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),hu=jl([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),gu=jl([`#text`]),_u=jl(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),vu=jl(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),yu=jl(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),bu=jl([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),xu=Ml(/{{[\w\W]*|^[\w\W]*}}/g),Su=Ml(/<%[\w\W]*|^[\w\W]*%>/g),Cu=Ml(/\${[\w\W]*/g),wu=Ml(/^data-[\-\w.\u00B7-\uFFFF]+$/),Tu=Ml(/^aria-[\-\w]+$/),Eu=Ml(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Du=Ml(/^(?:\w+script|data):/i),Ou=Ml(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ku=Ml(/^html$/i),Au=Ml(/^[a-z][.\w]*(-[.\w]+)+$/i),ju=Ml(/<[/\w!]/g),Mu=Ml(/<[/\w]/g),Nu=Ml(/<\/no(script|embed|frames)/i),Pu=Ml(/\/>/i),Fu={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Iu=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],Lu=jl(Y({},Iu)),Ru=function(){let e={};return Ll(Iu,t=>{e[t]=Ml(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),jl(e)}(),zu=function(){return typeof window>`u`?null:window},Bu=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Vu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Hu=function(e,t,n,r){return $l(e,t)&&Hl(e[t])?Y(r.base?ou(r.base):{},e[t],r.transform):n},Uu=function(e,t,n){let r=$l(e,t)?e[t]:void 0;return r&&typeof r==`object`?ou(r):n()};function Wu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zu(),t=e=>Wu(e);if(t.version=`3.4.16`,t.removed=[],!e||!e.document||e.document.nodeType!==Fu.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=cu(d,`cloneNode`),p=cu(d,`remove`),m=cu(d,`removeAttributeNode`),h=cu(d,`nextSibling`),g=cu(d,`childNodes`),_=cu(d,`parentNode`),v=cu(d,`shadowRoot`),y=cu(d,`attributes`),b=o&&o.prototype?cu(o.prototype,`nodeType`):null,x=o&&o.prototype?cu(o.prototype,`nodeName`):null,S=o&&o.prototype?cu(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,D,O=!1,k=0,A=function(){if(k>0)throw nu(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},j=function(e){A(),k++;try{return T.createHTML(e)}finally{k--}},M=function(e){A(),k++;try{return T.createScriptURL(e)}finally{k--}},ee=function(){return O||=(D=Bu(u,i),!0),D},N=n,te=N.implementation,P=N.createNodeIterator,ne=N.createDocumentFragment,re=N.getElementsByTagName,F=r.importNode,I=Vu();t.isSupported=typeof El==`function`&&typeof _==`function`&&te&&te.createHTMLDocument!==void 0;let ie=xu,ae=Su,L=Cu,oe=wu,se=Tu,ce=Du,R=Ou,le=Au,ue=Eu,z=null,de=Y({},[...uu,...du,...fu,...mu,...gu]),B=null,fe=Y({},[..._u,...vu,...yu,...bu]),pe=Object.seal(Nl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),me=null,he=null,ge=Object.seal(Nl(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),_e=!0,ve=!0,ye=!1,be=!0,xe=!1,Se=!0,Ce=!1,we=!1,Te=null,Ee=null,De=!1,Oe=!1,ke=!1,Ae=!1,je=!0,Me=!1,Ne=`user-content-`,Pe=!0,Fe=!1,Ie={},Le=null,Re=Y({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),ze=null,Be=Y({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ve=null,He=Y({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ue=`http://www.w3.org/1998/Math/MathML`,We=`http://www.w3.org/2000/svg`,Ge=`http://www.w3.org/1999/xhtml`,Ke=Ge,qe=!1,Je=null,Ye=Y({},[Ue,We,Ge],Wl),Xe=jl([`mi`,`mo`,`mn`,`ms`,`mtext`]),Ze=Y({},Xe),Qe=jl([`annotation-xml`]),$e=Y({},Qe),et=Y({},[`title`,`style`,`font`,`a`,`script`]),tt=null,nt=[`application/xhtml+xml`,`text/html`],rt=null,it=null,at=n.createElement(`form`),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(it&&it===e)return;(!e||typeof e!=`object`)&&(e={}),e=ou(e),tt=nt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,rt=tt===`application/xhtml+xml`?Wl:Ul,z=Hu(e,`ALLOWED_TAGS`,de,{transform:rt}),B=Hu(e,`ALLOWED_ATTR`,fe,{transform:rt}),Je=Hu(e,`ALLOWED_NAMESPACES`,Ye,{transform:Wl}),Ve=Hu(e,`ADD_URI_SAFE_ATTR`,He,{transform:rt,base:He}),ze=Hu(e,`ADD_DATA_URI_TAGS`,Be,{transform:rt,base:Be}),Le=Hu(e,`FORBID_CONTENTS`,Re,{transform:rt}),me=Hu(e,`FORBID_TAGS`,ou({}),{transform:rt}),he=Hu(e,`FORBID_ATTR`,ou({}),{transform:rt}),Ie=$l(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?ou(e.USE_PROFILES):e.USE_PROFILES:!1,_e=e.ALLOW_ARIA_ATTR!==!1,ve=e.ALLOW_DATA_ATTR!==!1,ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,be=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=e.SAFE_FOR_TEMPLATES||!1,Se=e.SAFE_FOR_XML!==!1,Ce=e.WHOLE_DOCUMENT||!1,Oe=e.RETURN_DOM||!1,ke=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,je=e.SANITIZE_DOM!==!1,Me=e.SANITIZE_NAMED_PROPS||!1,Pe=e.KEEP_CONTENT!==!1,Fe=e.IN_PLACE||!1,ue=lu(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Eu,Ke=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ge,Ze=Uu(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>Y({},Xe)),$e=Uu(e,`HTML_INTEGRATION_POINTS`,()=>Y({},Qe));let t=Uu(e,`CUSTOM_ELEMENT_HANDLING`,()=>Nl(null));if(pe=Nl(null),$l(t,`tagNameCheck`)&&ot(t.tagNameCheck)&&(pe.tagNameCheck=t.tagNameCheck),$l(t,`attributeNameCheck`)&&ot(t.attributeNameCheck)&&(pe.attributeNameCheck=t.attributeNameCheck),$l(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(pe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Ml(pe),xe&&(ve=!1),ke&&(Oe=!0),Ie&&(z=Y({},gu),B=Nl(null),Ie.html===!0&&(Y(z,uu),Y(B,_u)),Ie.svg===!0&&(Y(z,du),Y(B,vu),Y(B,bu)),Ie.svgFilters===!0&&(Y(z,fu),Y(B,vu),Y(B,bu)),Ie.mathMl===!0&&(Y(z,mu),Y(B,yu),Y(B,bu))),ge.tagCheck=null,ge.attributeCheck=null,$l(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ge.tagCheck=e.ADD_TAGS:Hl(e.ADD_TAGS)&&(z===de&&(z=ou(z)),Y(z,e.ADD_TAGS,rt))),$l(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ge.attributeCheck=e.ADD_ATTR:Hl(e.ADD_ATTR)&&(B===fe&&(B=ou(B)),Y(B,e.ADD_ATTR,rt))),$l(e,`ADD_FORBID_CONTENTS`)&&Hl(e.ADD_FORBID_CONTENTS)&&(Le===Re&&(Le=ou(Le)),Y(Le,e.ADD_FORBID_CONTENTS,rt)),Pe&&(z[`#text`]=!0),Ce&&Y(z,[`html`,`head`,`body`]),z.table&&(Y(z,[`tbody`]),delete me.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw nu(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw nu(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=j(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=ee()),T&&typeof E==`string`&&(E=j(``)));jl&&jl(e),it=e},ct=Y({},[...du,...fu,...pu]),lt=Y({},[...mu,...hu]),ut=function(e,t,n){return t.namespaceURI===Ge?e===`svg`:t.namespaceURI===Ue?e===`svg`&&(n===`annotation-xml`||Ze[n]):!!ct[e]},dt=function(e,t,n){return t.namespaceURI===Ge?e===`math`:t.namespaceURI===We?e===`math`&&$e[n]:!!lt[e]},ft=function(e,t,n){return t.namespaceURI===We&&!$e[n]||t.namespaceURI===Ue&&!Ze[n]?!1:!lt[e]&&(et[e]||!ct[e])},pt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:Ke,tagName:`template`});let n=Ul(e.tagName),r=Ul(t.tagName);return Je[e.namespaceURI]?e.namespaceURI===We?ut(n,t,r):e.namespaceURI===Ue?dt(n,t,r):e.namespaceURI===Ge?ft(n,t,r):!!(tt===`application/xhtml+xml`&&Je[e.namespaceURI]):!1},mt=function(e){Bl(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw nu(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},ht=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},gt=function(e){vt(e);let t=g(e);if(t){let e=[];Ll(t,t=>{Bl(e,t)}),Ll(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&ht(e,r,i)}},V=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Bl(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`)if(Oe||ke)try{mt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},_t=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||B[rt(i)]||ht(e,r,i)}},vt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===Fu.element&&_t(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},yt=function(e,t){return Se?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},bt=function(e){if(!Se)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===Fu.processingInstruction||n===Fu.comment&&tu(Mu,e.data)){try{p(e)}catch{}continue}if(n===Fu.element){let t=e,n=rt(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&yt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},xt=function(e){let t=null,r=null;if(De)e=`<remove></remove>`+e;else{let t=Gl(e,/^[\r\n\t ]+/);r=t&&t[0]}tt===`application/xhtml+xml`&&Ke===Ge&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?j(e):e;if(Ke===Ge)try{t=new l().parseFromString(i,tt)}catch{}if(!t||!t.documentElement){t=te.createDocument(Ke,`template`,null);try{t.documentElement.innerHTML=qe?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ke===Ge?re.call(t,Ce?`html`:`body`)[0]:Ce?t.documentElement:a},St=function(e){let t=S?S(e):e.ownerDocument;return P.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ct=function(e){return e=Kl(e,ie,` `),e=Kl(e,ae,` `),e=Kl(e,L,` `),e},wt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=P.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Ct(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&Ll(i,e=>{Et(e.content)&&wt(e.content)})},Tt=function(e){let t=x?x(e):null;return typeof t!=`string`||rt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Et=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Fu.documentFragment}catch{return!1}},Dt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Ot(e,n,r){e.length!==0&&Ll(e,e=>{e.call(t,n,r,it)})}let kt=function(e,t){return!!(Se&&e.hasChildNodes()&&!Dt(e.firstElementChild)&&tu(ju,e.textContent)&&tu(ju,e.innerHTML)||Se&&e.namespaceURI===Ge&&Lu[t]&&(Dt(e.firstElementChild)||typeof e.textContent==`string`&&tu(Ru[t],e.textContent))||e.nodeType===Fu.processingInstruction||Se&&e.nodeType===Fu.comment&&tu(Mu,e.data))},At=function(e,t){if(e instanceof RegExp)return tu(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},jt=function(e,t,n){if(!me[t]&&Lt(t)&&At(pe.tagNameCheck,t))return!1;if(Pe&&!Le[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return mt(e),!0},Mt=function(e,t,n,r){return e.length===0?t:t===n||t===r?ou(t):t},Nt=function(e,t){return e===t||_(e)!==null?!1:(Fe&&vt(e),!0)},Pt=function(e,n){if(Ot(I.beforeSanitizeElements,e,null),Nt(e,n))return!0;if(Tt(e))return mt(e),!0;let r=rt(w(e));if(z=Mt(I.uponSanitizeElement,z,de,Te),Ot(I.uponSanitizeElement,e,{tagName:r,allowedTags:z}),Nt(e,n))return!0;if(kt(e,r))return mt(e),!0;if(me[r]||!(ge.tagCheck instanceof Function&&ge.tagCheck(r))&&!z[r]){let t=jt(e,r,n);return t===!1&&(Ot(I.afterSanitizeElements,e,null),Nt(e,n))?!0:t}if(C(e)===Fu.element&&!pt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&tu(Nu,e.innerHTML))return mt(e),!0;if(xe&&e.nodeType===Fu.text){let n=Ct(e.textContent);e.textContent!==n&&(Bl(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ot(I.afterSanitizeElements,e,null),Nt(e,n)},Ft=function(e,t,r){if(he[t]||yt(t,e)||je&&(t===`id`||t===`name`)&&(r in n||r in at))return!1;let i=B[t]||ge.attributeCheck instanceof Function&&ge.attributeCheck(t,e);return ve&&tu(oe,t)||_e&&tu(se,t)?!0:i?Ve[t]||tu(ue,Kl(r,R,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ql(r,`data:`)===0&&ze[e]||ye&&!tu(ce,Kl(r,R,``))?!0:!r:Lt(e)&&At(pe.tagNameCheck,e)&&At(pe.attributeNameCheck,t,e)||t===`is`&&pe.allowCustomizedBuiltInElements&&At(pe.tagNameCheck,r)},It=Y({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Lt=function(e){return!It[Ul(e)]&&tu(le,e)},Rt=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return j(r);case`TrustedScriptURL`:return M(r)}return r},zt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),Tt(e)?(mt(e),!1):!0}catch{return V(t,e),!1}},Bt=function(e,n){if(Ot(I.beforeSanitizeAttributes,e,null),Nt(e,n))return;let r=e.attributes;if(!r||Tt(e))return;B=Mt(I.uponSanitizeAttribute,B,fe,Ee);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0},a=r.length,o=rt(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=rt(s),d=l,f=s===`value`?d:Jl(d),p=!1;if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Ot(I.uponSanitizeAttribute,e,i),f=i.attrValue,Me&&(u===`id`||u===`name`)&&ql(f,Ne)!==0&&(V(s,e,n),f=Ne+f,p=!0),Se&&tu(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){V(s,e,n);continue}if(u===`attributename`&&Gl(f,`href`)){V(s,e,n);continue}if(!i.forceKeepAttr){if(!i.keepAttr){V(s,e,n);continue}if(!be&&tu(Pu,f)){V(s,e,n);continue}if(xe&&(f=Ct(f)),!Ft(o,u,f)){V(s,e,n);continue}f=Rt(o,u,c,f),f!==d&&zt(e,s,c,f)&&p&&zl(t.removed)}}Ot(I.afterSanitizeAttributes,e,null),Nt(e,n)},Vt=function(e){let t=null,n=St(e);for(Ot(I.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Ot(I.uponSanitizeShadowNode,t,null),Pt(t,e),Bt(t,e),Et(t.content)&&Vt(t.content),C(t)===Fu.element){let e=v(t);Et(e)&&(Ht(e),Vt(e))}Ot(I.afterSanitizeShadowDOM,e,null)},Ht=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Vt(e.shadow);continue}let n=e.node,r=C(n)===Fu.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&rt(e)===`template`){let e=n.content;Et(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Et(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(qe=!e,qe&&(e=`<!-->`),typeof e!=`string`&&!Dt(e)&&(e=su(e),typeof e!=`string`))throw nu(`dirty is not a string, aborting`);if(!t.isSupported)return e;we?(z=Te,B=Ee):st(n),(I.uponSanitizeElement.length>0||I.uponSanitizeAttribute.length>0)&&(z=ou(z)),I.uponSanitizeAttribute.length>0&&(B=ou(B)),t.removed=[];let c=Fe&&typeof e!=`string`&&Dt(e);if(c){bt(e);let t=w(e);if(typeof t==`string`){let n=rt(t);if(!z[n]||me[n])throw gt(e),nu(`root node is forbidden and cannot be sanitized in-place`)}if(Tt(e))throw gt(e),nu(`root node is clobbered and cannot be sanitized in-place`);try{Ht(e)}catch(t){throw gt(e),t}}else if(Dt(e))i=xt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Fu.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Ht(i);else{if(!Oe&&!xe&&!Ce&&e.indexOf(`<`)===-1)return T&&Ae?j(e):e;if(i=xt(e),!i)return Oe?null:Ae?E:``}i&&De&&mt(i.firstChild);let l=c?e:i;try{let e=St(l);for(;o=e.nextNode();)Pt(o,l),Bt(o,l),Et(o.content)&&Vt(o.content)}catch(n){throw c&&(gt(e),Ll(t.removed,e=>{e.element&&vt(e.element)})),n}if(c){let n=!1;if(Ll(t.removed,t=>{t.element&&(t.element===e&&(n=!0),vt(t.element))}),n)throw nu(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return xe&&wt(e),e}if(Oe){if(xe&&wt(i),ke)for(s=ne.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(B.shadowroot||B.shadowrootmode)&&(s=F.call(r,s,!0)),s}let u=Ce?i.outerHTML:i.innerHTML;return Ce&&z[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&tu(ku,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
50
|
-
`+u),xe&&(u=Ct(u)),T&&Ae?j(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(e),we=!0,Te=z,Ee=B},t.clearConfig=function(){it=null,we=!1,Te=null,Ee=null,T=D,E=``},t.isValidAttribute=function(e,t,n){it||st({});let r=rt(e),i=rt(t);return Ft(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&$l(I,e)&&Bl(I[e],t)},t.removeHook=function(e,t){if($l(I,e)){if(t!==void 0){let n=Rl(I[e],t);return n===-1?void 0:Vl(I[e],n,1)[0]}return zl(I[e])}},t.removeHooks=function(e){$l(I,e)&&(I[e]=[])},t.removeAllHooks=function(){I=Vu()},t}var Gu=Wu(),Ku=[`script`,`embed`,`base`,`form`,`meta`,`link`,`style`,`foreignobject`],qu=[`onerror`,`onload`,`onclick`,`onmouseover`,`onmouseout`,`onmouseenter`,`onmouseleave`,`onfocus`,`onblur`,`onkeydown`,`onkeyup`,`onkeypress`,`onsubmit`,`onchange`,`onbeforeunload`,`formaction`,`xlink:href`],Ju=new Set([`iframe`,`object`,`semantics`,`annotation`,`none`]),Yu=/^[a-z_][\w.-]*:[a-z][\w.-]*$/,Xu={ADD_TAGS:e=>Ju.has(e)||Yu.test(e),ADD_ATTR:[`alignment`,`target`,`allow`,`allowfullscreen`,`frameborder`,`scrolling`,`data`],FORBID_TAGS:Ku,FORBID_ATTR:qu,ALLOW_UNKNOWN_PROTOCOLS:!1,RETURN_TRUSTED_TYPE:!1},Zu=1e6,Qu=new Map,$u=0;function ed(e){if(e==null||e===``||!Gu.isSupported)return``;let t=typeof e==`string`?e:String(e),n=Qu.get(t);if(n!==void 0)return n;let r=String(Gu.sanitize(t,Xu)),i=t.length+r.length;if(i>Zu)return r;for(let[e,t]of Qu){if($u+i<=Zu)break;Qu.delete(e),$u-=e.length+t.length}return Qu.set(t,r),$u+=i,r}var td={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`},nd={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`},rd=s({background:()=>Dd,backgroundDark:()=>Od,black:()=>Vd,blueGrey100:()=>Zd,blueGrey300:()=>Qd,blueGrey600:()=>$d,blueGrey900:()=>ef,border:()=>Pd,borderDark:()=>Id,borderGray:()=>Ld,borderLight:()=>Fd,buttonBorder:()=>ff,buttonFocusOutline:()=>Jd,buttonHoverBg:()=>pf,correct:()=>ld,correctSecondary:()=>ud,correctTertiary:()=>dd,correctWithIcon:()=>fd,defaults:()=>X,disabled:()=>od,disabledSecondary:()=>sd,disabledText:()=>cd,dropdownBackground:()=>Ad,editorToolbar:()=>df,fadedPrimary:()=>Sd,focusChecked:()=>Wd,focusCheckedBorder:()=>Gd,focusOutline:()=>Yd,focusUnchecked:()=>Kd,focusUncheckedBorder:()=>qd,incorrect:()=>pd,incorrectSecondary:()=>hd,incorrectWithIcon:()=>md,keyBoardFocusIndicator:()=>Xd,keypadButton:()=>rf,keypadButtonHover:()=>sf,keypadButtonOperator:()=>af,keypadButtonOperatorHover:()=>cf,keypadEmptyPlaceholder:()=>of,keypadInk:()=>uf,missing:()=>gd,missingWithIcon:()=>_d,primary:()=>vd,primaryDark:()=>bd,primaryLight:()=>yd,primaryText:()=>xd,secondary:()=>Cd,secondaryBackground:()=>kd,secondaryDark:()=>Td,secondaryLight:()=>wd,secondaryText:()=>Ed,surface:()=>jd,tableGrid:()=>Rd,tableGridLight:()=>zd,tableStripe:()=>Bd,tertiary:()=>Md,tertiaryLight:()=>Nd,text:()=>ad,transparent:()=>Ud,v:()=>id,visualElementsColors:()=>mf,white:()=>Hd}),X={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:ua[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:oa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:oa[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:nd[500],PRIMARY_LIGHT:nd[200],PRIMARY_DARK:nd[800],SECONDARY:td.A400,SECONDARY_LIGHT:td[200],SECONDARY_DARK:td[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:`#EBECF1`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#66686A`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,EDITOR_TOOLBAR:`#efefef`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(X);var id=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Z=id(`pie`),ad=()=>Z(`text`,X.TEXT),od=()=>Z(`disabled`,X.DISABLED),sd=()=>Z(`disabled-secondary`,X.DISABLED_SECONDARY),cd=()=>Z(`disabled-text`,`text`,X.DISABLED_TEXT),ld=()=>Z(`correct`,X.CORRECT),ud=()=>Z(`correct-secondary`,X.CORRECT_SECONDARY),dd=()=>Z(`correct-tertiary`,X.CORRECT_TERTIARY),fd=()=>Z(`correct-icon`,X.CORRECT_WITH_ICON),pd=()=>Z(`incorrect`,X.INCORRECT),md=()=>Z(`incorrect-icon`,X.INCORRECT_WITH_ICON),hd=()=>Z(`incorrect-secondary`,X.INCORRECT_SECONDARY),gd=()=>Z(`missing`,X.MISSING),_d=()=>Z(`missing-icon`,X.MISSING_WITH_ICON),vd=()=>Z(`primary`,X.PRIMARY),yd=()=>Z(`primary-light`,X.PRIMARY_LIGHT),bd=()=>Z(`primary-dark`,X.PRIMARY_DARK),xd=()=>Z(`primary-text`,`text`,X.TEXT),Sd=()=>Z(`faded-primary`,X.FADED_PRIMARY),Cd=()=>Z(`secondary`,X.SECONDARY),wd=()=>Z(`secondary-light`,X.SECONDARY_LIGHT),Td=()=>Z(`secondary-dark`,X.SECONDARY_DARK),Ed=()=>Z(`secondary-text`,`text`,X.TEXT),Dd=()=>Z(`background`,X.BACKGROUND),Od=()=>Z(`background-dark`,X.BACKGROUND_DARK),kd=()=>Z(`secondary-background`,X.SECONDARY_BACKGROUND),Ad=()=>Z(`dropdown-background`,X.DROPDOWN_BACKGROUND),jd=()=>Z(`surface`,X.SURFACE),Md=()=>Z(`tertiary`,X.TERTIARY),Nd=()=>Z(`tertiary-light`,X.TERTIARY_LIGHT),Pd=()=>Z(`border`,X.BORDER),Fd=()=>Z(`border-light`,X.BORDER_LIGHT),Id=()=>Z(`border-dark`,X.BORDER_DARK),Ld=()=>Z(`border-gray`,X.BORDER_GRAY),Rd=()=>Z(`table-grid`,`text`,X.TABLE_GRID),zd=()=>Z(`table-grid-light`,`border-light`,X.TABLE_GRID_LIGHT),Bd=()=>Z(`table-stripe`,`background-dark`,X.TABLE_STRIPE),Vd=()=>Z(`black`,X.BLACK),Hd=()=>Z(`white`,X.WHITE),Ud=()=>X.TRANSPARENT,Wd=()=>Z(`focus-checked`,X.FOCUS_CHECKED),Gd=()=>Z(`focus-checked-border`,X.FOCUS_CHECKED_BORDER),Kd=()=>Z(`focus-unchecked`,X.FOCUS_UNCHECKED),qd=()=>Z(`focus-unchecked-border`,X.FOCUS_UNCHECKED_BORDER),Jd=()=>Z(`button-focus-outline`,X.BUTTON_FOCUS_OUTLINE),Yd=()=>Z(`focus-outline`,`button-focus-outline`,`focus-checked-border`,X.FOCUS_CHECKED_BORDER),Xd=Yd,Zd=()=>Z(`blue-grey-100`,X.BLUE_GREY100),Qd=()=>Z(`blue-grey-300`,X.BLUE_GREY300),$d=()=>Z(`blue-grey-600`,X.BLUE_GREY600),ef=()=>Z(`blue-grey-900`,X.BLUE_GREY900),tf=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);return t?t.slice(1).map(e=>parseInt(e,16)):e.match(/\d+/g).slice(0,3).map(Number)},nf=(e,t)=>`color-mix(in srgb, rgb(${tf(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${Z(`background`,X.WHITE)})`,rf=()=>Z(`keypad-button`,nf(X.KEYPAD_BUTTON,.5)),af=()=>Z(`keypad-button-operator`,nf(X.KEYPAD_BUTTON_OPERATOR,.5)),of=()=>Z(`keypad-empty-placeholder`,X.KEYPAD_EMPTY_PLACEHOLDER),sf=()=>Z(`keypad-button-hover`,nf(X.KEYPAD_BUTTON_HOVER,.25)),cf=()=>Z(`keypad-button-operator-hover`,nf(X.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),lf=`clamp(0.6, (r + g + b) / 450, 1)`,uf=()=>`rgb(from ${ad()} calc(r * ${lf}) calc(g * ${lf}) calc(b * ${lf}))`,df=()=>nf(X.EDITOR_TOOLBAR,.125),ff=()=>Z(`button-border`,X.BUTTON_BORDER),pf=()=>Z(`button-hover-bg`,X.BUTTON_HOVER_BG),mf={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},hf=K(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),gf=K(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Od()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${ad()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${ud()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${hd()})`}}),_f=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`}}),vf=class extends V.Component{static propTypes={correctness:x.string,feedback:x.string};nodeRef=V.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,H.jsx)(js,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,H.jsx)(_f,{ref:this.nodeRef,children:(0,H.jsx)(hf,{children:(0,H.jsx)(gf,{className:e,dangerouslySetInnerHTML:{__html:ed(t)}})})})},`hasFeedback`)}render(){return(0,H.jsx)(`div`,{children:(0,H.jsx)(Bs,{children:this.renderFeedback()})})}},yf=s({Correct:()=>Tf,Incorrect:()=>Ef,NothingSubmitted:()=>Of,PartiallyCorrect:()=>Df}),bf=v(`pie-libs:render-ui:response-indicators`),xf=K(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Sf=K(_l)({cursor:`pointer`}),Cf=K(`div`)({padding:`0`,borderRadius:`4px`}),wf=(e,t)=>{class n extends V.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{bf(`[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,H.jsxs)(xf,{hasFeedback:!!n,children:[(0,H.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,H.jsx)(e,{})}),n&&(0,H.jsx)(Sf,{PaperComponent:Cf,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,H.jsx)(vf,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:x.string},n},Tf=wf(Fo,`correct`),Ef=wf(Ho,`incorrect`),Df=wf(Yo,`partially-correct`),Of=wf(Ko,`nothing-submitted`);function kf(e){return Pr(`MuiCollapse`,e)}Fr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Af=e=>{let{orientation:t,classes:n}=e;return ta({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},kf,n)},jf=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]}})(Sc(({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`}}]}))),Mf=K(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Nf=K(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Pf=V.forwardRef(function(e,t){let n=Zo({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=La.standard,TransitionComponent:x=Ds,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Af(C),T=mo(),E=ls(),D=V.useRef(null),O=V.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=V.useRef(null),ee=Ks(t,M),N=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,te=Hs(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),P=Hs(M,(e,t)=>{let n=N();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=Ws({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[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ne=Hs(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),re=Hs(M,e=>{e.style[j]=`${N()}px`,p&&p(e)}),F=Hs(M,m),I=Hs(M,e=>{let t=N(),{duration:n,easing:r}=Ws({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[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ae={slots:_,slotProps:v,component:s},[L,oe]=Oc(`root`,{ref:ee,className:U(w.root,a),elementType:jf,externalForwardedProps:ae,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[se,ce]=Oc(`wrapper`,{ref:D,className:w.wrapper,elementType:Mf,externalForwardedProps:ae,ownerState:C}),[R,le]=Oc(`wrapperInner`,{className:w.wrapperInner,elementType:Nf,externalForwardedProps:ae,ownerState:C});return(0,H.jsx)(x,{in:l,onEnter:te,onEntered:ne,onEntering:P,onExit:re,onExited:F,onExiting:I,addEndListener:ie,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,H.jsx)(L,{...oe,className:U(oe.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,H.jsx)(se,{...ce,ownerState:r,children:(0,H.jsx)(R,{...le,ownerState:r,children:i})})})}})});Pf&&(Pf.muiSupportAuto=!0);var Ff=`4.1.3`,If=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,Lf=`@pie-lib/math-rendering@2`,Rf=[`nemeth`,`euro`],zf=`mathjax@${Ff}/sre`,Bf=/^[^@]+@[^@]+$/;function Vf(e){if(!e)return;let t;try{t=new URL(e)}catch{return}if(t.origin===`null`)return;let n=t.pathname.split(`/`);for(let e=n.length-1;e>0;e--){let r=n[e];if(r===`node_modules`)return;if(!Bf.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function Hf(){let e=globalThis[Lf]?.opts;return e&&typeof e==`object`?e:{}}function Uf(e){if(typeof e!=`string`||!e)return;let t=typeof document>`u`?void 0:document.baseURI;try{return new URL(e,t).href.replace(/\/+$/,``)}catch{return}}function Wf(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=Uf(r);e&&t.set(n,e)}return t.size?t:void 0}function Gf(e){if(Array.isArray(e))return new Map(e.filter(e=>typeof e==`string`).map(e=>[e,void 0]));if(e&&typeof e==`object`)return new Map(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t:void 0]))}function Kf(e,t){let n=Hf(),r=Uf(e.assetRoot??n.assetRoot)??Vf(t);return{root:r,speechPath:Uf(e.speechPath??n.speechPath)??(r?`${r}/${zf}`:void 0),speechLocales:Gf(e.speechLocales??n.speechLocales),urls:Wf(e.assetUrls??n.assetUrls)}}function qf(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!Rf.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function Jf(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!Rf.includes(e))}var Yf=`pie-mathjax-no-asset-root`,Xf={untypeset:`no MathJax loads, so math stays untypeset`,"no-web-fonts":`math renders without web fonts`,"no-web-fonts-or-speech":`math renders without web fonts and speech`},Zf=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function Qf(e){let t=globalThis;t[Zf]??=[];let n=t[Zf];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${Xf[e]}. Set window['${Lf}'].opts.assetRoot to an npm root. See ${If}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(Yf,{detail:{effect:e,message:r,docsUrl:If}}))}var $f=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,ep=`pie-mathjax-version-conflict`,tp=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function np(e,t){if(typeof window>`u`)return;let n=globalThis;n[tp]??={logged:!1,conditions:[]};let r=n[tp];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${$f}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(ep,{detail:{condition:e,message:i,docsUrl:$f}}))}function rp(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function ip(){return window.MathJax}function ap(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${Ff}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${Ff}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function op(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(ap(e,t),new Promise((t,r)=>{window.MathJax=e;let i=document.createElement(`script`);i.src=n,i.async=!0,i.onload=()=>t(!0),i.onerror=()=>r(Error(`Failed to load MathJax`)),document.head.appendChild(i)})):(Qf(`untypeset`),Promise.resolve(!1))}var sp=globalThis,cp=`PIE-MJX-CHTML-styles`,lp=[`MJX-CHTML-styles`,`MJX-SVG-styles`],up=rp,dp=`http://www.w3.org/1998/Math/MathML`,fp=/^([a-z_][\w.-]*):math$/,pp=/^[a-z][a-z0-9-]*$/;function mp(e){for(let t of e.querySelectorAll(`*`)){let n=fp.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(hp(t,`${n}:`))}}function hp(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!pp.test(n))return e;let r=e.ownerDocument.createElementNS(dp,n);for(let t of e.attributes)r.setAttribute(t.name,t.value);for(let n of[...e.childNodes]){let e=n instanceof Element&&n.tagName.toLowerCase().startsWith(t);r.appendChild(e?hp(n,t):n)}return r}var gp=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),_p={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},vp={tight:`0em`,medium:`0.1em`,loose:`0.2em`},yp=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,bp=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,xp=/^(\d+(\.\d*)?|\.\d+)$/,Sp=new Set([`mn`,`mo`,`mi`,`mtext`]),Cp=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function wp(e,t,n=[],r={}){let i=e.createElementNS(dp,t);for(let[e,t]of Object.entries(r))i.setAttribute(e,t);for(let e of n)e&&i.appendChild(e);return i}function Tp(e,t){let n=wp(e.document,`mo`);return n.textContent=t,n}function Ep(e){let t=wp(e.document,`mn`);return t.textContent=`0`,wp(e.document,`mphantom`,[t])}function Dp(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function Op(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function kp(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function Ap(e,t,n=e){switch(t){case`left`:return 0;case`center`:return Math.floor(e/2);case`right`:return e;default:return n}}function jp(e,t,n){let r=[],i,a,o=(e,t)=>{let s=e=>t.reduceRight((e,t)=>{let n=t.cloneNode(!1);return n.appendChild(e),n},e);if(e.localName===`mstyle`)for(let n of[...e.children])o(n,[...t,e]);else if(kp(e))r.push(null);else if(e.localName===`mn`&&e.children.length===0){let t=[...(e.textContent??``).trim()];for(let a of t){a===n.decimalPoint&&(i??=r.length);let t=e.cloneNode(!1);t.textContent=a,r.push(s(t))}t.length&&(a??=r.length)}else Sp.has(e.localName)&&e.textContent?.trim()===n.decimalPoint&&(i??=r.length),r.push(s(e))};for(let t of e)o(t,[]);return{kind:`digits`,cells:r,anchor:Ap(r.length,n.stackAlign,i??a),position:t}}function Mp(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>gp.has(e))}function Np(e,t){let n=[...e.children].filter(e=>!kp(e));return n.length<=1?n[0]??null:wp(t.document,`mrow`,n)}function Pp(e,t,n){let r=Dp(e,`location`)??`n`,i=Mp(e.getAttribute(`crossout`)),a=[...e.children].map(e=>kp(e)?null:e.localName===`mscarry`?{content:Np(e,n),location:Dp(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?Mp(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:Ap(a.length,n.stackAlign),position:t,scale:xp.test(o)?o:`0.6`}}function Fp(e){let t=Dp(e,`mslinethickness`)??`medium`,n=_p[t]??(yp.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${bp.test(r)?r:`currentColor`}`}function Ip(e,t,n){let r=Math.max(0,Op(e,`length`));return{kind:`line`,length:r,anchor:Ap(r,n.stackAlign),position:t,border:Fp(e)}}function Lp(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+Op(e,`position`);switch(e.localName){case`msgroup`:Lp([...e.children],o,Op(e,`shift`),r,i);break;case`msline`:i.push(Ip(e,o,r));break;case`mscarries`:i.push(Pp(e,o,r));break;case`msrow`:case`mrow`:i.push(jp([...e.children],o,r));break;default:i.push(jp([e],o,r))}})}function Rp(e){return-e.anchor-e.position}function zp(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function Bp(e){return Rp(e)+zp(e)-1}function Vp(e,t,n,r){let i=e=>wp(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>wp(r.document,e,t);switch(n){case`s`:return a(`munder`,[e,i(`-0.5width`)]);case`ne`:return a(`msup`,[e,i()]);case`se`:return a(`msub`,[e,i()]);case`nw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),a(`none`,[]),i(`-1width`)]);case`sw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),i(`-1width`),a(`none`,[])]);case`w`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[i(`-1width`),e]);case`e`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[e,i()]);default:return a(`mover`,[e,i(`-0.5width`)])}}function Hp(e,t,n){let r=wp(n.document,`menclose`,[e],{notation:t.join(` `),"data-padding":`0.1em`,"data-thickness":`0.067em`}),i=t.some(e=>e.endsWith(`diagonalstrike`))?.167:t.includes(`horizontalstrike`)?.1:0;return i?wp(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function Up(e,t,n,r,i){let a=e&&t.crossout.length?Hp(e,t.crossout,i):e;if(!t.content)return a;let o=wp(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return Vp(a??Ep(i),o,n,i)}function Wp(e,t){return e.carries[t-Rp(e)]??null}function Gp(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=Wp(s,t),l=n.slice(0,o).some(e=>Wp(e,t));if(!c&&!l)return;let u=c??{content:Ep(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=Up(i,u,d,s.scale,r)}),e.content=i}function Kp(e,t){let n=e.filter(e=>zp(e)>0),r=Math.min(0,...n.map(Rp)),i=Math.max(r,...n.map(Bp))-r+1,a=-r,o=[],s=new Map,c=()=>Array.from({length:i},()=>({content:null,borders:{}})),l=e=>e.length===0?Array.from({length:i},(e,t)=>t):Array.from({length:e.length},(t,n)=>a+Rp(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+Rp(e)+r].content=t}),u.length&&n.forEach((e,n)=>{Gp(e,n-a,u,t)});for(let e of d)for(let t of l(e))n[t].borders.top=e.border;u=[],d=[],s.set(e,o.length),o.push(n)};for(let t of e)t.kind===`digits`?f(t):t.kind===`carries`?u.push(t):d.push(t);(u.length||!o.length)&&f({kind:`digits`,cells:[],anchor:0,position:0});let p=o[o.length-1];for(let e of d)for(let t of l(e))p[t].borders.bottom=e.border;return{rows:o,rowOf:s,origin:a}}function qp(e,{rows:t},n){let r=wp(n.document,`mtable`,t.map(e=>wp(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return wp(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])Cp.has(t)||r.setAttribute(t,n);let i=Dp(e,`charspacing`)??`medium`,a=Dp(e,`charalign`);return r.setAttribute(`columnspacing`,vp[i]??(yp.test(i)?i:vp.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function Jp(e){return{document:e.ownerDocument,stackAlign:Dp(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function Yp(e){let t=Jp(e),n=[];return Lp([...e.children],0,0,t,n),qp(e,Kp(n,t),t)}function Xp(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function Zp(e,t){let n=Tp(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[wp(t.document,`mrow`,[e,wp(t.document,`mspace`,[],{width:`0.2em`})]),wp(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function Qp(e){let t=Jp(e),[n,r,...i]=[...e.children],a=n&&!kp(n)?n:null,o=r&&!kp(r)?r:null,s=Dp(e,`longdivstyle`)??`lefttop`,c=Fp(e),l=[];Lp(i,0,0,t,l);let u=l.find(e=>e.kind===`digits`);u||(u={kind:`digits`,cells:[],anchor:0,position:0},l.unshift(u));let d=[],f=(...e)=>{u.cells.unshift(...e),u.anchor+=e.length},p=(...e)=>{let n=e.flatMap(e=>e?e.localName===`mrow`?[...e.children]:[e]:[]);u.cells.push(...jp(n,0,t).cells)};switch(s){case`left/\\right`:f(a,Tp(t,`/`)),p(Tp(t,`\\`),o);break;case`left)(right`:f(a,Tp(t,`)`)),p(Tp(t,`(`),o);break;case`:right=right`:p(Tp(t,`:`),a,Tp(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&Lp([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...Zp(a,t));break}let m=Kp(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+Rp(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+Bp(e)));switch(s){case`left/\\right`:case`left)(right`:case`:right=right`:break;case`righttop`:{let e=h[g][_(u.cells.length-1)];e.borders.left=c,e.borders.bottom=c,Xp(h,g,_(0),_(u.cells.length-1),`top`,c);break}case`stackedleftlinetop`:{let e=h[g][_(0)];e.borders.right=c,e.borders.bottom=c,Xp(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:$p(h,g,s,a,o,c,t);break;default:Xp(h,g,_(1),v,`top`,c)}return qp(e,m,t)}function $p(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&wp(o.document,`mpadded`,[e],{lspace:`0.2em`,width:`+0.4em`});e.length<t+2&&e.push(e[0].map(()=>({content:null,borders:{}}))),e.forEach((e,o)=>{let u={content:null,borders:{},align:s?`right`:`left`};o===t?(u.content=l(r),u.borders={[c]:a,bottom:a}):o===t+1?(u.content=l(i),n!==`shortstackedrightright`&&(u.borders[c]=a)):o>t+1&&(n===`stackedrightright`||s)&&(u.borders[c]=a),s?e.unshift(u):e.push(u)})}function em(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?Yp(t):Qp(t))}var tm=`PIE-MJX-explorer-styles`,nm=`var(--pie-text, black)`,rm=`var(--pie-background, #ffffff)`,im=`var(--pie-border-dark, #66686A)`,am=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,om=`color-mix(in srgb, ${am} 15%, transparent)`,sm=`
|
|
50
|
+
`+u),xe&&(u=Ct(u)),T&&Ae?j(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(e),we=!0,Te=z,Ee=B},t.clearConfig=function(){it=null,we=!1,Te=null,Ee=null,T=D,E=``},t.isValidAttribute=function(e,t,n){it||st({});let r=rt(e),i=rt(t);return Ft(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&$l(I,e)&&Bl(I[e],t)},t.removeHook=function(e,t){if($l(I,e)){if(t!==void 0){let n=Rl(I[e],t);return n===-1?void 0:Vl(I[e],n,1)[0]}return zl(I[e])}},t.removeHooks=function(e){$l(I,e)&&(I[e]=[])},t.removeAllHooks=function(){I=Vu()},t}var Gu=Wu(),Ku=[`script`,`embed`,`base`,`form`,`meta`,`link`,`style`,`foreignobject`],qu=[`onerror`,`onload`,`onclick`,`onmouseover`,`onmouseout`,`onmouseenter`,`onmouseleave`,`onfocus`,`onblur`,`onkeydown`,`onkeyup`,`onkeypress`,`onsubmit`,`onchange`,`onbeforeunload`,`formaction`,`xlink:href`],Ju=new Set([`iframe`,`object`,`mstack`,`mlongdiv`,`msgroup`,`msrow`,`msline`,`mscarries`,`mscarry`,`semantics`,`annotation`,`none`]),Yu=/^[a-z_][\w.-]*:[a-z][\w.-]*$/,Xu=[`alignment`,`target`,`allow`,`allowfullscreen`,`frameborder`,`scrolling`,`data`,`stackalign`,`charalign`,`charspacing`,`longdivstyle`,`position`,`shift`,`location`,`crossout`,`leftoverhang`,`rightoverhang`,`mslinethickness`,`linebreak`],Zu=/^\s*document\.getElementById\((['"])([^'"]+)\1\)\.play\(\)\s*;?\s*(?:return\s+false\s*;?\s*)?$/,Qu=`data-pie-play-audio`,$u={ADD_TAGS:e=>Ju.has(e)||Yu.test(e),ADD_ATTR:Xu,FORBID_TAGS:Ku,FORBID_ATTR:qu,ALLOW_UNKNOWN_PROTOCOLS:!1,RETURN_TRUSTED_TYPE:!1},ed=!1;function td(e){for(let t of e.composedPath()){if(!(t instanceof Element))continue;let n=t.getAttribute(Qu);if(n===null)continue;e.preventDefault();let r=t.getRootNode().getElementById?.(n)??document.getElementById(n);r instanceof HTMLMediaElement&&r.play()?.catch(()=>void 0);return}}var nd=null;function rd(){return nd||(nd=Gu(window),nd.addHook(`beforeSanitizeAttributes`,e=>{if(e.nodeName!==`A`)return;let t=Zu.exec(e.getAttribute(`onclick`)??``)?.[2];t!==void 0&&(e.removeAttribute(`onclick`),e.setAttribute(Qu,t),ed||=(document.addEventListener(`click`,td),!0))}),nd)}var id=1e6,ad=new Map,od=0;function sd(e){if(e==null||e===``||!Gu.isSupported)return``;let t=typeof e==`string`?e:String(e),n=ad.get(t);if(n!==void 0)return n;let r=String(rd().sanitize(t,$u)),i=t.length+r.length;if(i>id)return r;for(let[e,t]of ad){if(od+i<=id)break;ad.delete(e),od-=e.length+t.length}return ad.set(t,r),od+=i,r}var cd={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`},ld={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`},ud=s({background:()=>Pd,backgroundDark:()=>Fd,black:()=>Jd,blueGrey100:()=>af,blueGrey300:()=>of,blueGrey600:()=>sf,blueGrey900:()=>cf,border:()=>Vd,borderDark:()=>Ud,borderGray:()=>Wd,borderLight:()=>Hd,buttonBorder:()=>yf,buttonFocusOutline:()=>tf,buttonHoverBg:()=>bf,correct:()=>gd,correctSecondary:()=>_d,correctTertiary:()=>vd,correctWithIcon:()=>yd,defaults:()=>X,disabled:()=>pd,disabledSecondary:()=>md,disabledText:()=>hd,dropdownBackground:()=>Ld,editorToolbar:()=>vf,fadedPrimary:()=>kd,focusChecked:()=>Zd,focusCheckedBorder:()=>Qd,focusOutline:()=>nf,focusUnchecked:()=>$d,focusUncheckedBorder:()=>ef,incorrect:()=>bd,incorrectSecondary:()=>Sd,incorrectWithIcon:()=>xd,keyBoardFocusIndicator:()=>rf,keypadButton:()=>df,keypadButtonHover:()=>mf,keypadButtonOperator:()=>ff,keypadButtonOperatorHover:()=>hf,keypadEmptyPlaceholder:()=>pf,keypadInk:()=>_f,missing:()=>Cd,missingWithIcon:()=>wd,primary:()=>Td,primaryDark:()=>Dd,primaryLight:()=>Ed,primaryText:()=>Od,secondary:()=>Ad,secondaryBackground:()=>Id,secondaryDark:()=>Md,secondaryLight:()=>jd,secondaryText:()=>Nd,surface:()=>Rd,tableGrid:()=>Gd,tableGridLight:()=>Kd,tableStripe:()=>qd,tertiary:()=>zd,tertiaryLight:()=>Bd,text:()=>fd,transparent:()=>Xd,v:()=>dd,visualElementsColors:()=>xf,white:()=>Yd}),X={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:`#208537`,CORRECT_SECONDARY:ua[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:`#a65f00`,INCORRECT_SECONDARY:oa[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:oa[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:ld[500],PRIMARY_LIGHT:ld[200],PRIMARY_DARK:ld[800],SECONDARY:cd.A400,SECONDARY_LIGHT:cd[200],SECONDARY_DARK:cd[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:`#EBECF1`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#66686A`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,EDITOR_TOOLBAR:`#efefef`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(X);var dd=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Z=dd(`pie`),fd=()=>Z(`text`,X.TEXT),pd=()=>Z(`disabled`,X.DISABLED),md=()=>Z(`disabled-secondary`,X.DISABLED_SECONDARY),hd=()=>Z(`disabled-text`,`text`,X.DISABLED_TEXT),gd=()=>Z(`correct`,X.CORRECT),_d=()=>Z(`correct-secondary`,X.CORRECT_SECONDARY),vd=()=>Z(`correct-tertiary`,X.CORRECT_TERTIARY),yd=()=>Z(`correct-icon`,X.CORRECT_WITH_ICON),bd=()=>Z(`incorrect`,X.INCORRECT),xd=()=>Z(`incorrect-icon`,X.INCORRECT_WITH_ICON),Sd=()=>Z(`incorrect-secondary`,X.INCORRECT_SECONDARY),Cd=()=>Z(`missing`,X.MISSING),wd=()=>Z(`missing-icon`,X.MISSING_WITH_ICON),Td=()=>Z(`primary`,X.PRIMARY),Ed=()=>Z(`primary-light`,X.PRIMARY_LIGHT),Dd=()=>Z(`primary-dark`,X.PRIMARY_DARK),Od=()=>Z(`primary-text`,`text`,X.TEXT),kd=()=>Z(`faded-primary`,X.FADED_PRIMARY),Ad=()=>Z(`secondary`,X.SECONDARY),jd=()=>Z(`secondary-light`,X.SECONDARY_LIGHT),Md=()=>Z(`secondary-dark`,X.SECONDARY_DARK),Nd=()=>Z(`secondary-text`,`text`,X.TEXT),Pd=()=>Z(`background`,X.BACKGROUND),Fd=()=>Z(`background-dark`,X.BACKGROUND_DARK),Id=()=>Z(`secondary-background`,X.SECONDARY_BACKGROUND),Ld=()=>Z(`dropdown-background`,X.DROPDOWN_BACKGROUND),Rd=()=>Z(`surface`,X.SURFACE),zd=()=>Z(`tertiary`,X.TERTIARY),Bd=()=>Z(`tertiary-light`,X.TERTIARY_LIGHT),Vd=()=>Z(`border`,X.BORDER),Hd=()=>Z(`border-light`,X.BORDER_LIGHT),Ud=()=>Z(`border-dark`,X.BORDER_DARK),Wd=()=>Z(`border-gray`,X.BORDER_GRAY),Gd=()=>Z(`table-grid`,`text`,X.TABLE_GRID),Kd=()=>Z(`table-grid-light`,`border-light`,X.TABLE_GRID_LIGHT),qd=()=>Z(`table-stripe`,`background-dark`,X.TABLE_STRIPE),Jd=()=>Z(`black`,X.BLACK),Yd=()=>Z(`white`,X.WHITE),Xd=()=>X.TRANSPARENT,Zd=()=>Z(`focus-checked`,X.FOCUS_CHECKED),Qd=()=>Z(`focus-checked-border`,X.FOCUS_CHECKED_BORDER),$d=()=>Z(`focus-unchecked`,X.FOCUS_UNCHECKED),ef=()=>Z(`focus-unchecked-border`,X.FOCUS_UNCHECKED_BORDER),tf=()=>Z(`button-focus-outline`,X.BUTTON_FOCUS_OUTLINE),nf=()=>Z(`focus-outline`,`button-focus-outline`,`focus-checked-border`,X.FOCUS_CHECKED_BORDER),rf=nf,af=()=>Z(`blue-grey-100`,X.BLUE_GREY100),of=()=>Z(`blue-grey-300`,X.BLUE_GREY300),sf=()=>Z(`blue-grey-600`,X.BLUE_GREY600),cf=()=>Z(`blue-grey-900`,X.BLUE_GREY900),lf=e=>{let t=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(e);return t?t.slice(1).map(e=>parseInt(e,16)):e.match(/\d+/g).slice(0,3).map(Number)},uf=(e,t)=>`color-mix(in srgb, rgb(${lf(e).map(e=>(e-255*(1-t))/t).join(` `)}) ${t*100}%, ${Z(`background`,X.WHITE)})`,df=()=>Z(`keypad-button`,uf(X.KEYPAD_BUTTON,.5)),ff=()=>Z(`keypad-button-operator`,uf(X.KEYPAD_BUTTON_OPERATOR,.5)),pf=()=>Z(`keypad-empty-placeholder`,X.KEYPAD_EMPTY_PLACEHOLDER),mf=()=>Z(`keypad-button-hover`,uf(X.KEYPAD_BUTTON_HOVER,.25)),hf=()=>Z(`keypad-button-operator-hover`,uf(X.KEYPAD_BUTTON_OPERATOR_HOVER,.25)),gf=`clamp(0.6, (r + g + b) / 450, 1)`,_f=()=>`rgb(from ${fd()} calc(r * ${gf}) calc(g * ${gf}) calc(b * ${gf}))`,vf=()=>uf(X.EDITOR_TOOLBAR,.125),yf=()=>Z(`button-border`,X.BUTTON_BORDER),bf=()=>Z(`button-hover-bg`,X.BUTTON_HOVER_BG),xf={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Sf=K(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Cf=K(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Fd()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, ${fd()})`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${_d()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Sd()})`}}),wf=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`}}),Tf=class extends V.Component{static propTypes={correctness:x.string,feedback:x.string};nodeRef=V.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,H.jsx)(js,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,H.jsx)(wf,{ref:this.nodeRef,children:(0,H.jsx)(Sf,{children:(0,H.jsx)(Cf,{className:e,dangerouslySetInnerHTML:{__html:sd(t)}})})})},`hasFeedback`)}render(){return(0,H.jsx)(`div`,{children:(0,H.jsx)(Bs,{children:this.renderFeedback()})})}},Ef=s({Correct:()=>Mf,Incorrect:()=>Nf,NothingSubmitted:()=>Ff,PartiallyCorrect:()=>Pf}),Df=v(`pie-libs:render-ui:response-indicators`),Of=K(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),kf=K(_l)({cursor:`pointer`}),Af=K(`div`)({padding:`0`,borderRadius:`4px`}),jf=(e,t)=>{class n extends V.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Df(`[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,H.jsxs)(Of,{hasFeedback:!!n,children:[(0,H.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,H.jsx)(e,{})}),n&&(0,H.jsx)(kf,{PaperComponent:Af,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,H.jsx)(Tf,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:x.string},n},Mf=jf(Fo,`correct`),Nf=jf(Ho,`incorrect`),Pf=jf(Yo,`partially-correct`),Ff=jf(Ko,`nothing-submitted`);function If(e){return Pr(`MuiCollapse`,e)}Fr(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var Lf=e=>{let{orientation:t,classes:n}=e;return ta({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},If,n)},Rf=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]}})(Sc(({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`}}]}))),zf=K(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Bf=K(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),Vf=V.forwardRef(function(e,t){let n=Zo({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=La.standard,TransitionComponent:x=Ds,...S}=n,C={...n,orientation:g,collapsedSize:o},w=Lf(C),T=mo(),E=ls(),D=V.useRef(null),O=V.useRef(),k=typeof o==`number`?`${o}px`:o,A=g===`horizontal`,j=A?`width`:`height`,M=V.useRef(null),ee=Ks(t,M),N=()=>D.current?D.current[A?`clientWidth`:`clientHeight`]:0,te=Hs(M,(e,t)=>{D.current&&A&&(D.current.style.position=`absolute`),e.style[j]=k,u&&u(e,t)}),P=Hs(M,(e,t)=>{let n=N();D.current&&A&&(D.current.style.position=``);let{duration:r,easing:i}=Ws({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[j]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ne=Hs(M,(e,t)=>{e.style[j]=`auto`,d&&d(e,t)}),re=Hs(M,e=>{e.style[j]=`${N()}px`,p&&p(e)}),F=Hs(M,m),I=Hs(M,e=>{let t=N(),{duration:n,easing:r}=Ws({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[j]=k,e.style.transitionTimingFunction=r,h&&h(e)}),ie=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(M.current,e)},ae={slots:_,slotProps:v,component:s},[L,oe]=Oc(`root`,{ref:ee,className:U(w.root,a),elementType:Rf,externalForwardedProps:ae,ownerState:C,additionalProps:{style:{[A?`minWidth`:`minHeight`]:k,...y}}}),[se,ce]=Oc(`wrapper`,{ref:D,className:w.wrapper,elementType:zf,externalForwardedProps:ae,ownerState:C}),[R,le]=Oc(`wrapperInner`,{className:w.wrapperInner,elementType:Bf,externalForwardedProps:ae,ownerState:C});return(0,H.jsx)(x,{in:l,onEnter:te,onEntered:ne,onEntering:P,onExit:re,onExited:F,onExiting:I,addEndListener:ie,nodeRef:M,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,H.jsx)(L,{...oe,className:U(oe.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,H.jsx)(se,{...ce,ownerState:r,children:(0,H.jsx)(R,{...le,ownerState:r,children:i})})})}})});Vf&&(Vf.muiSupportAuto=!0);var Hf=`4.1.3`,Uf=`https://github.com/pie-framework/pie-elements-ng/blob/develop/docs/MATH-RENDERING.md#assets`,Wf=`@pie-lib/math-rendering@2`,Gf=[`nemeth`,`euro`],Kf=`mathjax@${Hf}/sre`,qf=/^[^@]+@[^@]+$/;function Jf(e){if(!e)return;let t;try{t=new URL(e)}catch{return}if(t.origin===`null`)return;let n=t.pathname.split(`/`);for(let e=n.length-1;e>0;e--){let r=n[e];if(r===`node_modules`)return;if(!qf.test(r))continue;let i=n[e-1]?.startsWith(`@`)?e-1:e;return t.origin+n.slice(0,i).join(`/`)}}function Yf(){let e=globalThis[Wf]?.opts;return e&&typeof e==`object`?e:{}}function Xf(e){if(typeof e!=`string`||!e)return;let t=typeof document>`u`?void 0:document.baseURI;try{return new URL(e,t).href.replace(/\/+$/,``)}catch{return}}function Zf(e){if(!e||typeof e!=`object`)return;let t=new Map;for(let[n,r]of Object.entries(e)){let e=Xf(r);e&&t.set(n,e)}return t.size?t:void 0}function Qf(e){if(Array.isArray(e))return new Map(e.filter(e=>typeof e==`string`).map(e=>[e,void 0]));if(e&&typeof e==`object`)return new Map(Object.entries(e).map(([e,t])=>[e,typeof t==`string`?t:void 0]))}function $f(e,t){let n=Yf(),r=Xf(e.assetRoot??n.assetRoot)??Jf(t);return{root:r,speechPath:Xf(e.speechPath??n.speechPath)??(r?`${r}/${Kf}`:void 0),speechLocales:Qf(e.speechLocales??n.speechLocales),urls:Zf(e.assetUrls??n.assetUrls)}}function ep(e,t){if(!(!e||!t)){for(let n of[...e.keys()])!t.has(n)&&!Gf.includes(n)&&e.delete(n);for(let[n,r]of t)(r||!e.has(n))&&e.set(n,r??n)}}function tp(e){if(!(!e||e.has(`en`)))return[...e.keys()].find(e=>!Gf.includes(e))}var np=`pie-mathjax-no-asset-root`,rp={untypeset:`no MathJax loads, so math stays untypeset`,"no-web-fonts":`math renders without web fonts`,"no-web-fonts-or-speech":`math renders without web fonts and speech`},ip=Symbol.for(`@pie-element/shared-math-rendering-mathjax/no-assets`);function ap(e){let t=globalThis;t[ip]??=[];let n=t[ip];if(n.includes(e))return;n.push(e);let r=`[math-rendering] No asset root for MathJax: ${rp[e]}. Set window['${Wf}'].opts.assetRoot to an npm root. See ${Uf}`;e===`untypeset`?console.error(r):console.warn(r),!(typeof window>`u`)&&window.dispatchEvent(new CustomEvent(np,{detail:{effect:e,message:r,docsUrl:Uf}}))}var op=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,sp=`pie-mathjax-version-conflict`,cp=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function lp(e,t){if(typeof window>`u`)return;let n=globalThis;n[cp]??={logged:!1,conditions:[]};let r=n[cp];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${op}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(sp,{detail:{condition:e,message:i,docsUrl:op}}))}function up(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}function dp(){return window.MathJax}function fp(e,{root:t,speechPath:n}){t&&(e.loader={...e.loader,paths:{fonts:`${t}/@mathjax`,"mathjax-newcm":`${t}/@mathjax/mathjax-newcm-font@${Hf}`,"mathjax-mhchem-extension":`${t}/@mathjax/mathjax-mhchem-font-extension@${Hf}`}}),n&&(e.options={...e.options,worker:{path:n,maps:`${n}/mathmaps`}})}function pp(e,t){let n=t.srcUrl||(t.root?`${t.root}/mathjax@4.1.3/tex-mml-chtml.js`:void 0);return n?(fp(e,t),new Promise((t,r)=>{window.MathJax=e;let i=document.createElement(`script`);i.src=n,i.async=!0,i.onload=()=>t(!0),i.onerror=()=>r(Error(`Failed to load MathJax`)),document.head.appendChild(i)})):(ap(`untypeset`),Promise.resolve(!1))}var mp=globalThis,hp=`PIE-MJX-CHTML-styles`,gp=[`MJX-CHTML-styles`,`MJX-SVG-styles`],_p=up,vp=`http://www.w3.org/1998/Math/MathML`,yp=/^([a-z_][\w.-]*):math$/,bp=/^[a-z][a-z0-9-]*$/;function xp(e){for(let t of e.querySelectorAll(`*`)){let n=yp.exec(t.tagName.toLowerCase())?.[1];!n||!e.contains(t)||t.closest(`mjx-container`)||t.replaceWith(Sp(t,`${n}:`))}}function Sp(e,t){let n=e.tagName.toLowerCase().slice(t.length);if(!bp.test(n))return e;let r=e.ownerDocument.createElementNS(vp,n);for(let t of e.attributes)r.setAttribute(t.name,t.value);for(let n of[...e.childNodes]){let e=n instanceof Element&&n.tagName.toLowerCase().startsWith(t);r.appendChild(e?Sp(n,t):n)}return r}var Cp=new Set([`updiagonalstrike`,`downdiagonalstrike`,`verticalstrike`,`horizontalstrike`]),wp={thin:`0.035em`,medium:`0.07em`,thick:`0.14em`},Tp={tight:`0em`,medium:`0.1em`,loose:`0.2em`},Ep=/^(\d+(\.\d*)?|\.\d+)(em|ex|px|pt|pc|in|cm|mm)$/,Dp=/^(#[0-9a-f]{3,8}|[a-z]+)$/i,Op=/^(\d+(\.\d*)?|\.\d+)$/,kp=new Set([`mn`,`mo`,`mi`,`mtext`]),Ap=new Set([`stackalign`,`charalign`,`charspacing`,`longdivstyle`]);function jp(e,t,n=[],r={}){let i=e.createElementNS(vp,t);for(let[e,t]of Object.entries(r))i.setAttribute(e,t);for(let e of n)e&&i.appendChild(e);return i}function Mp(e,t){let n=jp(e.document,`mo`);return n.textContent=t,n}function Np(e){let t=jp(e.document,`mn`);return t.textContent=`0`,jp(e.document,`mphantom`,[t])}function Pp(e,t){return e.getAttribute(t)?.trim().toLowerCase()||void 0}function Fp(e,t){let n=Number.parseInt(e.getAttribute(t)??``,10);return Number.isFinite(n)?n:0}function Ip(e){return e.localName===`none`||e.localName===`mrow`&&e.children.length===0&&!e.textContent?.trim()}function Lp(e,t,n=e){switch(t){case`left`:return 0;case`center`:return Math.floor(e/2);case`right`:return e;default:return n}}function Rp(e,t,n){let r=[],i,a,o=(e,t)=>{let s=e=>t.reduceRight((e,t)=>{let n=t.cloneNode(!1);return n.appendChild(e),n},e);if(e.localName===`mstyle`)for(let n of[...e.children])o(n,[...t,e]);else if(Ip(e))r.push(null);else if(e.localName===`mn`&&e.children.length===0){let t=[...(e.textContent??``).trim()];for(let a of t){a===n.decimalPoint&&(i??=r.length);let t=e.cloneNode(!1);t.textContent=a,r.push(s(t))}t.length&&(a??=r.length)}else kp.has(e.localName)&&e.textContent?.trim()===n.decimalPoint&&(i??=r.length),r.push(s(e))};for(let t of e)o(t,[]);return{kind:`digits`,cells:r,anchor:Lp(r.length,n.stackAlign,i??a),position:t}}function zp(e){return(e??``).toLowerCase().split(/\s+/).filter(e=>Cp.has(e))}function Bp(e,t){let n=[...e.children].filter(e=>!Ip(e));return n.length<=1?n[0]??null:jp(t.document,`mrow`,n)}function Vp(e,t,n){let r=Pp(e,`location`)??`n`,i=zp(e.getAttribute(`crossout`)),a=[...e.children].map(e=>Ip(e)?null:e.localName===`mscarry`?{content:Bp(e,n),location:Pp(e,`location`)??r,crossout:e.hasAttribute(`crossout`)?zp(e.getAttribute(`crossout`)):i}:{content:e,location:r,crossout:i}),o=e.getAttribute(`scriptsizemultiplier`)?.trim()??``;return{kind:`carries`,carries:a,anchor:Lp(a.length,n.stackAlign),position:t,scale:Op.test(o)?o:`0.6`}}function Hp(e){let t=Pp(e,`mslinethickness`)??`medium`,n=wp[t]??(Ep.test(t)?t:`0.07em`),r=e.getAttribute(`mathcolor`)?.trim()??``;return`${n} solid ${Dp.test(r)?r:`currentColor`}`}function Up(e,t,n){let r=Math.max(0,Fp(e,`length`));return{kind:`line`,length:r,anchor:Lp(r,n.stackAlign),position:t,border:Hp(e)}}function Wp(e,t,n,r,i){e.forEach((e,a)=>{let o=t+a*n+Fp(e,`position`);switch(e.localName){case`msgroup`:Wp([...e.children],o,Fp(e,`shift`),r,i);break;case`msline`:i.push(Up(e,o,r));break;case`mscarries`:i.push(Vp(e,o,r));break;case`msrow`:case`mrow`:i.push(Rp([...e.children],o,r));break;default:i.push(Rp([e],o,r))}})}function Gp(e){return-e.anchor-e.position}function Kp(e){return e.kind===`digits`?e.cells.length:e.kind===`carries`?e.carries.length:e.length}function qp(e){return Gp(e)+Kp(e)-1}function Jp(e,t,n,r){let i=e=>jp(r.document,`mpadded`,[t],{width:`0`,...e?{lspace:e}:{}}),a=(e,t)=>jp(r.document,e,t);switch(n){case`s`:return a(`munder`,[e,i(`-0.5width`)]);case`ne`:return a(`msup`,[e,i()]);case`se`:return a(`msub`,[e,i()]);case`nw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),a(`none`,[]),i(`-1width`)]);case`sw`:return a(`mmultiscripts`,[e,a(`mprescripts`,[]),i(`-1width`),a(`none`,[])]);case`w`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[i(`-1width`),e]);case`e`:return t.setAttribute(`scriptlevel`,`+1`),a(`mrow`,[e,i()]);default:return a(`mover`,[e,i(`-0.5width`)])}}function Yp(e,t,n){let r=jp(n.document,`menclose`,[e],{notation:t.join(` `),"data-padding":`0.1em`,"data-thickness":`0.067em`}),i=t.some(e=>e.endsWith(`diagonalstrike`))?.167:t.includes(`horizontalstrike`)?.1:0;return i?jp(n.document,`mpadded`,[r],{lspace:`-${i}em`,width:`-${2*i}em`}):r}function Xp(e,t,n,r,i){let a=e&&t.crossout.length?Yp(e,t.crossout,i):e;if(!t.content)return a;let o=jp(i.document,`mstyle`,[t.content],{scriptsizemultiplier:r});return Jp(a??Np(i),o,n,i)}function Zp(e,t){return e.carries[t-Gp(e)]??null}function Qp(e,t,n,r){let i=e.content;n.forEach((e,a)=>{let o=n.length-1-a,s=n[o],c=Zp(s,t),l=n.slice(0,o).some(e=>Zp(e,t));if(!c&&!l)return;let u=c??{content:Np(r),location:`n`,crossout:[]},d=a===0?u.location:`n`;i=Xp(i,u,d,s.scale,r)}),e.content=i}function $p(e,t){let n=e.filter(e=>Kp(e)>0),r=Math.min(0,...n.map(Gp)),i=Math.max(r,...n.map(qp))-r+1,a=-r,o=[],s=new Map,c=()=>Array.from({length:i},()=>({content:null,borders:{}})),l=e=>e.length===0?Array.from({length:i},(e,t)=>t):Array.from({length:e.length},(t,n)=>a+Gp(e)+n),u=[],d=[],f=e=>{let n=c();e.cells.forEach((t,r)=>{n[a+Gp(e)+r].content=t}),u.length&&n.forEach((e,n)=>{Qp(e,n-a,u,t)});for(let e of d)for(let t of l(e))n[t].borders.top=e.border;u=[],d=[],s.set(e,o.length),o.push(n)};for(let t of e)t.kind===`digits`?f(t):t.kind===`carries`?u.push(t):d.push(t);(u.length||!o.length)&&f({kind:`digits`,cells:[],anchor:0,position:0});let p=o[o.length-1];for(let e of d)for(let t of l(e))p[t].borders.bottom=e.border;return{rows:o,rowOf:s,origin:a}}function em(e,{rows:t},n){let r=jp(n.document,`mtable`,t.map(e=>jp(n.document,`mtr`,e.map(e=>{let t=Object.entries(e.borders).map(([e,t])=>`border-${e}:${t}`).join(`;`);return jp(n.document,`mtd`,[e.content],{...t?{style:t}:{},...e.align?{columnalign:e.align}:{}})}))));for(let{name:t,value:n}of[...e.attributes])Ap.has(t)||r.setAttribute(t,n);let i=Pp(e,`charspacing`)??`medium`,a=Pp(e,`charalign`);return r.setAttribute(`columnspacing`,Tp[i]??(Ep.test(i)?i:Tp.medium)),r.setAttribute(`columnalign`,a===`left`||a===`center`?a:`right`),r.setAttribute(`rowspacing`,`0`),r.setAttribute(`align`,e.getAttribute(`align`)??`baseline`),r}function tm(e){return{document:e.ownerDocument,stackAlign:Pp(e,`stackalign`)??`decimalpoint`,decimalPoint:e.closest(`[decimalpoint]`)?.getAttribute(`decimalpoint`)?.trim().charAt(0)||`.`}}function nm(e){let t=tm(e),n=[];return Wp([...e.children],0,0,t,n),em(e,$p(n,t),t)}function rm(e,t,n,r,i,a){for(let o=n;o<=r;o++)e[t][o].borders[i]=a}function im(e,t){let n=Mp(t,`)`);return n.setAttribute(`minsize`,`1.2em`),[jp(t.document,`mrow`,[e,jp(t.document,`mspace`,[],{width:`0.2em`})]),jp(t.document,`mpadded`,[n],{voffset:`0.1em`,lspace:`-0.15em`,depth:`-0.2em`,height:`-0.2em`})]}function am(e){let t=tm(e),[n,r,...i]=[...e.children],a=n&&!Ip(n)?n:null,o=r&&!Ip(r)?r:null,s=Pp(e,`longdivstyle`)??`lefttop`,c=Hp(e),l=[];Wp(i,0,0,t,l);let u=l.find(e=>e.kind===`digits`);u||(u={kind:`digits`,cells:[],anchor:0,position:0},l.unshift(u));let d=[],f=(...e)=>{u.cells.unshift(...e),u.anchor+=e.length},p=(...e)=>{let n=e.flatMap(e=>e?e.localName===`mrow`?[...e.children]:[e]:[]);u.cells.push(...Rp(n,0,t).cells)};switch(s){case`left/\\right`:f(a,Mp(t,`/`)),p(Mp(t,`\\`),o);break;case`left)(right`:f(a,Mp(t,`)`)),p(Mp(t,`(`),o);break;case`:right=right`:p(Mp(t,`:`),a,Mp(t,`=`),o);break;case`righttop`:case`stackedleftlinetop`:case`lefttop`:o&&Wp([o],0,0,t,d),l.splice(l.indexOf(u),0,...d),s===`righttop`?p(a):s===`stackedleftlinetop`?f(a):f(...im(a,t));break}let m=$p(l,t),h=m.rows,g=m.rowOf.get(u)??0,_=e=>m.origin+Gp(u)+e,v=Math.max(_(u.cells.length-1),...d.map(e=>m.origin+qp(e)));switch(s){case`left/\\right`:case`left)(right`:case`:right=right`:break;case`righttop`:{let e=h[g][_(u.cells.length-1)];e.borders.left=c,e.borders.bottom=c,rm(h,g,_(0),_(u.cells.length-1),`top`,c);break}case`stackedleftlinetop`:{let e=h[g][_(0)];e.borders.right=c,e.borders.bottom=c,rm(h,g,_(1),v,`top`,c);break}case`stackedrightright`:case`mediumstackedrightright`:case`shortstackedrightright`:case`stackedleftleft`:om(h,g,s,a,o,c,t);break;default:rm(h,g,_(1),v,`top`,c)}return em(e,m,t)}function om(e,t,n,r,i,a,o){let s=n===`stackedleftleft`,c=s?`right`:`left`,l=e=>e&&jp(o.document,`mpadded`,[e],{lspace:`0.2em`,width:`+0.4em`});e.length<t+2&&e.push(e[0].map(()=>({content:null,borders:{}}))),e.forEach((e,o)=>{let u={content:null,borders:{},align:s?`right`:`left`};o===t?(u.content=l(r),u.borders={[c]:a,bottom:a}):o===t+1?(u.content=l(i),n!==`shortstackedrightright`&&(u.borders[c]=a)):o>t+1&&(n===`stackedrightright`||s)&&(u.borders[c]=a),s?e.unshift(u):e.push(u)})}function sm(e){for(let t of[...e.querySelectorAll(`mstack, mlongdiv`)])!t.closest(`math`)||t.closest(`mjx-container`)||t.replaceWith(t.localName===`mstack`?nm(t):am(t))}var cm=`PIE-MJX-explorer-styles`,lm=`var(--pie-text, black)`,um=`var(--pie-background, #ffffff)`,dm=`var(--pie-border-dark, #66686A)`,fm=`var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-focus-checked-border, #1565C0)))`,pm=`color-mix(in srgb, ${fm} 15%, transparent)`,mm=`
|
|
51
51
|
:root mjx-container [data-sre-highlight-1]:not([data-mjx-collapsed], rect) {
|
|
52
|
-
color: ${
|
|
53
|
-
fill: ${
|
|
52
|
+
color: ${lm} !important;
|
|
53
|
+
fill: ${lm} !important;
|
|
54
54
|
}
|
|
55
55
|
:root mjx-container:not([data-mjx-clone-container]) [data-sre-highlight-1]:not([data-sre-enclosed], rect) {
|
|
56
|
-
background-color: ${
|
|
56
|
+
background-color: ${pm} !important;
|
|
57
57
|
}
|
|
58
58
|
:root mjx-container rect[data-sre-highlight-1]:not([data-sre-enclosed]) {
|
|
59
|
-
fill: ${
|
|
59
|
+
fill: ${pm} !important;
|
|
60
60
|
}
|
|
61
61
|
:root mjx-container .mjx-selected {
|
|
62
|
-
outline: 2px solid ${
|
|
62
|
+
outline: 2px solid ${fm} !important;
|
|
63
63
|
}
|
|
64
64
|
:root mjx-container [data-sre-highlight-2] {
|
|
65
|
-
color: ${
|
|
65
|
+
color: ${lm} !important;
|
|
66
66
|
background-color: transparent !important;
|
|
67
|
-
fill: ${
|
|
68
|
-
outline: 2px dashed ${
|
|
67
|
+
fill: ${lm} !important;
|
|
68
|
+
outline: 2px dashed ${fm} !important;
|
|
69
69
|
}
|
|
70
70
|
:root mjx-container rect[data-sre-highlight-2] {
|
|
71
71
|
fill: transparent !important;
|
|
72
|
-
stroke: ${
|
|
72
|
+
stroke: ${fm} !important;
|
|
73
73
|
stroke-width: 2px !important;
|
|
74
74
|
vector-effect: non-scaling-stroke;
|
|
75
75
|
}
|
|
76
76
|
:root .MJX_LiveRegion, :root .MJX_HoverRegion, :root .MJX_ToolTip {
|
|
77
|
-
color: ${
|
|
78
|
-
background-color: ${
|
|
79
|
-
border-color: ${
|
|
77
|
+
color: ${lm} !important;
|
|
78
|
+
background-color: ${um} !important;
|
|
79
|
+
border-color: ${dm} !important;
|
|
80
80
|
}
|
|
81
81
|
:root .MJX_LiveRegion > div, :root .MJX_HoverRegion > div {
|
|
82
|
-
color: ${
|
|
83
|
-
background-color: ${
|
|
82
|
+
color: ${lm} !important;
|
|
83
|
+
background-color: ${pm} !important;
|
|
84
84
|
}
|
|
85
|
-
`;function cm(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=tm,t.textContent=sm,e.head.appendChild(t)}var lm=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function um(){let e=globalThis;e[lm]||(e[lm]=!0,console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${If}`))}function dm(e){let t=e.webworker;if(!t||t.ready)return;e.options??={};let n=e.options;n.enableSpeech=!1,n.enableBraille=!1,n.speechError=()=>{},t.Post=()=>Promise.reject(Error(`The speech worker did not start`)),t.Terminate(),um()}function fm(e){let t=e?.adaptor,n=t?.createWorker;!e||!t||!n||(t.createWorker=async(r,i)=>{let a=await n.call(t,r,i);return a.addEventListener(`error`,()=>dm(e),{once:!0}),a})}`${zf}`;var pm={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},mm=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,hm=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,gm=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,_m=/\\embed\{newLine\}\[\]/g,vm=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],ym=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),bm=`MJX-CHTML-styles`,xm=`PIE-MJX-SVG-styles`,Sm=`PIE-MathJax-Menu-Settings`,Cm={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},wm=200,Tm=201;function Em(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function Dm(e){for(let[t,n]of vm)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function Om(e){return Dm(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var km=`mathjax_ignore`,Am=`mathjax_process`;function jm(e,t){let n=e.closest(`.${km}, .${Am}`);return n!==null&&t.contains(n)&&!n.classList.contains(Am)}function Mm(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||jm(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${Om(n)}\\)`.replace(_m,`\\newline `),t.dataset.mathHandled=`true`)}}function Nm(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function Pm(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?gm:hm).test(e.textContent??``)}function Fm(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=Kf(e,{}.url),c={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=ip();return Im(t)&&Lm(t),e}}},startup:{typeset:!1,ready:()=>{let e=ip(),r=e?.startup,i=Im(e);i&&(Lm(e),Rm(e,s.speechLocales),qf(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(zm(r?.document),r?.document?.addStyles?.(Cm),fm(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...pm}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}},a11y:{inTabOrder:!1}}};r&&c.tex&&(console.warn(mm),c.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],c.tex.processEscapes=!0),a||(c.chtml={fontURL:``});let l=Jf(s.speechLocales);l&&c.options&&(c.options.sre={locale:l}),op(c,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function Im(e){return!!e?.version?.startsWith(`4.`)}function Lm(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=cp);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=xm)}function Rm(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=Sm;try{let e=localStorage.getItem(Sm);if(!e)return;let{assistiveMml:n,locale:r,...i}=JSON.parse(e),a=r===void 0||!t||t.has(r);if(n===void 0&&a)return;a&&r!==void 0&&(i.locale=r),Object.keys(i).length?localStorage.setItem(Sm,JSON.stringify(i)):localStorage.removeItem(Sm)}catch{}}}function zm(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Em(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Tm,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Em(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===bm&&(r.id=cp),Hm()}function Bm(e){return e instanceof HTMLStyleElement&&lp.includes(e.id)}function Vm(e){np(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Hm(){let e=document.head,t=[...e.children].find(Bm);if(t){Vm(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(Bm);if(e){Vm(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Um(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=wm&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function Wm(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=ip()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function Gm(e){let t=ip();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Wm(t):Fm(e)}function Km(e){return Gm(e).then(()=>{let e=ip();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function qm(e){let t=sp,n=t[ym];return n||(n=Km(e),t[ym]=n),n}function Jm(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=up();r&&np(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),Mm(n),mp(n),Nm(n),em(n);let i=qm(e);if(!Pm(n,t)){i.catch(()=>{});return}await i;let a=ip();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){cm(),Um(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}Em(n)}}}var Ym=`@pie-lib/math-rendering`,Xm=`@pie-lib/math-rendering@2`,Zm=`pie-print`,Qm=50,$m=1e4,eh=null;function th(){return!!window[Xm]?.opts?.useSingleDollar}function nh(){return eh||=Jm({useSingleDollar:th()}),eh}function rh(){if(typeof window>`u`)return null;let e=window[Ym];return typeof e?.renderMath==`function`&&e.renderMath!==sh?e:null}function ih(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===Zm)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function ah(){let e=window.renderMath;return typeof e==`function`?e:null}async function oh(e){let t=ih(e);if(!t)return null;let n=ah();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+$m;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,Qm));let e=ah();if(e)return e}return null}var sh=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=rh(),i=r||t?null:await oh(n);return r?await r.renderMath?.(n):i&&i!==sh?await i(n):await nh()(n),t?n.innerHTML:void 0},ch={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},dragInTheBlank:{blank:`Blank {{index}}`},ebsr:{part:`Part {{index}}`,twoPartQuestion:`Two-Part Question`},editableHtml:{responseAreaToolbar:`Response area`,toolbar:`Editing tools`,buttons:{insertTable:`Insert table`,addTableRow:`Add table row`,removeTableRow:`Remove table row`,addTableColumn:`Add table column`,removeTableColumn:`Remove table column`,removeTable:`Remove table`,tableBorders:`Table borders`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,underline:`Underline`,subscript:`Subscript`,superscript:`Superscript`,insertImage:`Insert image`,insertVideo:`Insert video`,insertAudio:`Insert audio`,cssClasses:`CSS classes`,blockquote:`Blockquote`,heading:`Heading`,insertMath:`Insert math`,spanishCharacters:`Spanish characters (ñ)`,specialCharacters:`Special characters (€)`,textAlignment:`Text alignment`,bulletedList:`Bulleted list`,numberedList:`Numbered list`,done:`Done`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Fill in the Blank Question`,response:`Response {{index}} of {{total}}`},extendedTextEntry:{comment:`Comment`,constructedResponseQuestion:`Constructed Response Question`,response:`Your response`,writtenResponseQuestion:`Written Response Question`},fractionModel:{modelLabel_one:`Model {{index}} of {{total}}: {{selected}} of {{count}} part selected`,modelLabel_other:`Model {{index}} of {{total}}: {{selected}} of {{count}} parts selected`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`,closedEnd:`closed`,elementCorrect:`Correct.`,elementIncorrect:`Incorrect.`,graphLabel:`Number line from {{min}} to {{max}}, with a tick every {{interval}}`,line:`Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).`,openEnd:`open`,plottedNone:`Nothing is plotted.`,pointClosed:`Closed point at {{position}}.`,pointOpen:`Open point at {{position}}.`,rayLeft:`Ray from {{position}} ({{end}}) to the left.`,rayRight:`Ray from {{position}} ({{end}}) to the right.`},hotspot:{correctlySelected:`Correctly selected`,image_one:`Image with {{count}} hotspot`,image_other:`Image with {{count}} hotspots`,shape:`Hotspot {{index}} of {{total}}`,shouldHaveBeenSelected:`Should have been selected`,shouldNotHaveBeenSelected:`Should not have been selected`},imageClozeAssociation:{answerChoice:`Answer choice {{index}} of {{total}}`,image_one:`Image with {{count}} response area`,image_other:`Image with {{count}} response areas`,reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`,responseArea:`Response area {{index}} of {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Inline Dropdown Question`,query:`Query`,queryNumber:`Query {{index}}`,showRationaleForChoices:`Show Rationale for choices`,hideRationaleForChoices:`Hide Rationale for choices`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`,drawingArea:`Drawing area`,drawingAreaOverImage:`Drawing area over a background image`,tools:{select:`Select`,freeDraw:`Free Draw`,line:`Line`,rectangle:`Rectangle`,circle:`Circle`,textEntry:`Text Entry`,eraser:`Eraser`}},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,categoryLabel:`Category {{index}} label`,categoryLabelValue:`Category {{index}} label: {{label}}`,category:`Category {{index}}`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`},chartTypes:{bar:`Bar chart`,histogram:`Histogram`,lineDot:`Line chart with dots`,lineCross:`Line chart with crosses`,dotPlot:`Dot plot`,linePlot:`Line plot`},categories_zero:`No categories.`,categories_one:`{{count}} category: {{categories}}.`,categories_other:`{{count}} categories: {{categories}}.`,valueRange:`Values from {{min}} to {{max}}.`,labelledValueRange:`{{label}} from {{min}} to {{max}}.`},graphing:{graph:`Coordinate graph`,axisRange:`{{axis}} axis from {{min}} to {{max}}.`,plotted_zero:`Nothing plotted.`,plotted_one:`{{count}} object plotted: {{marks}}.`,plotted_other:`{{count}} objects plotted: {{marks}}.`,shadedRegion:`Shaded region`,point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,markLabel:`Label at ({{x}}, {{y}})`,correctMarkLabel:`Correct label at ({{x}}, {{y}})`,redo:`Redo`,reset:`Reset`,keyLegend:{missingRequiredLabel:`Missing Required Label`,answerKeyCorrect:`Answer Key Correct`,answerKeyCorrectLabel:`Answer Key Correct Label`,studentIncorrect:`Student Incorrect`,incorrectStudentLabel:`Incorrect Student Label`,studentCorrect:`Student Correct`,studentCorrectLabel:`Student Correct Label`}},mathInline:{keypadInstructions:`This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.`,mathEquationResponseQuestion:`Math Equation Response Question`,mathResponseQuestion:`Math Response Question`,primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mathInput:{enterAnswer:`Enter answer`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`,multipleChoiceQuestion:`Multiple Choice Question`,multipleCorrectAnswerQuestion:`Multiple Correct Answer Question`,multipleSelectQuestion:`Multiple Select Question`},rubric:{rubric:`Rubric`,showRubric:`Show Rubric`,hideRubric:`Hide Rubric`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`,textGroup:`Selectable text`,textGroupWithLimit:`Selectable text, select up to {{max}}`,tokenPosition:`{{index}} of {{total}}`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,show:`Show`,hide:`Hide`,showRationale:`Show Rationale`,hideRationale:`Hide Rationale`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`,playAudio:`Play audio`}},lh={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},dragInTheBlank:{blank:`Espacio en blanco {{index}}`},ebsr:{part:`Parte {{index}}`,twoPartQuestion:`Pregunta de dos partes`},editableHtml:{responseAreaToolbar:`Área de respuesta`,toolbar:`Herramientas de edición`,buttons:{insertTable:`Insertar tabla`,addTableRow:`Agregar fila a la tabla`,removeTableRow:`Eliminar fila de la tabla`,addTableColumn:`Agregar columna a la tabla`,removeTableColumn:`Eliminar columna de la tabla`,removeTable:`Eliminar tabla`,tableBorders:`Bordes de la tabla`,bold:`Negrita`,italic:`Cursiva`,strikethrough:`Tachado`,code:`Código`,underline:`Subrayado`,subscript:`Subíndice`,superscript:`Superíndice`,insertImage:`Insertar imagen`,insertVideo:`Insertar video`,insertAudio:`Insertar audio`,cssClasses:`Clases CSS`,blockquote:`Cita en bloque`,heading:`Encabezado`,insertMath:`Insertar expresión matemática`,spanishCharacters:`Caracteres del español (ñ)`,specialCharacters:`Caracteres especiales (€)`,textAlignment:`Alineación del texto`,bulletedList:`Lista con viñetas`,numberedList:`Lista numerada`,done:`Listo`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Pregunta para completar espacios en blanco`,response:`Respuesta {{index}} de {{total}}`},extendedTextEntry:{comment:`Comentario`,constructedResponseQuestion:`Pregunta de respuesta construida`,response:`Tu respuesta`,writtenResponseQuestion:`Pregunta de respuesta escrita`},fractionModel:{modelLabel_one:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} parte seleccionada`,modelLabel_other:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} partes seleccionadas`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`,closedEnd:`cerrado`,elementCorrect:`Correcto.`,elementIncorrect:`Incorrecto.`,graphLabel:`Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}`,line:`Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).`,openEnd:`abierto`,plottedNone:`No hay nada marcado en la recta.`,pointClosed:`Punto cerrado en {{position}}.`,pointOpen:`Punto abierto en {{position}}.`,rayLeft:`Rayo desde {{position}} ({{end}}) hacia la izquierda.`,rayRight:`Rayo desde {{position}} ({{end}}) hacia la derecha.`},hotspot:{correctlySelected:`Seleccionada correctamente`,image_one:`Imagen con {{count}} zona activa`,image_other:`Imagen con {{count}} zonas activas`,shape:`Zona activa {{index}} de {{total}}`,shouldHaveBeenSelected:`Debía seleccionarse`,shouldNotHaveBeenSelected:`No debía seleccionarse`},imageClozeAssociation:{answerChoice:`Opción de respuesta {{index}} de {{total}}`,image_one:`Imagen con {{count}} área de respuesta`,image_other:`Imagen con {{count}} áreas de respuesta`,reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`,responseArea:`Área de respuesta {{index}} de {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Pregunta con menú desplegable`,query:`Consulta`,queryNumber:`Consulta {{index}}`,showRationaleForChoices:`Mostrar justificación de las opciones`,hideRationaleForChoices:`Ocultar justificación de las opciones`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`,drawingArea:`Área de dibujo`,drawingAreaOverImage:`Área de dibujo sobre una imagen de fondo`,tools:{select:`Seleccionar`,freeDraw:`Dibujo libre`,line:`Línea`,rectangle:`Rectángulo`,circle:`Círculo`,textEntry:`Entrada de texto`,eraser:`Borrador`}},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,categoryLabel:`Etiqueta de la categoría {{index}}`,categoryLabelValue:`Etiqueta de la categoría {{index}}: {{label}}`,category:`Categoría {{index}}`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`},chartTypes:{bar:`Gráfico de barras`,histogram:`Histograma`,lineDot:`Gráfico de líneas con puntos`,lineCross:`Gráfico de líneas con cruces`,dotPlot:`Diagrama de puntos`,linePlot:`Diagrama de líneas`},categories_zero:`Sin categorías.`,categories_one:`{{count}} categoría: {{categories}}.`,categories_other:`{{count}} categorías: {{categories}}.`,valueRange:`Valores de {{min}} a {{max}}.`,labelledValueRange:`{{label}} de {{min}} a {{max}}.`},graphing:{graph:`Gráfica de coordenadas`,axisRange:`Eje {{axis}} de {{min}} a {{max}}.`,plotted_zero:`Nada trazado.`,plotted_one:`{{count}} objeto trazado: {{marks}}.`,plotted_other:`{{count}} objetos trazados: {{marks}}.`,shadedRegion:`Región sombreada`,point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,markLabel:`Etiqueta en ({{x}}, {{y}})`,correctMarkLabel:`Etiqueta correcta en ({{x}}, {{y}})`,redo:`Rehacer`,reset:`Reiniciar`,keyLegend:{missingRequiredLabel:`Falta una etiqueta obligatoria`,answerKeyCorrect:`Clave de respuesta correcta`,answerKeyCorrectLabel:`Etiqueta correcta de la clave de respuesta`,studentIncorrect:`Respuesta incorrecta del estudiante`,incorrectStudentLabel:`Etiqueta incorrecta del estudiante`,studentCorrect:`Respuesta correcta del estudiante`,studentCorrectLabel:`Etiqueta correcta del estudiante`}},mathInline:{keypadInstructions:`Este campo admite la entrada con el teclado en pantalla y con el teclado físico. Usa el teclado físico para acceder al teclado matemático en pantalla e interactuar con él; este acepta notación LaTeX. Usa la tecla de flecha hacia abajo para abrir el teclado en pantalla y recorrer sus botones. Usa la tecla Escape para cerrar el teclado en pantalla y volver al campo de entrada.`,mathEquationResponseQuestion:`Pregunta de respuesta con ecuación matemática`,mathResponseQuestion:`Pregunta de respuesta matemática`,primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mathInput:{enterAnswer:`Escribe la respuesta`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`,multipleChoiceQuestion:`Pregunta de opción múltiple`,multipleCorrectAnswerQuestion:`Pregunta con varias respuestas correctas`,multipleSelectQuestion:`Pregunta de selección múltiple`},rubric:{rubric:`Rúbrica`,showRubric:`Mostrar rúbrica`,hideRubric:`Ocultar rúbrica`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`,textGroup:`Texto seleccionable`,textGroupWithLimit:`Texto seleccionable, selecciona hasta {{max}}`,tokenPosition:`{{index}} de {{total}}`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,show:`Mostrar`,hide:`Ocultar`,showRationale:`Mostrar justificación`,hideRationale:`Ocultar justificación`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`,playAudio:`Reproducir audio`}},Q=e=>typeof e==`string`,uh=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},dh=e=>e==null?``:``+e,fh=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},ph=/###/g,mh=e=>e&&e.indexOf(`###`)>-1?e.replace(ph,`.`):e,hh=e=>!e||Q(e),gh=(e,t,n)=>{let r=Q(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(hh(e))return{};let t=mh(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return hh(e)?{}:{obj:e,k:mh(r[i])}},_h=(e,t,n)=>{let{obj:r,k:i}=gh(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=gh(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=gh(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},vh=(e,t,n,r)=>{let{obj:i,k:a}=gh(e,t,Object);i[a]=i[a]||[],i[a].push(n)},yh=(e,t)=>{let{obj:n,k:r}=gh(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},bh=(e,t,n)=>{let r=yh(e,n);return r===void 0?yh(t,n):r},xh=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?Q(e[r])||e[r]instanceof String||Q(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):xh(e[r],t[r],n):e[r]=t[r]);return e},Sh=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Ch={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},wh=e=>Q(e)?e.replace(/[&<>"'\/]/g,e=>Ch[e]):e,Th=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Eh=[` `,`,`,`?`,`!`,`;`],Dh=new Th(20),Oh=(e,t,n)=>{t||=``,n||=``;let r=Eh.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Dh.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},kh=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Ah=e=>e?.replace(/_/g,`-`),jh={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},Mh=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||jh,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(Q(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Nh=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},Ph=class extends Nh{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):Q(n)&&i?o.push(...n.split(i)):o.push(n)));let s=yh(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!Q(n)?s:kh(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),_h(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(Q(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=yh(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?xh(s,n,i):s={...s,...n},_h(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Fh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},Ih=Symbol(`i18next/PATH_KEY`);function Lh(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Ih?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Rh(e,t){let{[Ih]:n}=e(Lh()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var zh={},Bh=e=>!Q(e)&&typeof e!=`boolean`&&typeof e!=`number`,Vh=class e extends Nh{constructor(e,t={}){super(),fh([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Mh.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=Bh(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Oh(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Q(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Q(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=Rh(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Rh(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!Q(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=Bh(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(Q(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:Bh(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&Q(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=Q(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!Q(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=Q(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Fh.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return Q(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Rh(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!Q(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(Q(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!zh[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(zh[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!Q(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Hh=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Mh.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Ah(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Ah(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Q(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),Q(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Q(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):Q(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Uh={zero:0,one:1,two:2,few:3,many:4,other:5},Wh={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Gh=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Mh.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Ah(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Wh;if(!e.match(/-|_/))return Wh;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Uh[e]-Uh[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},Kh=(e,t,n,r=`.`,i=!0)=>{let a=bh(e,t,n);return!a&&i&&Q(n)&&(a=kh(e,n,r),a===void 0&&(a=kh(t,n,r))),a},qh=e=>e.replace(/\$/g,`$$$$`),Jh=class{constructor(e={}){this.logger=Mh.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?wh:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Sh(i):a||`{{`,this.suffix=o?Sh(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Sh(d):f||Sh(`$t(`),this.nestingSuffix=p?Sh(p):m||Sh(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=Kh(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Kh(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>qh(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?qh(this.escape(e)):qh(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=Q(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!Q(a)&&!this.useRawValueToEscape&&(a=dh(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${Sh(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!Q(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Q(i))return i;Q(i)||(i=dh(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},Yh=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Xh=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Ah(r),i),t[o]=s),s(n)}},Zh=e=>(t,n,r)=>e(Ah(n),r)(t),Qh=class{constructor(e={}){this.logger=Mh.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Xh:Zh;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Xh(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=Yh(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},$h=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},eg=class extends Nh{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Mh.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{vh(n.loaded,[i],a),$h(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();Q(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Q(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},tg=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),Q(e[1])&&(t.defaultValue=e[1]),Q(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ng=e=>(Q(e.ns)&&(e.ns=[e.ns]),Q(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Q(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),rg=()=>{},ig=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},ag=`__i18next_supportNoticeShown`,og=()=>!!(typeof globalThis<`u`&&globalThis[ag]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),sg=()=>{typeof globalThis<`u`&&(globalThis[ag]=!0)},cg=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),lg=class e extends Nh{constructor(e={},t){if(super(),this.options=ng(e),this.services={},this.logger=Mh,this.modules={external:[]},ig(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(Q(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=tg();this.options={...n,...this.options,...ng(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!cg(this)&&!og()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),sg());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Mh.init(r(this.modules.logger),this.options):Mh.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:Qh;let t=new Hh(this.options);this.store=new Ph(this.options.resources,this.options);let i=this.services;i.logger=Mh,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new Gh(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new Jh(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new eg(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Vh(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=rg,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=uh(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=rg){let n=t,r=Q(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=uh();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=rg,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Fh.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=uh();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=Q(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(Q(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=Rh(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=Rh(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=Rh(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return Q(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=uh();return this.options.ns?(Q(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=uh();Q(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Hh(tg());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=rg){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Ph(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...tg().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new Jh(n)}return a.translator=new Vh(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();lg.createInstance,lg.dir,lg.init,lg.loadResources,lg.reloadResources,lg.use,lg.changeLanguage,lg.getFixedT,lg.t,lg.exists,lg.setDefaultNamespace,lg.hasLoadedNamespace,lg.loadNamespaces,lg.loadLanguages,lg.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:ch,es:lh}});var ug={translator:{...lg,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return lg.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},dg=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,fg=e=>V.useState(()=>dg(e))[0],{translator:pg}=ug,mg=K(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:Md(),cursor:`pointer`}),hg=K(`span`)({borderBottom:`1px dotted currentColor`}),gg=K(Pf)(({theme:e})=>({paddingTop:e.spacing(2)})),_g=class extends V.Component{static propTypes={className:x.string,children:x.object,labels:x.shape({visible:x.string,hidden:x.string}),language:x.string};static defaultProps={labels:{}};state={expanded:!1};panelId=dg(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){sh(this.root)}componentDidUpdate(){sh(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=i?e.visible||pg.t(`common:hide`,{lng:r}):e.hidden||pg.t(`common:show`,{lng:r});return(0,H.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,H.jsx)(`div`,{children:(0,H.jsx)(mg,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,H.jsx)(hg,{children:a})})}),(0,H.jsx)(`div`,{id:this.panelId,children:(0,H.jsx)(gg,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}};function vg(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var yg=class e{static create(){return new e}static use(){let t=as(e.create).current,[n,r]=V.useState(!1);return t.shouldMount=n,t.setShouldMount=r,V.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=xg(),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 bg(){return yg.use()}function xg(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Sg(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=V.useState(!1),f=U(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=U(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),V.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,H.jsx)(`span`,{className:f,style:p,children:(0,H.jsx)(`span`,{className:m})})}var Cg=Fr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),wg=550,Tg=Nt`
|
|
85
|
+
`;function hm(e=document){if(e.getElementById(`PIE-MJX-explorer-styles`))return;let t=e.createElement(`style`);t.id=cm,t.textContent=mm,e.head.appendChild(t)}var gm=Symbol.for(`@pie-element/shared-math-rendering-mathjax/speech-worker-failed`);function _m(){let e=globalThis;e[gm]||(e[gm]=!0,console.warn(`[math-rendering] MathJax's speech worker did not start, so speech, braille and the explorer are off. A content security policy must allow blob: workers, and scripts and fetches from the asset root. See ${Uf}`))}function vm(e){let t=e.webworker;if(!t||t.ready)return;e.options??={};let n=e.options;n.enableSpeech=!1,n.enableBraille=!1,n.speechError=()=>{},t.Post=()=>Promise.reject(Error(`The speech worker did not start`)),t.Terminate(),_m()}function ym(e){let t=e?.adaptor,n=t?.createWorker;!e||!t||!n||(t.createWorker=async(r,i)=>{let a=await n.call(t,r,i);return a.addEventListener(`error`,()=>vm(e),{once:!0}),a})}`${Kf}`;var bm={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},xm=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,Sm=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,Cm=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,wm=/\\embed\{newLine\}\[\]/g,Tm=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],Em=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),Dm=`MJX-CHTML-styles`,Om=`PIE-MJX-SVG-styles`,km=`PIE-MathJax-Menu-Settings`,Am={'mjx-container[overflow="linebreak"][display]':{overflow:`auto clip`,"min-width":`initial !important`}},jm=200,Mm=201;function Nm(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function Pm(e){for(let[t,n]of Tm)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function Fm(e){return Pm(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var Im=`mathjax_ignore`,Lm=`mathjax_process`;function Rm(e,t){let n=e.closest(`.${Im}, .${Lm}`);return n!==null&&t.contains(n)&&!n.classList.contains(Lm)}function zm(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||Rm(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${Fm(n)}\\)`.replace(wm,`\\newline `),t.dataset.mathHandled=`true`)}}function Bm(e){for(let t of e.querySelectorAll(`math`))t.closest(`mjx-container`)||t.setAttribute(`displaystyle`,`true`)}function Vm(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?Cm:Sm).test(e.textContent??``)}function Hm(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s=$f(e,{}.url),c={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e),"output/svg":{ready:e=>{let t=dp();return Um(t)&&Wm(t),e}}},startup:{typeset:!1,ready:()=>{let e=dp(),r=e?.startup,i=Um(e);i&&(Wm(e),Gm(e,s.speechLocales),ep(e?._?.a11y?.sre_ts?.locales,s.speechLocales)),r?.defaultReady?.(),i&&(Km(r?.document),r?.document?.addStyles?.(Am),ym(r?.document)),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...bm}},output:{displayOverflow:`linebreak`},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}},a11y:{inTabOrder:!1}}};r&&c.tex&&(console.warn(xm),c.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],c.tex.processEscapes=!0),a||(c.chtml={fontURL:``});let l=tp(s.speechLocales);l&&c.options&&(c.options.sre={locale:l}),pp(c,{...s,srcUrl:o}).then(e=>{e||t()},n)})}function Um(e){return!!e?.version?.startsWith(`4.`)}function Wm(e){let t=e?._?.output,n=t?.chtml_ts?.CHTML;n&&(n.STYLESHEETID=hp);let r=t?.svg_ts?.SVG;r&&(r.STYLESHEETID=Om)}function Gm(e,t){let n=e?._?.ui?.menu?.Menu?.Menu;if(n){n.MENU_STORAGE=km;try{let e=localStorage.getItem(km);if(!e)return;let{assistiveMml:n,locale:r,...i}=JSON.parse(e),a=r===void 0||!t||t.has(r);if(n===void 0&&a)return;a&&r!==void 0&&(i.locale=r),Object.keys(i).length?localStorage.setItem(km,JSON.stringify(i)):localStorage.removeItem(km)}catch{}}}function Km(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(Nm(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,Mm,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&Nm(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===Dm&&(r.id=hp),Ym()}function qm(e){return e instanceof HTMLStyleElement&&gp.includes(e.id)}function Jm(e){lp(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function Ym(){let e=document.head,t=[...e.children].find(qm);if(t){Jm(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(qm);if(e){Jm(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function Xm(e){let t=e?.math;if(!t?.remove)return;let n=[...t].filter(e=>(e.state?.()??0)>=jm&&e.typesetRoot?.isConnected===!1);if(n.length!==0){for(let e of[...n].reverse())e.clear?.();t.remove(...n)}}function Zm(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=dp()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function Qm(e){let t=dp();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():Zm(t):Hm(e)}function $m(e){return Qm(e).then(()=>{let e=dp();e&&typeof e.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function eh(e){let t=mp,n=t[Em];return n||(n=$m(e),t[Em]=n),n}function th(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=_p();r&&lp(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),zm(n),xp(n),Bm(n),sm(n);let i=eh(e);if(!Vm(n,t)){i.catch(()=>{});return}await i;let a=dp();if(await a?.startup?.promise,typeof a?.typesetPromise==`function`){hm(),Xm(a.startup?.document);try{await a.typesetPromise([n])}catch(e){throw a.typesetClear?.([n]),e}Nm(n)}}}var nh=`@pie-lib/math-rendering`,rh=`@pie-lib/math-rendering@2`,ih=`pie-print`,ah=50,oh=1e4,sh=null;function ch(){return!!window[rh]?.opts?.useSingleDollar}function lh(){return sh||=th({useSingleDollar:ch()}),sh}function uh(){if(typeof window>`u`)return null;let e=window[nh];return typeof e?.renderMath==`function`&&e.renderMath!==mh?e:null}function dh(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===ih)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function fh(){let e=window.renderMath;return typeof e==`function`?e:null}async function ph(e){let t=dh(e);if(!t)return null;let n=fh();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+oh;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,ah));let e=fh();if(e)return e}return null}var mh=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=uh(),i=r||t?null:await ph(n);return r?await r.renderMath?.(n):i&&i!==mh?await i(n):await lh()(n),t?n.innerHTML:void 0},hh={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},dragInTheBlank:{blank:`Blank {{index}}`},ebsr:{part:`Part {{index}}`,twoPartQuestion:`Two-Part Question`},editableHtml:{responseAreaToolbar:`Response area`,toolbar:`Editing tools`,buttons:{insertTable:`Insert table`,addTableRow:`Add table row`,removeTableRow:`Remove table row`,addTableColumn:`Add table column`,removeTableColumn:`Remove table column`,removeTable:`Remove table`,tableBorders:`Table borders`,bold:`Bold`,italic:`Italic`,strikethrough:`Strikethrough`,code:`Code`,underline:`Underline`,subscript:`Subscript`,superscript:`Superscript`,insertImage:`Insert image`,insertVideo:`Insert video`,insertAudio:`Insert audio`,cssClasses:`CSS classes`,blockquote:`Blockquote`,heading:`Heading`,insertMath:`Insert math`,spanishCharacters:`Spanish characters (ñ)`,specialCharacters:`Special characters (€)`,textAlignment:`Text alignment`,bulletedList:`Bulleted list`,numberedList:`Numbered list`,done:`Done`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Fill in the Blank Question`,response:`Response {{index}} of {{total}}`},extendedTextEntry:{comment:`Comment`,constructedResponseQuestion:`Constructed Response Question`,response:`Your response`,writtenResponseQuestion:`Written Response Question`},fractionModel:{modelLabel_one:`Model {{index}} of {{total}}: {{selected}} of {{count}} part selected`,modelLabel_other:`Model {{index}} of {{total}}: {{selected}} of {{count}} parts selected`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`,closedEnd:`closed`,elementCorrect:`Correct.`,elementIncorrect:`Incorrect.`,graphLabel:`Number line from {{min}} to {{max}}, with a tick every {{interval}}`,line:`Line from {{left}} ({{leftEnd}}) to {{right}} ({{rightEnd}}).`,openEnd:`open`,plottedNone:`Nothing is plotted.`,pointClosed:`Closed point at {{position}}.`,pointOpen:`Open point at {{position}}.`,rayLeft:`Ray from {{position}} ({{end}}) to the left.`,rayRight:`Ray from {{position}} ({{end}}) to the right.`},hotspot:{correctlySelected:`Correctly selected`,image_one:`Image with {{count}} hotspot`,image_other:`Image with {{count}} hotspots`,shape:`Hotspot {{index}} of {{total}}`,shouldHaveBeenSelected:`Should have been selected`,shouldNotHaveBeenSelected:`Should not have been selected`},imageClozeAssociation:{answerChoice:`Answer choice {{index}} of {{total}}`,image_one:`Image with {{count}} response area`,image_other:`Image with {{count}} response areas`,reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`,responseArea:`Response area {{index}} of {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Inline Dropdown Question`,query:`Query`,queryNumber:`Query {{index}}`,showRationaleForChoices:`Show Rationale for choices`,hideRationaleForChoices:`Hide Rationale for choices`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`,drawingArea:`Drawing area`,drawingAreaOverImage:`Drawing area over a background image`,tools:{select:`Select`,freeDraw:`Free Draw`,line:`Line`,rectangle:`Rectangle`,circle:`Circle`,textEntry:`Text Entry`,eraser:`Eraser`}},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,categoryLabel:`Category {{index}} label`,categoryLabelValue:`Category {{index}} label: {{label}}`,category:`Category {{index}}`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`},chartTypes:{bar:`Bar chart`,histogram:`Histogram`,lineDot:`Line chart with dots`,lineCross:`Line chart with crosses`,dotPlot:`Dot plot`,linePlot:`Line plot`},categories_zero:`No categories.`,categories_one:`{{count}} category: {{categories}}.`,categories_other:`{{count}} categories: {{categories}}.`,valueRange:`Values from {{min}} to {{max}}.`,labelledValueRange:`{{label}} from {{min}} to {{max}}.`},graphing:{graph:`Coordinate graph`,axisRange:`{{axis}} axis from {{min}} to {{max}}.`,plotted_zero:`Nothing plotted.`,plotted_one:`{{count}} object plotted: {{marks}}.`,plotted_other:`{{count}} objects plotted: {{marks}}.`,shadedRegion:`Shaded region`,point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,markLabel:`Label at ({{x}}, {{y}})`,correctMarkLabel:`Correct label at ({{x}}, {{y}})`,redo:`Redo`,reset:`Reset`,keyLegend:{missingRequiredLabel:`Missing Required Label`,answerKeyCorrect:`Answer Key Correct`,answerKeyCorrectLabel:`Answer Key Correct Label`,studentIncorrect:`Student Incorrect`,incorrectStudentLabel:`Incorrect Student Label`,studentCorrect:`Student Correct`,studentCorrectLabel:`Student Correct Label`}},mathInline:{keypadInstructions:`This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.`,mathEquationResponseQuestion:`Math Equation Response Question`,mathResponseQuestion:`Math Response Question`,primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mathInput:{enterAnswer:`Enter answer`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`,multipleChoiceQuestion:`Multiple Choice Question`,multipleCorrectAnswerQuestion:`Multiple Correct Answer Question`,multipleSelectQuestion:`Multiple Select Question`},rubric:{rubric:`Rubric`,showRubric:`Show Rubric`,hideRubric:`Hide Rubric`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`,textGroup:`Selectable text`,textGroupWithLimit:`Selectable text, select up to {{max}}`,tokenPosition:`{{index}} of {{total}}`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,show:`Show`,hide:`Hide`,showRationale:`Show Rationale`,hideRationale:`Hide Rationale`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`,playAudio:`Play audio`}},gh={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},dragInTheBlank:{blank:`Espacio en blanco {{index}}`},ebsr:{part:`Parte {{index}}`,twoPartQuestion:`Pregunta de dos partes`},editableHtml:{responseAreaToolbar:`Área de respuesta`,toolbar:`Herramientas de edición`,buttons:{insertTable:`Insertar tabla`,addTableRow:`Agregar fila a la tabla`,removeTableRow:`Eliminar fila de la tabla`,addTableColumn:`Agregar columna a la tabla`,removeTableColumn:`Eliminar columna de la tabla`,removeTable:`Eliminar tabla`,tableBorders:`Bordes de la tabla`,bold:`Negrita`,italic:`Cursiva`,strikethrough:`Tachado`,code:`Código`,underline:`Subrayado`,subscript:`Subíndice`,superscript:`Superíndice`,insertImage:`Insertar imagen`,insertVideo:`Insertar video`,insertAudio:`Insertar audio`,cssClasses:`Clases CSS`,blockquote:`Cita en bloque`,heading:`Encabezado`,insertMath:`Insertar expresión matemática`,spanishCharacters:`Caracteres del español (ñ)`,specialCharacters:`Caracteres especiales (€)`,textAlignment:`Alineación del texto`,bulletedList:`Lista con viñetas`,numberedList:`Lista numerada`,done:`Listo`}},explicitConstructedResponse:{fillInTheBlankQuestion:`Pregunta para completar espacios en blanco`,response:`Respuesta {{index}} de {{total}}`},extendedTextEntry:{comment:`Comentario`,constructedResponseQuestion:`Pregunta de respuesta construida`,response:`Tu respuesta`,writtenResponseQuestion:`Pregunta de respuesta escrita`},fractionModel:{modelLabel_one:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} parte seleccionada`,modelLabel_other:`Modelo {{index}} de {{total}}: {{selected}} de {{count}} partes seleccionadas`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`,closedEnd:`cerrado`,elementCorrect:`Correcto.`,elementIncorrect:`Incorrecto.`,graphLabel:`Recta numérica de {{min}} a {{max}}, con una marca cada {{interval}}`,line:`Línea de {{left}} ({{leftEnd}}) a {{right}} ({{rightEnd}}).`,openEnd:`abierto`,plottedNone:`No hay nada marcado en la recta.`,pointClosed:`Punto cerrado en {{position}}.`,pointOpen:`Punto abierto en {{position}}.`,rayLeft:`Rayo desde {{position}} ({{end}}) hacia la izquierda.`,rayRight:`Rayo desde {{position}} ({{end}}) hacia la derecha.`},hotspot:{correctlySelected:`Seleccionada correctamente`,image_one:`Imagen con {{count}} zona activa`,image_other:`Imagen con {{count}} zonas activas`,shape:`Zona activa {{index}} de {{total}}`,shouldHaveBeenSelected:`Debía seleccionarse`,shouldNotHaveBeenSelected:`No debía seleccionarse`},imageClozeAssociation:{answerChoice:`Opción de respuesta {{index}} de {{total}}`,image_one:`Imagen con {{count}} área de respuesta`,image_other:`Imagen con {{count}} áreas de respuesta`,reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`,responseArea:`Área de respuesta {{index}} de {{total}}`},inlineDropdown:{inlineDropdownQuestion:`Pregunta con menú desplegable`,query:`Consulta`,queryNumber:`Consulta {{index}}`,showRationaleForChoices:`Mostrar justificación de las opciones`,hideRationaleForChoices:`Ocultar justificación de las opciones`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`,drawingArea:`Área de dibujo`,drawingAreaOverImage:`Área de dibujo sobre una imagen de fondo`,tools:{select:`Seleccionar`,freeDraw:`Dibujo libre`,line:`Línea`,rectangle:`Rectángulo`,circle:`Círculo`,textEntry:`Entrada de texto`,eraser:`Borrador`}},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,categoryLabel:`Etiqueta de la categoría {{index}}`,categoryLabelValue:`Etiqueta de la categoría {{index}}: {{label}}`,category:`Categoría {{index}}`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`},chartTypes:{bar:`Gráfico de barras`,histogram:`Histograma`,lineDot:`Gráfico de líneas con puntos`,lineCross:`Gráfico de líneas con cruces`,dotPlot:`Diagrama de puntos`,linePlot:`Diagrama de líneas`},categories_zero:`Sin categorías.`,categories_one:`{{count}} categoría: {{categories}}.`,categories_other:`{{count}} categorías: {{categories}}.`,valueRange:`Valores de {{min}} a {{max}}.`,labelledValueRange:`{{label}} de {{min}} a {{max}}.`},graphing:{graph:`Gráfica de coordenadas`,axisRange:`Eje {{axis}} de {{min}} a {{max}}.`,plotted_zero:`Nada trazado.`,plotted_one:`{{count}} objeto trazado: {{marks}}.`,plotted_other:`{{count}} objetos trazados: {{marks}}.`,shadedRegion:`Región sombreada`,point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,markLabel:`Etiqueta en ({{x}}, {{y}})`,correctMarkLabel:`Etiqueta correcta en ({{x}}, {{y}})`,redo:`Rehacer`,reset:`Reiniciar`,keyLegend:{missingRequiredLabel:`Falta una etiqueta obligatoria`,answerKeyCorrect:`Clave de respuesta correcta`,answerKeyCorrectLabel:`Etiqueta correcta de la clave de respuesta`,studentIncorrect:`Respuesta incorrecta del estudiante`,incorrectStudentLabel:`Etiqueta incorrecta del estudiante`,studentCorrect:`Respuesta correcta del estudiante`,studentCorrectLabel:`Etiqueta correcta del estudiante`}},mathInline:{keypadInstructions:`Este campo admite la entrada con el teclado en pantalla y con el teclado físico. Usa el teclado físico para acceder al teclado matemático en pantalla e interactuar con él; este acepta notación LaTeX. Usa la tecla de flecha hacia abajo para abrir el teclado en pantalla y recorrer sus botones. Usa la tecla Escape para cerrar el teclado en pantalla y volver al campo de entrada.`,mathEquationResponseQuestion:`Pregunta de respuesta con ecuación matemática`,mathResponseQuestion:`Pregunta de respuesta matemática`,primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mathInput:{enterAnswer:`Escribe la respuesta`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`,multipleChoiceQuestion:`Pregunta de opción múltiple`,multipleCorrectAnswerQuestion:`Pregunta con varias respuestas correctas`,multipleSelectQuestion:`Pregunta de selección múltiple`},rubric:{rubric:`Rúbrica`,showRubric:`Mostrar rúbrica`,hideRubric:`Ocultar rúbrica`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`,textGroup:`Texto seleccionable`,textGroupWithLimit:`Texto seleccionable, selecciona hasta {{max}}`,tokenPosition:`{{index}} de {{total}}`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,show:`Mostrar`,hide:`Ocultar`,showRationale:`Mostrar justificación`,hideRationale:`Ocultar justificación`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`,playAudio:`Reproducir audio`}},Q=e=>typeof e==`string`,_h=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},vh=e=>e==null?``:``+e,yh=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},bh=/###/g,xh=e=>e&&e.indexOf(`###`)>-1?e.replace(bh,`.`):e,Sh=e=>!e||Q(e),Ch=(e,t,n)=>{let r=Q(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Sh(e))return{};let t=xh(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Sh(e)?{}:{obj:e,k:xh(r[i])}},wh=(e,t,n)=>{let{obj:r,k:i}=Ch(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Ch(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Ch(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Th=(e,t,n,r)=>{let{obj:i,k:a}=Ch(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Eh=(e,t)=>{let{obj:n,k:r}=Ch(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Dh=(e,t,n)=>{let r=Eh(e,n);return r===void 0?Eh(t,n):r},Oh=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?Q(e[r])||e[r]instanceof String||Q(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Oh(e[r],t[r],n):e[r]=t[r]);return e},kh=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Ah={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},jh=e=>Q(e)?e.replace(/[&<>"'\/]/g,e=>Ah[e]):e,Mh=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Nh=[` `,`,`,`?`,`!`,`;`],Ph=new Mh(20),Fh=(e,t,n)=>{t||=``,n||=``;let r=Nh.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Ph.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Ih=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Lh=e=>e?.replace(/_/g,`-`),Rh={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},zh=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||Rh,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(Q(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Bh=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},Vh=class extends Bh{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):Q(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Eh(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!Q(n)?s:Ih(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),wh(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(Q(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Eh(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Oh(s,n,i):s={...s,...n},wh(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Hh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},Uh=Symbol(`i18next/PATH_KEY`);function Wh(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===Uh?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Gh(e,t){let{[Uh]:n}=e(Wh()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var Kh={},qh=e=>!Q(e)&&typeof e!=`boolean`&&typeof e!=`number`,Jh=class e extends Bh{constructor(e,t={}){super(),yh([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=zh.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=qh(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Fh(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Q(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Q(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=Gh(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?Gh(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!Q(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=qh(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!(Q(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:qh(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&Q(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=Q(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!Q(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=Q(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=Hh.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return Q(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?Gh(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!Q(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(Q(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!Kh[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(Kh[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!Q(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Yh=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zh.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Lh(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Lh(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Q(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),Q(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Q(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):Q(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Xh={zero:0,one:1,two:2,few:3,many:4,other:5},Zh={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},Qh=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=zh.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=Lh(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),Zh;if(!e.match(/-|_/))return Zh;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Xh[e]-Xh[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},$h=(e,t,n,r=`.`,i=!0)=>{let a=Dh(e,t,n);return!a&&i&&Q(n)&&(a=Ih(e,n,r),a===void 0&&(a=Ih(t,n,r))),a},eg=e=>e.replace(/\$/g,`$$$$`),tg=class{constructor(e={}){this.logger=zh.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?jh:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?kh(i):a||`{{`,this.suffix=o?kh(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?kh(d):f||kh(`$t(`),this.nestingSuffix=p?kh(p):m||kh(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=$h(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format($h(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>eg(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?eg(this.escape(e)):eg(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=Q(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!Q(a)&&!this.useRawValueToEscape&&(a=vh(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${kh(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!Q(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Q(i))return i;Q(i)||(i=vh(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},ng=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},rg=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Lh(r),i),t[o]=s),s(n)}},ig=e=>(t,n,r)=>e(Lh(n),r)(t),ag=class{constructor(e={}){this.logger=zh.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?rg:ig;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=rg(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=ng(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},og=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},sg=class extends Bh{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=zh.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Th(n.loaded,[i],a),og(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();Q(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Q(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},cg=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),Q(e[1])&&(t.defaultValue=e[1]),Q(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),lg=e=>(Q(e.ns)&&(e.ns=[e.ns]),Q(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Q(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),ug=()=>{},dg=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},fg=`__i18next_supportNoticeShown`,pg=()=>!!(typeof globalThis<`u`&&globalThis[fg]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),mg=()=>{typeof globalThis<`u`&&(globalThis[fg]=!0)},hg=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),gg=class e extends Bh{constructor(e={},t){if(super(),this.options=lg(e),this.services={},this.logger=zh,this.modules={external:[]},dg(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(Q(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=cg();this.options={...n,...this.options,...lg(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!hg(this)&&!pg()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),mg());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?zh.init(r(this.modules.logger),this.options):zh.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:ag;let t=new Yh(this.options);this.store=new Vh(this.options.resources,this.options);let i=this.services;i.logger=zh,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new Qh(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new tg(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new sg(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Jh(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=ug,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=_h(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=ug){let n=t,r=Q(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=_h();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=ug,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Hh.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=_h();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=Q(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(Q(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=Gh(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=Gh(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=Gh(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return Q(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=_h();return this.options.ns?(Q(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=_h();Q(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new Yh(cg());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=ug){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Vh(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...cg().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new tg(n)}return a.translator=new Jh(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();gg.createInstance,gg.dir,gg.init,gg.loadResources,gg.reloadResources,gg.use,gg.changeLanguage,gg.getFixedT,gg.t,gg.exists,gg.setDefaultNamespace,gg.hasLoadedNamespace,gg.loadNamespaces,gg.loadLanguages,gg.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:hh,es:gh}});var _g={translator:{...gg,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return gg.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},vg=e=>`${e}-${Math.random().toString(36).slice(2,10)}`,yg=e=>V.useState(()=>vg(e))[0],{translator:bg}=_g,xg=K(`button`)({display:`inline-block`,minHeight:`24px`,padding:0,border:0,background:`transparent`,font:`inherit`,textAlign:`inherit`,color:zd(),cursor:`pointer`}),Sg=K(`span`)({borderBottom:`1px dotted currentColor`}),Cg=K(Vf)(({theme:e})=>({paddingTop:e.spacing(2)})),wg=class extends V.Component{static propTypes={className:x.string,children:x.object,labels:x.shape({visible:x.string,hidden:x.string}),language:x.string};static defaultProps={labels:{}};state={expanded:!1};panelId=vg(`pie-collapsible`);toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){mh(this.root)}componentDidUpdate(){mh(this.root)}render(){let{labels:e,children:t,className:n,language:r}=this.props,{expanded:i}=this.state,a=i?e.visible||bg.t(`common:hide`,{lng:r}):e.hidden||bg.t(`common:show`,{lng:r});return(0,H.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,H.jsx)(`div`,{children:(0,H.jsx)(xg,{type:`button`,"aria-expanded":i,"aria-controls":this.panelId,onClick:this.toggleExpanded,children:(0,H.jsx)(Sg,{children:a})})}),(0,H.jsx)(`div`,{id:this.panelId,children:(0,H.jsx)(Cg,{in:i,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})})]})}};function Tg(e){try{return e.matches(`:focus-visible`)}catch{}return!1}var Eg=class e{static create(){return new e}static use(){let t=as(e.create).current,[n,r]=V.useState(!1);return t.shouldMount=n,t.setShouldMount=r,V.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=Og(),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 Dg(){return Eg.use()}function Og(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function kg(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=V.useState(!1),f=U(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=U(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),V.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,H.jsx)(`span`,{className:f,style:p,children:(0,H.jsx)(`span`,{className:m})})}var Ag=Fr(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),jg=550,Mg=Nt`
|
|
86
86
|
0% {
|
|
87
87
|
transform: scale(0);
|
|
88
88
|
opacity: 0.1;
|
|
@@ -92,7 +92,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
92
92
|
transform: scale(1);
|
|
93
93
|
opacity: 0.3;
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,Ng=Nt`
|
|
96
96
|
0% {
|
|
97
97
|
opacity: 1;
|
|
98
98
|
}
|
|
@@ -100,7 +100,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
100
100
|
100% {
|
|
101
101
|
opacity: 0;
|
|
102
102
|
}
|
|
103
|
-
`,
|
|
103
|
+
`,Pg=Nt`
|
|
104
104
|
0% {
|
|
105
105
|
transform: scale(1);
|
|
106
106
|
}
|
|
@@ -112,23 +112,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
112
112
|
100% {
|
|
113
113
|
transform: scale(1);
|
|
114
114
|
}
|
|
115
|
-
`,
|
|
115
|
+
`,Fg=K(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Ig=K(kg,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
116
116
|
opacity: 0;
|
|
117
117
|
position: absolute;
|
|
118
118
|
|
|
119
|
-
&.${
|
|
119
|
+
&.${Ag.rippleVisible} {
|
|
120
120
|
opacity: 0.3;
|
|
121
121
|
transform: scale(1);
|
|
122
|
-
animation-name: ${
|
|
123
|
-
animation-duration: ${
|
|
122
|
+
animation-name: ${Mg};
|
|
123
|
+
animation-duration: ${jg}ms;
|
|
124
124
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
&.${
|
|
127
|
+
&.${Ag.ripplePulsate} {
|
|
128
128
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
& .${
|
|
131
|
+
& .${Ag.child} {
|
|
132
132
|
opacity: 1;
|
|
133
133
|
display: block;
|
|
134
134
|
width: 100%;
|
|
@@ -137,25 +137,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
137
137
|
background-color: currentColor;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
& .${
|
|
140
|
+
& .${Ag.childLeaving} {
|
|
141
141
|
opacity: 0;
|
|
142
|
-
animation-name: ${
|
|
143
|
-
animation-duration: ${
|
|
142
|
+
animation-name: ${Ng};
|
|
143
|
+
animation-duration: ${jg}ms;
|
|
144
144
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
& .${
|
|
147
|
+
& .${Ag.childPulsate} {
|
|
148
148
|
position: absolute;
|
|
149
149
|
/* @noflip */
|
|
150
150
|
left: 0px;
|
|
151
151
|
top: 0;
|
|
152
|
-
animation-name: ${
|
|
152
|
+
animation-name: ${Pg};
|
|
153
153
|
animation-duration: 2500ms;
|
|
154
154
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
155
155
|
animation-iteration-count: infinite;
|
|
156
156
|
animation-delay: 200ms;
|
|
157
157
|
}
|
|
158
|
-
`,
|
|
158
|
+
`,Lg=V.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=Zo({props:e,name:`MuiTouchRipple`}),[o,s]=V.useState([]),c=V.useRef(0),l=V.useRef(null);V.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=V.useRef(!1),d=ls(),f=V.useRef(null),p=V.useRef(null),m=V.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,H.jsx)(Ig,{classes:{ripple:U(r.ripple,Ag.ripple),rippleVisible:U(r.rippleVisible,Ag.rippleVisible),ripplePulsate:U(r.ripplePulsate,Ag.ripplePulsate),child:U(r.child,Ag.child),childLeaving:U(r.childLeaving,Ag.childLeaving),childPulsate:U(r.childPulsate,Ag.childPulsate)},timeout:jg,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=V.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=V.useCallback(()=>{h({},{pulsate:!0})},[h]),_=V.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return V.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,H.jsx)(Fg,{className:U(Ag.root,r.root,i),ref:p,...a,children:(0,H.jsx)(Bs,{component:null,exit:!0,children:o})})});function Rg(e){return Pr(`MuiButtonBase`,e)}var zg=Fr(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),Bg=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=ta({root:[`root`,t&&`disabled`,n&&`focusVisible`]},Rg,i);return n&&r&&(a.root+=` ${r}`),a},Vg=K(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${zg.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),Hg=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:k,touchRippleRef:A,type:j,...M}=n,ee=V.useRef(null),N=Dg(),te=Ks(N.ref,A),[P,ne]=V.useState(!1);c&&P&&ne(!1),V.useImperativeHandle(r,()=>({focusVisible:()=>{ne(!0),ee.current.focus()}}),[]);let re=N.shouldMount&&!l&&!c;V.useEffect(()=>{P&&d&&!l&&N.pulsate()},[l,d,P,N]);let F=Ug(N,`start`,S,u),I=Ug(N,`stop`,g,u),ie=Ug(N,`stop`,_,u),ae=Ug(N,`stop`,w,u),L=Ug(N,`stop`,e=>{P&&e.preventDefault(),C&&C(e)},u),oe=Ug(N,`start`,D,u),se=Ug(N,`stop`,T,u),ce=Ug(N,`stop`,E,u),R=Ug(N,`stop`,e=>{Tg(e.target)||ne(!1),m&&m(e)},!1),le=sl(e=>{ee.current||=e.currentTarget,Tg(e.target)&&(ne(!0),y&&y(e)),v&&v(e)}),ue=()=>{let e=ee.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},z=sl(e=>{d&&!e.repeat&&P&&e.key===` `&&N.stop(e,()=>{N.start(e)}),e.target===e.currentTarget&&ue()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ue()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),de=sl(e=>{d&&e.key===` `&&P&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&ue()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),B=s;B===`button`&&(M.href||M.to)&&(B=p);let fe={};if(B===`button`){let e=!!M.formAction;fe.type=j===void 0&&!e?`button`:j,fe.disabled=c}else!M.href&&!M.to&&(fe.role=`button`),c&&(fe[`aria-disabled`]=c);let pe=Ks(t,ee),me={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:P},he=Bg(me);return(0,H.jsxs)(Vg,{as:B,className:U(he.root,o),ownerState:me,onBlur:R,onClick:h,onContextMenu:I,onFocus:le,onKeyDown:z,onKeyUp:de,onMouseDown:F,onMouseLeave:L,onMouseUp:ae,onDragLeave:ie,onTouchEnd:se,onTouchMove:ce,onTouchStart:oe,ref:pe,tabIndex:c?-1:O,type:j,...fe,...M,children:[a,re?(0,H.jsx)(Lg,{ref:te,center:i,...k}):null]})});function Ug(e,t,n,r=!1){return sl(i=>(n&&n(i),r||e[t](i),!0))}function Wg(e){return typeof e.main==`string`}function Gg(e,t=[]){if(!Wg(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Kg(e=[]){return([,t])=>t&&Gg(t,e)}function qg(e){return Pr(`MuiCircularProgress`,e)}Fr(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var Jg=44,Yg=Nt`
|
|
159
159
|
0% {
|
|
160
160
|
transform: rotate(0deg);
|
|
161
161
|
}
|
|
@@ -163,7 +163,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
163
163
|
100% {
|
|
164
164
|
transform: rotate(360deg);
|
|
165
165
|
}
|
|
166
|
-
`,
|
|
166
|
+
`,Xg=Nt`
|
|
167
167
|
0% {
|
|
168
168
|
stroke-dasharray: 1px, 200px;
|
|
169
169
|
stroke-dashoffset: 0;
|
|
@@ -178,12 +178,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
178
178
|
stroke-dasharray: 1px, 200px;
|
|
179
179
|
stroke-dashoffset: -126px;
|
|
180
180
|
}
|
|
181
|
-
`,
|
|
182
|
-
animation: ${
|
|
183
|
-
`,
|
|
184
|
-
animation: ${
|
|
185
|
-
`,Kg=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return ta({root:[`root`,n,`color${Qc(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${Qc(n)}`,i&&`circleDisableShrink`]},Bg,t)},qg=K(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Qc(n.color)}`]]}})(Sc(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Wg||{animation:`${Hg} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zg()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Jg=K(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Yg=K(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${Qc(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Sc(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:Gg||{animation:`${Ug} 1.4s ease-in-out infinite`}}]}))),Xg=K(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Sc(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Zg=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=Kg(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((Vg-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,H.jsx)(qg,{className:U(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,H.jsxs)(Jg,{className:m.svg,ownerState:p,viewBox:`${Vg/2} ${Vg/2} ${Vg} ${Vg}`,children:[o?(0,H.jsx)(Xg,{className:m.track,ownerState:p,cx:Vg,cy:Vg,r:(Vg-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,H.jsx)(Yg,{className:m.circle,style:h,ownerState:p,cx:Vg,cy:Vg,r:(Vg-l)/2,fill:`none`,strokeWidth:l})]})})});function Qg(e){return Pr(`MuiButton`,e)}var $g=Fr(`MuiButton`,`root.text.textInherit.textPrimary.textSecondary.textSuccess.textError.textInfo.textWarning.outlined.outlinedInherit.outlinedPrimary.outlinedSecondary.outlinedSuccess.outlinedError.outlinedInfo.outlinedWarning.contained.containedInherit.containedPrimary.containedSecondary.containedSuccess.containedError.containedInfo.containedWarning.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),e_=V.createContext({}),t_=V.createContext(void 0),n_=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=ta({root:[`root`,o&&`loading`,a,`${a}${Qc(t)}`,`size${Qc(i)}`,`${a}Size${Qc(i)}`,`color${Qc(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${Qc(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${Qc(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${Qc(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Qg,c);return{...c,...l}},r_=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],i_=K(Fg,{shouldForwardProp:e=>go(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Qc(n.color)}`],t[`size${Qc(n.size)}`],t[`${n.variant}Size${Qc(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Sc(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${$g.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${$g.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${$g.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${$g.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(zg()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${$g.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${$g.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${$g.loading}`]:{color:`transparent`}}}]}})),a_=K(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Qc(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...r_]})),o_=K(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Qc(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...r_]})),s_=K(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),c_=K(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),l_=V.forwardRef(function(e,t){let n=V.useContext(e_),r=V.useContext(t_),i=Zo({props:Jr(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=ol(h),T=_??(0,H.jsx)(Zg,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=n_(E),O=(b||g&&v===`start`)&&(0,H.jsx)(a_,{className:D.startIcon,ownerState:E,children:b||(0,H.jsx)(c_,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,H.jsx)(o_,{className:D.endIcon,ownerState:E,children:f||(0,H.jsx)(c_,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,H.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,H.jsx)(s_,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:M,...ee}=D;return(0,H.jsxs)(i_,{ownerState:E,className:U(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:U(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:ee,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})}),u_=rl((0,H.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),d_=rl((0,H.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),f_=K(`div`)({display:`flex`,flexDirection:`column`}),p_=K(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),m_=K(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),h_=K(l_)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),g_=e=>{class t extends V.Component{static propTypes={session:x.object,onSessionChange:x.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,H.jsxs)(f_,{children:[(0,H.jsxs)(p_,{children:[(0,H.jsxs)(h_,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,H.jsx)(m_,{children:(0,H.jsx)(d_,{})}),`Undo`]}),(0,H.jsxs)(h_,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,H.jsx)(m_,{children:(0,H.jsx)(u_,{})}),`Start Over`]})]}),(0,H.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},__=fo({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),v_=K(`div`)({"& table, th, td":{fontSize:`inherit`}}),y_=class extends V.Component{static propTypes={className:x.string,children:x.array,extraCSSRules:x.shape({names:x.arrayOf(x.string),rules:x.string}),fontSizeFactor:x.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=dg(`extra-css-rules`);computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,H.jsx)(Yt,{injectFirst:!0,children:(0,H.jsxs)(Co,{theme:__,children:[i?.rules?(0,H.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,H.jsx)(v_,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},b_=K(y_)({display:`flex`,flexDirection:`column`,position:`relative`}),x_=class extends V.Component{static propTypes={ariaLabel:x.string,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired,role:x.string,extraCSSRules:x.shape({names:x.arrayOf(x.string),rules:x.string}),fontSizeFactor:x.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,H.jsx)(b_,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},S_=class extends V.Component{static propTypes={tag:x.string,className:x.string,html:x.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,H.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:ed(n)}})}};function C_({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var w_=V.createContext(void 0);function T_(){return V.useContext(w_)}function E_(e){return Pr(`MuiFormLabel`,e)}var D_=Fr(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),O_=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return ta({root:[`root`,`color${Qc(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},E_,t)},k_=K(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Sc(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(zg()).map(([t])=>({props:{color:t},style:{[`&.${D_.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${D_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${D_.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),A_=K(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Sc(({theme:e})=>({[`&.${D_.error}`]:{color:(e.vars||e).palette.error.main}}))),j_=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=C_({props:n,muiFormControl:T_(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=O_(m);return(0,H.jsxs)(k_,{as:o,ownerState:m,className:U(h.root,i),ref:t,...f,children:[r,p.required&&(0,H.jsxs)(A_,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function M_(e){return Pr(`MuiInputLabel`,e)}Fr(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var N_=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=ta({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${Qc(r)}`,o],asterisk:[s&&`asterisk`]},M_,t);return{...t,...c}},P_=K(j_,{shouldForwardProp:e=>go(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${D_.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Sc(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),F_=V.forwardRef(function(e,t){let n=Zo({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=T_(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=C_({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=N_(f);return(0,H.jsx)(P_,{"data-shrink":u,ref:t,className:U(p.root,s),...c,ownerState:f,classes:p})});function I_(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function L_(e,t=!1){return e&&(I_(e.value)&&e.value!==``||t&&I_(e.defaultValue)&&e.defaultValue!==``)}function R_(e){return e.startAdornment}function z_(e){return Pr(`MuiFormControl`,e)}Fr(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var B_=e=>{let{classes:t,margin:n,fullWidth:r}=e;return ta({root:[`root`,n!==`none`&&`margin${Qc(n)}`,r&&`fullWidth`]},z_,t)},V_=K(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${Qc(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),H_=K(V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=B_(_),[y,b]=V.useState(()=>{let e=!1;return r&&V.Children.forEach(r,t=>{if(!il(t,[`Input`,`Select`]))return;let n=il(t,[`Select`])?t.props.input:t;n&&R_(n.props)&&(e=!0)}),e}),[x,S]=V.useState(()=>{let e=!1;return r&&V.Children.forEach(r,t=>{il(t,[`Input`,`Select`])&&(L_(t.props,!0)||L_(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=V.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;V.useRef(!1);let E=V.useCallback(()=>{S(!0)},[]),D=V.useCallback(()=>{S(!1)},[]),O=V.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,H.jsx)(w_.Provider,{value:O,children:(0,H.jsx)(V_,{as:o,ownerState:_,className:U(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),U_=K(F_)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),W_=({label:e,className:t,children:n})=>(0,H.jsxs)(H_,{className:t,children:[(0,H.jsx)(U_,{shrink:!0,children:e}),n]});W_.propTypes={label:x.oneOfType([x.string,x.object]).isRequired,className:x.string,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired};var{translator:G_}=ug,K_=`pie-prompt-audio-player`,q_=`play-audio-button`,J_=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,Y_=K(`div`)(({theme:e,tagName:t})=>({[`& .${q_}:focus-visible`]:{outline:`2px solid ${Yd()}`,outlineOffset:`2px`},[J_(`:not([role="presentation"])`)]:{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:Rd()},[J_(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:Bd()},[J_(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:Bd()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[J_(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:ad()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${ad()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),X_=/\\embed\{newLine\}\[\]/g,Z_=`\\newline `,Q_=`preview-prompt`,$_=class extends V.Component{static propTypes={prompt:x.string,tagName:x.string,className:x.string,onClick:x.func,defaultClassName:x.string,autoplayAudioEnabled:x.bool,customAudioButton:x.shape({playImage:x.string,pauseImage:x.string}),language:x.string};static defaultProps={onClick:()=>{}};promptRef=V.createRef();audioId=dg(K_);playButtonId=dg(q_);parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n,language:r}=this.props,i=document.createElement(`div`);i.innerHTML=ed(e);let a=i.querySelector(`audio`);if(a){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,a.getAttribute(`src`)),a.removeAttribute(`src`),a.id=this.audioId,a.classList.add(K_),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,G_.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=q_,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,margin:`0`,padding:`0`,font:`inherit`,backgroundColor:`transparent`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),a.parentNode.insertBefore(e,a)}}return i.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=this.promptRef.current,r=n?.querySelector(`.${q_}`),i=n?.querySelector(`.${K_}`);if(e&&i&&i.play().then(()=>{r&&t&&i.addEventListener(`ended`,o)}).catch(e=>{r&&t&&(r.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!r||!i||!t)return;let a=()=>{i.paused&&i.play()},o=()=>{r.style.backgroundImage=`url(${t.playImage})`},s=()=>{Object.assign(r.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},c=()=>{Object.assign(r.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};r.addEventListener(`click`,a),i.addEventListener(`play`,s),i.addEventListener(`pause`,c),i.addEventListener(`ended`,o),this._playButton=r,this._audio=i,this._handlePlayClick=a,this._handleAudioPlay=s,this._handleAudioPause=c,this._handleAudioEnded=o}removeCustomAudioButtonListeners(){let e=this._playButton,t=this._audio;!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof sh==`function`&&sh(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${Q_}`.trim();return(0,H.jsx)(Y_,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(X_,Z_)}})}},ev=e=>(0,H.jsx)(H.Fragment,{children:V.Children.map(e.children,t=>V.cloneElement(t,{"data-pie-readable":e.false===void 0}))});ev.propTypes={children:x.node,false:x.bool};var tv=e=>(0,H.jsx)(H.Fragment,{children:V.Children.map(e.children,t=>V.cloneElement(t,{"data-pie-purpose":e.purpose}))});tv.propTypes={children:x.node,purpose:x.string};var nv;typeof window<`u`&&(nv=new DOMParser);var rv=e=>nv.parseFromString(e,`text/html`).body.textContent,iv=e=>{if(!e)return!1;let t=rv(e);return!!(t&&t.trim())},av;typeof window<`u`&&(av=new DOMParser);var ov=e=>{if(!e)return!1;let t=av.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},sv=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}function lv(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:wc(n,r),{props:s,internalRef:c}=Dc({...a,externalSlotProps:o}),l=Gs(c,o?.ref,e.additionalProps?.ref);return Cc(t,{...s,ref:l},r)}var uv=V.createContext({});function dv(e){return Pr(`MuiList`,e)}Fr(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var fv=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ta({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},dv,t)},pv=K(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),mv=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=V.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=fv(d);return(0,H.jsx)(uv.Provider,{value:u,children:(0,H.jsxs)(pv,{as:a,className:U(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),hv=Zs;function gv(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function _v(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function vv(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function yv(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!vv(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var bv=V.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=V.useRef(null),p=V.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});al(()=>{r&&f.current.focus()},[r]),V.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${hv(rs(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=uc(ts(t));if(n===`ArrowDown`)e.preventDefault(),yv(t,r,c,s,gv);else if(n===`ArrowUp`)e.preventDefault(),yv(t,r,c,s,_v);else if(n===`Home`)e.preventDefault(),yv(t,null,c,s,gv);else if(n===`End`)e.preventDefault(),yv(t,null,c,s,_v);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&vv(r,i);i.previousKeyMatched&&(c||yv(t,r,!1,s,gv,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Ks(f,t),g=-1;V.Children.forEach(a,(e,t)=>{if(!V.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=V.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),V.cloneElement(e,t)}return e});return(0,H.jsx)(mv,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function xv(e){return Pr(`MuiMenu`,e)}Fr(`MuiMenu`,[`root`,`paper`,`list`]);var Sv={vertical:`top`,horizontal:`right`},Cv={vertical:`top`,horizontal:`left`},wv=e=>{let{classes:t}=e;return ta({root:[`root`],paper:[`paper`],list:[`list`]},xv,t)},Tv=K(_l,{shouldForwardProp:e=>go(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),Ev=K(gl,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Dv=K(bv,{name:`MuiMenu`,slot:`List`})({outline:0}),Ov=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=bi(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=wv(b),S=r&&!o&&l,C=V.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;V.Children.map(i,(e,t)=>{V.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=lv({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,A]=Oc(`paper`,{className:x.paper,elementType:Ev,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[j,M]=Oc(`list`,{className:U(x.list,s.className),elementType:Dv,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ee=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,H.jsx)(Tv,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?Sv:Cv,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:A,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ee,onEntering:(...e)=>{w(...e),ee?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,H.jsx)(j,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...M,children:i})})}),kv=({slotProps:e,...t})=>(0,H.jsx)(Ov,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),Av=s({Collapsible:()=>_g,EnableAudioAutoplayImage:()=>sv,Feedback:()=>vf,HtmlAndMath:()=>S_,InlineMenu:()=>kv,InputContainer:()=>W_,PreviewLayout:()=>x_,PreviewPrompt:()=>$_,Purpose:()=>tv,Readable:()=>ev,UiLayout:()=>y_,color:()=>rd,createUniqueId:()=>dg,hasMedia:()=>ov,hasText:()=>iv,indicators:()=>yf,transformDataHeadings:()=>cv,useUniqueId:()=>fg,withUndoReset:()=>g_}),jv=id(`pie`)(`background`,X.WHITE),Mv=K(`div`)(({theme:e})=>({"&.placeholder":{WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,width:`100%`,height:`100%`,background:jv,transition:`background-color 200ms linear, border-color 200ms linear`,boxSizing:`border-box`,display:`grid`,gridRowGap:e.spacing(1),gridColumnGap:e.spacing(1),padding:e.spacing(1),border:`2px dashed ${Id()}`},"&.placeholderDisabled":{boxShadow:`none`,background:jv},"&.over":{border:`1px solid ${Pd()}`,backgroundColor:Od()},"&.board":{padding:e.spacing(1),display:`flex`,flexWrap:`wrap`,alignItems:`center`,minHeight:`100px`,justifyContent:`center`,overflow:`hidden`,touchAction:`none`,backgroundColor:jd()},"&.categorizeBoard":{padding:e.spacing(.5),display:`flex`,flexWrap:`wrap`,alignItems:`center`,minHeight:`100px`,justifyContent:`center`,overflow:`hidden`,touchAction:`none`,backgroundColor:jd()},"&.verticalPool":{display:`flex`,flexFlow:`column wrap`}})),Nv=e=>{let{children:t,className:n,isOver:r,type:i,grid:a,disabled:o,choiceBoard:s,isCategorize:c,isVerticalPool:l,minHeight:u,extraStyles:d}=e,f=U(`placeholder`,o&&`placeholderDisabled`,r&&`over`,i,n),p={};if(a&&a.columns&&(p.gridTemplateColumns=`repeat(${a.columns}, 1fr)`),a&&a.rows){let e=a.rowsRepeatValue||`1fr`;p.gridTemplateRows=`repeat(${a.rows}, ${e})`}i===`choice`&&(p.border=`1px solid ${Id()}`,p.background=jd());let m=c?`categorizeBoard`:`board`;return(0,H.jsx)(Mv,{style:{...p,minHeight:u,...d},className:U(s?m:f,l&&`verticalPool`),children:t})};Nv.propTypes={choiceBoard:x.bool,grid:x.shape({columns:x.number,rows:x.number,rowsRepeatValue:x.string}),children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired,className:x.string,isOver:x.bool,index:x.number,type:x.string,disabled:x.bool,isCategorize:x.bool,isVerticalPool:x.bool,minHeight:x.number};var Pv=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Fv(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Iv(e){return`nodeType`in e}function Lv(e){return e?Fv(e)?e:Iv(e)?e.ownerDocument?.defaultView??window:window:window}function Rv(e){let{Document:t}=Lv(e);return e instanceof t}function zv(e){return!Fv(e)&&e instanceof Lv(e).HTMLElement}function Bv(e){return e instanceof Lv(e).SVGElement}function Vv(e){return e?Fv(e)?e.document:Iv(e)?Rv(e)?e:zv(e)||Bv(e)?e.ownerDocument:document:document:document}var Hv=Pv?V.useLayoutEffect:V.useEffect;function Uv(e){let t=(0,V.useRef)(e);return Hv(()=>{t.current=e}),(0,V.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current==null?void 0:t.current(...n)},[])}function Wv(){let e=(0,V.useRef)(null);return[(0,V.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,V.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function Gv(e,t){t===void 0&&(t=[e]);let n=(0,V.useRef)(e);return Hv(()=>{n.current!==e&&(n.current=e)},t),n}function Kv(e,t){let n=(0,V.useRef)();return(0,V.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function qv(e){let t=Uv(e),n=(0,V.useRef)(null);return[n,(0,V.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function Jv(e){let t=(0,V.useRef)();return(0,V.useEffect)(()=>{t.current=e},[e]),t.current}var Yv={};function Xv(e,t){return(0,V.useMemo)(()=>{if(t)return t;let n=Yv[e]==null?0:Yv[e]+1;return Yv[e]=n,e+`-`+n},[e,t])}function Zv(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var Qv=Zv(1),$v=Zv(-1);function ey(e){return`clientX`in e&&`clientY`in e}function ty(e){if(!e)return!1;let{KeyboardEvent:t}=Lv(e.target);return t&&e instanceof t}function ny(e){if(!e)return!1;let{TouchEvent:t}=Lv(e.target);return t&&e instanceof t}function ry(e){if(ny(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ey(e)?{x:e.clientX,y:e.clientY}:null}var iy=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[iy.Translate.toString(e),iy.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),ay=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function oy(e){return e.matches(ay)?e:e.querySelector(ay)}var sy={display:`none`};function cy(e){let{id:t,value:n}=e;return V.createElement(`div`,{id:t,style:sy},n)}function ly(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return V.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function uy(){let[e,t]=(0,V.useState)(``);return{announce:(0,V.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var dy=(0,V.createContext)(null);function fy(e){let t=(0,V.useContext)(dy);(0,V.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function py(){let[e]=(0,V.useState)(()=>new Set),t=(0,V.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,V.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var my={draggable:`
|
|
181
|
+
`,Zg=typeof Yg==`string`?null:Mt`
|
|
182
|
+
animation: ${Yg} 1.4s linear infinite;
|
|
183
|
+
`,Qg=typeof Xg==`string`?null:Mt`
|
|
184
|
+
animation: ${Xg} 1.4s ease-in-out infinite;
|
|
185
|
+
`,$g=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return ta({root:[`root`,n,`color${Qc(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${Qc(n)}`,i&&`circleDisableShrink`]},qg,t)},e_=K(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Qc(n.color)}`]]}})(Sc(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Zg||{animation:`${Yg} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Kg()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),t_=K(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),n_=K(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${Qc(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Sc(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:Qg||{animation:`${Xg} 1.4s ease-in-out infinite`}}]}))),r_=K(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Sc(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),i_=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=$g(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((Jg-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,H.jsx)(e_,{className:U(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,H.jsxs)(t_,{className:m.svg,ownerState:p,viewBox:`${Jg/2} ${Jg/2} ${Jg} ${Jg}`,children:[o?(0,H.jsx)(r_,{className:m.track,ownerState:p,cx:Jg,cy:Jg,r:(Jg-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,H.jsx)(n_,{className:m.circle,style:h,ownerState:p,cx:Jg,cy:Jg,r:(Jg-l)/2,fill:`none`,strokeWidth:l})]})})});function a_(e){return Pr(`MuiButton`,e)}var o_=Fr(`MuiButton`,`root.text.textInherit.textPrimary.textSecondary.textSuccess.textError.textInfo.textWarning.outlined.outlinedInherit.outlinedPrimary.outlinedSecondary.outlinedSuccess.outlinedError.outlinedInfo.outlinedWarning.contained.containedInherit.containedPrimary.containedSecondary.containedSuccess.containedError.containedInfo.containedWarning.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),s_=V.createContext({}),c_=V.createContext(void 0),l_=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=ta({root:[`root`,o&&`loading`,a,`${a}${Qc(t)}`,`size${Qc(i)}`,`${a}Size${Qc(i)}`,`color${Qc(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${Qc(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${Qc(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${Qc(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},a_,c);return{...c,...l}},u_=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],d_=K(Hg,{shouldForwardProp:e=>go(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Qc(n.color)}`],t[`size${Qc(n.size)}`],t[`${n.variant}Size${Qc(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Sc(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${o_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&e.loadingPosition===`start`,style:{"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`}}},{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${o_.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${o_.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${o_.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Kg()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${o_.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${o_.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${o_.loading}`]:{color:`transparent`}}}]}})),f_=K(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Qc(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...u_]})),p_=K(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Qc(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...u_]})),m_=K(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),h_=K(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),g_=V.forwardRef(function(e,t){let n=V.useContext(s_),r=V.useContext(c_),i=Zo({props:Jr(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=ol(h),T=_??(0,H.jsx)(i_,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=l_(E),O=(b||g&&v===`start`)&&(0,H.jsx)(f_,{className:D.startIcon,ownerState:E,children:b||(0,H.jsx)(h_,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,H.jsx)(p_,{className:D.endIcon,ownerState:E,children:f||(0,H.jsx)(h_,{className:D.loadingIconPlaceholder,ownerState:E})}),A=r||``,j=typeof g==`boolean`?(0,H.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,H.jsx)(m_,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:M,...ee}=D;return(0,H.jsxs)(d_,{ownerState:E,className:U(n.className,D.root,c,A),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:U(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:ee,children:[O,v!==`end`&&j,a,v===`end`&&j,k]})}),__=rl((0,H.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),v_=rl((0,H.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),y_=K(`div`)({display:`flex`,flexDirection:`column`}),b_=K(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),x_=K(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),S_=K(g_)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),C_=e=>{class t extends V.Component{static propTypes={session:x.object,onSessionChange:x.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,H.jsxs)(y_,{children:[(0,H.jsxs)(b_,{children:[(0,H.jsxs)(S_,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,H.jsx)(x_,{children:(0,H.jsx)(v_,{})}),`Undo`]}),(0,H.jsxs)(S_,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,H.jsx)(x_,{children:(0,H.jsx)(__,{})}),`Start Over`]})]}),(0,H.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},w_=fo({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),T_=K(`div`)({"& table, th, td":{fontSize:`inherit`}}),E_=class extends V.Component{static propTypes={className:x.string,children:x.array,extraCSSRules:x.shape({names:x.arrayOf(x.string),rules:x.string}),fontSizeFactor:x.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}scopeClass=vg(`extra-css-rules`);computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,H.jsx)(Yt,{injectFirst:!0,children:(0,H.jsxs)(Co,{theme:w_,children:[i?.rules?(0,H.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.${this.scopeClass} { ${i.rules} }`}}):null,(0,H.jsx)(T_,{className:`${t} extraCSSRules ${this.scopeClass}`,...a,...o&&{style:o},children:e})]})})}},D_=K(E_)({display:`flex`,flexDirection:`column`,position:`relative`}),O_=class extends V.Component{static propTypes={ariaLabel:x.string,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired,role:x.string,extraCSSRules:x.shape({names:x.arrayOf(x.string),rules:x.string}),fontSizeFactor:x.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,H.jsx)(D_,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},k_=class extends V.Component{static propTypes={tag:x.string,className:x.string,html:x.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,H.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:sd(n)}})}};function A_({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var j_=V.createContext(void 0);function M_(){return V.useContext(j_)}function N_(e){return Pr(`MuiFormLabel`,e)}var P_=Fr(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),F_=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return ta({root:[`root`,`color${Qc(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},N_,t)},I_=K(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(Sc(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Kg()).map(([t])=>({props:{color:t},style:{[`&.${P_.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${P_.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${P_.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),L_=K(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(Sc(({theme:e})=>({[`&.${P_.error}`]:{color:(e.vars||e).palette.error.main}}))),R_=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=A_({props:n,muiFormControl:M_(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=F_(m);return(0,H.jsxs)(I_,{as:o,ownerState:m,className:U(h.root,i),ref:t,...f,children:[r,p.required&&(0,H.jsxs)(L_,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function z_(e){return Pr(`MuiInputLabel`,e)}Fr(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var B_=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=ta({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${Qc(r)}`,o],asterisk:[s&&`asterisk`]},z_,t);return{...t,...c}},V_=K(R_,{shouldForwardProp:e=>go(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${P_.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Sc(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),H_=V.forwardRef(function(e,t){let n=Zo({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=M_(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=A_({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=B_(f);return(0,H.jsx)(V_,{"data-shrink":u,ref:t,className:U(p.root,s),...c,ownerState:f,classes:p})});function U_(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function W_(e,t=!1){return e&&(U_(e.value)&&e.value!==``||t&&U_(e.defaultValue)&&e.defaultValue!==``)}function G_(e){return e.startAdornment}function K_(e){return Pr(`MuiFormControl`,e)}Fr(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var q_=e=>{let{classes:t,margin:n,fullWidth:r}=e;return ta({root:[`root`,n!==`none`&&`margin${Qc(n)}`,r&&`fullWidth`]},K_,t)},J_=K(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${Qc(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Y_=K(V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=q_(_),[y,b]=V.useState(()=>{let e=!1;return r&&V.Children.forEach(r,t=>{if(!il(t,[`Input`,`Select`]))return;let n=il(t,[`Select`])?t.props.input:t;n&&G_(n.props)&&(e=!0)}),e}),[x,S]=V.useState(()=>{let e=!1;return r&&V.Children.forEach(r,t=>{il(t,[`Input`,`Select`])&&(W_(t.props,!0)||W_(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=V.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;V.useRef(!1);let E=V.useCallback(()=>{S(!0)},[]),D=V.useCallback(()=>{S(!1)},[]),O=V.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,H.jsx)(j_.Provider,{value:O,children:(0,H.jsx)(J_,{as:o,ownerState:_,className:U(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),X_=K(H_)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),Z_=({label:e,className:t,children:n})=>(0,H.jsxs)(Y_,{className:t,children:[(0,H.jsx)(X_,{shrink:!0,children:e}),n]});Z_.propTypes={label:x.oneOfType([x.string,x.object]).isRequired,className:x.string,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired};var{translator:Q_}=_g,$_=`pie-prompt-audio-player`,ev=`play-audio-button`,tv=e=>`&:not(.MathJax) > table${e}, &:not(.MathJax) > .pie-table-scroll > table${e}`,nv=K(`div`)(({theme:e,tagName:t})=>({[`& .${ev}:focus-visible`]:{outline:`2px solid ${nf()}`,outlineOffset:`2px`},[tv(`:not([role="presentation"])`)]:{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:Gd()},[tv(`:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)`)]:{backgroundColor:qd()},[tv(`:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td`)]:{backgroundColor:qd()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},[tv(` td > p.kds-indent`)]:{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:fd()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${fd()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),rv=/\\embed\{newLine\}\[\]/g,iv=`\\newline `,av=`preview-prompt`,ov=class extends V.Component{static propTypes={prompt:x.string,tagName:x.string,className:x.string,onClick:x.func,defaultClassName:x.string,autoplayAudioEnabled:x.bool,customAudioButton:x.shape({playImage:x.string,pauseImage:x.string}),language:x.string};static defaultProps={onClick:()=>{}};promptRef=V.createRef();audioId=vg($_);playButtonId=vg(ev);parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n,language:r}=this.props,i=document.createElement(`div`);i.innerHTML=sd(e);let a=i.querySelector(`audio`);if(a){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,a.getAttribute(`src`)),a.removeAttribute(`src`),a.id=this.audioId,a.classList.add($_),a.appendChild(e),n){a.style.display=`none`;let e=document.createElement(`button`);e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,Q_.t(`common:playAudio`,{lng:r})),e.id=this.playButtonId,e.className=ev,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,margin:`0`,padding:`0`,font:`inherit`,backgroundColor:`transparent`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),a.parentNode.insertBefore(e,a)}}return i.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=this.promptRef.current,r=n?.querySelector(`.${ev}`),i=n?.querySelector(`.${$_}`);if(e&&i&&i.play().then(()=>{r&&t&&i.addEventListener(`ended`,o)}).catch(e=>{r&&t&&(r.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!r||!i||!t)return;let a=()=>{i.paused&&i.play()},o=()=>{r.style.backgroundImage=`url(${t.playImage})`},s=()=>{Object.assign(r.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},c=()=>{Object.assign(r.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};r.addEventListener(`click`,a),i.addEventListener(`play`,s),i.addEventListener(`pause`,c),i.addEventListener(`ended`,o),this._playButton=r,this._audio=i,this._handlePlayClick=a,this._handleAudioPlay=s,this._handleAudioPause=c,this._handleAudioEnded=o}removeCustomAudioButtonListeners(){let e=this._playButton,t=this._audio;!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof mh==`function`&&mh(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${av}`.trim();return(0,H.jsx)(nv,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(rv,iv)}})}},sv=e=>(0,H.jsx)(H.Fragment,{children:V.Children.map(e.children,t=>V.cloneElement(t,{"data-pie-readable":e.false===void 0}))});sv.propTypes={children:x.node,false:x.bool};var cv=e=>(0,H.jsx)(H.Fragment,{children:V.Children.map(e.children,t=>V.cloneElement(t,{"data-pie-purpose":e.purpose}))});cv.propTypes={children:x.node,purpose:x.string};var lv;typeof window<`u`&&(lv=new DOMParser);var uv=e=>lv.parseFromString(e,`text/html`).body.textContent,dv=e=>{if(!e)return!1;let t=uv(e);return!!(t&&t.trim())},fv;typeof window<`u`&&(fv=new DOMParser);var pv=e=>{if(!e)return!1;let t=fv.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},mv=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD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BQAAAAAAAAAAAAltb3+YCgAI3ZNvkBQAAAAAAAAAAAAivzYFAAAAETTuk+HECgAAAAAAAAJZXvbVcwCvrdegCgAAAAAAAAAAAAAltbgUCN2TaV/MBQAAAAAAAAAAAAjV+dgKAAAAIndJrmBQAAAAAAAAACO+ln6QKAAAAAEaTs2uHACgAAAAAAAAAEbSTbdkuLAoEd+SAoAAAAjVwKAAAAAAAAAAAAAABG+Gl7/AEAUAAAltb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function hv(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}function gv(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:wc(n,r),{props:s,internalRef:c}=Dc({...a,externalSlotProps:o}),l=Gs(c,o?.ref,e.additionalProps?.ref);return Cc(t,{...s,ref:l},r)}var _v=V.createContext({});function vv(e){return Pr(`MuiList`,e)}Fr(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var yv=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ta({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},vv,t)},bv=K(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),xv=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=V.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=yv(d);return(0,H.jsx)(_v.Provider,{value:u,children:(0,H.jsxs)(bv,{as:a,className:U(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),Sv=Zs;function Cv(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function wv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tv(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function Ev(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!Tv(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var Dv=V.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=V.useRef(null),p=V.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});al(()=>{r&&f.current.focus()},[r]),V.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${Sv(rs(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=uc(ts(t));if(n===`ArrowDown`)e.preventDefault(),Ev(t,r,c,s,Cv);else if(n===`ArrowUp`)e.preventDefault(),Ev(t,r,c,s,wv);else if(n===`Home`)e.preventDefault(),Ev(t,null,c,s,Cv);else if(n===`End`)e.preventDefault(),Ev(t,null,c,s,wv);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&Tv(r,i);i.previousKeyMatched&&(c||Ev(t,r,!1,s,Cv,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Ks(f,t),g=-1;V.Children.forEach(a,(e,t)=>{if(!V.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=V.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),V.cloneElement(e,t)}return e});return(0,H.jsx)(xv,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function Ov(e){return Pr(`MuiMenu`,e)}Fr(`MuiMenu`,[`root`,`paper`,`list`]);var kv={vertical:`top`,horizontal:`right`},Av={vertical:`top`,horizontal:`left`},jv=e=>{let{classes:t}=e;return ta({root:[`root`],paper:[`paper`],list:[`list`]},Ov,t)},Mv=K(_l,{shouldForwardProp:e=>go(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),Nv=K(gl,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),Pv=K(Dv,{name:`MuiMenu`,slot:`List`})({outline:0}),Fv=V.forwardRef(function(e,t){let n=Zo({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=bi(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=jv(b),S=r&&!o&&l,C=V.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;V.Children.map(i,(e,t)=>{V.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=gv({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,A]=Oc(`paper`,{className:x.paper,elementType:Nv,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[j,M]=Oc(`list`,{className:U(x.list,s.className),elementType:Pv,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ee=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,H.jsx)(Mv,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?kv:Av,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:A,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ee,onEntering:(...e)=>{w(...e),ee?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,H.jsx)(j,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...M,children:i})})}),Iv=({slotProps:e,...t})=>(0,H.jsx)(Fv,{...t,disableScrollLock:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,...e?.root?.style}},backdrop:{invisible:!0,...e?.backdrop}}}),Lv=s({Collapsible:()=>wg,EnableAudioAutoplayImage:()=>mv,Feedback:()=>Tf,HtmlAndMath:()=>k_,InlineMenu:()=>Iv,InputContainer:()=>Z_,PreviewLayout:()=>O_,PreviewPrompt:()=>ov,Purpose:()=>cv,Readable:()=>sv,UiLayout:()=>E_,color:()=>ud,createUniqueId:()=>vg,hasMedia:()=>pv,hasText:()=>dv,indicators:()=>Ef,transformDataHeadings:()=>hv,useUniqueId:()=>yg,withUndoReset:()=>C_}),Rv=dd(`pie`)(`background`,X.WHITE),zv=K(`div`)(({theme:e})=>({"&.placeholder":{WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,MsUserSelect:`none`,userSelect:`none`,width:`100%`,height:`100%`,background:Rv,transition:`background-color 200ms linear, border-color 200ms linear`,boxSizing:`border-box`,display:`grid`,gridRowGap:e.spacing(1),gridColumnGap:e.spacing(1),padding:e.spacing(1),border:`2px dashed ${Ud()}`},"&.placeholderDisabled":{boxShadow:`none`,background:Rv},"&.over":{border:`1px solid ${Vd()}`,backgroundColor:Fd()},"&.board":{padding:e.spacing(1),display:`flex`,flexWrap:`wrap`,alignItems:`center`,minHeight:`100px`,justifyContent:`center`,overflow:`hidden`,touchAction:`none`,backgroundColor:Rd()},"&.categorizeBoard":{padding:e.spacing(.5),display:`flex`,flexWrap:`wrap`,alignItems:`center`,minHeight:`100px`,justifyContent:`center`,overflow:`hidden`,touchAction:`none`,backgroundColor:Rd()},"&.verticalPool":{display:`flex`,flexFlow:`column wrap`}})),Bv=e=>{let{children:t,className:n,isOver:r,type:i,grid:a,disabled:o,choiceBoard:s,isCategorize:c,isVerticalPool:l,minHeight:u,extraStyles:d}=e,f=U(`placeholder`,o&&`placeholderDisabled`,r&&`over`,i,n),p={};if(a&&a.columns&&(p.gridTemplateColumns=`repeat(${a.columns}, 1fr)`),a&&a.rows){let e=a.rowsRepeatValue||`1fr`;p.gridTemplateRows=`repeat(${a.rows}, ${e})`}i===`choice`&&(p.border=`1px solid ${Ud()}`,p.background=Rd());let m=c?`categorizeBoard`:`board`;return(0,H.jsx)(zv,{style:{...p,minHeight:u,...d},className:U(s?m:f,l&&`verticalPool`),children:t})};Bv.propTypes={choiceBoard:x.bool,grid:x.shape({columns:x.number,rows:x.number,rowsRepeatValue:x.string}),children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired,className:x.string,isOver:x.bool,index:x.number,type:x.string,disabled:x.bool,isCategorize:x.bool,isVerticalPool:x.bool,minHeight:x.number};var Vv=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Hv(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function Uv(e){return`nodeType`in e}function Wv(e){return e?Hv(e)?e:Uv(e)?e.ownerDocument?.defaultView??window:window:window}function Gv(e){let{Document:t}=Wv(e);return e instanceof t}function Kv(e){return!Hv(e)&&e instanceof Wv(e).HTMLElement}function qv(e){return e instanceof Wv(e).SVGElement}function Jv(e){return e?Hv(e)?e.document:Uv(e)?Gv(e)?e:Kv(e)||qv(e)?e.ownerDocument:document:document:document}var Yv=Vv?V.useLayoutEffect:V.useEffect;function Xv(e){let t=(0,V.useRef)(e);return Yv(()=>{t.current=e}),(0,V.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current==null?void 0:t.current(...n)},[])}function Zv(){let e=(0,V.useRef)(null);return[(0,V.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,V.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function Qv(e,t){t===void 0&&(t=[e]);let n=(0,V.useRef)(e);return Yv(()=>{n.current!==e&&(n.current=e)},t),n}function $v(e,t){let n=(0,V.useRef)();return(0,V.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function ey(e){let t=Xv(e),n=(0,V.useRef)(null);return[n,(0,V.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function ty(e){let t=(0,V.useRef)();return(0,V.useEffect)(()=>{t.current=e},[e]),t.current}var ny={};function ry(e,t){return(0,V.useMemo)(()=>{if(t)return t;let n=ny[e]==null?0:ny[e]+1;return ny[e]=n,e+`-`+n},[e,t])}function iy(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var ay=iy(1),oy=iy(-1);function sy(e){return`clientX`in e&&`clientY`in e}function cy(e){if(!e)return!1;let{KeyboardEvent:t}=Wv(e.target);return t&&e instanceof t}function ly(e){if(!e)return!1;let{TouchEvent:t}=Wv(e.target);return t&&e instanceof t}function uy(e){if(ly(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return sy(e)?{x:e.clientX,y:e.clientY}:null}var dy=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[dy.Translate.toString(e),dy.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),fy=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function py(e){return e.matches(fy)?e:e.querySelector(fy)}var my={display:`none`};function hy(e){let{id:t,value:n}=e;return V.createElement(`div`,{id:t,style:my},n)}function gy(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return V.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function _y(){let[e,t]=(0,V.useState)(``);return{announce:(0,V.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var vy=(0,V.createContext)(null);function yy(e){let t=(0,V.useContext)(vy);(0,V.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function by(){let[e]=(0,V.useState)(()=>new Set),t=(0,V.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,V.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var xy={draggable:`
|
|
186
186
|
To pick up a draggable item, press the space bar.
|
|
187
187
|
While dragging, use the arrow keys to move the item.
|
|
188
188
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
189
|
-
`},hy={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function gy(e){let{announcements:t=hy,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=my}=e,{announce:a,announcement:o}=uy(),s=Xv(`DndLiveRegion`),[c,l]=(0,V.useState)(!1);if((0,V.useEffect)(()=>{l(!0)},[]),fy((0,V.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=V.createElement(V.Fragment,null,V.createElement(cy,{id:r,value:i.draggable}),V.createElement(ly,{id:s,announcement:o}));return n?(0,xs.createPortal)(u,n):u}var _y;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(_y||={});function vy(){}var yy=Object.freeze({x:0,y:0});function by(e,t){let n=ry(e);if(!n)return`0 0`;let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+`% `+r.y+`%`}function xy(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Sy(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Cy(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var wy=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=Cy(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(xy)};function Ty(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ey(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:yy}function Dy(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var Oy=Dy(1);function ky(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Ay(e,t,n){let r=ky(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var jy={ignoreTransform:!1};function My(e,t){t===void 0&&(t=jy);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=Lv(e).getComputedStyle(e);t&&(n=Ay(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function Ny(e){return My(e,{ignoreTransform:!0})}function Py(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Fy(e,t){return t===void 0&&(t=Lv(e).getComputedStyle(e)),t.position===`fixed`}function Iy(e,t){t===void 0&&(t=Lv(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function Ly(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Rv(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!zv(i)||Bv(i)||n.includes(i))return n;let a=Lv(e).getComputedStyle(i);return i!==e&&Iy(i,a)&&n.push(i),Fy(i,a)?n:r(i.parentNode)}return e?r(e):n}function Ry(e){let[t]=Ly(e,1);return t??null}function zy(e){return!Pv||!e?null:Fv(e)?e:Iv(e)?Rv(e)||e===Vv(e).scrollingElement?window:zv(e)?e:null:null}function By(e){return Fv(e)?e.scrollX:e.scrollLeft}function Vy(e){return Fv(e)?e.scrollY:e.scrollTop}function Hy(e){return{x:By(e),y:Vy(e)}}var Uy;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(Uy||={});function Wy(e){return!Pv||!e?!1:e===document.scrollingElement}function Gy(e){let t={x:0,y:0},n=Wy(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var Ky={x:.2,y:.2};function qy(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=Ky);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=Gy(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=Uy.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=Uy.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=Uy.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=Uy.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function Jy(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Yy(e){return e.reduce((e,t)=>Qv(e,Hy(t)),yy)}function Xy(e){return e.reduce((e,t)=>e+By(t),0)}function Zy(e){return e.reduce((e,t)=>e+Vy(t),0)}function Qy(e,t){if(t===void 0&&(t=My),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Ry(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var $y=[[`x`,[`left`,`right`],Xy],[`y`,[`top`,`bottom`],Zy]],eb=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Ly(t),r=Yy(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of $y)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},tb=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function nb(e){let{EventTarget:t}=Lv(e);return e instanceof t?e:Vv(e)}function rb(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var ib;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(ib||={});function ab(e){e.preventDefault()}function ob(e){e.stopPropagation()}var $;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})($||={});var sb={start:[$.Space,$.Enter],cancel:[$.Esc],end:[$.Space,$.Enter,$.Tab]},cb=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case $.Right:return{...n,x:n.x+25};case $.Left:return{...n,x:n.x-25};case $.Down:return{...n,y:n.y+25};case $.Up:return{...n,y:n.y-25}}},lb=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new tb(Vv(t)),this.windowListeners=new tb(Lv(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ib.Resize,this.handleCancel),this.windowListeners.add(ib.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ib.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Qy(n),t(yy)}handleKeyDown(e){if(ty(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=sb,coordinateGetter:a=cb,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:yy;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=$v(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=Gy(n),p=Jy(n),m={x:Math.min(i===$.Right?p.right-p.width/2:p.right,Math.max(i===$.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===$.Down?p.bottom-p.height/2:p.bottom,Math.max(i===$.Down?p.top:p.top+p.height/2,u.y))},h=i===$.Right&&!s||i===$.Left&&!c,g=i===$.Down&&!l||i===$.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===$.Right&&e<=d.x||i===$.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===$.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}else if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===$.Down&&e<=d.y||i===$.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===$.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,Qv($v(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};lb.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=sb,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function ub(e){return!!(e&&`distance`in e)}function db(e){return!!(e&&`delay`in e)}var fb=class{constructor(e,t,n){n===void 0&&(n=nb(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=Vv(i),this.documentListeners=new tb(this.document),this.listeners=new tb(n),this.windowListeners=new tb(Lv(i)),this.initialCoordinates=ry(r)??yy,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ib.Resize,this.handleCancel),this.windowListeners.add(ib.DragStart,ab),this.windowListeners.add(ib.VisibilityChange,this.handleCancel),this.windowListeners.add(ib.ContextMenu,ab),this.documentListeners.add(ib.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(db(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ub(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ib.Click,ob,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ib.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=ry(e)??yy,s=$v(n,o);if(!t&&a){if(ub(a)){if(a.tolerance!=null&&rb(s,a.tolerance))return this.handleCancel();if(rb(s,a.distance))return this.handleStart()}if(db(a)&&rb(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===$.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},pb={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},mb=class extends fb{constructor(e){let{event:t}=e,n=Vv(t.target);super(e,pb,n)}};mb.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var hb={move:{name:`mousemove`},end:{name:`mouseup`}},gb;(function(e){e[e.RightClick=2]=`RightClick`})(gb||={});var _b=class extends fb{constructor(e){super(e,hb,Vv(e.event.target))}};_b.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===gb.RightClick?!1:(r?.({event:n}),!0)}}];var vb={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},yb=class extends fb{constructor(e){super(e,vb)}static setup(){return window.addEventListener(vb.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(vb.move.name,e)};function e(){}}};yb.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var bb;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(bb||={});var xb;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(xb||={});function Sb(e){let{acceleration:t,activator:n=bb.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=xb.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=wb({delta:d,disabled:!a}),[m,h]=Wv(),g=(0,V.useRef)({x:0,y:0}),_=(0,V.useRef)({x:0,y:0}),v=(0,V.useMemo)(()=>{switch(n){case bb.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case bb.DraggableRect:return i}},[n,i,c]),y=(0,V.useRef)(null),b=(0,V.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,V.useMemo)(()=>s===xb.TreeOrder?[...l].reverse():l,[s,l]);(0,V.useEffect)(()=>{if(!a||!l.length||!v){h();return}for(let e of x){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=qy(e,i,v,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),y.current=e,m(b,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var Cb={x:{[Uy.Backward]:!1,[Uy.Forward]:!1},y:{[Uy.Backward]:!1,[Uy.Forward]:!1}};function wb(e){let{delta:t,disabled:n}=e,r=Jv(t);return Kv(e=>{if(n||!r||!e)return Cb;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Uy.Backward]:e.x[Uy.Backward]||i.x===-1,[Uy.Forward]:e.x[Uy.Forward]||i.x===1},y:{[Uy.Backward]:e.y[Uy.Backward]||i.y===-1,[Uy.Forward]:e.y[Uy.Forward]||i.y===1}}},[n,t,r])}function Tb(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return Kv(e=>t==null?null:r??e??null,[r,t])}function Eb(e,t){return(0,V.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var Db;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(Db||={});var Ob;(function(e){e.Optimized=`optimized`})(Ob||={});var kb=new Map;function Ab(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,V.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,V.useRef)(e),d=g(),f=Gv(d),p=(0,V.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,V.useRef)(null),h=Kv(t=>{if(d&&!n)return kb;if(!t||t===kb||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new eb(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,V.useEffect)(()=>{u.current=e},[e]),(0,V.useEffect)(()=>{d||p()},[n,d]),(0,V.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,V.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case Db.Always:return!1;case Db.BeforeDragging:return n;default:return!n}}}function jb(e,t){return Kv(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function Mb(e,t){return jb(e,t)}function Nb(e){let{callback:t,disabled:n}=e,r=Uv(t),i=(0,V.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,V.useEffect)(()=>()=>i?.disconnect(),[i]),i}function Pb(e){let{callback:t,disabled:n}=e,r=Uv(t),i=(0,V.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,V.useEffect)(()=>()=>i?.disconnect(),[i]),i}function Fb(e){return new eb(My(e),e)}function Ib(e,t,n){t===void 0&&(t=Fb);let[r,i]=(0,V.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=Nb({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=Pb({callback:a});return Hv(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function Lb(e){return Ey(e,jb(e))}var Rb=[];function zb(e){let t=(0,V.useRef)(e),n=Kv(n=>e?n&&n!==Rb&&e&&t.current&&e.parentNode===t.current.parentNode?n:Ly(e):Rb,[e]);return(0,V.useEffect)(()=>{t.current=e},[e]),n}function Bb(e){let[t,n]=(0,V.useState)(null),r=(0,V.useRef)(e),i=(0,V.useCallback)(e=>{let t=zy(e.target);t&&n(e=>e?(e.set(t,Hy(t)),new Map(e)):null)},[]);return(0,V.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=zy(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,Hy(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{zy(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,V.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>Qv(e,t),yy):Yy(e):yy,[e,t])}function Vb(e,t){t===void 0&&(t=[]);let n=(0,V.useRef)(null);return(0,V.useEffect)(()=>{n.current=null},t),(0,V.useEffect)(()=>{let t=e!==yy;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?$v(e,n.current):yy}function Hb(e){(0,V.useEffect)(()=>{if(!Pv)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function Ub(e,t){return(0,V.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function Wb(e){return(0,V.useMemo)(()=>e?Py(e):null,[e])}var Gb=[];function Kb(e,t){t===void 0&&(t=My);let[n]=e,r=Wb(n?Lv(n):null),[i,a]=(0,V.useState)(Gb);function o(){a(()=>e.length?e.map(e=>Wy(e)?r:new eb(t(e),e)):Gb)}let s=Pb({callback:o});return Hv(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function qb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return zv(t)?t:e}function Jb(e){let{measure:t}=e,[n,r]=(0,V.useState)(null),i=Pb({callback:(0,V.useCallback)(e=>{for(let{target:n}of e)if(zv(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=qv((0,V.useCallback)(e=>{let n=qb(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,V.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var Yb=[{sensor:mb,options:{}},{sensor:lb,options:{}}],Xb={current:{}},Zb={draggable:{measure:Ny},droppable:{measure:Ny,strategy:Db.WhileDragging,frequency:Ob.Optimized},dragOverlay:{measure:My}},Qb=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},$b={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qb,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:vy},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zb,measureDroppableContainers:vy,windowRect:null,measuringScheduled:!1},ex={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:vy,draggableNodes:new Map,over:null,measureDroppableContainers:vy},tx=(0,V.createContext)(ex),nx=(0,V.createContext)($b);function rx(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qb}}}function ix(e,t){switch(t.type){case _y.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _y.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _y.DragEnd:case _y.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _y.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new Qb(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case _y.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new Qb(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case _y.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new Qb(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function ax(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,V.useContext)(tx),a=Jv(r),o=Jv(n?.id);return(0,V.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!ty(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=oy(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function ox(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function sx(e){return(0,V.useMemo)(()=>({draggable:{...Zb.draggable,...e?.draggable},droppable:{...Zb.droppable,...e?.droppable},dragOverlay:{...Zb.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function cx(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,V.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;Hv(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=Ey(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Ry(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var lx=(0,V.createContext)({...yy,scaleX:1,scaleY:1}),ux;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(ux||={});var dx=(0,V.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=Yb,collisionDetection:o=wy,measuring:s,modifiers:c,...l}=e,[u,d]=(0,V.useReducer)(ix,void 0,rx),[f,p]=py(),[m,h]=(0,V.useState)(ux.Uninitialized),g=m===ux.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,V.useRef)({initial:null,translated:null}),C=(0,V.useMemo)(()=>_==null?null:{id:_,data:x?.data??Xb,rect:S},[_,x]),w=(0,V.useRef)(null),[T,E]=(0,V.useState)(null),[D,O]=(0,V.useState)(null),k=Gv(l,Object.values(l)),A=Xv(`DndDescribedBy`,t),j=(0,V.useMemo)(()=>b.getEnabled(),[b]),M=sx(s),{droppableRects:ee,measureDroppableContainers:N,measuringScheduled:te}=Ab(j,{dragging:g,dependencies:[y.x,y.y],config:M.droppable}),P=Tb(v,_),ne=(0,V.useMemo)(()=>D?ry(D):null,[D]),re=Oe(),F=Mb(P,M.draggable.measure);cx({activeNode:_==null?null:v.get(_),config:re.layoutShiftCompensation,initialRect:F,measure:M.draggable.measure});let I=Ib(P,M.draggable.measure,F),ie=Ib(P?P.parentElement:null),ae=(0,V.useRef)({activatorEvent:null,active:null,activeNode:P,collisionRect:null,collisions:null,droppableRects:ee,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),L=b.getNodeFor(ae.current.over?.id),oe=Jb({measure:M.dragOverlay.measure}),se=oe.nodeRef.current??P,ce=g?oe.rect??I:null,R=!!(oe.nodeRef.current&&oe.rect),le=Lb(R?null:I),ue=Wb(se?Lv(se):null),z=zb(g?L??P:null),de=Kb(z),B=ox(c,{transform:{x:y.x-le.x,y:y.y-le.y,scaleX:1,scaleY:1},activatorEvent:D,active:C,activeNodeRect:I,containerNodeRect:ie,draggingNodeRect:ce,over:ae.current.over,overlayNodeRect:oe.rect,scrollableAncestors:z,scrollableAncestorRects:de,windowRect:ue}),fe=ne?Qv(ne,y):null,pe=Bb(z),me=Vb(pe),he=Vb(pe,[I]),ge=Qv(B,me),_e=ce?Oy(ce,B):null,ve=C&&_e?o({active:C,collisionRect:_e,droppableRects:ee,droppableContainers:j,pointerCoordinates:fe}):null,ye=Sy(ve,`id`),[be,xe]=(0,V.useState)(null),Se=Ty(R?B:Qv(B,he),be?.rect??null,I),Ce=(0,V.useRef)(null),we=(0,V.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent,o=new n({active:w.current,activeNode:i,event:a,options:r,context:ae,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=k.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=k.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=k.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,xs.unstable_batchedUpdates)(()=>{r?.(i),h(ux.Initializing),d({type:_y.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),E(Ce.current),O(a)})},onMove(e){d({type:_y.DragMove,coordinates:e})},onEnd:s(_y.DragEnd),onCancel:s(_y.DragCancel)});Ce.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ae.current,o=null;if(t&&i){let{cancelDrop:s}=k.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===_y.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=_y.DragCancel)}w.current=null,(0,xs.unstable_batchedUpdates)(()=>{d({type:e}),h(ux.Uninitialized),xe(null),E(null),O(null),Ce.current=null;let t=e===_y.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=k.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),Te=Eb(a,(0,V.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,we(n,t))},[v,we]));Hb(a),Hv(()=>{I&&m===ux.Initializing&&h(ux.Initialized)},[I,m]),(0,V.useEffect)(()=>{let{onDragMove:e}=k.current,{active:t,activatorEvent:n,collisions:r,over:i}=ae.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:ge.x,y:ge.y},over:i};(0,xs.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[ge.x,ge.y]),(0,V.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ae.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=k.current,o=r.get(ye),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,xs.unstable_batchedUpdates)(()=>{xe(s),a?.(c),f({type:`onDragOver`,event:c})})},[ye]),Hv(()=>{ae.current={activatorEvent:D,active:C,activeNode:P,collisionRect:_e,collisions:ve,droppableRects:ee,draggableNodes:v,draggingNode:se,draggingNodeRect:ce,droppableContainers:b,over:be,scrollableAncestors:z,scrollAdjustedTranslate:ge},S.current={initial:ce,translated:_e}},[C,P,ve,_e,v,se,ce,ee,b,be,z,ge]),Sb({...re,delta:y,draggingRect:_e,pointerCoordinates:fe,scrollableAncestors:z,scrollableAncestorRects:de});let Ee=(0,V.useMemo)(()=>({active:C,activeNode:P,activeNodeRect:I,activatorEvent:D,collisions:ve,containerNodeRect:ie,dragOverlay:oe,draggableNodes:v,droppableContainers:b,droppableRects:ee,over:be,measureDroppableContainers:N,scrollableAncestors:z,scrollableAncestorRects:de,measuringConfiguration:M,measuringScheduled:te,windowRect:ue}),[C,P,I,D,ve,ie,oe,v,b,ee,be,N,z,de,M,te,ue]),De=(0,V.useMemo)(()=>({activatorEvent:D,activators:Te,active:C,activeNodeRect:I,ariaDescribedById:{draggable:A},dispatch:d,draggableNodes:v,over:be,measureDroppableContainers:N}),[D,Te,C,I,d,A,v,be,N]);return V.createElement(dy.Provider,{value:p},V.createElement(tx.Provider,{value:De},V.createElement(nx.Provider,{value:Ee},V.createElement(lx.Provider,{value:Se},i)),V.createElement(ax,{disabled:n?.restoreFocus===!1})),V.createElement(gy,{...n,hiddenTextDescribedById:A}));function Oe(){let e=T?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),fx=(0,V.createContext)(null),px=`button`,mx=`Draggable`;function hx(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=Xv(mx),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,V.useContext)(tx),{role:p=px,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,V.useContext)(g?lx:fx),[v,y]=qv(),[b,x]=qv(),S=Ub(o,t),C=Gv(n);return Hv(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,V.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===px?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function gx(){return(0,V.useContext)(nx)}var _x=`Droppable`,vx={timeout:25};function yx(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=Xv(_x),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,V.useContext)(tx),u=(0,V.useRef)({disabled:n}),d=(0,V.useRef)(!1),f=(0,V.useRef)(null),p=(0,V.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:g}={...vx,...i},_=Gv(h??r),v=Pb({callback:(0,V.useCallback)(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(_.current)?_.current:[_.current]),p.current=null},g)},[g]),disabled:m||!o}),[y,b]=qv((0,V.useCallback)((e,t)=>{v&&(t&&(v.unobserve(t),d.current=!1),e&&v.observe(e))},[v])),x=Gv(t);return(0,V.useEffect)(()=>{!v||!y.current||(v.disconnect(),d.current=!1,v.observe(y.current))},[y,v]),(0,V.useEffect)(()=>(s({type:_y.RegisterDroppable,element:{id:r,key:a,disabled:n,node:y,rect:f,data:x}}),()=>s({type:_y.UnregisterDroppable,key:a,id:r})),[r]),(0,V.useEffect)(()=>{n!==u.current.disabled&&(s({type:_y.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:y,over:c,setNodeRef:b}}function bx(e){let{animation:t,children:n}=e,[r,i]=(0,V.useState)(null),[a,o]=(0,V.useState)(null),s=Jv(n);return!n&&!r&&s&&i(s),Hv(()=>{if(!a)return;let e=r?.key,n=r?.props.id;if(e==null||n==null){i(null);return}Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),V.createElement(V.Fragment,null,n,r?(0,V.cloneElement)(r,{ref:o}):null)}var xx={x:0,y:0,scaleX:1,scaleY:1};function Sx(e){let{children:t}=e;return V.createElement(tx.Provider,{value:ex},V.createElement(lx.Provider,{value:xx},t))}var Cx={position:`fixed`,touchAction:`none`},wx=e=>ty(e)?`transform 250ms ease`:void 0,Tx=(0,V.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:c,transform:l,transition:u=wx}=e;if(!s)return null;let d=i?l:{...l,scaleX:1,scaleY:1},f={...Cx,width:s.width,height:s.height,top:s.top,left:s.left,transform:iy.Transform.toString(d),transformOrigin:i&&r?by(r,s):void 0,transition:typeof u==`function`?u(r):u,...c};return V.createElement(n,{className:o,style:f,ref:t},a)}),Ex={duration:250,easing:`ease`,keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:iy.Transform.toString(t)},{transform:iy.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t,i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(let[e,t]of Object.entries(a.active))t!==void 0&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(a!=null&&a.dragOverlay)for(let[e,t]of Object.entries(a.dragOverlay))t!==void 0&&r.node.style.setProperty(e,t);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,t]of Object.entries(i))n.node.style.setProperty(e,t);o!=null&&o.active&&n.node.classList.remove(o.active)}})({styles:{active:{opacity:`0`}}})};function Dx(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Uv((e,a)=>{if(t===null)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let c=qb(a);if(!c)return;let{transform:l}=Lv(a).getComputedStyle(a),u=ky(l);if(!u)return;let d=typeof t==`function`?t:Ox(t);return Qy(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:u})})}function Ox(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Ex,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...c}=e;if(!t)return;let l={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},u={scaleX:s.scaleX===1?1:a.rect.width*s.scaleX/o.rect.width,scaleY:s.scaleY===1?1:a.rect.height*s.scaleY/o.rect.height},d={x:s.x-l.x,y:s.y-l.y,...u},f=i({...c,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[p]=f,m=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;let h=r?.({active:a,dragOverlay:o,...c}),g=o.node.animate(f,{duration:t,easing:n,fill:`forwards`});return new Promise(e=>{g.onfinish=()=>{h?.(),e()}})}}var kx=0;function Ax(e){return(0,V.useMemo)(()=>{if(e!=null)return kx++,kx},[e])}var jx=V.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:a,modifiers:o,wrapperElement:s=`div`,className:c,zIndex:l=999}=e,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggableNodes:m,droppableContainers:h,dragOverlay:g,over:_,measuringConfiguration:v,scrollableAncestors:y,scrollableAncestorRects:b,windowRect:x}=gx(),S=(0,V.useContext)(lx),C=Ax(d?.id),w=ox(o,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:g.rect,over:_,overlayNodeRect:g.rect,scrollableAncestors:y,scrollableAncestorRects:b,transform:S,windowRect:x}),T=jb(f),E=Dx({config:r,draggableNodes:m,droppableContainers:h,measuringConfiguration:v}),D=T?g.setRef:void 0;return V.createElement(Sx,null,V.createElement(bx,{animation:E},d&&C?V.createElement(Tx,{key:C,id:d.id,ref:D,as:s,activatorEvent:u,adjustScale:t,className:c,transition:a,rect:T,style:{zIndex:l,...i},transform:w},n):null))}),Mx=1,Nx=2,Px=4,Fx=1,Ix=2,Lx=500,Rx=9007199254740991,zx=`[object Arguments]`,Bx=`[object Array]`,Vx=`[object ArrayBuffer]`,Hx=`[object AsyncFunction]`,Ux=`[object Boolean]`,Wx=`[object DataView]`,Gx=`[object Date]`,Kx=`[object Error]`,qx=`[object Function]`,Jx=`[object GeneratorFunction]`,Yx=`[object Map]`,Xx=`[object Number]`,Zx=`[object Object]`,Qx=`[object Proxy]`,$x=`[object RegExp]`,eS=`[object Set]`,tS=`[object String]`,nS=`[object Symbol]`,rS=new Set([`Float32`,`Float64`,`Int8`,`Int16`,`Int32`,`Uint8`,`Uint8Clamped`,`Uint16`,`Uint32`].map(e=>`[object ${e}Array]`)),iS=new Set([zx,Bx,Vx,Ux,Wx,Gx,Yx,Xx,Zx,$x,eS,tS,nS,...rS]),aS=/\\(\\)?/g,oS=/\w*$/,sS=/^[-+]0x[0-9a-f]+$/i,cS=/^0b[01]+$/i,lS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uS=/^0o[0-7]+$/i,dS=/^\w*$/,fS=/^(?:0|[1-9]\d*)$/,pS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mS=/^\s+/,hS=/\s/,gS=Object.prototype,_S=gS.hasOwnProperty,vS=gS.toString,yS=gS.propertyIsEnumerable;Function.prototype.toString.call(Object);var bS=Symbol.prototype.toString,xS=Symbol.prototype.valueOf;function SS(e){return typeof e==`object`&&!!e}function CS(e,t){return e===t||e!==e&&t!==t}function wS(e){let t=_S.call(e,Symbol.toStringTag),n=e[Symbol.toStringTag],r=!1;try{e[Symbol.toStringTag]=void 0,r=!0}catch{}let i=vS.call(e);return r&&(t?e[Symbol.toStringTag]=n:delete e[Symbol.toStringTag]),i}function TS(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Symbol.toStringTag in Object(e)?wS(e):vS.call(e)}function ES(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Rx}function DS(e,t){let n=typeof e,r=t??Rx;return!!r&&(n==`number`||n!=`symbol`&&fS.test(e))&&e>-1&&e%1==0&&e<r}function OS(e){return e!=null&&ES(e.length)&&!rw(e)}function kS(e){return SS(e)&&TS(e)==zx}function AS(e){return SS(e)&&ES(e.length)&&rS.has(TS(e))}function jS(e){return typeof e==`symbol`||SS(e)&&TS(e)==nS}function MS(e){return SS(e)&&TS(e)==Yx}function NS(e){return SS(e)&&TS(e)==eS}function PS(e){let t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||gS)}function FS(e){return e===e&&!iw(e)}function IS(e){let t=e.length;for(;t--&&hS.test(e.charAt(t)););return t}function LS(e){return e&&e.slice(0,IS(e)+1).replace(mS,``)}function RS(e){if(typeof e==`number`)return e;if(jS(e))return NaN;if(iw(e)){let t=typeof e.valueOf==`function`?e.valueOf():e;e=iw(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;let t=LS(e),n=cS.test(t);return n||uS.test(t)?parseInt(t.slice(2),n?2:8):sS.test(t)?NaN:+t}function zS(e){if(!e)return e===0?e:0;let t=RS(e);return t===1/0||t===-1/0?t<0?-Number.MAX_VALUE:Number.MAX_VALUE:t===t?t:0}function BS(e){let t=zS(e),n=t%1;return n?t-n:t}function VS(e){if(typeof e==`string`)return e;if(Array.isArray(e))return KS(e,VS)+``;if(jS(e))return bS.call(e);let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function HS(e){return e==null?``:VS(e)}function US(e){if(typeof e==`string`||jS(e))return e;let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function WS(e){return e}function GS(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r&&t(e[n],n,e)!==!1;);return e}function KS(e,t){let n=-1,r=e==null?0:e.length,i=Array(r);for(;++n<r;)i[n]=t(e[n],n,e);return i}function qS(e,t){let n=-1,{length:r}=t,i=e.length;for(;++n<r;)e[i+n]=t[n];return e}function JS(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r;)if(t(e[n],n))return!0;return!1}function YS(e,t,n){let{length:r}=e,i=n-1;for(;++i<r;)if(t(e[i],i,e))return i;return-1}function XS(e,t){let n=-1,r=Array(e);for(;++n<e;)r[n]=t(n);return r}function ZS(e,t){let n=-1,{length:r}=e,i=t||Array(r);for(;++n<r;)i[n]=e[n];return i}function QS(e){let t=-1,n=Array(e.size);return e.forEach(e=>{n[++t]=e}),n}function $S(e){let t=-1,n=Array(e.size);return e.forEach((e,r)=>{n[++t]=[r,e]}),n}function eC(e,t){let n=Array.isArray(e),r=!n&&kS(e),i=!n&&!r&&AS(e),a=n||r||i,o=a?XS(e.length,String):[],{length:s}=o;for(let n in e)(t||_S.call(e,n))&&!(a&&(n==`length`||i&&(n==`buffer`||n==`byteLength`||n==`byteOffset`)||DS(n,s)))&&o.push(n);return o}function tC(e){if(!PS(e))return Object.keys(Object(e));let t=[];for(let n in Object(e))_S.call(e,n)&&n!=`constructor`&&t.push(n);return t}function nC(e){let t=[];if(e!=null)for(let n in Object(e))t.push(n);return t}function rC(e){if(!iw(e))return nC(e);let t=PS(e),n=[];for(let r in e)r==`constructor`&&(t||!_S.call(e,r))||n.push(r);return n}function iC(e){return OS(e)?eC(e,!1):tC(e)}function aC(e){return OS(e)?eC(e,!0):rC(e)}function oC(e){if(e==null)return[];let t=Object(e);return Object.getOwnPropertySymbols(t).filter(e=>yS.call(t,e))}function sC(e){let t=[],n=e;for(;n;)qS(t,oC(n)),n=Object.getPrototypeOf(Object(n));return t}function cC(e){let t=iC(e);return Array.isArray(e)?t:qS(t,oC(e))}function lC(e){let t=aC(e);return Array.isArray(e)?t:qS(t,sC(e))}function uC(e,t,n){t==`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function dC(e,t,n){let r=e[t];(!(_S.call(e,t)&&CS(r,n))||n===void 0&&!(t in e))&&uC(e,t,n)}function fC(e,t,n){let r=!n,i=n||{},a=-1,{length:o}=t;for(;++a<o;){let n=t[a];r?uC(i,n,e[n]):dC(i,n,e[n])}return i}function pC(e,t){return e&&fC(t,iC(t),e)}function mC(e,t){return e&&fC(t,aC(t),e)}function hC(e,t){return fC(e,oC(e),t)}function gC(e,t){return fC(e,sC(e),t)}function _C(e,t,n){let r=-1,i=Object(e),a=n(e),{length:o}=a;for(;o--;){let e=a[++r];if(t(i[e],e,i)===!1)break}return e}function vC(e,t){return e&&_C(e,t,iC)}function yC(e,t){if(e==null)return e;if(!OS(e))return vC(e,t);let{length:n}=e,r=-1,i=Object(e);for(;++r<n&&t(i[r],r,i)!==!1;);return e}function bC(e){let t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(pS,(e,n,r,i)=>(t.push(r?i.replace(aS,`$1`):n||e),e)),t}var xC=new Map;function SC(e){xC.size===Lx&&xC.clear();let t=xC.get(e);return t===void 0&&(t=bC(e),xC.set(e,t)),t}function CC(e,t){if(Array.isArray(e))return!1;let n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||jS(e)?!0:dS.test(e)||!lS.test(e)||t!=null&&e in Object(t)}function wC(e,t){return Array.isArray(e)?e:CC(e,t)?[e]:SC(HS(e))}function TC(e,t){let n=wC(t,e),r=0,{length:i}=n,a=e;for(;a!=null&&r<i;)a=a[US(n[r++])];return r&&r==i?a:void 0}function EC(e,t){return e!=null&&t in Object(e)}function DC(e,t,n){let r=wC(t,e),i=-1,{length:a}=r,o=!1,s,c=e;for(;++i<a&&(s=US(r[i]),o=c!=null&&n(c,s),o);)c=c[s];return o||++i!=a?o:(a=c==null?0:c.length,!!a&&ES(a)&&DS(s,a)&&(Array.isArray(c)||kS(c)))}function OC(e,t){return e!=null&&DC(e,t,EC)}function kC(e){return t=>t?.[e]}function AC(e){return t=>TC(t,e)}function jC(e){return CC(e)?kC(US(e)):AC(e)}function MC(e,t){return e.byteLength==t.byteLength&&LC(new Uint8Array(e),new Uint8Array(t))}function NC(e,t,n,r,i){let a=n&Fx,o=e.length,s=t.length;if(o!=s&&!(a&&s>o))return!1;let c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;let u=-1,d=!0,f=n&Ix?new Set:void 0;for(i.set(e,t),i.set(t,e);++u<o;){let o=e[u],s=t[u],c;if(r&&(c=a?r(s,o,u,t,e,i):r(o,s,u,e,t,i)),c!==void 0){if(c)continue;d=!1;break}if(f){if(!JS(t,(e,t)=>!f.has(t)&&(o===e||LC(o,e,n,r,i))?f.add(t):!1)){d=!1;break}}else if(!(o===s||LC(o,s,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function PC(e,t,n,r,i,a){switch(n){case Wx:return e.byteLength==t.byteLength&&e.byteOffset==t.byteOffset&&MC(e.buffer,t.buffer);case Vx:return MC(e,t);case Ux:case Gx:case Xx:return CS(+e,+t);case Kx:return e.name==t.name&&e.message==t.message;case $x:case tS:return e==t+``;case Yx:case eS:{let o=r&Fx;if(e.size!=t.size&&!o)return!1;let s=a.get(e);if(s)return s==t;let c=n==Yx?$S:QS;a.set(e,t);let l=NC(c(e),c(t),r|Ix,i,a);return a.delete(e),l}case nS:return xS.call(e)==xS.call(t)}return!1}function FC(e,t,n,r,i){let a=n&Fx,o=cC(e),s=o.length;if(s!=cC(t).length&&!a)return!1;let c=s;for(;c--;){let e=o[c];if(!(a?e in t:_S.call(t,e)))return!1}let l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;let d=!0;i.set(e,t),i.set(t,e);let f=!!a;for(;++c<s;){let s=o[c],l=e[s],u=t[s],p;if(r&&(p=a?r(u,l,s,t,e,i):r(l,u,s,e,t,i)),!(p===void 0?l===u||LC(l,u,n,r,i):p)){d=!1;break}f||=s==`constructor`}if(d&&!f){let n=e.constructor,r=t.constructor;n!=r&&`constructor`in e&&`constructor`in t&&!(typeof n==`function`&&n instanceof n&&typeof r==`function`&&r instanceof r)&&(d=!1)}return i.delete(e),i.delete(t),d}function IC(e,t,n,r,i){let a=Array.isArray(e),o=Array.isArray(t),s=a?Bx:TS(e),c=o?Bx:TS(t);s=s==zx?Zx:s,c=c==zx?Zx:c;let l=s==Zx,u=s==c;return u&&!l?a||AS(e)?NC(e,t,n,r,i||new Map):PC(e,t,s,n,r,i||new Map):u?FC(e,t,n,r,i||new Map):!1}function LC(e,t,n=0,r,i){return e===t?!0:e==null||t==null||!SS(e)&&!SS(t)?e!==e&&t!==t:IC(e,t,n,r,i)}function RC(e){return iC(e).map(t=>[t,e[t],FS(e[t])])}function zC(e,t){return n=>n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}function BC(e,t){let n=t.length,r=n;if(e==null)return!r;let i=Object(e);for(;n--;){let[e,r,a]=t[n];if(a?r!==i[e]:!(e in i))return!1}for(;++n<r;){let[e,r,a]=t[n],o=i[e];if(a){if(o===void 0&&!(e in i))return!1}else if(!LC(r,o,3))return!1}return!0}function VC(e){let t=RC(e);return t.length==1&&t[0][2]?zC(t[0][0],t[0][1]):n=>n===e||BC(n,t)}function HC(e,t){return CC(e)&&FS(t)?zC(US(e),t):n=>{let r=tw(n,e);return r===void 0&&r===t?OC(n,e):LC(t,r,3)}}function UC(e){return typeof e==`function`?e:e==null?WS:typeof e==`object`?Array.isArray(e)?HC(e[0],e[1]):VC(e):jC(e)}function WC(e){return iw(e)?Object.create(e):{}}function GC(e){let{length:t}=e,n=new e.constructor(t);return t&&typeof e[0]==`string`&&_S.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function KC(e){return typeof e.constructor==`function`&&!PS(e)?WC(Object.getPrototypeOf(Object(e))):{}}function qC(e){let t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function JC(e,t){let n=t?qC(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function YC(e,t,n){let r=e.constructor;switch(t){case Vx:return qC(e);case Ux:case Gx:return new r(+e);case Wx:return new r(n?qC(e.buffer):e.buffer,e.byteOffset,e.byteLength);case Yx:case eS:return new r;case Xx:case tS:return new r(e);case $x:{let t=new r(e.source,oS.exec(e));return t.lastIndex=e.lastIndex,t}case nS:return Object(xS.call(e))}return rS.has(t)?JC(e,n):void 0}function XC(e,t,n,r,i,a){let o,s=!!(t&Mx),c=!!(t&Nx),l=!!(t&Px);if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!iw(e))return e;let u=Array.isArray(e);if(u){if(o=GC(e),!s)return ZS(e,o)}else{let t=TS(e),n=t==qx||t==Jx;if(t==Zx||t==zx||n&&!i){if(o=c||n?{}:KC(e),!s)return c?gC(e,mC(o,e)):hC(e,pC(o,e))}else{if(!iS.has(t))return i?e:{};o=YC(e,t,s)}}let d=a||new Map,f=d.get(e);if(f)return f;d.set(e,o),NS(e)?e.forEach(r=>{o.add(XC(r,t,n,r,e,d))}):MS(e)&&e.forEach((r,i)=>{o.set(i,XC(r,t,n,i,e,d))});let p=u?void 0:(l?c?lC:cC:c?aC:iC)(e);return GS(p||e,(r,i)=>{let a=i,s=r;p&&(a=r,s=e[a]),dC(o,a,XC(s,t,n,a,e,d))}),o}function ZC(e,t,n){let r=e==null?0:e.length;if(!r)return-1;let i=n==null?0:BS(n);return i<0&&(i=Math.max(r+i,0)),YS(e,t,i)}function QC(e){return XC(e,5)}function $C(e,t,n=0){let r=Object(e);if(OS(e)){let i=ZC(e,UC(t),n);return i>-1?r[i]:void 0}let i=UC(t),a=iC(e),o=ZC(a,e=>i(r[e],e,r),n);return o>-1?r[a[o]]:void 0}function ew(e,t){let n=UC(t),r;return vC(e,(e,t,i)=>{if(n(e,t,i))return r=t,!1}),r}function tw(e,t,n){let r=e==null?void 0:TC(e,t);return r===void 0?n:r}function nw(e){if(e==null)return!0;if(OS(e)&&(Array.isArray(e)||typeof e==`string`||typeof e.splice==`function`||AS(e)||kS(e)))return!e.length;let t=TS(e);if(t==Yx||t==eS)return!e.size;if(PS(e))return!tC(e).length;for(let t in e)if(_S.call(e,t))return!1;return!0}function rw(e){if(!iw(e))return!1;let t=TS(e);return t==qx||t==Jx||t==Hx||t==Qx}function iw(e){let t=typeof e;return e!=null&&(t==`object`||t==`function`)}function aw(e){return e===void 0}function ow(e,t,n){let r=arguments.length<3,i=UC(t),a=n;if(Array.isArray(e)){let t=-1,{length:n}=e;for(r&&n&&(a=e[++t]);++t<n;)a=i(a,e[t],t,e);return a}return yC(e,(e,t,n)=>{r?(r=!1,a=e):a=i(a,e,t,n)}),a}var sw=(e,t,n)=>{if(!e||e.length<=1||t===void 0||n===void 0)throw Error(`swap requires a non-empty array, fromIndex, toIndex: ${e}, ${t} ${n}`);let r=QC(e),i=e[n];return r[n]=r[t],r[t]=i,r},cw={flex:1};function lw({id:e,children:t,disabled:n,classes:r,isVerticalPool:i,minHeight:a}){let{setNodeRef:o,isOver:s}=yx({id:e,disabled:n});return(0,H.jsx)(`div`,{ref:o,style:cw,children:(0,H.jsx)(Nv,{disabled:n,isOver:s,choiceBoard:!0,className:r,isVerticalPool:i,minHeight:a,children:t})})}lw.propTypes={id:x.oneOfType([x.string,x.number]).isRequired,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired,disabled:x.bool,classes:x.object,isVerticalPool:x.bool,minHeight:x.number};function uw({id:e,children:t,disabled:n,onRemoveAnswer:r,...i}){return(0,H.jsx)(lw,{id:e,disabled:n,...i,children:t})}uw.propTypes={id:x.oneOfType([x.string,x.number]).isRequired,children:x.node,disabled:x.bool,onRemoveAnswer:x.func};function dw(e,t,n){let r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}var fw=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e,i=r[0];return!t||!i?n:dw(n,t,i)},pw=25,mw=(e,{active:t,context:n,currentCoordinates:r})=>{let{code:i}=e,a=i===`Tab`,o=i===$.Down||i===$.Up||i===$.Left||i===$.Right;if(!a&&!o)return;if(e.preventDefault(),o)switch(i){case $.Down:return{...r,y:r.y+pw};case $.Up:return{...r,y:r.y-pw};case $.Right:return{...r,x:r.x+pw};case $.Left:return{...r,x:r.x-pw};default:return r}let{droppableRects:s,droppableContainers:c,collisionRect:l}=n;if(!s||s.size===0)return r;let u=t?.data?.current,d=u?.promptId==null?void 0:`drop-${u.promptId}`,f=l?.height??0,p=e=>({x:e.left,y:e.top+e.height/2-f/2}),m=[];for(let[e,t]of c){if(t?.disabled||e===d)continue;let n=t?.node?.current,r=n?.getBoundingClientRect()??s.get(e);if(!r)continue;let i={x:r.left+r.width/2,y:r.top+r.height/2};m.push({id:e,node:n,rect:r,dropPosition:p(r),center:i})}if(m.length===0)return r;let h=e.shiftKey;m.sort((e,t)=>Math.abs(e.center.y-t.center.y)>10?e.center.y-t.center.y:e.center.x-t.center.x);let g=l?{x:l.left+l.width/2,y:l.top+l.height/2}:r,_=m.findIndex(e=>g.x>=e.rect.left&&g.x<=e.rect.right&&g.y>=e.rect.top&&g.y<=e.rect.bottom);if(_===-1){let e=1/0;for(let t=0;t<m.length;t++){let n=hw(r,m[t].dropPosition);n<e&&(e=n,_=t)}}let v=m[h?(_-1+m.length)%m.length:(_+1)%m.length];return v.node?.scrollIntoView?(v.node.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`instant`}),p(v.node.getBoundingClientRect())):v.dropPosition},hw=(e,t)=>Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),gw=`height ease-in 300ms, opacity ease-in 300ms`,_w=K(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:gw,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:gw,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),vw=e=>{let{show:t,children:n,className:r}=e,i=(0,V.useRef)(null);return(0,H.jsx)(js,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,H.jsx)(_w,{ref:i,className:r,children:n})})};vw.propTypes={show:x.bool.isRequired,className:x.string,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired};function yw(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function bw(e,t){return!e||yw(e)?e:yw(e.default)?e.default:t&&yw(e[t])?e[t]:t&&yw(e[t]?.default)?e[t].default:e}var xw=bw(ev,`Readable`)||bw(ww.Readable,`Readable`),Sw=Av,Cw=Sw.default,ww=Cw&&typeof Cw==`object`?Cw:Sw,{translator:Tw}=ug,Ew={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},Dw=K(`div`)(()=>({width:`100%`,cursor:`pointer`})),Ow=K(`button`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`,minWidth:`24px`,minHeight:`24px`,padding:0,border:0,background:`none`,color:`inherit`,font:`inherit`,cursor:`pointer`,"&:focus-visible":{outline:`2px solid ${Jd()}`,outlineOffset:`-2px`}})),kw=K(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${ad()})`,fontWeight:`normal`,...Ew})),Aw=K(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),jw=K(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),Mw=class e extends V.Component{static propTypes={onToggle:x.func,toggled:x.bool,show:x.bool,hideMessage:x.string,showMessage:x.string,className:x.string,language:x.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=V.createRef(),this.closedIconRef=V.createRef(),e.defaultProps={...e.defaultProps,showMessage:Tw.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:Tw.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:Tw.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:Tw.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,H.jsx)(Dw,{className:e,children:(0,H.jsx)(vw,{show:this.state.show,children:(0,H.jsxs)(Ow,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,H.jsxs)(jw,{children:[(0,H.jsx)(js,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,H.jsx)(Aw,{ref:this.openIconRef,children:(0,H.jsx)(zo,{open:t},`correct-open`)})}),(0,H.jsx)(js,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,H.jsx)(Aw,{ref:this.closedIconRef,children:(0,H.jsx)(zo,{open:t},`correct-closed`)})})]}),(0,H.jsx)(xw,{false:!0,children:(0,H.jsx)(kw,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}},Nw=rl((0,H.jsx)(`path`,{d:`m7 10 5 5 5-5z`}),`ArrowDropDown`),Pw=K(`div`)({display:`inline-block`,position:`relative`,width:`100%`}),Fw=K(`span`)(({isRight:e})=>({backgroundColor:Pd(),bottom:e?20:19,content:`""`,display:`block`,height:1,left:20,position:`absolute`,width:`100%`})),Iw=class extends V.Component{static propTypes={direction:x.string};render(){let{direction:e}=this.props;return(0,H.jsxs)(Pw,{style:e===`left`?{}:{transform:`rotate(180deg)`},children:[(0,H.jsx)(Nw,{style:{transform:`rotate(90deg)`,color:Pd(),fontSize:40}}),(0,H.jsx)(Fw,{isRight:e!==`left`})]})}},Lw=v(`pie-elements:match-title:answer`),Rw=id(`pie`),zw=K(`div`)(()=>({width:`100%`,fontSize:`18px`,textAlign:`center`,color:`inherit`})),Bw=({index:e,isOver:t,disabled:n,type:r})=>(0,H.jsx)(Nv,{extraStyles:{display:`flex`,padding:`0`,alignItems:`center`,justifyContent:`center`,height:`40px`},disabled:n,isOver:t,type:r,children:e!==void 0&&(0,H.jsx)(zw,{children:e})});Bw.propTypes={index:x.number,isOver:x.bool,disabled:x.bool,type:x.string};var Vw=K(`div`)(({isDragging:e,isSelected:t,isOver:n,disabled:r,outcome:i})=>({color:ad(),backgroundColor:Rw(`background`,X.WHITE),border:`1px solid ${i===`correct`?ld():i===`incorrect`?pd():Pd()}`,cursor:r?`not-allowed`:`pointer`,width:`100%`,padding:`10px`,boxSizing:`border-box`,overflow:`hidden`,transition:`opacity 200ms linear`,wordBreak:`break-word`,opacity:(e||t)&&!r?.5:n&&!r?.2:1,touchAction:`none`})),Hw=e=>{let{isDragging:t,isSelected:n,isOver:r,title:i,disabled:a,empty:o,outcome:s,guideIndex:c,type:l}=e;return o?(0,H.jsx)(Bw,{index:c,isOver:r,disabled:a,type:l}):(0,H.jsx)(Vw,{isDragging:t,isSelected:n,isOver:r,disabled:a,outcome:s,dangerouslySetInnerHTML:{__html:ed(i)}})},Uw=K(`div`)(({correct:e,isSelected:t,isDragging:n,theme:r})=>({boxSizing:`border-box`,minHeight:40,minWidth:`200px`,overflow:`hidden`,margin:r.spacing(.5),padding:`0px`,textAlign:`center`,height:`initial`,border:e===!0?`1px solid ${ld()}`:e===!1?`1px solid ${pd()}`:t&&!n?`2px solid ${Jd()}`:`none`})),Ww=class extends V.Component{static propTypes={className:x.string,isDragging:x.bool,isSelected:x.bool,id:x.any,title:x.string,isOver:x.bool,empty:x.bool,type:x.string,disabled:x.bool,correct:x.bool};componentDidMount(){this.ref&&this.ref.addEventListener(`touchstart`,this.handleTouchStart,{passive:!0})}componentWillUnmount(){this.ref&&this.ref.removeEventListener(`touchstart`,this.handleTouchStart)}handleTouchStart=e=>{};render(){let{id:e,title:t,isDragging:n=!1,isSelected:r=!1,className:i,disabled:a,isOver:o=!1,type:s,correct:c}=this.props;return Lw(`[render], props: `,this.props),(0,H.jsx)(Uw,{correct:c,isSelected:r,isDragging:n,className:i,ref:e=>this.ref=e,children:(0,H.jsx)(Hw,{title:t,id:e,isOver:o,empty:nw(t),isDragging:n,isSelected:r,disabled:a,type:s})})}},Gw=({type:e,id:t,promptId:n})=>n==null?`${e||`answer`}-${t}`:`${e||`answer`}-prompt-${n}`;function Kw(e){let{id:t,instanceId:n,promptId:r,labelId:i,draggable:a=!0,disabled:o=!1,type:s,selectedAnswer:c,onSelectClick:l,onPlacementClick:u}=e,d=Gw({type:s,id:t,promptId:r}),f=r==null?void 0:`drop-${r}`,p={type:s||`answer`,id:t,instanceId:n,value:e.title,promptId:r},m=f?{type:`drop-zone`,promptId:r,instanceId:n}:void 0,{attributes:h,listeners:g,setNodeRef:_,transform:v,transition:y,isDragging:b}=hx({id:d,data:p,disabled:!a||o,attributes:{tabIndex:a&&!o?0:-1}}),x=yx({id:f,data:m,disabled:o||!f}),S=x.setNodeRef,C=x.isOver,[w,T]=(0,V.useState)(!1),E=!!c,D=C||E&&w&&!o,O=!!c&&c.type===p.type&&c.id===p.id&&c.promptId===p.promptId,k=v?`translate3d(${v.x}px, ${v.y}px, 0)`:void 0;if(f){let t=()=>{o||(O?l?.(p):c?u?.(m):a&&l?.(p))},r=!a&&!o&&E;return(0,H.jsx)(`div`,{ref:S,role:r?`button`:`group`,"aria-labelledby":i,tabIndex:r?0:-1,onClick:t,onKeyDown:r?e=>{(e.code===`Space`||e.code===`Enter`)&&(e.preventDefault(),t())}:void 0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),style:{flex:1,opacity:b?.5:1,backgroundColor:b||O||D?`rgba(0,0,0,0.05)`:`transparent`,cursor:E&&!o?`pointer`:void 0},children:(0,H.jsx)(`div`,{ref:_,...g,...a&&!o?h:{},"data-tile-id":`${n}:${d}`,style:{transform:k,transition:y},children:(0,H.jsx)(Ww,{...e,isDragging:b,isSelected:O,isOver:D})})})}let A=e=>{o||(e.stopPropagation(),l?.(p))};return(0,H.jsx)(`div`,{ref:_,...g,...h,"data-tile-id":`${n}:${d}`,onClick:A,style:{transform:k,transition:y,cursor:o?`not-allowed`:`grab`,opacity:b?.5:1,touchAction:a&&!o?`none`:`auto`},children:(0,H.jsx)(Ww,{...e,isDragging:b,isSelected:O,isOver:!1})})}Kw.propTypes={id:x.any,instanceId:x.string,promptId:x.any,labelId:x.string,title:x.string,draggable:x.bool,disabled:x.bool,type:x.string,selectedAnswer:x.object,onSelectClick:x.func,onPlacementClick:x.func};var qw=200,Jw=K(`div`)({alignItems:`normal`,display:`flex`,flexShrink:0,height:40,margin:`10px 20px`}),Yw=K(`div`)(({theme:e})=>({alignItems:`flex-start`,display:`flex`,flex:1,flexDirection:`column`,justifyContent:`space-between`,marginTop:e.spacing(2),marginBottom:e.spacing(2)})),Xw=K(`div`)(()=>({border:`1px solid ${Pd()}`,boxSizing:`border-box`,flex:1,margin:`10px 0`,minHeight:40,minWidth:qw,overflow:`hidden`,padding:10,textAlign:`center`,width:`100%`,wordBreak:`break-word`})),Zw=K(`div`)({alignItems:`center`,display:`flex`,justifyContent:`space-between`,width:`100%`}),Qw=class extends V.Component{static propTypes={session:x.object.isRequired,showCorrect:x.bool.isRequired,disabled:x.bool.isRequired,onSessionChange:x.func,onRemoveAnswer:x.func,instanceId:x.string.isRequired,model:x.object.isRequired,prompt:x.string,selectedAnswer:x.object,onChoiceClick:x.func,onPlacementClick:x.func};getAnswerFromSession=e=>{let{model:t,session:n,showCorrect:r}=this.props,{config:i}=t,a=r?i.prompts.find(t=>t.id===e).relatedAnswer:n.value&&n.value[e];return i.answers.find(e=>e.id===a)||{}};getCorrectOrIncorrectMap=()=>{let{model:e,session:t,showCorrect:n}=this.props,{config:r}=e,i=t.value||r.prompts.reduce((e,t)=>(e[t.id]=void 0,e),{});if(e.mode!==`evaluate`)return{};if(n)return r.prompts.reduce((e,t)=>(e[t.id]=!0,e),{});let a=r.prompts.reduce((e,t)=>(aw(t.relatedAnswer)||(e[t.id]=t.relatedAnswer),e),{});return ow(i,(e,t,n)=>(e[n]=a[n]===i[n],e),{})};buildRows=()=>{let{model:e}=this.props,{config:t}=e;return(t.prompts||[]).map(e=>{let t=this.getAnswerFromSession(e.id);return{...e,sessionAnswer:t}})};render(){let{disabled:e,instanceId:t,onRemoveAnswer:n,selectedAnswer:r,onChoiceClick:i,onPlacementClick:a}=this.props,o=this.buildRows(),s=this.getCorrectOrIncorrectMap();return(0,H.jsx)(Yw,{children:o.map(({sessionAnswer:o,title:c,id:l},u)=>{let d=`${t}-prompt-label-${l}`;return(0,H.jsxs)(Zw,{children:[(0,H.jsx)(Xw,{id:d,dangerouslySetInnerHTML:{__html:ed(c)}}),(0,H.jsxs)(Jw,{children:[(0,H.jsx)(Iw,{direction:`left`}),(0,H.jsx)(Iw,{})]}),(0,H.jsx)(Kw,{className:`answer`,index:u,promptId:l,labelId:d,correct:s[l],draggable:!nw(o),disabled:e,instanceId:t,id:o.id,title:o.title,type:`target`,onRemoveChoice:()=>n(l),selectedAnswer:r,onSelectClick:i,onPlacementClick:a})]},l)})})}},$w=K(`div`)(({theme:e})=>({alignItems:`center`,display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`space-between`,marginTop:e.spacing(1),marginBottom:e.spacing(1),minHeight:50,transition:`background-color 200ms ease`}));function eT({id:e,disabled:t,children:n,onPlacementClick:r,...i}){let{setNodeRef:a,isOver:o}=yx({id:e||`choices-pool`,data:{type:`choices-pool`},disabled:t});return(0,H.jsx)($w,{ref:a,onClick:()=>{t||r?.({type:`choices-pool`})},style:{backgroundColor:o?`rgba(0,0,0,0.05)`:`transparent`},...i,children:(0,H.jsx)(uw,{id:e,disabled:t,children:n})})}eT.propTypes={id:x.oneOfType([x.string,x.number]),disabled:x.bool,children:x.node,onPlacementClick:x.func};var tT=K(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),nT=class extends V.Component{static propTypes={session:x.object.isRequired,instanceId:x.string.isRequired,model:x.object.isRequired,disabled:x.bool.isRequired,onRemoveAnswer:x.func,selectedAnswer:x.object,onChoiceClick:x.func,onPlacementClick:x.func};render(){let{model:e,disabled:t,session:n,instanceId:r,onRemoveAnswer:i,selectedAnswer:a,onChoiceClick:o,onPlacementClick:s}=this.props,{config:c}=e,{duplicates:l}=c,u=c.answers.filter(e=>l||nw(n)||!n.value||aw($C(n.value,t=>t===e.id))).map(e=>(0,H.jsx)(Kw,{instanceId:r,draggable:!0,disabled:t,session:n,type:`choice`,selectedAnswer:a,onSelectClick:o,...e},e.id));return(0,H.jsx)(tT,{children:(0,H.jsx)(eT,{id:`choices-pool`,disabled:t,onRemoveAnswer:i,onPlacementClick:s,children:u})})}};function rT(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function iT(e,t){return!e||rT(e)?e:rT(e.default)?e.default:t&&rT(e[t])?e[t]:t&&rT(e[t]?.default)?e[t].default:e}var aT=iT($_,`PreviewPrompt`)||iT(lT.PreviewPrompt,`PreviewPrompt`),oT=iT(vf,`Feedback`)||iT(lT.Feedback,`Feedback`),sT=Av,cT=sT.default,lT=cT&&typeof cT==`object`?cT:sT,uT=250,dT=[{sensor:mb,options:{activationConstraint:{distance:8}}},{sensor:lb,options:{coordinateGetter:mw,keyboardCodes:{start:[$.Space,$.Enter],cancel:[$.Esc],end:[$.Space,$.Enter]}}}],fT=K(`div`)({display:`flex`,flexDirection:`column`,justifyContent:`center`,color:ad(),backgroundColor:Dd()}),pT=K(`div`)({width:`100%`,overflowX:`auto`,overflowY:`hidden`}),mT=K(`div`)({display:`flex`,flexDirection:`column`,minWidth:`min-content`}),hT=class extends V.Component{static propTypes={session:x.object.isRequired,onSessionChange:x.func,model:x.object.isRequired,prompt:x.string};constructor(e){super(e),this.instanceId=dg(`match-list`),this.state={showCorrectAnswer:!1,draggingElement:null,selectedAnswer:null},this.lastDragEndAt=0}onRemoveAnswer(e){let{session:t,onSessionChange:n}=this.props;t.value[e]=void 0,n(t)}onDragStart=e=>{let{active:t}=e;if(t?.data?.current){let e=null,n=t.node?.current;if(n){let{width:t,height:r}=n.getBoundingClientRect();e={width:t,height:r}}this.setState({draggingElement:{...t.data.current,rect:e}}),this.selectAnswer(t.data.current)}};onDragCancel=()=>{this.setState({draggingElement:null}),this.cancelSelection(),this.lastDragEndAt=Date.now()};placeAnswer=(e,t)=>{if(!e||!t)return;let{session:n,onSessionChange:r,model:i}=this.props,{config:{duplicates:a}}=i;if(aw(n.value)&&(n.value={}),t.type===`choices-pool`&&e.promptId!==void 0){n.value[e.promptId]=void 0,r(n);return}let o=e.id,s=e.promptId;if(t.type===`drop-zone`&&t.promptId!=null){let i=t.promptId;if(e.type===`choice`&&i!==void 0){let e=ew(n.value,e=>e===o);e&&!a?n.value=sw(n.value,e,i):n.value[i]=o}else if(e.type===`target`&&s!=null&&s!==i)if(n.value[i]!=null&&!a){let e=n.value[i];n.value[i]=o,n.value[s]=e}else n.value[i]=o,delete n.value[s];r(n)}};onPlaceAnswer=e=>{this.setState({draggingElement:null});let{active:t,over:n}=e;if(!t)return;let r=t.data.current,i=n?.data.current;if(!r)return;let a=this.getDestinationDragId(r,i);this.placeAnswer(r,i),this.cancelSelection(),this.lastDragEndAt=Date.now(),this.focusTile(a)};getDestinationDragId=(e,t)=>!e||!t?null:t.type===`choices-pool`&&e.promptId!==void 0?Gw({type:`choice`,id:e.id}):t.type===`drop-zone`&&t.promptId!=null?Gw({type:`target`,promptId:t.promptId}):null;focusTile=e=>{if(!e)return;let t=`[data-tile-id="${this.instanceId}:${e}"]`;requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.querySelector(t)?.focus()})})};isSameAnswer=(e,t)=>!!e&&!!t&&e.type===t.type&&e.id===t.id&&e.promptId===t.promptId;selectAnswer=e=>{this.setState({selectedAnswer:e})};toggleAnswerSelection=e=>{this.setState(t=>({selectedAnswer:this.isSameAnswer(t.selectedAnswer,e)?null:e}))};cancelSelection=()=>{this.setState({selectedAnswer:null})};endAnyLiveKeyboardDrag=()=>{document.dispatchEvent(new KeyboardEvent(`keydown`,{code:`Escape`,bubbles:!0,cancelable:!0}))};placeSelectedAnswer=e=>{let{selectedAnswer:t}=this.state;if(!t)return;let n=this.getDestinationDragId(t,e);this.placeAnswer(t,e),this.cancelSelection(),this.endAnyLiveKeyboardDrag(),this.lastDragEndAt=Date.now(),this.focusTile(n)};isClickSoonAfterDragEnd=()=>Date.now()-this.lastDragEndAt<uT;onChoiceClick=e=>{this.isClickSoonAfterDragEnd()||this.toggleAnswerSelection(e)};onPlacementClick=e=>{this.isClickSoonAfterDragEnd()||this.placeSelectedAnswer(e)};toggleShowCorrect=()=>{this.setState({showCorrectAnswer:!this.state.showCorrectAnswer})};renderDragOverlay=()=>{let{draggingElement:e}=this.state;return e?(0,H.jsx)(Ww,{id:e.id,title:e.value,disabled:!1,isDragging:!1,style:e.rect?{width:e.rect.width,height:e.rect.height,boxSizing:`border-box`}:{}}):null};render(){let{showCorrectAnswer:e}=this.state,{model:t,session:n}=this.props,{config:r,mode:i}=t,{prompt:a,language:o}=r;return(0,H.jsxs)(dx,{id:this.instanceId,sensors:dT,collisionDetection:wy,onDragStart:this.onDragStart,onDragEnd:this.onPlaceAnswer,onDragCancel:this.onDragCancel,modifiers:[fw],accessibility:{screenReaderInstructions:{draggable:`Press Space or Enter to pick up this answer choice. Once picked up, use Tab or Shift+Tab to cycle through response areas, or use arrow keys to move it freely. Press Space or Enter to drop, or Escape to cancel. You can also click an answer choice to select it, then click a response area to place it there.`}},children:[(0,H.jsxs)(fT,{children:[(0,H.jsx)(aT,{className:`prompt`,prompt:a}),(0,H.jsx)(Mw,{show:i===`evaluate`,toggled:e,onToggle:this.toggleShowCorrect,language:o}),(0,H.jsx)(pT,{children:(0,H.jsxs)(mT,{children:[(0,H.jsx)(Qw,{instanceId:this.instanceId,model:t,session:n,onRemoveAnswer:e=>this.onRemoveAnswer(e),disabled:i!==`gather`,showCorrect:e,selectedAnswer:this.state.selectedAnswer,onChoiceClick:this.onChoiceClick,onPlacementClick:this.onPlacementClick}),(0,H.jsx)(nT,{instanceId:this.instanceId,model:t,session:n,disabled:i!==`gather`,onRemoveAnswer:e=>this.onRemoveAnswer(e),selectedAnswer:this.state.selectedAnswer,onChoiceClick:this.onChoiceClick,onPlacementClick:this.onPlacementClick})]})}),t.correctness&&t.feedback&&!e&&(0,H.jsx)(oT,{correctness:t.correctness.correctness,feedback:t.feedback})]}),(0,H.jsx)(jx,{children:this.renderDragOverlay()})]})}};(class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}});var gT=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},_T=g(),vT=v(`pie-ui:graph-lines`),yT=(e,t)=>{if(!e)return!1;let n=e.value,r=!0;return n&&(t.config.prompts||[]).forEach(e=>{Number.isFinite(n[e.id])||(r=!1)}),r},bT=class extends HTMLElement{constructor(){super(),this._root=null}set model(e){this._model=e,this._render()}set session(e){this._session=e,this._render()}get session(){return this._session}sessionChanged(e){this._session.value=e.value,this.dispatchEvent(new gT(this.tagName.toLowerCase(),yT(this._session,this._model))),vT(`session: `,this._session),this._render()}connectedCallback(){this._render()}_render(){if(!this._model||!this._session)return;let e=V.createElement(hT,{model:this._model,session:this._session,onSessionChange:this.sessionChanged.bind(this)});this._root||=(0,_T.createRoot)(this),this._root.render(e),queueMicrotask(()=>{sh(this)})}disconnectedCallback(){this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`match-list-element`)&&customElements.define(`match-list-element`,bT),bT})();
|
|
189
|
+
`},Sy={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function Cy(e){let{announcements:t=Sy,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=xy}=e,{announce:a,announcement:o}=_y(),s=ry(`DndLiveRegion`),[c,l]=(0,V.useState)(!1);if((0,V.useEffect)(()=>{l(!0)},[]),yy((0,V.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=V.createElement(V.Fragment,null,V.createElement(hy,{id:r,value:i.draggable}),V.createElement(gy,{id:s,announcement:o}));return n?(0,xs.createPortal)(u,n):u}var wy;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(wy||={});function Ty(){}var Ey=Object.freeze({x:0,y:0});function Dy(e,t){let n=uy(e);if(!n)return`0 0`;let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+`% `+r.y+`%`}function Oy(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ky(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Ay(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var jy=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=Ay(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Oy)};function My(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ny(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ey}function Py(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var Fy=Py(1);function Iy(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Ly(e,t,n){let r=Iy(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var Ry={ignoreTransform:!1};function zy(e,t){t===void 0&&(t=Ry);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=Wv(e).getComputedStyle(e);t&&(n=Ly(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function By(e){return zy(e,{ignoreTransform:!0})}function Vy(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Hy(e,t){return t===void 0&&(t=Wv(e).getComputedStyle(e)),t.position===`fixed`}function Uy(e,t){t===void 0&&(t=Wv(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function Wy(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Gv(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Kv(i)||qv(i)||n.includes(i))return n;let a=Wv(e).getComputedStyle(i);return i!==e&&Uy(i,a)&&n.push(i),Hy(i,a)?n:r(i.parentNode)}return e?r(e):n}function Gy(e){let[t]=Wy(e,1);return t??null}function Ky(e){return!Vv||!e?null:Hv(e)?e:Uv(e)?Gv(e)||e===Jv(e).scrollingElement?window:Kv(e)?e:null:null}function qy(e){return Hv(e)?e.scrollX:e.scrollLeft}function Jy(e){return Hv(e)?e.scrollY:e.scrollTop}function Yy(e){return{x:qy(e),y:Jy(e)}}var Xy;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(Xy||={});function Zy(e){return!Vv||!e?!1:e===document.scrollingElement}function Qy(e){let t={x:0,y:0},n=Zy(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var $y={x:.2,y:.2};function eb(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=$y);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=Qy(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=Xy.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=Xy.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=Xy.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=Xy.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function tb(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function nb(e){return e.reduce((e,t)=>ay(e,Yy(t)),Ey)}function rb(e){return e.reduce((e,t)=>e+qy(t),0)}function ib(e){return e.reduce((e,t)=>e+Jy(t),0)}function ab(e,t){if(t===void 0&&(t=zy),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);Gy(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var ob=[[`x`,[`left`,`right`],rb],[`y`,[`top`,`bottom`],ib]],sb=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Wy(t),r=nb(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of ob)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},cb=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function lb(e){let{EventTarget:t}=Wv(e);return e instanceof t?e:Jv(e)}function ub(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var db;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(db||={});function fb(e){e.preventDefault()}function pb(e){e.stopPropagation()}var $;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})($||={});var mb={start:[$.Space,$.Enter],cancel:[$.Esc],end:[$.Space,$.Enter,$.Tab]},hb=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case $.Right:return{...n,x:n.x+25};case $.Left:return{...n,x:n.x-25};case $.Down:return{...n,y:n.y+25};case $.Up:return{...n,y:n.y-25}}},gb=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new cb(Jv(t)),this.windowListeners=new cb(Wv(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(db.Resize,this.handleCancel),this.windowListeners.add(db.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(db.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&ab(n),t(Ey)}handleKeyDown(e){if(cy(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=mb,coordinateGetter:a=hb,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:Ey;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=oy(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=Qy(n),p=tb(n),m={x:Math.min(i===$.Right?p.right-p.width/2:p.right,Math.max(i===$.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===$.Down?p.bottom-p.height/2:p.bottom,Math.max(i===$.Down?p.top:p.top+p.height/2,u.y))},h=i===$.Right&&!s||i===$.Left&&!c,g=i===$.Down&&!l||i===$.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===$.Right&&e<=d.x||i===$.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}a?r.x=n.scrollLeft-e:r.x=i===$.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}else if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===$.Down&&e<=d.y||i===$.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}a?r.y=n.scrollTop-e:r.y=i===$.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,ay(oy(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};gb.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=mb,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function _b(e){return!!(e&&`distance`in e)}function vb(e){return!!(e&&`delay`in e)}var yb=class{constructor(e,t,n){n===void 0&&(n=lb(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=Jv(i),this.documentListeners=new cb(this.document),this.listeners=new cb(n),this.windowListeners=new cb(Wv(i)),this.initialCoordinates=uy(r)??Ey,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(db.Resize,this.handleCancel),this.windowListeners.add(db.DragStart,fb),this.windowListeners.add(db.VisibilityChange,this.handleCancel),this.windowListeners.add(db.ContextMenu,fb),this.documentListeners.add(db.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(vb(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(_b(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(db.Click,pb,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(db.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=uy(e)??Ey,s=oy(n,o);if(!t&&a){if(_b(a)){if(a.tolerance!=null&&ub(s,a.tolerance))return this.handleCancel();if(ub(s,a.distance))return this.handleStart()}if(vb(a)&&ub(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===$.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},bb={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},xb=class extends yb{constructor(e){let{event:t}=e,n=Jv(t.target);super(e,bb,n)}};xb.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var Sb={move:{name:`mousemove`},end:{name:`mouseup`}},Cb;(function(e){e[e.RightClick=2]=`RightClick`})(Cb||={});var wb=class extends yb{constructor(e){super(e,Sb,Jv(e.event.target))}};wb.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Cb.RightClick?!1:(r?.({event:n}),!0)}}];var Tb={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},Eb=class extends yb{constructor(e){super(e,Tb)}static setup(){return window.addEventListener(Tb.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Tb.move.name,e)};function e(){}}};Eb.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Db;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(Db||={});var Ob;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(Ob||={});function kb(e){let{acceleration:t,activator:n=Db.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=Ob.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=jb({delta:d,disabled:!a}),[m,h]=Zv(),g=(0,V.useRef)({x:0,y:0}),_=(0,V.useRef)({x:0,y:0}),v=(0,V.useMemo)(()=>{switch(n){case Db.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Db.DraggableRect:return i}},[n,i,c]),y=(0,V.useRef)(null),b=(0,V.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,V.useMemo)(()=>s===Ob.TreeOrder?[...l].reverse():l,[s,l]);(0,V.useEffect)(()=>{if(!a||!l.length||!v){h();return}for(let e of x){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=eb(e,i,v,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),y.current=e,m(b,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var Ab={x:{[Xy.Backward]:!1,[Xy.Forward]:!1},y:{[Xy.Backward]:!1,[Xy.Forward]:!1}};function jb(e){let{delta:t,disabled:n}=e,r=ty(t);return $v(e=>{if(n||!r||!e)return Ab;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Xy.Backward]:e.x[Xy.Backward]||i.x===-1,[Xy.Forward]:e.x[Xy.Forward]||i.x===1},y:{[Xy.Backward]:e.y[Xy.Backward]||i.y===-1,[Xy.Forward]:e.y[Xy.Forward]||i.y===1}}},[n,t,r])}function Mb(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return $v(e=>t==null?null:r??e??null,[r,t])}function Nb(e,t){return(0,V.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var Pb;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(Pb||={});var Fb;(function(e){e.Optimized=`optimized`})(Fb||={});var Ib=new Map;function Lb(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,V.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,V.useRef)(e),d=g(),f=Qv(d),p=(0,V.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,V.useRef)(null),h=$v(t=>{if(d&&!n)return Ib;if(!t||t===Ib||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new sb(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,V.useEffect)(()=>{u.current=e},[e]),(0,V.useEffect)(()=>{d||p()},[n,d]),(0,V.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,V.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case Pb.Always:return!1;case Pb.BeforeDragging:return n;default:return!n}}}function Rb(e,t){return $v(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function zb(e,t){return Rb(e,t)}function Bb(e){let{callback:t,disabled:n}=e,r=Xv(t),i=(0,V.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,V.useEffect)(()=>()=>i?.disconnect(),[i]),i}function Vb(e){let{callback:t,disabled:n}=e,r=Xv(t),i=(0,V.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,V.useEffect)(()=>()=>i?.disconnect(),[i]),i}function Hb(e){return new sb(zy(e),e)}function Ub(e,t,n){t===void 0&&(t=Hb);let[r,i]=(0,V.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=Bb({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=Vb({callback:a});return Yv(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function Wb(e){return Ny(e,Rb(e))}var Gb=[];function Kb(e){let t=(0,V.useRef)(e),n=$v(n=>e?n&&n!==Gb&&e&&t.current&&e.parentNode===t.current.parentNode?n:Wy(e):Gb,[e]);return(0,V.useEffect)(()=>{t.current=e},[e]),n}function qb(e){let[t,n]=(0,V.useState)(null),r=(0,V.useRef)(e),i=(0,V.useCallback)(e=>{let t=Ky(e.target);t&&n(e=>e?(e.set(t,Yy(t)),new Map(e)):null)},[]);return(0,V.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=Ky(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,Yy(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{Ky(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,V.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>ay(e,t),Ey):nb(e):Ey,[e,t])}function Jb(e,t){t===void 0&&(t=[]);let n=(0,V.useRef)(null);return(0,V.useEffect)(()=>{n.current=null},t),(0,V.useEffect)(()=>{let t=e!==Ey;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?oy(e,n.current):Ey}function Yb(e){(0,V.useEffect)(()=>{if(!Vv)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function Xb(e,t){return(0,V.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function Zb(e){return(0,V.useMemo)(()=>e?Vy(e):null,[e])}var Qb=[];function $b(e,t){t===void 0&&(t=zy);let[n]=e,r=Zb(n?Wv(n):null),[i,a]=(0,V.useState)(Qb);function o(){a(()=>e.length?e.map(e=>Zy(e)?r:new sb(t(e),e)):Qb)}let s=Vb({callback:o});return Yv(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function ex(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Kv(t)?t:e}function tx(e){let{measure:t}=e,[n,r]=(0,V.useState)(null),i=Vb({callback:(0,V.useCallback)(e=>{for(let{target:n}of e)if(Kv(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=ey((0,V.useCallback)(e=>{let n=ex(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,V.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var nx=[{sensor:xb,options:{}},{sensor:gb,options:{}}],rx={current:{}},ix={draggable:{measure:By},droppable:{measure:By,strategy:Pb.WhileDragging,frequency:Fb.Optimized},dragOverlay:{measure:zy}},ax=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},ox={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ax,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ty},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ix,measureDroppableContainers:Ty,windowRect:null,measuringScheduled:!1},sx={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:Ty,draggableNodes:new Map,over:null,measureDroppableContainers:Ty},cx=(0,V.createContext)(sx),lx=(0,V.createContext)(ox);function ux(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ax}}}function dx(e,t){switch(t.type){case wy.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case wy.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case wy.DragEnd:case wy.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case wy.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new ax(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case wy.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new ax(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case wy.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new ax(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function fx(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,V.useContext)(cx),a=ty(r),o=ty(n?.id);return(0,V.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!cy(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=py(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function px(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function mx(e){return(0,V.useMemo)(()=>({draggable:{...ix.draggable,...e?.draggable},droppable:{...ix.droppable,...e?.droppable},dragOverlay:{...ix.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function hx(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,V.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;Yv(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=Ny(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=Gy(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var gx=(0,V.createContext)({...Ey,scaleX:1,scaleY:1}),_x;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(_x||={});var vx=(0,V.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=nx,collisionDetection:o=jy,measuring:s,modifiers:c,...l}=e,[u,d]=(0,V.useReducer)(dx,void 0,ux),[f,p]=by(),[m,h]=(0,V.useState)(_x.Uninitialized),g=m===_x.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,V.useRef)({initial:null,translated:null}),C=(0,V.useMemo)(()=>_==null?null:{id:_,data:x?.data??rx,rect:S},[_,x]),w=(0,V.useRef)(null),[T,E]=(0,V.useState)(null),[D,O]=(0,V.useState)(null),k=Qv(l,Object.values(l)),A=ry(`DndDescribedBy`,t),j=(0,V.useMemo)(()=>b.getEnabled(),[b]),M=mx(s),{droppableRects:ee,measureDroppableContainers:N,measuringScheduled:te}=Lb(j,{dragging:g,dependencies:[y.x,y.y],config:M.droppable}),P=Mb(v,_),ne=(0,V.useMemo)(()=>D?uy(D):null,[D]),re=Oe(),F=zb(P,M.draggable.measure);hx({activeNode:_==null?null:v.get(_),config:re.layoutShiftCompensation,initialRect:F,measure:M.draggable.measure});let I=Ub(P,M.draggable.measure,F),ie=Ub(P?P.parentElement:null),ae=(0,V.useRef)({activatorEvent:null,active:null,activeNode:P,collisionRect:null,collisions:null,droppableRects:ee,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),L=b.getNodeFor(ae.current.over?.id),oe=tx({measure:M.dragOverlay.measure}),se=oe.nodeRef.current??P,ce=g?oe.rect??I:null,R=!!(oe.nodeRef.current&&oe.rect),le=Wb(R?null:I),ue=Zb(se?Wv(se):null),z=Kb(g?L??P:null),de=$b(z),B=px(c,{transform:{x:y.x-le.x,y:y.y-le.y,scaleX:1,scaleY:1},activatorEvent:D,active:C,activeNodeRect:I,containerNodeRect:ie,draggingNodeRect:ce,over:ae.current.over,overlayNodeRect:oe.rect,scrollableAncestors:z,scrollableAncestorRects:de,windowRect:ue}),fe=ne?ay(ne,y):null,pe=qb(z),me=Jb(pe),he=Jb(pe,[I]),ge=ay(B,me),_e=ce?Fy(ce,B):null,ve=C&&_e?o({active:C,collisionRect:_e,droppableRects:ee,droppableContainers:j,pointerCoordinates:fe}):null,ye=ky(ve,`id`),[be,xe]=(0,V.useState)(null),Se=My(R?B:ay(B,he),be?.rect??null,I),Ce=(0,V.useRef)(null),we=(0,V.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent,o=new n({active:w.current,activeNode:i,event:a,options:r,context:ae,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=k.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=k.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=k.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,xs.unstable_batchedUpdates)(()=>{r?.(i),h(_x.Initializing),d({type:wy.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),E(Ce.current),O(a)})},onMove(e){d({type:wy.DragMove,coordinates:e})},onEnd:s(wy.DragEnd),onCancel:s(wy.DragCancel)});Ce.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ae.current,o=null;if(t&&i){let{cancelDrop:s}=k.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===wy.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=wy.DragCancel)}w.current=null,(0,xs.unstable_batchedUpdates)(()=>{d({type:e}),h(_x.Uninitialized),xe(null),E(null),O(null),Ce.current=null;let t=e===wy.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=k.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),Te=Nb(a,(0,V.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,we(n,t))},[v,we]));Yb(a),Yv(()=>{I&&m===_x.Initializing&&h(_x.Initialized)},[I,m]),(0,V.useEffect)(()=>{let{onDragMove:e}=k.current,{active:t,activatorEvent:n,collisions:r,over:i}=ae.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:ge.x,y:ge.y},over:i};(0,xs.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[ge.x,ge.y]),(0,V.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ae.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=k.current,o=r.get(ye),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,xs.unstable_batchedUpdates)(()=>{xe(s),a?.(c),f({type:`onDragOver`,event:c})})},[ye]),Yv(()=>{ae.current={activatorEvent:D,active:C,activeNode:P,collisionRect:_e,collisions:ve,droppableRects:ee,draggableNodes:v,draggingNode:se,draggingNodeRect:ce,droppableContainers:b,over:be,scrollableAncestors:z,scrollAdjustedTranslate:ge},S.current={initial:ce,translated:_e}},[C,P,ve,_e,v,se,ce,ee,b,be,z,ge]),kb({...re,delta:y,draggingRect:_e,pointerCoordinates:fe,scrollableAncestors:z,scrollableAncestorRects:de});let Ee=(0,V.useMemo)(()=>({active:C,activeNode:P,activeNodeRect:I,activatorEvent:D,collisions:ve,containerNodeRect:ie,dragOverlay:oe,draggableNodes:v,droppableContainers:b,droppableRects:ee,over:be,measureDroppableContainers:N,scrollableAncestors:z,scrollableAncestorRects:de,measuringConfiguration:M,measuringScheduled:te,windowRect:ue}),[C,P,I,D,ve,ie,oe,v,b,ee,be,N,z,de,M,te,ue]),De=(0,V.useMemo)(()=>({activatorEvent:D,activators:Te,active:C,activeNodeRect:I,ariaDescribedById:{draggable:A},dispatch:d,draggableNodes:v,over:be,measureDroppableContainers:N}),[D,Te,C,I,d,A,v,be,N]);return V.createElement(vy.Provider,{value:p},V.createElement(cx.Provider,{value:De},V.createElement(lx.Provider,{value:Ee},V.createElement(gx.Provider,{value:Se},i)),V.createElement(fx,{disabled:n?.restoreFocus===!1})),V.createElement(Cy,{...n,hiddenTextDescribedById:A}));function Oe(){let e=T?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),yx=(0,V.createContext)(null),bx=`button`,xx=`Draggable`;function Sx(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=ry(xx),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,V.useContext)(cx),{role:p=bx,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,V.useContext)(g?gx:yx),[v,y]=ey(),[b,x]=ey(),S=Xb(o,t),C=Qv(n);return Yv(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,V.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===bx?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function Cx(){return(0,V.useContext)(lx)}var wx=`Droppable`,Tx={timeout:25};function Ex(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=ry(wx),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,V.useContext)(cx),u=(0,V.useRef)({disabled:n}),d=(0,V.useRef)(!1),f=(0,V.useRef)(null),p=(0,V.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:g}={...Tx,...i},_=Qv(h??r),v=Vb({callback:(0,V.useCallback)(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(_.current)?_.current:[_.current]),p.current=null},g)},[g]),disabled:m||!o}),[y,b]=ey((0,V.useCallback)((e,t)=>{v&&(t&&(v.unobserve(t),d.current=!1),e&&v.observe(e))},[v])),x=Qv(t);return(0,V.useEffect)(()=>{!v||!y.current||(v.disconnect(),d.current=!1,v.observe(y.current))},[y,v]),(0,V.useEffect)(()=>(s({type:wy.RegisterDroppable,element:{id:r,key:a,disabled:n,node:y,rect:f,data:x}}),()=>s({type:wy.UnregisterDroppable,key:a,id:r})),[r]),(0,V.useEffect)(()=>{n!==u.current.disabled&&(s({type:wy.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:y,over:c,setNodeRef:b}}function Dx(e){let{animation:t,children:n}=e,[r,i]=(0,V.useState)(null),[a,o]=(0,V.useState)(null),s=ty(n);return!n&&!r&&s&&i(s),Yv(()=>{if(!a)return;let e=r?.key,n=r?.props.id;if(e==null||n==null){i(null);return}Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),V.createElement(V.Fragment,null,n,r?(0,V.cloneElement)(r,{ref:o}):null)}var Ox={x:0,y:0,scaleX:1,scaleY:1};function kx(e){let{children:t}=e;return V.createElement(cx.Provider,{value:sx},V.createElement(gx.Provider,{value:Ox},t))}var Ax={position:`fixed`,touchAction:`none`},jx=e=>cy(e)?`transform 250ms ease`:void 0,Mx=(0,V.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:c,transform:l,transition:u=jx}=e;if(!s)return null;let d=i?l:{...l,scaleX:1,scaleY:1},f={...Ax,width:s.width,height:s.height,top:s.top,left:s.left,transform:dy.Transform.toString(d),transformOrigin:i&&r?Dy(r,s):void 0,transition:typeof u==`function`?u(r):u,...c};return V.createElement(n,{className:o,style:f,ref:t},a)}),Nx={duration:250,easing:`ease`,keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:dy.Transform.toString(t)},{transform:dy.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t,i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(let[e,t]of Object.entries(a.active))t!==void 0&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(a!=null&&a.dragOverlay)for(let[e,t]of Object.entries(a.dragOverlay))t!==void 0&&r.node.style.setProperty(e,t);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,t]of Object.entries(i))n.node.style.setProperty(e,t);o!=null&&o.active&&n.node.classList.remove(o.active)}})({styles:{active:{opacity:`0`}}})};function Px(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Xv((e,a)=>{if(t===null)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let c=ex(a);if(!c)return;let{transform:l}=Wv(a).getComputedStyle(a),u=Iy(l);if(!u)return;let d=typeof t==`function`?t:Fx(t);return ab(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:u})})}function Fx(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...Nx,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...c}=e;if(!t)return;let l={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},u={scaleX:s.scaleX===1?1:a.rect.width*s.scaleX/o.rect.width,scaleY:s.scaleY===1?1:a.rect.height*s.scaleY/o.rect.height},d={x:s.x-l.x,y:s.y-l.y,...u},f=i({...c,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[p]=f,m=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;let h=r?.({active:a,dragOverlay:o,...c}),g=o.node.animate(f,{duration:t,easing:n,fill:`forwards`});return new Promise(e=>{g.onfinish=()=>{h?.(),e()}})}}var Ix=0;function Lx(e){return(0,V.useMemo)(()=>{if(e!=null)return Ix++,Ix},[e])}var Rx=V.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:a,modifiers:o,wrapperElement:s=`div`,className:c,zIndex:l=999}=e,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggableNodes:m,droppableContainers:h,dragOverlay:g,over:_,measuringConfiguration:v,scrollableAncestors:y,scrollableAncestorRects:b,windowRect:x}=Cx(),S=(0,V.useContext)(gx),C=Lx(d?.id),w=px(o,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:g.rect,over:_,overlayNodeRect:g.rect,scrollableAncestors:y,scrollableAncestorRects:b,transform:S,windowRect:x}),T=Rb(f),E=Px({config:r,draggableNodes:m,droppableContainers:h,measuringConfiguration:v}),D=T?g.setRef:void 0;return V.createElement(kx,null,V.createElement(Dx,{animation:E},d&&C?V.createElement(Mx,{key:C,id:d.id,ref:D,as:s,activatorEvent:u,adjustScale:t,className:c,transition:a,rect:T,style:{zIndex:l,...i},transform:w},n):null))}),zx=1,Bx=2,Vx=4,Hx=1,Ux=2,Wx=500,Gx=9007199254740991,Kx=`[object Arguments]`,qx=`[object Array]`,Jx=`[object ArrayBuffer]`,Yx=`[object AsyncFunction]`,Xx=`[object Boolean]`,Zx=`[object DataView]`,Qx=`[object Date]`,$x=`[object Error]`,eS=`[object Function]`,tS=`[object GeneratorFunction]`,nS=`[object Map]`,rS=`[object Number]`,iS=`[object Object]`,aS=`[object Proxy]`,oS=`[object RegExp]`,sS=`[object Set]`,cS=`[object String]`,lS=`[object Symbol]`,uS=new Set([`Float32`,`Float64`,`Int8`,`Int16`,`Int32`,`Uint8`,`Uint8Clamped`,`Uint16`,`Uint32`].map(e=>`[object ${e}Array]`)),dS=new Set([Kx,qx,Jx,Xx,Zx,Qx,nS,rS,iS,oS,sS,cS,lS,...uS]),fS=/\\(\\)?/g,pS=/\w*$/,mS=/^[-+]0x[0-9a-f]+$/i,hS=/^0b[01]+$/i,gS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_S=/^0o[0-7]+$/i,vS=/^\w*$/,yS=/^(?:0|[1-9]\d*)$/,bS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xS=/^\s+/,SS=/\s/,CS=Object.prototype,wS=CS.hasOwnProperty,TS=CS.toString,ES=CS.propertyIsEnumerable;Function.prototype.toString.call(Object);var DS=Symbol.prototype.toString,OS=Symbol.prototype.valueOf;function kS(e){return typeof e==`object`&&!!e}function AS(e,t){return e===t||e!==e&&t!==t}function jS(e){let t=wS.call(e,Symbol.toStringTag),n=e[Symbol.toStringTag],r=!1;try{e[Symbol.toStringTag]=void 0,r=!0}catch{}let i=TS.call(e);return r&&(t?e[Symbol.toStringTag]=n:delete e[Symbol.toStringTag]),i}function MS(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Symbol.toStringTag in Object(e)?jS(e):TS.call(e)}function NS(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Gx}function PS(e,t){let n=typeof e,r=t??Gx;return!!r&&(n==`number`||n!=`symbol`&&yS.test(e))&&e>-1&&e%1==0&&e<r}function FS(e){return e!=null&&NS(e.length)&&!uw(e)}function IS(e){return kS(e)&&MS(e)==Kx}function LS(e){return kS(e)&&NS(e.length)&&uS.has(MS(e))}function RS(e){return typeof e==`symbol`||kS(e)&&MS(e)==lS}function zS(e){return kS(e)&&MS(e)==nS}function BS(e){return kS(e)&&MS(e)==sS}function VS(e){let t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||CS)}function HS(e){return e===e&&!dw(e)}function US(e){let t=e.length;for(;t--&&SS.test(e.charAt(t)););return t}function WS(e){return e&&e.slice(0,US(e)+1).replace(xS,``)}function GS(e){if(typeof e==`number`)return e;if(RS(e))return NaN;if(dw(e)){let t=typeof e.valueOf==`function`?e.valueOf():e;e=dw(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;let t=WS(e),n=hS.test(t);return n||_S.test(t)?parseInt(t.slice(2),n?2:8):mS.test(t)?NaN:+t}function KS(e){if(!e)return e===0?e:0;let t=GS(e);return t===1/0||t===-1/0?t<0?-Number.MAX_VALUE:Number.MAX_VALUE:t===t?t:0}function qS(e){let t=KS(e),n=t%1;return n?t-n:t}function JS(e){if(typeof e==`string`)return e;if(Array.isArray(e))return $S(e,JS)+``;if(RS(e))return DS.call(e);let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function YS(e){return e==null?``:JS(e)}function XS(e){if(typeof e==`string`||RS(e))return e;let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ZS(e){return e}function QS(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r&&t(e[n],n,e)!==!1;);return e}function $S(e,t){let n=-1,r=e==null?0:e.length,i=Array(r);for(;++n<r;)i[n]=t(e[n],n,e);return i}function eC(e,t){let n=-1,{length:r}=t,i=e.length;for(;++n<r;)e[i+n]=t[n];return e}function tC(e,t){let n=-1,r=e==null?0:e.length;for(;++n<r;)if(t(e[n],n))return!0;return!1}function nC(e,t,n){let{length:r}=e,i=n-1;for(;++i<r;)if(t(e[i],i,e))return i;return-1}function rC(e,t){let n=-1,r=Array(e);for(;++n<e;)r[n]=t(n);return r}function iC(e,t){let n=-1,{length:r}=e,i=t||Array(r);for(;++n<r;)i[n]=e[n];return i}function aC(e){let t=-1,n=Array(e.size);return e.forEach(e=>{n[++t]=e}),n}function oC(e){let t=-1,n=Array(e.size);return e.forEach((e,r)=>{n[++t]=[r,e]}),n}function sC(e,t){let n=Array.isArray(e),r=!n&&IS(e),i=!n&&!r&&LS(e),a=n||r||i,o=a?rC(e.length,String):[],{length:s}=o;for(let n in e)(t||wS.call(e,n))&&!(a&&(n==`length`||i&&(n==`buffer`||n==`byteLength`||n==`byteOffset`)||PS(n,s)))&&o.push(n);return o}function cC(e){if(!VS(e))return Object.keys(Object(e));let t=[];for(let n in Object(e))wS.call(e,n)&&n!=`constructor`&&t.push(n);return t}function lC(e){let t=[];if(e!=null)for(let n in Object(e))t.push(n);return t}function uC(e){if(!dw(e))return lC(e);let t=VS(e),n=[];for(let r in e)r==`constructor`&&(t||!wS.call(e,r))||n.push(r);return n}function dC(e){return FS(e)?sC(e,!1):cC(e)}function fC(e){return FS(e)?sC(e,!0):uC(e)}function pC(e){if(e==null)return[];let t=Object(e);return Object.getOwnPropertySymbols(t).filter(e=>ES.call(t,e))}function mC(e){let t=[],n=e;for(;n;)eC(t,pC(n)),n=Object.getPrototypeOf(Object(n));return t}function hC(e){let t=dC(e);return Array.isArray(e)?t:eC(t,pC(e))}function gC(e){let t=fC(e);return Array.isArray(e)?t:eC(t,mC(e))}function _C(e,t,n){t==`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function vC(e,t,n){let r=e[t];(!(wS.call(e,t)&&AS(r,n))||n===void 0&&!(t in e))&&_C(e,t,n)}function yC(e,t,n){let r=!n,i=n||{},a=-1,{length:o}=t;for(;++a<o;){let n=t[a];r?_C(i,n,e[n]):vC(i,n,e[n])}return i}function bC(e,t){return e&&yC(t,dC(t),e)}function xC(e,t){return e&&yC(t,fC(t),e)}function SC(e,t){return yC(e,pC(e),t)}function CC(e,t){return yC(e,mC(e),t)}function wC(e,t,n){let r=-1,i=Object(e),a=n(e),{length:o}=a;for(;o--;){let e=a[++r];if(t(i[e],e,i)===!1)break}return e}function TC(e,t){return e&&wC(e,t,dC)}function EC(e,t){if(e==null)return e;if(!FS(e))return TC(e,t);let{length:n}=e,r=-1,i=Object(e);for(;++r<n&&t(i[r],r,i)!==!1;);return e}function DC(e){let t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(bS,(e,n,r,i)=>(t.push(r?i.replace(fS,`$1`):n||e),e)),t}var OC=new Map;function kC(e){OC.size===Wx&&OC.clear();let t=OC.get(e);return t===void 0&&(t=DC(e),OC.set(e,t)),t}function AC(e,t){if(Array.isArray(e))return!1;let n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||RS(e)?!0:vS.test(e)||!gS.test(e)||t!=null&&e in Object(t)}function jC(e,t){return Array.isArray(e)?e:AC(e,t)?[e]:kC(YS(e))}function MC(e,t){let n=jC(t,e),r=0,{length:i}=n,a=e;for(;a!=null&&r<i;)a=a[XS(n[r++])];return r&&r==i?a:void 0}function NC(e,t){return e!=null&&t in Object(e)}function PC(e,t,n){let r=jC(t,e),i=-1,{length:a}=r,o=!1,s,c=e;for(;++i<a&&(s=XS(r[i]),o=c!=null&&n(c,s),o);)c=c[s];return o||++i!=a?o:(a=c==null?0:c.length,!!a&&NS(a)&&PS(s,a)&&(Array.isArray(c)||IS(c)))}function FC(e,t){return e!=null&&PC(e,t,NC)}function IC(e){return t=>t?.[e]}function LC(e){return t=>MC(t,e)}function RC(e){return AC(e)?IC(XS(e)):LC(e)}function zC(e,t){return e.byteLength==t.byteLength&&WC(new Uint8Array(e),new Uint8Array(t))}function BC(e,t,n,r,i){let a=n&Hx,o=e.length,s=t.length;if(o!=s&&!(a&&s>o))return!1;let c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;let u=-1,d=!0,f=n&Ux?new Set:void 0;for(i.set(e,t),i.set(t,e);++u<o;){let o=e[u],s=t[u],c;if(r&&(c=a?r(s,o,u,t,e,i):r(o,s,u,e,t,i)),c!==void 0){if(c)continue;d=!1;break}if(f){if(!tC(t,(e,t)=>!f.has(t)&&(o===e||WC(o,e,n,r,i))?f.add(t):!1)){d=!1;break}}else if(!(o===s||WC(o,s,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function VC(e,t,n,r,i,a){switch(n){case Zx:return e.byteLength==t.byteLength&&e.byteOffset==t.byteOffset&&zC(e.buffer,t.buffer);case Jx:return zC(e,t);case Xx:case Qx:case rS:return AS(+e,+t);case $x:return e.name==t.name&&e.message==t.message;case oS:case cS:return e==t+``;case nS:case sS:{let o=r&Hx;if(e.size!=t.size&&!o)return!1;let s=a.get(e);if(s)return s==t;let c=n==nS?oC:aC;a.set(e,t);let l=BC(c(e),c(t),r|Ux,i,a);return a.delete(e),l}case lS:return OS.call(e)==OS.call(t)}return!1}function HC(e,t,n,r,i){let a=n&Hx,o=hC(e),s=o.length;if(s!=hC(t).length&&!a)return!1;let c=s;for(;c--;){let e=o[c];if(!(a?e in t:wS.call(t,e)))return!1}let l=i.get(e),u=i.get(t);if(l&&u)return l==t&&u==e;let d=!0;i.set(e,t),i.set(t,e);let f=!!a;for(;++c<s;){let s=o[c],l=e[s],u=t[s],p;if(r&&(p=a?r(u,l,s,t,e,i):r(l,u,s,e,t,i)),!(p===void 0?l===u||WC(l,u,n,r,i):p)){d=!1;break}f||=s==`constructor`}if(d&&!f){let n=e.constructor,r=t.constructor;n!=r&&`constructor`in e&&`constructor`in t&&!(typeof n==`function`&&n instanceof n&&typeof r==`function`&&r instanceof r)&&(d=!1)}return i.delete(e),i.delete(t),d}function UC(e,t,n,r,i){let a=Array.isArray(e),o=Array.isArray(t),s=a?qx:MS(e),c=o?qx:MS(t);s=s==Kx?iS:s,c=c==Kx?iS:c;let l=s==iS,u=s==c;return u&&!l?a||LS(e)?BC(e,t,n,r,i||new Map):VC(e,t,s,n,r,i||new Map):u?HC(e,t,n,r,i||new Map):!1}function WC(e,t,n=0,r,i){return e===t?!0:e==null||t==null||!kS(e)&&!kS(t)?e!==e&&t!==t:UC(e,t,n,r,i)}function GC(e){return dC(e).map(t=>[t,e[t],HS(e[t])])}function KC(e,t){return n=>n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}function qC(e,t){let n=t.length,r=n;if(e==null)return!r;let i=Object(e);for(;n--;){let[e,r,a]=t[n];if(a?r!==i[e]:!(e in i))return!1}for(;++n<r;){let[e,r,a]=t[n],o=i[e];if(a){if(o===void 0&&!(e in i))return!1}else if(!WC(r,o,3))return!1}return!0}function JC(e){let t=GC(e);return t.length==1&&t[0][2]?KC(t[0][0],t[0][1]):n=>n===e||qC(n,t)}function YC(e,t){return AC(e)&&HS(t)?KC(XS(e),t):n=>{let r=cw(n,e);return r===void 0&&r===t?FC(n,e):WC(t,r,3)}}function XC(e){return typeof e==`function`?e:e==null?ZS:typeof e==`object`?Array.isArray(e)?YC(e[0],e[1]):JC(e):RC(e)}function ZC(e){return dw(e)?Object.create(e):{}}function QC(e){let{length:t}=e,n=new e.constructor(t);return t&&typeof e[0]==`string`&&wS.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function $C(e){return typeof e.constructor==`function`&&!VS(e)?ZC(Object.getPrototypeOf(Object(e))):{}}function ew(e){let t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function tw(e,t){let n=t?ew(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function nw(e,t,n){let r=e.constructor;switch(t){case Jx:return ew(e);case Xx:case Qx:return new r(+e);case Zx:return new r(n?ew(e.buffer):e.buffer,e.byteOffset,e.byteLength);case nS:case sS:return new r;case rS:case cS:return new r(e);case oS:{let t=new r(e.source,pS.exec(e));return t.lastIndex=e.lastIndex,t}case lS:return Object(OS.call(e))}return uS.has(t)?tw(e,n):void 0}function rw(e,t,n,r,i,a){let o,s=!!(t&zx),c=!!(t&Bx),l=!!(t&Vx);if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!dw(e))return e;let u=Array.isArray(e);if(u){if(o=QC(e),!s)return iC(e,o)}else{let t=MS(e),n=t==eS||t==tS;if(t==iS||t==Kx||n&&!i){if(o=c||n?{}:$C(e),!s)return c?CC(e,xC(o,e)):SC(e,bC(o,e))}else{if(!dS.has(t))return i?e:{};o=nw(e,t,s)}}let d=a||new Map,f=d.get(e);if(f)return f;d.set(e,o),BS(e)?e.forEach(r=>{o.add(rw(r,t,n,r,e,d))}):zS(e)&&e.forEach((r,i)=>{o.set(i,rw(r,t,n,i,e,d))});let p=u?void 0:(l?c?gC:hC:c?fC:dC)(e);return QS(p||e,(r,i)=>{let a=i,s=r;p&&(a=r,s=e[a]),vC(o,a,rw(s,t,n,a,e,d))}),o}function iw(e,t,n){let r=e==null?0:e.length;if(!r)return-1;let i=n==null?0:qS(n);return i<0&&(i=Math.max(r+i,0)),nC(e,t,i)}function aw(e){return rw(e,5)}function ow(e,t,n=0){let r=Object(e);if(FS(e)){let i=iw(e,XC(t),n);return i>-1?r[i]:void 0}let i=XC(t),a=dC(e),o=iw(a,e=>i(r[e],e,r),n);return o>-1?r[a[o]]:void 0}function sw(e,t){let n=XC(t),r;return TC(e,(e,t,i)=>{if(n(e,t,i))return r=t,!1}),r}function cw(e,t,n){let r=e==null?void 0:MC(e,t);return r===void 0?n:r}function lw(e){if(e==null)return!0;if(FS(e)&&(Array.isArray(e)||typeof e==`string`||typeof e.splice==`function`||LS(e)||IS(e)))return!e.length;let t=MS(e);if(t==nS||t==sS)return!e.size;if(VS(e))return!cC(e).length;for(let t in e)if(wS.call(e,t))return!1;return!0}function uw(e){if(!dw(e))return!1;let t=MS(e);return t==eS||t==tS||t==Yx||t==aS}function dw(e){let t=typeof e;return e!=null&&(t==`object`||t==`function`)}function fw(e){return e===void 0}function pw(e,t,n){let r=arguments.length<3,i=XC(t),a=n;if(Array.isArray(e)){let t=-1,{length:n}=e;for(r&&n&&(a=e[++t]);++t<n;)a=i(a,e[t],t,e);return a}return EC(e,(e,t,n)=>{r?(r=!1,a=e):a=i(a,e,t,n)}),a}var mw=(e,t,n)=>{if(!e||e.length<=1||t===void 0||n===void 0)throw Error(`swap requires a non-empty array, fromIndex, toIndex: ${e}, ${t} ${n}`);let r=aw(e),i=e[n];return r[n]=r[t],r[t]=i,r},hw={flex:1};function gw({id:e,children:t,disabled:n,classes:r,isVerticalPool:i,minHeight:a}){let{setNodeRef:o,isOver:s}=Ex({id:e,disabled:n});return(0,H.jsx)(`div`,{ref:o,style:hw,children:(0,H.jsx)(Bv,{disabled:n,isOver:s,choiceBoard:!0,className:r,isVerticalPool:i,minHeight:a,children:t})})}gw.propTypes={id:x.oneOfType([x.string,x.number]).isRequired,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired,disabled:x.bool,classes:x.object,isVerticalPool:x.bool,minHeight:x.number};function _w({id:e,children:t,disabled:n,onRemoveAnswer:r,...i}){return(0,H.jsx)(gw,{id:e,disabled:n,...i,children:t})}_w.propTypes={id:x.oneOfType([x.string,x.number]).isRequired,children:x.node,disabled:x.bool,onRemoveAnswer:x.func};function vw(e,t,n){let r={...e};return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}var yw=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e,i=r[0];return!t||!i?n:vw(n,t,i)},bw=25,xw=(e,{active:t,context:n,currentCoordinates:r})=>{let{code:i}=e,a=i===`Tab`,o=i===$.Down||i===$.Up||i===$.Left||i===$.Right;if(!a&&!o)return;if(e.preventDefault(),o)switch(i){case $.Down:return{...r,y:r.y+bw};case $.Up:return{...r,y:r.y-bw};case $.Right:return{...r,x:r.x+bw};case $.Left:return{...r,x:r.x-bw};default:return r}let{droppableRects:s,droppableContainers:c,collisionRect:l}=n;if(!s||s.size===0)return r;let u=t?.data?.current,d=u?.promptId==null?void 0:`drop-${u.promptId}`,f=l?.height??0,p=e=>({x:e.left,y:e.top+e.height/2-f/2}),m=[];for(let[e,t]of c){if(t?.disabled||e===d)continue;let n=t?.node?.current,r=n?.getBoundingClientRect()??s.get(e);if(!r)continue;let i={x:r.left+r.width/2,y:r.top+r.height/2};m.push({id:e,node:n,rect:r,dropPosition:p(r),center:i})}if(m.length===0)return r;let h=e.shiftKey;m.sort((e,t)=>Math.abs(e.center.y-t.center.y)>10?e.center.y-t.center.y:e.center.x-t.center.x);let g=l?{x:l.left+l.width/2,y:l.top+l.height/2}:r,_=m.findIndex(e=>g.x>=e.rect.left&&g.x<=e.rect.right&&g.y>=e.rect.top&&g.y<=e.rect.bottom);if(_===-1){let e=1/0;for(let t=0;t<m.length;t++){let n=Sw(r,m[t].dropPosition);n<e&&(e=n,_=t)}}let v=m[h?(_-1+m.length)%m.length:(_+1)%m.length];return v.node?.scrollIntoView?(v.node.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`instant`}),p(v.node.getBoundingClientRect())):v.dropPosition},Sw=(e,t)=>Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2),Cw=`height ease-in 300ms, opacity ease-in 300ms`,ww=K(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:Cw,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:Cw,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),Tw=e=>{let{show:t,children:n,className:r}=e,i=(0,V.useRef)(null);return(0,H.jsx)(js,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,H.jsx)(ww,{ref:i,className:r,children:n})})};Tw.propTypes={show:x.bool.isRequired,className:x.string,children:x.oneOfType([x.arrayOf(x.node),x.node]).isRequired};function Ew(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function Dw(e,t){return!e||Ew(e)?e:Ew(e.default)?e.default:t&&Ew(e[t])?e[t]:t&&Ew(e[t]?.default)?e[t].default:e}var Ow=Dw(sv,`Readable`)||Dw(jw.Readable,`Readable`),kw=Lv,Aw=kw.default,jw=Aw&&typeof Aw==`object`?Aw:kw,{translator:Mw}=_g,Nw={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},Pw=K(`div`)(()=>({width:`100%`,cursor:`pointer`})),Fw=K(`button`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`,minWidth:`24px`,minHeight:`24px`,padding:0,border:0,background:`none`,color:`inherit`,font:`inherit`,cursor:`pointer`,"&:focus-visible":{outline:`2px solid ${tf()}`,outlineOffset:`-2px`}})),Iw=K(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${fd()})`,fontWeight:`normal`,...Nw})),Lw=K(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),Rw=K(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),zw=class e extends V.Component{static propTypes={onToggle:x.func,toggled:x.bool,show:x.bool,hideMessage:x.string,showMessage:x.string,className:x.string,language:x.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=V.createRef(),this.closedIconRef=V.createRef(),e.defaultProps={...e.defaultProps,showMessage:Mw.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:Mw.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:Mw.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:Mw.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,H.jsx)(Pw,{className:e,children:(0,H.jsx)(Tw,{show:this.state.show,children:(0,H.jsxs)(Fw,{type:`button`,"aria-pressed":!!t,onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,H.jsxs)(Rw,{children:[(0,H.jsx)(js,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,H.jsx)(Lw,{ref:this.openIconRef,children:(0,H.jsx)(zo,{open:t},`correct-open`)})}),(0,H.jsx)(js,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,H.jsx)(Lw,{ref:this.closedIconRef,children:(0,H.jsx)(zo,{open:t},`correct-closed`)})})]}),(0,H.jsx)(Ow,{false:!0,children:(0,H.jsx)(Iw,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}},Bw=rl((0,H.jsx)(`path`,{d:`m7 10 5 5 5-5z`}),`ArrowDropDown`),Vw=K(`div`)({display:`inline-block`,position:`relative`,width:`100%`}),Hw=K(`span`)(({isRight:e})=>({backgroundColor:Vd(),bottom:e?20:19,content:`""`,display:`block`,height:1,left:20,position:`absolute`,width:`100%`})),Uw=class extends V.Component{static propTypes={direction:x.string};render(){let{direction:e}=this.props;return(0,H.jsxs)(Vw,{style:e===`left`?{}:{transform:`rotate(180deg)`},children:[(0,H.jsx)(Bw,{style:{transform:`rotate(90deg)`,color:Vd(),fontSize:40}}),(0,H.jsx)(Hw,{isRight:e!==`left`})]})}},Ww=v(`pie-elements:match-title:answer`),Gw=dd(`pie`),Kw=K(`div`)(()=>({width:`100%`,fontSize:`18px`,textAlign:`center`,color:`inherit`})),qw=({index:e,isOver:t,disabled:n,type:r})=>(0,H.jsx)(Bv,{extraStyles:{display:`flex`,padding:`0`,alignItems:`center`,justifyContent:`center`,height:`40px`},disabled:n,isOver:t,type:r,children:e!==void 0&&(0,H.jsx)(Kw,{children:e})});qw.propTypes={index:x.number,isOver:x.bool,disabled:x.bool,type:x.string};var Jw=K(`div`)(({isDragging:e,isSelected:t,isOver:n,disabled:r,outcome:i})=>({color:fd(),backgroundColor:Gw(`background`,X.WHITE),border:`1px solid ${i===`correct`?gd():i===`incorrect`?bd():Vd()}`,cursor:r?`not-allowed`:`pointer`,width:`100%`,padding:`10px`,boxSizing:`border-box`,overflow:`hidden`,transition:`opacity 200ms linear`,wordBreak:`break-word`,opacity:(e||t)&&!r?.5:n&&!r?.2:1,touchAction:`none`})),Yw=e=>{let{isDragging:t,isSelected:n,isOver:r,title:i,disabled:a,empty:o,outcome:s,guideIndex:c,type:l}=e;return o?(0,H.jsx)(qw,{index:c,isOver:r,disabled:a,type:l}):(0,H.jsx)(Jw,{isDragging:t,isSelected:n,isOver:r,disabled:a,outcome:s,dangerouslySetInnerHTML:{__html:sd(i)}})},Xw=K(`div`)(({correct:e,isSelected:t,isDragging:n,theme:r})=>({boxSizing:`border-box`,minHeight:40,minWidth:`200px`,overflow:`hidden`,margin:r.spacing(.5),padding:`0px`,textAlign:`center`,height:`initial`,border:e===!0?`1px solid ${gd()}`:e===!1?`1px solid ${bd()}`:t&&!n?`2px solid ${tf()}`:`none`})),Zw=class extends V.Component{static propTypes={className:x.string,isDragging:x.bool,isSelected:x.bool,id:x.any,title:x.string,isOver:x.bool,empty:x.bool,type:x.string,disabled:x.bool,correct:x.bool};componentDidMount(){this.ref&&this.ref.addEventListener(`touchstart`,this.handleTouchStart,{passive:!0})}componentWillUnmount(){this.ref&&this.ref.removeEventListener(`touchstart`,this.handleTouchStart)}handleTouchStart=e=>{};render(){let{id:e,title:t,isDragging:n=!1,isSelected:r=!1,className:i,disabled:a,isOver:o=!1,type:s,correct:c}=this.props;return Ww(`[render], props: `,this.props),(0,H.jsx)(Xw,{correct:c,isSelected:r,isDragging:n,className:i,ref:e=>this.ref=e,children:(0,H.jsx)(Yw,{title:t,id:e,isOver:o,empty:lw(t),isDragging:n,isSelected:r,disabled:a,type:s})})}},Qw=({type:e,id:t,promptId:n})=>n==null?`${e||`answer`}-${t}`:`${e||`answer`}-prompt-${n}`;function $w(e){let{id:t,instanceId:n,promptId:r,labelId:i,draggable:a=!0,disabled:o=!1,type:s,selectedAnswer:c,onSelectClick:l,onPlacementClick:u}=e,d=Qw({type:s,id:t,promptId:r}),f=r==null?void 0:`drop-${r}`,p={type:s||`answer`,id:t,instanceId:n,value:e.title,promptId:r},m=f?{type:`drop-zone`,promptId:r,instanceId:n}:void 0,{attributes:h,listeners:g,setNodeRef:_,transform:v,transition:y,isDragging:b}=Sx({id:d,data:p,disabled:!a||o,attributes:{tabIndex:a&&!o?0:-1}}),x=Ex({id:f,data:m,disabled:o||!f}),S=x.setNodeRef,C=x.isOver,[w,T]=(0,V.useState)(!1),E=!!c,D=C||E&&w&&!o,O=!!c&&c.type===p.type&&c.id===p.id&&c.promptId===p.promptId,k=v?`translate3d(${v.x}px, ${v.y}px, 0)`:void 0;if(f){let t=()=>{o||(O?l?.(p):c?u?.(m):a&&l?.(p))},r=!a&&!o&&E;return(0,H.jsx)(`div`,{ref:S,role:r?`button`:`group`,"aria-labelledby":i,tabIndex:r?0:-1,onClick:t,onKeyDown:r?e=>{(e.code===`Space`||e.code===`Enter`)&&(e.preventDefault(),t())}:void 0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),style:{flex:1,opacity:b?.5:1,backgroundColor:b||O||D?`rgba(0,0,0,0.05)`:`transparent`,cursor:E&&!o?`pointer`:void 0},children:(0,H.jsx)(`div`,{ref:_,...g,...a&&!o?h:{},"data-tile-id":`${n}:${d}`,style:{transform:k,transition:y},children:(0,H.jsx)(Zw,{...e,isDragging:b,isSelected:O,isOver:D})})})}let A=e=>{o||(e.stopPropagation(),l?.(p))};return(0,H.jsx)(`div`,{ref:_,...g,...h,"data-tile-id":`${n}:${d}`,onClick:A,style:{transform:k,transition:y,cursor:o?`not-allowed`:`grab`,opacity:b?.5:1,touchAction:a&&!o?`none`:`auto`},children:(0,H.jsx)(Zw,{...e,isDragging:b,isSelected:O,isOver:!1})})}$w.propTypes={id:x.any,instanceId:x.string,promptId:x.any,labelId:x.string,title:x.string,draggable:x.bool,disabled:x.bool,type:x.string,selectedAnswer:x.object,onSelectClick:x.func,onPlacementClick:x.func};var eT=200,tT=K(`div`)({alignItems:`normal`,display:`flex`,flexShrink:0,height:40,margin:`10px 20px`}),nT=K(`div`)(({theme:e})=>({alignItems:`flex-start`,display:`flex`,flex:1,flexDirection:`column`,justifyContent:`space-between`,marginTop:e.spacing(2),marginBottom:e.spacing(2)})),rT=K(`div`)(()=>({border:`1px solid ${Vd()}`,boxSizing:`border-box`,flex:1,margin:`10px 0`,minHeight:40,minWidth:eT,overflow:`hidden`,padding:10,textAlign:`center`,width:`100%`,wordBreak:`break-word`})),iT=K(`div`)({alignItems:`center`,display:`flex`,justifyContent:`space-between`,width:`100%`}),aT=class extends V.Component{static propTypes={session:x.object.isRequired,showCorrect:x.bool.isRequired,disabled:x.bool.isRequired,onSessionChange:x.func,onRemoveAnswer:x.func,instanceId:x.string.isRequired,model:x.object.isRequired,prompt:x.string,selectedAnswer:x.object,onChoiceClick:x.func,onPlacementClick:x.func};getAnswerFromSession=e=>{let{model:t,session:n,showCorrect:r}=this.props,{config:i}=t,a=r?i.prompts.find(t=>t.id===e).relatedAnswer:n.value&&n.value[e];return i.answers.find(e=>e.id===a)||{}};getCorrectOrIncorrectMap=()=>{let{model:e,session:t,showCorrect:n}=this.props,{config:r}=e,i=t.value||r.prompts.reduce((e,t)=>(e[t.id]=void 0,e),{});if(e.mode!==`evaluate`)return{};if(n)return r.prompts.reduce((e,t)=>(e[t.id]=!0,e),{});let a=r.prompts.reduce((e,t)=>(fw(t.relatedAnswer)||(e[t.id]=t.relatedAnswer),e),{});return pw(i,(e,t,n)=>(e[n]=a[n]===i[n],e),{})};buildRows=()=>{let{model:e}=this.props,{config:t}=e;return(t.prompts||[]).map(e=>{let t=this.getAnswerFromSession(e.id);return{...e,sessionAnswer:t}})};render(){let{disabled:e,instanceId:t,onRemoveAnswer:n,selectedAnswer:r,onChoiceClick:i,onPlacementClick:a}=this.props,o=this.buildRows(),s=this.getCorrectOrIncorrectMap();return(0,H.jsx)(nT,{children:o.map(({sessionAnswer:o,title:c,id:l},u)=>{let d=`${t}-prompt-label-${l}`;return(0,H.jsxs)(iT,{children:[(0,H.jsx)(rT,{id:d,dangerouslySetInnerHTML:{__html:sd(c)}}),(0,H.jsxs)(tT,{children:[(0,H.jsx)(Uw,{direction:`left`}),(0,H.jsx)(Uw,{})]}),(0,H.jsx)($w,{className:`answer`,index:u,promptId:l,labelId:d,correct:s[l],draggable:!lw(o),disabled:e,instanceId:t,id:o.id,title:o.title,type:`target`,onRemoveChoice:()=>n(l),selectedAnswer:r,onSelectClick:i,onPlacementClick:a})]},l)})})}},oT=K(`div`)(({theme:e})=>({alignItems:`center`,display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`space-between`,marginTop:e.spacing(1),marginBottom:e.spacing(1),minHeight:50,transition:`background-color 200ms ease`}));function sT({id:e,disabled:t,children:n,onPlacementClick:r,...i}){let{setNodeRef:a,isOver:o}=Ex({id:e||`choices-pool`,data:{type:`choices-pool`},disabled:t});return(0,H.jsx)(oT,{ref:a,onClick:()=>{t||r?.({type:`choices-pool`})},style:{backgroundColor:o?`rgba(0,0,0,0.05)`:`transparent`},...i,children:(0,H.jsx)(_w,{id:e,disabled:t,children:n})})}sT.propTypes={id:x.oneOfType([x.string,x.number]),disabled:x.bool,children:x.node,onPlacementClick:x.func};var cT=K(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),lT=class extends V.Component{static propTypes={session:x.object.isRequired,instanceId:x.string.isRequired,model:x.object.isRequired,disabled:x.bool.isRequired,onRemoveAnswer:x.func,selectedAnswer:x.object,onChoiceClick:x.func,onPlacementClick:x.func};render(){let{model:e,disabled:t,session:n,instanceId:r,onRemoveAnswer:i,selectedAnswer:a,onChoiceClick:o,onPlacementClick:s}=this.props,{config:c}=e,{duplicates:l}=c,u=c.answers.filter(e=>l||lw(n)||!n.value||fw(ow(n.value,t=>t===e.id))).map(e=>(0,H.jsx)($w,{instanceId:r,draggable:!0,disabled:t,session:n,type:`choice`,selectedAnswer:a,onSelectClick:o,...e},e.id));return(0,H.jsx)(cT,{children:(0,H.jsx)(sT,{id:`choices-pool`,disabled:t,onRemoveAnswer:i,onPlacementClick:s,children:u})})}};function uT(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function dT(e,t){return!e||uT(e)?e:uT(e.default)?e.default:t&&uT(e[t])?e[t]:t&&uT(e[t]?.default)?e[t].default:e}var fT=dT(ov,`PreviewPrompt`)||dT(gT.PreviewPrompt,`PreviewPrompt`),pT=dT(Tf,`Feedback`)||dT(gT.Feedback,`Feedback`),mT=Lv,hT=mT.default,gT=hT&&typeof hT==`object`?hT:mT,_T=250,vT=[{sensor:xb,options:{activationConstraint:{distance:8}}},{sensor:gb,options:{coordinateGetter:xw,keyboardCodes:{start:[$.Space,$.Enter],cancel:[$.Esc],end:[$.Space,$.Enter]}}}],yT=K(`div`)({display:`flex`,flexDirection:`column`,justifyContent:`center`,color:fd(),backgroundColor:Pd()}),bT=K(`div`)({width:`100%`,overflowX:`auto`,overflowY:`hidden`}),xT=K(`div`)({display:`flex`,flexDirection:`column`,minWidth:`min-content`}),ST=class extends V.Component{static propTypes={session:x.object.isRequired,onSessionChange:x.func,model:x.object.isRequired,prompt:x.string};constructor(e){super(e),this.instanceId=vg(`match-list`),this.state={showCorrectAnswer:!1,draggingElement:null,selectedAnswer:null},this.lastDragEndAt=0}onRemoveAnswer(e){let{session:t,onSessionChange:n}=this.props;t.value[e]=void 0,n(t)}onDragStart=e=>{let{active:t}=e;if(t?.data?.current){let e=null,n=t.node?.current;if(n){let{width:t,height:r}=n.getBoundingClientRect();e={width:t,height:r}}this.setState({draggingElement:{...t.data.current,rect:e}}),this.selectAnswer(t.data.current)}};onDragCancel=()=>{this.setState({draggingElement:null}),this.cancelSelection(),this.lastDragEndAt=Date.now()};placeAnswer=(e,t)=>{if(!e||!t)return;let{session:n,onSessionChange:r,model:i}=this.props,{config:{duplicates:a}}=i;if(fw(n.value)&&(n.value={}),t.type===`choices-pool`&&e.promptId!==void 0){n.value[e.promptId]=void 0,r(n);return}let o=e.id,s=e.promptId;if(t.type===`drop-zone`&&t.promptId!=null){let i=t.promptId;if(e.type===`choice`&&i!==void 0){let e=sw(n.value,e=>e===o);e&&!a?n.value=mw(n.value,e,i):n.value[i]=o}else if(e.type===`target`&&s!=null&&s!==i)if(n.value[i]!=null&&!a){let e=n.value[i];n.value[i]=o,n.value[s]=e}else n.value[i]=o,delete n.value[s];r(n)}};onPlaceAnswer=e=>{this.setState({draggingElement:null});let{active:t,over:n}=e;if(!t)return;let r=t.data.current,i=n?.data.current;if(!r)return;let a=this.getDestinationDragId(r,i);this.placeAnswer(r,i),this.cancelSelection(),this.lastDragEndAt=Date.now(),this.focusTile(a)};getDestinationDragId=(e,t)=>!e||!t?null:t.type===`choices-pool`&&e.promptId!==void 0?Qw({type:`choice`,id:e.id}):t.type===`drop-zone`&&t.promptId!=null?Qw({type:`target`,promptId:t.promptId}):null;focusTile=e=>{if(!e)return;let t=`[data-tile-id="${this.instanceId}:${e}"]`;requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.querySelector(t)?.focus()})})};isSameAnswer=(e,t)=>!!e&&!!t&&e.type===t.type&&e.id===t.id&&e.promptId===t.promptId;selectAnswer=e=>{this.setState({selectedAnswer:e})};toggleAnswerSelection=e=>{this.setState(t=>({selectedAnswer:this.isSameAnswer(t.selectedAnswer,e)?null:e}))};cancelSelection=()=>{this.setState({selectedAnswer:null})};endAnyLiveKeyboardDrag=()=>{document.dispatchEvent(new KeyboardEvent(`keydown`,{code:`Escape`,bubbles:!0,cancelable:!0}))};placeSelectedAnswer=e=>{let{selectedAnswer:t}=this.state;if(!t)return;let n=this.getDestinationDragId(t,e);this.placeAnswer(t,e),this.cancelSelection(),this.endAnyLiveKeyboardDrag(),this.lastDragEndAt=Date.now(),this.focusTile(n)};isClickSoonAfterDragEnd=()=>Date.now()-this.lastDragEndAt<_T;onChoiceClick=e=>{this.isClickSoonAfterDragEnd()||this.toggleAnswerSelection(e)};onPlacementClick=e=>{this.isClickSoonAfterDragEnd()||this.placeSelectedAnswer(e)};toggleShowCorrect=()=>{this.setState({showCorrectAnswer:!this.state.showCorrectAnswer})};renderDragOverlay=()=>{let{draggingElement:e}=this.state;return e?(0,H.jsx)(Zw,{id:e.id,title:e.value,disabled:!1,isDragging:!1,style:e.rect?{width:e.rect.width,height:e.rect.height,boxSizing:`border-box`}:{}}):null};render(){let{showCorrectAnswer:e}=this.state,{model:t,session:n}=this.props,{config:r,mode:i}=t,{prompt:a,language:o}=r;return(0,H.jsxs)(vx,{id:this.instanceId,sensors:vT,collisionDetection:jy,onDragStart:this.onDragStart,onDragEnd:this.onPlaceAnswer,onDragCancel:this.onDragCancel,modifiers:[yw],accessibility:{screenReaderInstructions:{draggable:`Press Space or Enter to pick up this answer choice. Once picked up, use Tab or Shift+Tab to cycle through response areas, or use arrow keys to move it freely. Press Space or Enter to drop, or Escape to cancel. You can also click an answer choice to select it, then click a response area to place it there.`}},children:[(0,H.jsxs)(yT,{children:[(0,H.jsx)(fT,{className:`prompt`,prompt:a}),(0,H.jsx)(zw,{show:i===`evaluate`,toggled:e,onToggle:this.toggleShowCorrect,language:o}),(0,H.jsx)(bT,{children:(0,H.jsxs)(xT,{children:[(0,H.jsx)(aT,{instanceId:this.instanceId,model:t,session:n,onRemoveAnswer:e=>this.onRemoveAnswer(e),disabled:i!==`gather`,showCorrect:e,selectedAnswer:this.state.selectedAnswer,onChoiceClick:this.onChoiceClick,onPlacementClick:this.onPlacementClick}),(0,H.jsx)(lT,{instanceId:this.instanceId,model:t,session:n,disabled:i!==`gather`,onRemoveAnswer:e=>this.onRemoveAnswer(e),selectedAnswer:this.state.selectedAnswer,onChoiceClick:this.onChoiceClick,onPlacementClick:this.onPlacementClick})]})}),t.correctness&&t.feedback&&!e&&(0,H.jsx)(pT,{correctness:t.correctness.correctness,feedback:t.feedback})]}),(0,H.jsx)(Rx,{children:this.renderDragOverlay()})]})}};(class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}});var CT=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},wT=g(),TT=v(`pie-ui:graph-lines`),ET=(e,t)=>{if(!e)return!1;let n=e.value,r=!0;return n&&(t.config.prompts||[]).forEach(e=>{Number.isFinite(n[e.id])||(r=!1)}),r},DT=class extends HTMLElement{constructor(){super(),this._root=null}set model(e){this._model=e,this._render()}set session(e){this._session=e,this._render()}get session(){return this._session}sessionChanged(e){this._session.value=e.value,this.dispatchEvent(new CT(this.tagName.toLowerCase(),ET(this._session,this._model))),TT(`session: `,this._session),this._render()}connectedCallback(){this._render()}_render(){if(!this._model||!this._session)return;let e=V.createElement(ST,{model:this._model,session:this._session,onSessionChange:this.sessionChanged.bind(this)});this._root||=(0,wT.createRoot)(this),this._root.render(e),queueMicrotask(()=>{mh(this)})}disconnectedCallback(){this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`match-list-element`)&&customElements.define(`match-list-element`,DT),DT})();
|