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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,13 +2,13 @@ this.MathTemplatedElement=(function(){var e=Object.create,t=Object.definePropert
2
2
  `+se+e}var le=!1;function ue(e,t){if(!e||le)return``;le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
3
3
  `),a=r.stack.split(`
4
4
  `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
5
- `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ce(e):``}function de(e){switch(e.tag){case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return``}}function fe(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case A:return`Suspense`;case ne:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case te:return(e.displayName||`Context`)+`.Consumer`;case ee:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case j:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function pe(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return fe(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function N(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function me(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function he(e){var t=me(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ge(e){e._valueTracker||=he(e)}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=me(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ve(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function be(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=N(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function xe(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function Se(e,t){xe(e,t);var n=N(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?we(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&we(e,t.type,N(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function we(e,t,n){(t!==`number`||ve(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Te=Array.isArray;function P(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+N(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ee(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return M({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function De(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Te(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:N(n)}}function Oe(e,t){var n=N(t.value),r=N(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function ke(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Ae(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function je(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Ae(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Me,Ne=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Me||=document.createElement(`div`),Me.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ie=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Fe).forEach(function(e){Ie.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fe[t]=Fe[e]})});function Le(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Fe.hasOwnProperty(e)&&Fe[e]?(``+t).trim():t+`px`}function Re(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Le(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var ze=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Be(e,t){if(t){if(ze[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ve(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var He=null;function Ue(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var We=null,Ge=null,Ke=null;function qe(e){if(e=Ki(e)){if(typeof We!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Ji(t),We(e.stateNode,e.type,t))}}function Je(e){Ge?Ke?Ke.push(e):Ke=[e]:Ge=e}function Ye(){if(Ge){var e=Ge,t=Ke;if(Ke=Ge=null,qe(e),t)for(e=0;e<t.length;e++)qe(t[e])}}function Xe(e,t){return e(t)}function Ze(){}var Qe=!1;function $e(e,t,n){if(Qe)return e(t,n);Qe=!0;try{return Xe(e,t,n)}finally{Qe=!1,(Ge!==null||Ke!==null)&&(Ze(),Ye())}}function et(e,t){var n=e.stateNode;if(n===null)return null;var i=Ji(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var tt=!1;if(c)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){tt=!0}}),window.addEventListener(`test`,nt,nt),window.removeEventListener(`test`,nt,nt)}catch{tt=!1}function rt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var it=!1,at=null,ot=!1,st=null,ct={onError:function(e){it=!0,at=e}};function lt(e,t,n,r,i,a,o,s,c){it=!1,at=null,rt.apply(ct,arguments)}function ut(e,t,n,i,a,o,s,c,l){if(lt.apply(this,arguments),it){if(it){var u=at;it=!1,at=null}else throw Error(r(198));ot||(ot=!0,st=u)}}function dt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ft(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pt(e){if(dt(e)!==e)throw Error(r(188))}function mt(e){var t=e.alternate;if(!t){if(t=dt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return pt(a),e;if(o===i)return pt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ht(e){return e=mt(e),e===null?null:gt(e)}function gt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gt(e);if(t!==null)return t;e=e.sibling}return null}var _t=n.unstable_scheduleCallback,vt=n.unstable_cancelCallback,yt=n.unstable_shouldYield,bt=n.unstable_requestPaint,xt=n.unstable_now,St=n.unstable_getCurrentPriorityLevel,Ct=n.unstable_ImmediatePriority,wt=n.unstable_UserBlockingPriority,Tt=n.unstable_NormalPriority,Et=n.unstable_LowPriority,Dt=n.unstable_IdlePriority,Ot=null,kt=null;function At(e){if(kt&&typeof kt.onCommitFiberRoot==`function`)try{kt.onCommitFiberRoot(Ot,e,void 0,(e.current.flags&128)==128)}catch{}}var jt=Math.clz32?Math.clz32:Pt,Mt=Math.log,Nt=Math.LN2;function Pt(e){return e>>>=0,e===0?32:31-(Mt(e)/Nt|0)|0}var Ft=64,It=4194304;function Lt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Lt(a))):r=Lt(s)}else o=n&~i,o===0?a!==0&&(r=Lt(a)):r=Lt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function zt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function F(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-jt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=zt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Bt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Vt(){var e=Ft;return Ft<<=1,!(Ft&4194240)&&(Ft=64),e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function Wt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-jt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Kt=0;function qt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Jt,Yt,Xt,Zt,Qt,$t=!1,en=[],tn=null,nn=null,rn=null,an=new Map,on=new Map,sn=[],cn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function ln(e,t){switch(e){case`focusin`:case`focusout`:tn=null;break;case`dragenter`:case`dragleave`:nn=null;break;case`mouseover`:case`mouseout`:rn=null;break;case`pointerover`:case`pointerout`:an.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:on.delete(t.pointerId)}}function un(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ki(t),t!==null&&Yt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function dn(e,t,n,r,i){switch(t){case`focusin`:return tn=un(tn,e,t,n,r,i),!0;case`dragenter`:return nn=un(nn,e,t,n,r,i),!0;case`mouseover`:return rn=un(rn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return an.set(a,un(an.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,on.set(a,un(on.get(a)||null,e,t,n,r,i)),!0}return!1}function fn(e){var t=Gi(e.target);if(t!==null){var n=dt(t);if(n!==null){if(t=n.tag,t===13){if(t=ft(n),t!==null){e.blockedOn=t,Qt(e.priority,function(){Xt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);He=r,n.target.dispatchEvent(r),He=null}else return t=Ki(n),t!==null&&Yt(t),e.blockedOn=n,!1;t.shift()}return!0}function I(e,t,n){pn(e)&&n.delete(t)}function mn(){$t=!1,tn!==null&&pn(tn)&&(tn=null),nn!==null&&pn(nn)&&(nn=null),rn!==null&&pn(rn)&&(rn=null),an.forEach(I),on.forEach(I)}function hn(e,t){e.blockedOn===t&&(e.blockedOn=null,$t||($t=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mn)))}function gn(e){function t(t){return hn(t,e)}if(0<en.length){hn(en[0],e);for(var n=1;n<en.length;n++){var r=en[n];r.blockedOn===e&&(r.blockedOn=null)}}for(tn!==null&&hn(tn,e),nn!==null&&hn(nn,e),rn!==null&&hn(rn,e),an.forEach(t),on.forEach(t),n=0;n<sn.length;n++)r=sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<sn.length&&(n=sn[0],n.blockedOn===null);)fn(n),n.blockedOn===null&&sn.shift()}var _n=C.ReactCurrentBatchConfig,vn=!0;function yn(e,t,n,r){var i=Kt,a=_n.transition;_n.transition=null;try{Kt=1,xn(e,t,n,r)}finally{Kt=i,_n.transition=a}}function bn(e,t,n,r){var i=Kt,a=_n.transition;_n.transition=null;try{Kt=4,xn(e,t,n,r)}finally{Kt=i,_n.transition=a}}function xn(e,t,n,r){if(vn){var i=Cn(e,t,n,r);if(i===null)_i(e,t,r,Sn,n),ln(e,r);else if(dn(i,e,t,n,r))r.stopPropagation();else if(ln(e,r),t&4&&-1<cn.indexOf(e)){for(;i!==null;){var a=Ki(i);if(a!==null&&Jt(a),a=Cn(e,t,n,r),a===null&&_i(e,t,r,Sn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else _i(e,t,r,null,n)}}var Sn=null;function Cn(e,t,n,r){if(Sn=null,e=Ue(r),e=Gi(e),e!==null)if(t=dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ft(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sn=e,null}function wn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(St()){case Ct:return 1;case wt:return 4;case Tt:case Et:return 16;case Dt:return 536870912;default:return 16}default:return 16}}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function jn(){return!1}function Mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:jn,this.isPropagationStopped=jn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=M({},Nn,{view:0,detail:0}),In=Mn(Fn),Ln,Rn,zn,Bn=M({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Vn=Mn(Bn),Hn=Mn(M({},Bn,{dataTransfer:0})),Un=Mn(M({},Fn,{relatedTarget:0})),Wn=Mn(M({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Gn=Mn(M({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Kn=Mn(M({},Nn,{data:0})),qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Jn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Yn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yn[e])?!!t[e]:!1}function Zn(){return Xn}var Qn=Mn(M({},Fn,{key:function(e){if(e.key){var t=qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),$n=Mn(M({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),er=Mn(M({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zn})),tr=Mn(M({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Mn(M({},Bn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),rr=[9,13,27,32],ir=c&&`CompositionEvent`in window,ar=null;c&&`documentMode`in document&&(ar=document.documentMode);var or=c&&`TextEvent`in window&&!ar,sr=c&&(!ir||ar&&8<ar&&11>=ar),cr=` `,lr=!1;function ur(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var fr=!1;function pr(e,t){switch(e){case`compositionend`:return dr(t);case`keypress`:return t.which===32?(lr=!0,cr):null;case`textInput`:return e=t.data,e===cr&&lr?null:e;default:return null}}function mr(e,t){if(fr)return e===`compositionend`||!ir&&ur(e,t)?(e=On(),Dn=En=Tn=null,fr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return sr&&t.locale!==`ko`?null:t.data;default:return null}}var hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!hr[e.type]:t===`textarea`}function _r(e,t,n,r){Je(r),t=yi(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var vr=null,yr=null;function br(e){di(e,0)}function xr(e){if(_e(qi(e)))return e}function Sr(e,t){if(e===`change`)return t}var Cr=!1;if(c){var wr;if(c){var Tr=`oninput`in document;if(!Tr){var Er=document.createElement(`div`);Er.setAttribute(`oninput`,`return;`),Tr=typeof Er.oninput==`function`}wr=Tr}else wr=!1;Cr=wr&&(!document.documentMode||9<document.documentMode)}function Dr(){vr&&(vr.detachEvent(`onpropertychange`,Or),yr=vr=null)}function Or(e){if(e.propertyName===`value`&&xr(yr)){var t=[];_r(t,yr,e,Ue(e)),$e(br,t)}}function kr(e,t,n){e===`focusin`?(Dr(),vr=t,yr=n,vr.attachEvent(`onpropertychange`,Or)):e===`focusout`&&Dr()}function Ar(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return xr(yr)}function jr(e,t){if(e===`click`)return xr(t)}function Mr(e,t){if(e===`input`||e===`change`)return xr(t)}function Nr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Pr=typeof Object.is==`function`?Object.is:Nr;function Fr(e,t){if(Pr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Pr(e[i],t[i]))return!1}return!0}function Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(){for(var e=window,t=ve();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ve(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Vr(e){var t=zr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rr(n.ownerDocument.documentElement,n)){if(r!==null&&Br(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Lr(n,a);var o=Lr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hr=c&&`documentMode`in document&&11>=document.documentMode,Ur=null,Wr=null,Gr=null,Kr=!1;function qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kr||Ur==null||Ur!==ve(r)||(r=Ur,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&Fr(Gr,r)||(Gr=r,r=yi(Wr,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ur)))}function Jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Yr={animationend:Jr(`Animation`,`AnimationEnd`),animationiteration:Jr(`Animation`,`AnimationIteration`),animationstart:Jr(`Animation`,`AnimationStart`),transitionend:Jr(`Transition`,`TransitionEnd`)},Xr={},Zr={};c&&(Zr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Yr.animationend.animation,delete Yr.animationiteration.animation,delete Yr.animationstart.animation),`TransitionEvent`in window||delete Yr.transitionend.transition);function Qr(e){if(Xr[e])return Xr[e];if(!Yr[e])return e;var t=Yr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zr)return Xr[e]=t[n];return e}var $r=Qr(`animationend`),ei=Qr(`animationiteration`),ti=Qr(`animationstart`),ni=Qr(`transitionend`),ri=new Map,ii=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ai(e,t){ri.set(e,t),o(t,[e])}for(var oi=0;oi<ii.length;oi++){var si=ii[oi];ai(si.toLowerCase(),`on`+(si[0].toUpperCase()+si.slice(1)))}ai($r,`onAnimationEnd`),ai(ei,`onAnimationIteration`),ai(ti,`onAnimationStart`),ai(`dblclick`,`onDoubleClick`),ai(`focusin`,`onFocus`),ai(`focusout`,`onBlur`),ai(ni,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ci=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),li=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ci));function ui(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ut(r,t,void 0,e),e.currentTarget=null}function di(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ui(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ui(i,s,l),a=c}}}if(ot)throw e=st,ot=!1,st=null,e}function fi(e,t){var n=t[Hi];n===void 0&&(n=t[Hi]=new Set);var r=e+`__bubble`;n.has(r)||(gi(t,e,2,!1),n.add(r))}function pi(e,t,n){var r=0;t&&(r|=4),gi(n,e,r,t)}var mi=`_reactListening`+Math.random().toString(36).slice(2);function hi(e){if(!e[mi]){e[mi]=!0,i.forEach(function(t){t!==`selectionchange`&&(li.has(t)||pi(t,!1,e),pi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mi]||(t[mi]=!0,pi(`selectionchange`,!1,t))}}function gi(e,t,n,r){switch(wn(t)){case 1:var i=yn;break;case 4:i=bn;break;default:i=xn}n=i.bind(null,t,n,e),i=void 0,!tt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function _i(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Gi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}$e(function(){var r=a,i=Ue(n),o=[];a:{var s=ri.get(e);if(s!==void 0){var c=Pn,l=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:c=Qn;break;case`focusin`:l=`focus`,c=Un;break;case`focusout`:l=`blur`,c=Un;break;case`beforeblur`:case`afterblur`:c=Un;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Vn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Hn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=er;break;case $r:case ei:case ti:c=Wn;break;case ni:c=tr;break;case`scroll`:c=In;break;case`wheel`:c=nr;break;case`copy`:case`cut`:case`paste`:c=Gn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=$n}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=et(p,f),h!=null&&u.push(vi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==He&&(l=n.relatedTarget||n.fromElement)&&(Gi(l)||l[Vi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Gi(l):null,l!==null&&(d=dt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Vn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=$n,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:qi(c),m=l==null?s:qi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Gi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=bi(m))p++;for(m=0,h=f;h;h=bi(h))m++;for(;0<p-m;)u=bi(u),p--;for(;0<m-p;)f=bi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=bi(u),f=bi(f)}u=null}else u=null;c!==null&&xi(o,s,c,u,!1),l!==null&&d!==null&&xi(o,d,l,u,!0)}}a:{if(s=r?qi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Sr;else if(gr(s))if(Cr)g=Mr;else{g=Ar;var _=kr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=jr);if(g&&=g(e,r)){_r(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&we(s,`number`,s.value)}switch(_=r?qi(r):window,e){case`focusin`:(gr(_)||_.contentEditable===`true`)&&(Ur=_,Wr=r,Gr=null);break;case`focusout`:Gr=Wr=Ur=null;break;case`mousedown`:Kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kr=!1,qr(o,n,i);break;case`selectionchange`:if(Hr)break;case`keydown`:case`keyup`:qr(o,n,i)}var v;if(ir)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else fr?ur(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(sr&&n.locale!==`ko`&&(fr||y!==`onCompositionStart`?y===`onCompositionEnd`&&fr&&(v=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,fr=!0)),_=yi(r,y),0<_.length&&(y=new Kn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=dr(n),v!==null&&(y.data=v)))),(v=or?pr(e,n):mr(e,n))&&(r=yi(r,`onBeforeInput`),0<r.length&&(i=new Kn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}di(o,t)})}function vi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=et(e,n),a!=null&&r.unshift(vi(e,a,i)),a=et(e,t),a!=null&&r.push(vi(e,a,i))),e=e.return}return r}function bi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=et(n,a),c!=null&&o.unshift(vi(n,c,s))):i||(c=et(n,a),c!=null&&o.push(vi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Si=/\r\n?/g,Ci=/\u0000|\uFFFD/g;function wi(e){return(typeof e==`string`?e:``+e).replace(Si,`
6
- `).replace(Ci,``)}function Ti(e,t,n){if(t=wi(t),wi(e)!==t&&n)throw Error(r(425))}function Ei(){}var Di=null,Oi=null;function ki(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ai=typeof setTimeout==`function`?setTimeout:void 0,ji=typeof clearTimeout==`function`?clearTimeout:void 0,Mi=typeof Promise==`function`?Promise:void 0,Ni=typeof queueMicrotask==`function`?queueMicrotask:Mi===void 0?Ai:function(e){return Mi.resolve(null).then(e).catch(Pi)};function Pi(e){setTimeout(function(){throw e})}function Fi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),gn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);gn(t)}function Ii(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Li(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Ri=Math.random().toString(36).slice(2),zi=`__reactFiber$`+Ri,Bi=`__reactProps$`+Ri,Vi=`__reactContainer$`+Ri,Hi=`__reactEvents$`+Ri,Ui=`__reactListeners$`+Ri,Wi=`__reactHandles$`+Ri;function Gi(e){var t=e[zi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Vi]||n[zi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Li(e);e!==null;){if(n=e[zi])return n;e=Li(e)}return t}e=n,n=e.parentNode}return null}function Ki(e){return e=e[zi]||e[Vi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function qi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Ji(e){return e[Bi]||null}var Yi=[],Xi=-1;function Zi(e){return{current:e}}function Qi(e){0>Xi||(e.current=Yi[Xi],Yi[Xi]=null,Xi--)}function $i(e,t){Xi++,Yi[Xi]=e.current,e.current=t}var ea={},ta=Zi(ea),na=Zi(!1),ra=ea;function ia(e,t){var n=e.type.contextTypes;if(!n)return ea;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function aa(e){return e=e.childContextTypes,e!=null}function oa(){Qi(na),Qi(ta)}function sa(e,t,n){if(ta.current!==ea)throw Error(r(168));$i(ta,t),$i(na,n)}function ca(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,pe(e)||`Unknown`,a));return M({},n,i)}function la(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ea,ra=ta.current,$i(ta,e),$i(na,na.current),!0}function ua(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ca(e,t,ra),i.__reactInternalMemoizedMergedChildContext=e,Qi(na),Qi(ta),$i(ta,e)):Qi(na),$i(na,n)}var da=null,fa=!1,pa=!1;function ma(e){da===null?da=[e]:da.push(e)}function ha(e){fa=!0,ma(e)}function ga(){if(!pa&&da!==null){pa=!0;var e=0,t=Kt;try{var n=da;for(Kt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}da=null,fa=!1}catch(t){throw da!==null&&(da=da.slice(e+1)),_t(Ct,ga),t}finally{Kt=t,pa=!1}}return null}var _a=[],va=0,ya=null,ba=0,xa=[],Sa=0,Ca=null,wa=1,Ta=``;function Ea(e,t){_a[va++]=ba,_a[va++]=ya,ya=e,ba=t}function Da(e,t,n){xa[Sa++]=wa,xa[Sa++]=Ta,xa[Sa++]=Ca,Ca=e;var r=wa;e=Ta;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var a=32-jt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wa=1<<32-jt(t)+i|n<<i|r,Ta=a+e}else wa=1<<a|n<<i|r,Ta=e}function Oa(e){e.return!==null&&(Ea(e,1),Da(e,1,0))}function ka(e){for(;e===ya;)ya=_a[--va],_a[va]=null,ba=_a[--va],_a[va]=null;for(;e===Ca;)Ca=xa[--Sa],xa[Sa]=null,Ta=xa[--Sa],xa[Sa]=null,wa=xa[--Sa],xa[Sa]=null}var Aa=null,ja=null,Ma=!1,Na=null;function Pa(e,t){var n=ou(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Aa=e,ja=Ii(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Aa=e,ja=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Ca===null?null:{id:wa,overflow:Ta},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ou(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Aa=e,ja=null,!0);default:return!1}}function Ia(e){return(e.mode&1)!=0&&(e.flags&128)==0}function La(e){if(Ma){var t=ja;if(t){var n=t;if(!Fa(e,t)){if(Ia(e))throw Error(r(418));t=Ii(n.nextSibling);var i=Aa;t&&Fa(e,t)?Pa(i,n):(e.flags=e.flags&-4097|2,Ma=!1,Aa=e)}}else{if(Ia(e))throw Error(r(418));e.flags=e.flags&-4097|2,Ma=!1,Aa=e}}}function Ra(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Aa=e}function za(e){if(e!==Aa)return!1;if(!Ma)return Ra(e),Ma=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!ki(e.type,e.memoizedProps)),t&&=ja){if(Ia(e))throw Ba(),Error(r(418));for(;t;)Pa(e,t),t=Ii(t.nextSibling)}if(Ra(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ja=Ii(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ja=null}}else ja=Aa?Ii(e.stateNode.nextSibling):null;return!0}function Ba(){for(var e=ja;e;)e=Ii(e.nextSibling)}function Va(){ja=Aa=null,Ma=!1}function Ha(e){Na===null?Na=[e]:Na.push(e)}var Ua=C.ReactCurrentBatchConfig;function Wa(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ga(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ka(e){var t=e._init;return t(e._payload)}function qa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=lu(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=pu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&Ka(i)===t.type)?(r=a(t,n.props),r.ref=Wa(e,t,n),r.return=e,r):(r=uu(n.type,n.key,n.props,null,e.mode,r),r.ref=Wa(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=mu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=du(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=pu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=uu(t.type,t.key,t.props,null,e.mode,n),n.ref=Wa(e,null,t),n.return=e,n;case T:return t=mu(t,e.mode,n),t.return=e,t;case re:var r=t._init;return f(e,r(t._payload),n)}if(Te(t)||oe(t))return t=du(t,e.mode,n,null),t.return=e,t;Ga(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case re:return i=n._init,p(e,t,i(n._payload),r)}if(Te(n)||oe(n))return i===null?d(e,t,n,r,null):null;Ga(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Te(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);Ga(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Ma&&Ea(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ma&&Ea(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Ma&&Ea(r,h),l}function g(a,s,c,l){var u=oe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Ma&&Ea(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ma&&Ea(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Ma&&Ea(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===re&&Ka(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Wa(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=du(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=uu(i.type,i.key,i.props,null,e.mode,o),o.ref=Wa(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=mu(i,e.mode,o),r.return=e,e=r}return s(e);case re:return l=i._init,_(e,r,l(i._payload),o)}if(Te(i))return h(e,r,i,o);if(oe(i))return g(e,r,i,o);Ga(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=pu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ja=qa(!0),Ya=qa(!1),Xa=Zi(null),Za=null,Qa=null,$a=null;function eo(){$a=Qa=Za=null}function to(e){var t=Xa.current;Qi(Xa),e._currentValue=t}function no(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ro(e,t){Za=e,$a=Qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Gs=!0),e.firstContext=null)}function io(e){var t=e._currentValue;if($a!==e)if(e={context:e,memoizedValue:t,next:null},Qa===null){if(Za===null)throw Error(r(308));Qa=e,Za.dependencies={lanes:0,firstContext:e}}else Qa=Qa.next=e;return t}var ao=null;function oo(e){ao===null?ao=[e]:ao.push(e)}function so(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,oo(t)):(n.next=i.next,i.next=n),t.interleaved=n,co(e,r)}function co(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function po(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,el&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,co(e,n)}return i=r.interleaved,i===null?(t.next=t,oo(r)):(t.next=i.next,i.next=t),r.interleaved=t,co(e,n)}function ho(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}function go(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _o(e,t,n,r){var i=e.updateQueue;lo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=M({},d,f);break a;case 2:lo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);cl|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var yo={},bo=Zi(yo),xo=Zi(yo),So=Zi(yo);function Co(e){if(e===yo)throw Error(r(174));return e}function wo(e,t){switch($i(So,t),$i(xo,e),$i(bo,yo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=je(t,e)}Qi(bo),$i(bo,t)}function To(){Qi(bo),Qi(xo),Qi(So)}function Eo(e){Co(So.current);var t=Co(bo.current),n=je(t,e.type);t!==n&&($i(xo,e),$i(bo,n))}function Do(e){xo.current===e&&(Qi(bo),Qi(xo))}var Oo=Zi(0);function L(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ko=[];function Ao(){for(var e=0;e<ko.length;e++)ko[e]._workInProgressVersionPrimary=null;ko.length=0}var jo=C.ReactCurrentDispatcher,Mo=C.ReactCurrentBatchConfig,No=0,Po=null,Fo=null,Io=null,Lo=!1,Ro=!1,zo=0,Bo=0;function Vo(){throw Error(r(321))}function R(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pr(e[n],t[n]))return!1;return!0}function Ho(e,t,n,i,a,o){if(No=o,Po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,jo.current=e===null||e.memoizedState===null?Ts:Es,e=n(i,a),Ro){o=0;do{if(Ro=!1,zo=0,25<=o)throw Error(r(301));o+=1,Io=Fo=null,t.updateQueue=null,jo.current=Ds,e=n(i,a)}while(Ro)}if(jo.current=ws,t=Fo!==null&&Fo.next!==null,No=0,Io=Fo=Po=null,Lo=!1,t)throw Error(r(300));return e}function Uo(){var e=zo!==0;return zo=0,e}function Wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Io===null?Po.memoizedState=Io=e:Io=Io.next=e,Io}function Go(){if(Fo===null){var e=Po.alternate;e=e===null?null:e.memoizedState}else e=Fo.next;var t=Io===null?Po.memoizedState:Io.next;if(t!==null)Io=t,Fo=e;else{if(e===null)throw Error(r(310));Fo=e,e={memoizedState:Fo.memoizedState,baseState:Fo.baseState,baseQueue:Fo.baseQueue,queue:Fo.queue,next:null},Io===null?Po.memoizedState=Io=e:Io=Io.next=e}return Io}function Ko(e,t){return typeof t==`function`?t(e):t}function qo(e){var t=Go(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Fo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((No&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,Po.lanes|=d,cl|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Pr(i,t.memoizedState)||(Gs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,Po.lanes|=o,cl|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jo(e){var t=Go(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Pr(o,t.memoizedState)||(Gs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Yo(){}function Xo(e,t){var n=Po,i=Go(),a=t(),o=!Pr(i.memoizedState,a);if(o&&(i.memoizedState=a,Gs=!0),i=i.queue,cs($o.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Io!==null&&Io.memoizedState.tag&1){if(n.flags|=2048,rs(9,Qo.bind(null,n,i,a,t),void 0,null),tl===null)throw Error(r(349));No&30||Zo(n,t,a)}return a}function Zo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Po.updateQueue,t===null?(t={lastEffect:null,stores:null},Po.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qo(e,t,n,r){t.value=n,t.getSnapshot=r,es(t)&&ts(e)}function $o(e,t,n){return n(function(){es(t)&&ts(e)})}function es(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pr(e,n)}catch{return!0}}function ts(e){var t=co(e,1);t!==null&&Ol(t,e,1,-1)}function ns(e){var t=Wo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:e},t.queue=e,e=e.dispatch=bs.bind(null,Po,e),[t.memoizedState,e]}function rs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Po.updateQueue,t===null?(t={lastEffect:null,stores:null},Po.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function is(){return Go().memoizedState}function as(e,t,n,r){var i=Wo();Po.flags|=e,i.memoizedState=rs(1|t,n,void 0,r===void 0?null:r)}function os(e,t,n,r){var i=Go();r=r===void 0?null:r;var a=void 0;if(Fo!==null){var o=Fo.memoizedState;if(a=o.destroy,r!==null&&R(r,o.deps)){i.memoizedState=rs(t,n,a,r);return}}Po.flags|=e,i.memoizedState=rs(1|t,n,a,r)}function ss(e,t){return as(8390656,8,e,t)}function cs(e,t){return os(2048,8,e,t)}function ls(e,t){return os(4,2,e,t)}function us(e,t){return os(4,4,e,t)}function ds(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fs(e,t,n){return n=n==null?null:n.concat([e]),os(4,4,ds.bind(null,t,e),n)}function ps(){}function ms(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&R(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function hs(e,t){var n=Go();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&R(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gs(e,t,n){return No&21?(Pr(n,t)||(n=Vt(),Po.lanes|=n,cl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Gs=!0),e.memoizedState=n)}function _s(e,t){var n=Kt;Kt=n!==0&&4>n?n:4,e(!0);var r=Mo.transition;Mo.transition={};try{e(!1),t()}finally{Kt=n,Mo.transition=r}}function vs(){return Go().memoizedState}function ys(e,t,n){var r=Dl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xs(e))Ss(t,n);else if(n=so(e,t,n,r),n!==null){var i=El();Ol(n,e,r,i),Cs(n,t,r)}}function bs(e,t,n){var r=Dl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xs(e))Ss(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pr(s,o)){var c=t.interleaved;c===null?(i.next=i,oo(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=so(e,t,i,r),n!==null&&(i=El(),Ol(n,e,r,i),Cs(n,t,r))}}function xs(e){var t=e.alternate;return e===Po||t!==null&&t===Po}function Ss(e,t){Ro=Lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}var ws={readContext:io,useCallback:Vo,useContext:Vo,useEffect:Vo,useImperativeHandle:Vo,useInsertionEffect:Vo,useLayoutEffect:Vo,useMemo:Vo,useReducer:Vo,useRef:Vo,useState:Vo,useDebugValue:Vo,useDeferredValue:Vo,useTransition:Vo,useMutableSource:Vo,useSyncExternalStore:Vo,useId:Vo,unstable_isNewReconciler:!1},Ts={readContext:io,useCallback:function(e,t){return Wo().memoizedState=[e,t===void 0?null:t],e},useContext:io,useEffect:ss,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),as(4194308,4,ds.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){return as(4,2,e,t)},useMemo:function(e,t){var n=Wo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ys.bind(null,Po,e),[r.memoizedState,e]},useRef:function(e){var t=Wo();return e={current:e},t.memoizedState=e},useState:ns,useDebugValue:ps,useDeferredValue:function(e){return Wo().memoizedState=e},useTransition:function(){var e=ns(!1),t=e[0];return e=_s.bind(null,e[1]),Wo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Po,a=Wo();if(Ma){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),tl===null)throw Error(r(349));No&30||Zo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss($o.bind(null,i,o,e),[e]),i.flags|=2048,rs(9,Qo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Wo(),t=tl.identifierPrefix;if(Ma){var n=Ta,r=wa;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=zo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Bo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Es={readContext:io,useCallback:ms,useContext:io,useEffect:cs,useImperativeHandle:fs,useInsertionEffect:ls,useLayoutEffect:us,useMemo:hs,useReducer:qo,useRef:is,useState:function(){return qo(Ko)},useDebugValue:ps,useDeferredValue:function(e){return gs(Go(),Fo.memoizedState,e)},useTransition:function(){return[qo(Ko)[0],Go().memoizedState]},useMutableSource:Yo,useSyncExternalStore:Xo,useId:vs,unstable_isNewReconciler:!1},Ds={readContext:io,useCallback:ms,useContext:io,useEffect:cs,useImperativeHandle:fs,useInsertionEffect:ls,useLayoutEffect:us,useMemo:hs,useReducer:Jo,useRef:is,useState:function(){return Jo(Ko)},useDebugValue:ps,useDeferredValue:function(e){var t=Go();return Fo===null?t.memoizedState=e:gs(t,Fo.memoizedState,e)},useTransition:function(){return[Jo(Ko)[0],Go().memoizedState]},useMutableSource:Yo,useSyncExternalStore:Xo,useId:vs,unstable_isNewReconciler:!1};function Os(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ks(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:M({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var As={isMounted:function(e){return(e=e._reactInternals)?dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=El(),i=Dl(e),a=po(r,i);a.payload=t,n!=null&&(a.callback=n),t=mo(e,a,i),t!==null&&(Ol(t,e,i,r),ho(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=El(),i=Dl(e),a=po(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=mo(e,a,i),t!==null&&(Ol(t,e,i,r),ho(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=El(),r=Dl(e),i=po(n,r);i.tag=2,t!=null&&(i.callback=t),t=mo(e,i,r),t!==null&&(Ol(t,e,r,n),ho(t,e,r))}};function js(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,r)||!Fr(i,a):!0}function Ms(e,t,n){var r=!1,i=ea,a=t.contextType;return typeof a==`object`&&a?a=io(a):(i=aa(t)?ra:ta.current,r=t.contextTypes,a=(r=r!=null)?ia(e,i):ea),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=As,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ns(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&As.enqueueReplaceState(t,t.state,null)}function Ps(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},uo(e);var a=t.contextType;typeof a==`object`&&a?i.context=io(a):(a=aa(t)?ra:ta.current,i.context=ia(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(ks(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&As.enqueueReplaceState(i,i.state,null),_o(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Fs(e,t){try{var n=``,r=t;do n+=de(r),r=r.return;while(r);var i=n}catch(e){i=`
5
+ `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ce(e):``}function de(e){switch(e.tag){case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return``}}function fe(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case A:return`Suspense`;case ne:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case te:return(e.displayName||`Context`)+`.Consumer`;case ee:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case j:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function pe(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return fe(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function N(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function me(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function he(e){var t=me(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ge(e){e._valueTracker||=he(e)}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=me(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ve(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function be(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=N(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function xe(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function Se(e,t){xe(e,t);var n=N(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?we(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&we(e,t.type,N(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function we(e,t,n){(t!==`number`||ve(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Te=Array.isArray;function Ee(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+N(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function De(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return M({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Oe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Te(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:N(n)}}function ke(e,t){var n=N(t.value),r=N(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function je(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Me(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?je(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Ne,Pe=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Ne||=document.createElement(`div`),Ne.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Ne.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ie={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Le=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ie).forEach(function(e){Le.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ie[t]=Ie[e]})});function Re(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ie.hasOwnProperty(e)&&Ie[e]?(``+t).trim():t+`px`}function ze(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Re(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Be=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ve(e,t){if(t){if(Be[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function He(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ue=null;function We(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ge=null,Ke=null,qe=null;function Je(e){if(e=qi(e)){if(typeof Ge!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Yi(t),Ge(e.stateNode,e.type,t))}}function Ye(e){Ke?qe?qe.push(e):qe=[e]:Ke=e}function Xe(){if(Ke){var e=Ke,t=qe;if(qe=Ke=null,Je(e),t)for(e=0;e<t.length;e++)Je(t[e])}}function Ze(e,t){return e(t)}function Qe(){}var $e=!1;function et(e,t,n){if($e)return e(t,n);$e=!0;try{return Ze(e,t,n)}finally{$e=!1,(Ke!==null||qe!==null)&&(Qe(),Xe())}}function tt(e,t){var n=e.stateNode;if(n===null)return null;var i=Yi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var nt=!1;if(c)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener(`test`,rt,rt),window.removeEventListener(`test`,rt,rt)}catch{nt=!1}function it(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var at=!1,ot=null,st=!1,ct=null,lt={onError:function(e){at=!0,ot=e}};function ut(e,t,n,r,i,a,o,s,c){at=!1,ot=null,it.apply(lt,arguments)}function dt(e,t,n,i,a,o,s,c,l){if(ut.apply(this,arguments),at){if(at){var u=ot;at=!1,ot=null}else throw Error(r(198));st||(st=!0,ct=u)}}function ft(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pt(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function mt(e){if(ft(e)!==e)throw Error(r(188))}function ht(e){var t=e.alternate;if(!t){if(t=ft(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return mt(a),e;if(o===i)return mt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function gt(e){return e=ht(e),e===null?null:_t(e)}function _t(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_t(e);if(t!==null)return t;e=e.sibling}return null}var vt=n.unstable_scheduleCallback,yt=n.unstable_cancelCallback,bt=n.unstable_shouldYield,xt=n.unstable_requestPaint,St=n.unstable_now,Ct=n.unstable_getCurrentPriorityLevel,wt=n.unstable_ImmediatePriority,Tt=n.unstable_UserBlockingPriority,Et=n.unstable_NormalPriority,Dt=n.unstable_LowPriority,Ot=n.unstable_IdlePriority,kt=null,At=null;function jt(e){if(At&&typeof At.onCommitFiberRoot==`function`)try{At.onCommitFiberRoot(kt,e,void 0,(e.current.flags&128)==128)}catch{}}var Mt=Math.clz32?Math.clz32:Ft,Nt=Math.log,Pt=Math.LN2;function Ft(e){return e>>>=0,e===0?32:31-(Nt(e)/Pt|0)|0}var It=64,Lt=4194304;function Rt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Rt(a))):r=Rt(s)}else o=n&~i,o===0?a!==0&&(r=Rt(a)):r=Rt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Mt(t),i=1<<n,r|=e[n],t&=~i;return r}function Bt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function P(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Mt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Bt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Vt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Ht(){var e=It;return It<<=1,!(It&4194240)&&(It=64),e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mt(t),e[t]=n}function Gt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Mt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Kt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var qt=0;function Jt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Yt,Xt,Zt,Qt,$t,en=!1,tn=[],nn=null,rn=null,an=null,on=new Map,sn=new Map,cn=[],ln=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function un(e,t){switch(e){case`focusin`:case`focusout`:nn=null;break;case`dragenter`:case`dragleave`:rn=null;break;case`mouseover`:case`mouseout`:an=null;break;case`pointerover`:case`pointerout`:on.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:sn.delete(t.pointerId)}}function dn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=qi(t),t!==null&&Xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fn(e,t,n,r,i){switch(t){case`focusin`:return nn=dn(nn,e,t,n,r,i),!0;case`dragenter`:return rn=dn(rn,e,t,n,r,i),!0;case`mouseover`:return an=dn(an,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return on.set(a,dn(on.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,sn.set(a,dn(sn.get(a)||null,e,t,n,r,i)),!0}return!1}function pn(e){var t=Ki(e.target);if(t!==null){var n=ft(t);if(n!==null){if(t=n.tag,t===13){if(t=pt(n),t!==null){e.blockedOn=t,$t(e.priority,function(){Zt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ue=r,n.target.dispatchEvent(r),Ue=null}else return t=qi(n),t!==null&&Xt(t),e.blockedOn=n,!1;t.shift()}return!0}function F(e,t,n){mn(e)&&n.delete(t)}function hn(){en=!1,nn!==null&&mn(nn)&&(nn=null),rn!==null&&mn(rn)&&(rn=null),an!==null&&mn(an)&&(an=null),on.forEach(F),sn.forEach(F)}function gn(e,t){e.blockedOn===t&&(e.blockedOn=null,en||(en=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,hn)))}function _n(e){function t(t){return gn(t,e)}if(0<tn.length){gn(tn[0],e);for(var n=1;n<tn.length;n++){var r=tn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(nn!==null&&gn(nn,e),rn!==null&&gn(rn,e),an!==null&&gn(an,e),on.forEach(t),sn.forEach(t),n=0;n<cn.length;n++)r=cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cn.length&&(n=cn[0],n.blockedOn===null);)pn(n),n.blockedOn===null&&cn.shift()}var vn=C.ReactCurrentBatchConfig,yn=!0;function bn(e,t,n,r){var i=qt,a=vn.transition;vn.transition=null;try{qt=1,Sn(e,t,n,r)}finally{qt=i,vn.transition=a}}function xn(e,t,n,r){var i=qt,a=vn.transition;vn.transition=null;try{qt=4,Sn(e,t,n,r)}finally{qt=i,vn.transition=a}}function Sn(e,t,n,r){if(yn){var i=wn(e,t,n,r);if(i===null)vi(e,t,r,Cn,n),un(e,r);else if(fn(i,e,t,n,r))r.stopPropagation();else if(un(e,r),t&4&&-1<ln.indexOf(e)){for(;i!==null;){var a=qi(i);if(a!==null&&Yt(a),a=wn(e,t,n,r),a===null&&vi(e,t,r,Cn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else vi(e,t,r,null,n)}}var Cn=null;function wn(e,t,n,r){if(Cn=null,e=We(r),e=Ki(e),e!==null)if(t=ft(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pt(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Cn=e,null}function Tn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(Ct()){case wt:return 1;case Tt:return 4;case Et:case Dt:return 16;case Ot:return 536870912;default:return 16}default:return 16}}var En=null,Dn=null,On=null;function kn(){if(On)return On;var e,t=Dn,n=t.length,r,i=`value`in En?En.value:En.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return On=i.slice(e,1<r?1-r:void 0)}function An(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jn(){return!0}function Mn(){return!1}function Nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?jn:Mn,this.isPropagationStopped=Mn,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=jn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=jn)},persist:function(){},isPersistent:jn}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fn=Nn(Pn),In=M({},Pn,{view:0,detail:0}),Ln=Nn(In),Rn,zn,Bn,Vn=M({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Bn&&(Bn&&e.type===`mousemove`?(Rn=e.screenX-Bn.screenX,zn=e.screenY-Bn.screenY):zn=Rn=0,Bn=e),Rn)},movementY:function(e){return`movementY`in e?e.movementY:zn}}),Hn=Nn(Vn),Un=Nn(M({},Vn,{dataTransfer:0})),Wn=Nn(M({},In,{relatedTarget:0})),Gn=Nn(M({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0})),Kn=Nn(M({},Pn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),qn=Nn(M({},Pn,{data:0})),Jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Yn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Xn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Zn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xn[e])?!!t[e]:!1}function Qn(){return Zn}var $n=Nn(M({},In,{key:function(e){if(e.key){var t=Jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=An(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Yn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qn,charCode:function(e){return e.type===`keypress`?An(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?An(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),er=Nn(M({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),tr=Nn(M({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qn})),nr=Nn(M({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0})),rr=Nn(M({},Vn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),ir=[9,13,27,32],ar=c&&`CompositionEvent`in window,or=null;c&&`documentMode`in document&&(or=document.documentMode);var sr=c&&`TextEvent`in window&&!or,cr=c&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=kn(),On=Dn=En=null,pr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){Ye(r),t=bi(t,`onChange`),0<t.length&&(n=new Fn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){fi(e,0)}function Sr(e){if(_e(Ji(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(c){var Tr;if(c){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,We(e)),et(xr,t)}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function Lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rr(e,t){var n=Lr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Lr(n)}}function zr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Br(){for(var e=window,t=ve();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ve(e.document)}return t}function Vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Hr(e){var t=Br(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zr(n.ownerDocument.documentElement,n)){if(r!==null&&Vr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Rr(n,a);var o=Rr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ur=c&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==ve(r)||(r=Wr,`selectionStart`in r&&Vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Ir(Kr,r)||(Kr=r,r=bi(Gr,`onSelect`),0<r.length&&(t=new Fn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};c&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionend`),ii=new Map,ai=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function oi(e,t){ii.set(e,t),o(t,[e])}for(var si=0;si<ai.length;si++){var ci=ai[si];oi(ci.toLowerCase(),`on`+(ci[0].toUpperCase()+ci.slice(1)))}oi(ei,`onAnimationEnd`),oi(ti,`onAnimationIteration`),oi(ni,`onAnimationStart`),oi(`dblclick`,`onDoubleClick`),oi(`focusin`,`onFocus`),oi(`focusout`,`onBlur`),oi(ri,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var li=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ui=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(li));function di(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,dt(r,t,void 0,e),e.currentTarget=null}function fi(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;di(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;di(i,s,l),a=c}}}if(st)throw e=ct,st=!1,ct=null,e}function pi(e,t){var n=t[Ui];n===void 0&&(n=t[Ui]=new Set);var r=e+`__bubble`;n.has(r)||(_i(t,e,2,!1),n.add(r))}function mi(e,t,n){var r=0;t&&(r|=4),_i(n,e,r,t)}var hi=`_reactListening`+Math.random().toString(36).slice(2);function gi(e){if(!e[hi]){e[hi]=!0,i.forEach(function(t){t!==`selectionchange`&&(ui.has(t)||mi(t,!1,e),mi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hi]||(t[hi]=!0,mi(`selectionchange`,!1,t))}}function _i(e,t,n,r){switch(Tn(t)){case 1:var i=bn;break;case 4:i=xn;break;default:i=Sn}n=i.bind(null,t,n,e),i=void 0,!nt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function vi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ki(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}et(function(){var r=a,i=We(n),o=[];a:{var s=ii.get(e);if(s!==void 0){var c=Fn,l=e;switch(e){case`keypress`:if(An(n)===0)break a;case`keydown`:case`keyup`:c=$n;break;case`focusin`:l=`focus`,c=Wn;break;case`focusout`:l=`blur`,c=Wn;break;case`beforeblur`:case`afterblur`:c=Wn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Hn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Un;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=tr;break;case ei:case ti:case ni:c=Gn;break;case ri:c=nr;break;case`scroll`:c=Ln;break;case`wheel`:c=rr;break;case`copy`:case`cut`:case`paste`:c=Kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=er}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=tt(p,f),h!=null&&u.push(yi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ue&&(l=n.relatedTarget||n.fromElement)&&(Ki(l)||l[Hi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ki(l):null,l!==null&&(d=ft(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Hn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=er,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ji(c),m=l==null?s:Ji(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ki(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=xi(m))p++;for(m=0,h=f;h;h=xi(h))m++;for(;0<p-m;)u=xi(u),p--;for(;0<m-p;)f=xi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=xi(u),f=xi(f)}u=null}else u=null;c!==null&&Si(o,s,c,u,!1),l!==null&&d!==null&&Si(o,d,l,u,!0)}}a:{if(s=r?Ji(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Cr;else if(_r(s))if(wr)g=Nr;else{g=jr;var _=Ar}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Mr);if(g&&=g(e,r)){vr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&we(s,`number`,s.value)}switch(_=r?Ji(r):window,e){case`focusin`:(_r(_)||_.contentEditable===`true`)&&(Wr=_,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(o,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(o,n,i)}var v;if(ar)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else pr?dr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(cr&&n.locale!==`ko`&&(pr||y!==`onCompositionStart`?y===`onCompositionEnd`&&pr&&(v=kn()):(En=i,Dn=`value`in En?En.value:En.textContent,pr=!0)),_=bi(r,y),0<_.length&&(y=new qn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=fr(n),v!==null&&(y.data=v)))),(v=sr?mr(e,n):hr(e,n))&&(r=bi(r,`onBeforeInput`),0<r.length&&(i=new qn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}fi(o,t)})}function yi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=tt(e,n),a!=null&&r.unshift(yi(e,a,i)),a=tt(e,t),a!=null&&r.push(yi(e,a,i))),e=e.return}return r}function xi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Si(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=tt(n,a),c!=null&&o.unshift(yi(n,c,s))):i||(c=tt(n,a),c!=null&&o.push(yi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ci=/\r\n?/g,wi=/\u0000|\uFFFD/g;function Ti(e){return(typeof e==`string`?e:``+e).replace(Ci,`
6
+ `).replace(wi,``)}function Ei(e,t,n){if(t=Ti(t),Ti(e)!==t&&n)throw Error(r(425))}function Di(){}var Oi=null,ki=null;function Ai(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ji=typeof setTimeout==`function`?setTimeout:void 0,Mi=typeof clearTimeout==`function`?clearTimeout:void 0,Ni=typeof Promise==`function`?Promise:void 0,Pi=typeof queueMicrotask==`function`?queueMicrotask:Ni===void 0?ji:function(e){return Ni.resolve(null).then(e).catch(Fi)};function Fi(e){setTimeout(function(){throw e})}function Ii(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),_n(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);_n(t)}function Li(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Ri(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var zi=Math.random().toString(36).slice(2),Bi=`__reactFiber$`+zi,Vi=`__reactProps$`+zi,Hi=`__reactContainer$`+zi,Ui=`__reactEvents$`+zi,Wi=`__reactListeners$`+zi,Gi=`__reactHandles$`+zi;function Ki(e){var t=e[Bi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hi]||n[Bi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ri(e);e!==null;){if(n=e[Bi])return n;e=Ri(e)}return t}e=n,n=e.parentNode}return null}function qi(e){return e=e[Bi]||e[Hi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ji(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Yi(e){return e[Vi]||null}var Xi=[],Zi=-1;function Qi(e){return{current:e}}function $i(e){0>Zi||(e.current=Xi[Zi],Xi[Zi]=null,Zi--)}function ea(e,t){Zi++,Xi[Zi]=e.current,e.current=t}var ta={},na=Qi(ta),ra=Qi(!1),ia=ta;function aa(e,t){var n=e.type.contextTypes;if(!n)return ta;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function oa(e){return e=e.childContextTypes,e!=null}function sa(){$i(ra),$i(na)}function ca(e,t,n){if(na.current!==ta)throw Error(r(168));ea(na,t),ea(ra,n)}function la(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,pe(e)||`Unknown`,a));return M({},n,i)}function ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ta,ia=na.current,ea(na,e),ea(ra,ra.current),!0}function da(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=la(e,t,ia),i.__reactInternalMemoizedMergedChildContext=e,$i(ra),$i(na),ea(na,e)):$i(ra),ea(ra,n)}var fa=null,pa=!1,ma=!1;function ha(e){fa===null?fa=[e]:fa.push(e)}function ga(e){pa=!0,ha(e)}function _a(){if(!ma&&fa!==null){ma=!0;var e=0,t=qt;try{var n=fa;for(qt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}fa=null,pa=!1}catch(t){throw fa!==null&&(fa=fa.slice(e+1)),vt(wt,_a),t}finally{qt=t,ma=!1}}return null}var va=[],ya=0,ba=null,xa=0,Sa=[],Ca=0,wa=null,Ta=1,Ea=``;function Da(e,t){va[ya++]=xa,va[ya++]=ba,ba=e,xa=t}function Oa(e,t,n){Sa[Ca++]=Ta,Sa[Ca++]=Ea,Sa[Ca++]=wa,wa=e;var r=Ta;e=Ea;var i=32-Mt(r)-1;r&=~(1<<i),n+=1;var a=32-Mt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ta=1<<32-Mt(t)+i|n<<i|r,Ea=a+e}else Ta=1<<a|n<<i|r,Ea=e}function ka(e){e.return!==null&&(Da(e,1),Oa(e,1,0))}function Aa(e){for(;e===ba;)ba=va[--ya],va[ya]=null,xa=va[--ya],va[ya]=null;for(;e===wa;)wa=Sa[--Ca],Sa[Ca]=null,Ea=Sa[--Ca],Sa[Ca]=null,Ta=Sa[--Ca],Sa[Ca]=null}var ja=null,Ma=null,Na=!1,Pa=null;function Fa(e,t){var n=su(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ia(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,ja=e,Ma=Li(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,ja=e,Ma=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=wa===null?null:{id:Ta,overflow:Ea},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=su(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ja=e,Ma=null,!0);default:return!1}}function La(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Ra(e){if(Na){var t=Ma;if(t){var n=t;if(!Ia(e,t)){if(La(e))throw Error(r(418));t=Li(n.nextSibling);var i=ja;t&&Ia(e,t)?Fa(i,n):(e.flags=e.flags&-4097|2,Na=!1,ja=e)}}else{if(La(e))throw Error(r(418));e.flags=e.flags&-4097|2,Na=!1,ja=e}}}function za(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ja=e}function Ba(e){if(e!==ja)return!1;if(!Na)return za(e),Na=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ai(e.type,e.memoizedProps)),t&&=Ma){if(La(e))throw Va(),Error(r(418));for(;t;)Fa(e,t),t=Li(t.nextSibling)}if(za(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Ma=Li(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Ma=null}}else Ma=ja?Li(e.stateNode.nextSibling):null;return!0}function Va(){for(var e=Ma;e;)e=Li(e.nextSibling)}function Ha(){Ma=ja=null,Na=!1}function Ua(e){Pa===null?Pa=[e]:Pa.push(e)}var Wa=C.ReactCurrentBatchConfig;function Ga(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function qa(e){var t=e._init;return t(e._payload)}function Ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=uu(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===re&&qa(i)===t.type)?(r=a(t,n.props),r.ref=Ga(e,t,n),r.return=e,r):(r=du(n.type,n.key,n.props,null,e.mode,r),r.ref=Ga(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fu(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=mu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=du(t.type,t.key,t.props,null,e.mode,n),n.ref=Ga(e,null,t),n.return=e,n;case T:return t=hu(t,e.mode,n),t.return=e,t;case re:var r=t._init;return f(e,r(t._payload),n)}if(Te(t)||oe(t))return t=fu(t,e.mode,n,null),t.return=e,t;Ka(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case re:return i=n._init,p(e,t,i(n._payload),r)}if(Te(n)||oe(n))return i===null?d(e,t,n,r,null):null;Ka(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case re:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Te(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);Ka(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Na&&Da(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Na&&Da(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Na&&Da(r,h),l}function g(a,s,c,l){var u=oe(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Na&&Da(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Na&&Da(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Na&&Da(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===re&&qa(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ga(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=fu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=du(i.type,i.key,i.props,null,e.mode,o),o.ref=Ga(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=hu(i,e.mode,o),r.return=e,e=r}return s(e);case re:return l=i._init,_(e,r,l(i._payload),o)}if(Te(i))return h(e,r,i,o);if(oe(i))return g(e,r,i,o);Ka(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=mu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ya=Ja(!0),Xa=Ja(!1),Za=Qi(null),Qa=null,$a=null,eo=null;function to(){eo=$a=Qa=null}function no(e){var t=Za.current;$i(Za),e._currentValue=t}function ro(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function io(e,t){Qa=e,eo=$a=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ks=!0),e.firstContext=null)}function ao(e){var t=e._currentValue;if(eo!==e)if(e={context:e,memoizedValue:t,next:null},$a===null){if(Qa===null)throw Error(r(308));$a=e,Qa.dependencies={lanes:0,firstContext:e}}else $a=$a.next=e;return t}var oo=null;function so(e){oo===null?oo=[e]:oo.push(e)}function co(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,so(t)):(n.next=i.next,i.next=n),t.interleaved=n,lo(e,r)}function lo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var uo=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,tl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,lo(e,n)}return i=r.interleaved,i===null?(t.next=t,so(r)):(t.next=i.next,i.next=t),r.interleaved=t,lo(e,n)}function go(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kt(e,n)}}function _o(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vo(e,t,n,r){var i=e.updateQueue;uo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=M({},d,f);break a;case 2:uo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ll|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var bo={},xo=Qi(bo),So=Qi(bo),Co=Qi(bo);function wo(e){if(e===bo)throw Error(r(174));return e}function To(e,t){switch(ea(Co,t),ea(So,e),ea(xo,bo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Me(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Me(t,e)}$i(xo),ea(xo,t)}function Eo(){$i(xo),$i(So),$i(Co)}function Do(e){wo(Co.current);var t=wo(xo.current),n=Me(t,e.type);t!==n&&(ea(So,e),ea(xo,n))}function Oo(e){So.current===e&&($i(xo),$i(So))}var ko=Qi(0);function I(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ao=[];function jo(){for(var e=0;e<Ao.length;e++)Ao[e]._workInProgressVersionPrimary=null;Ao.length=0}var Mo=C.ReactCurrentDispatcher,No=C.ReactCurrentBatchConfig,Po=0,Fo=null,Io=null,Lo=null,Ro=!1,zo=!1,Bo=0,Vo=0;function Ho(){throw Error(r(321))}function L(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Uo(e,t,n,i,a,o){if(Po=o,Fo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Mo.current=e===null||e.memoizedState===null?Es:Ds,e=n(i,a),zo){o=0;do{if(zo=!1,Bo=0,25<=o)throw Error(r(301));o+=1,Lo=Io=null,t.updateQueue=null,Mo.current=Os,e=n(i,a)}while(zo)}if(Mo.current=Ts,t=Io!==null&&Io.next!==null,Po=0,Lo=Io=Fo=null,Ro=!1,t)throw Error(r(300));return e}function Wo(){var e=Bo!==0;return Bo=0,e}function Go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lo===null?Fo.memoizedState=Lo=e:Lo=Lo.next=e,Lo}function Ko(){if(Io===null){var e=Fo.alternate;e=e===null?null:e.memoizedState}else e=Io.next;var t=Lo===null?Fo.memoizedState:Lo.next;if(t!==null)Lo=t,Io=e;else{if(e===null)throw Error(r(310));Io=e,e={memoizedState:Io.memoizedState,baseState:Io.baseState,baseQueue:Io.baseQueue,queue:Io.queue,next:null},Lo===null?Fo.memoizedState=Lo=e:Lo=Lo.next=e}return Lo}function qo(e,t){return typeof t==`function`?t(e):t}function Jo(e){var t=Ko(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Io,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Po&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,Fo.lanes|=d,ll|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Fr(i,t.memoizedState)||(Ks=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,Fo.lanes|=o,ll|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Yo(e){var t=Ko(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fr(o,t.memoizedState)||(Ks=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Xo(){}function Zo(e,t){var n=Fo,i=Ko(),a=t(),o=!Fr(i.memoizedState,a);if(o&&(i.memoizedState=a,Ks=!0),i=i.queue,ls(es.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Lo!==null&&Lo.memoizedState.tag&1){if(n.flags|=2048,is(9,$o.bind(null,n,i,a,t),void 0,null),nl===null)throw Error(r(349));Po&30||Qo(n,t,a)}return a}function Qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fo.updateQueue,t===null?(t={lastEffect:null,stores:null},Fo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function $o(e,t,n,r){t.value=n,t.getSnapshot=r,ts(t)&&ns(e)}function es(e,t,n){return n(function(){ts(t)&&ns(e)})}function ts(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function ns(e){var t=lo(e,1);t!==null&&kl(t,e,1,-1)}function rs(e){var t=Go();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:e},t.queue=e,e=e.dispatch=xs.bind(null,Fo,e),[t.memoizedState,e]}function is(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fo.updateQueue,t===null?(t={lastEffect:null,stores:null},Fo.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function as(){return Ko().memoizedState}function os(e,t,n,r){var i=Go();Fo.flags|=e,i.memoizedState=is(1|t,n,void 0,r===void 0?null:r)}function ss(e,t,n,r){var i=Ko();r=r===void 0?null:r;var a=void 0;if(Io!==null){var o=Io.memoizedState;if(a=o.destroy,r!==null&&L(r,o.deps)){i.memoizedState=is(t,n,a,r);return}}Fo.flags|=e,i.memoizedState=is(1|t,n,a,r)}function cs(e,t){return os(8390656,8,e,t)}function ls(e,t){return ss(2048,8,e,t)}function us(e,t){return ss(4,2,e,t)}function ds(e,t){return ss(4,4,e,t)}function fs(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ps(e,t,n){return n=n==null?null:n.concat([e]),ss(4,4,fs.bind(null,t,e),n)}function ms(){}function hs(e,t){var n=Ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&L(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gs(e,t){var n=Ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&L(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _s(e,t,n){return Po&21?(Fr(n,t)||(n=Ht(),Fo.lanes|=n,ll|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ks=!0),e.memoizedState=n)}function vs(e,t){var n=qt;qt=n!==0&&4>n?n:4,e(!0);var r=No.transition;No.transition={};try{e(!1),t()}finally{qt=n,No.transition=r}}function ys(){return Ko().memoizedState}function bs(e,t,n){var r=Ol(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ss(e))Cs(t,n);else if(n=co(e,t,n,r),n!==null){var i=Dl();kl(n,e,r,i),ws(n,t,r)}}function xs(e,t,n){var r=Ol(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ss(e))Cs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o)){var c=t.interleaved;c===null?(i.next=i,so(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=co(e,t,i,r),n!==null&&(i=Dl(),kl(n,e,r,i),ws(n,t,r))}}function Ss(e){var t=e.alternate;return e===Fo||t!==null&&t===Fo}function Cs(e,t){zo=Ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ws(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kt(e,n)}}var Ts={readContext:ao,useCallback:Ho,useContext:Ho,useEffect:Ho,useImperativeHandle:Ho,useInsertionEffect:Ho,useLayoutEffect:Ho,useMemo:Ho,useReducer:Ho,useRef:Ho,useState:Ho,useDebugValue:Ho,useDeferredValue:Ho,useTransition:Ho,useMutableSource:Ho,useSyncExternalStore:Ho,useId:Ho,unstable_isNewReconciler:!1},Es={readContext:ao,useCallback:function(e,t){return Go().memoizedState=[e,t===void 0?null:t],e},useContext:ao,useEffect:cs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),os(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){return os(4,2,e,t)},useMemo:function(e,t){var n=Go();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Go();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bs.bind(null,Fo,e),[r.memoizedState,e]},useRef:function(e){var t=Go();return e={current:e},t.memoizedState=e},useState:rs,useDebugValue:ms,useDeferredValue:function(e){return Go().memoizedState=e},useTransition:function(){var e=rs(!1),t=e[0];return e=vs.bind(null,e[1]),Go().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Fo,a=Go();if(Na){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),nl===null)throw Error(r(349));Po&30||Qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(es.bind(null,i,o,e),[e]),i.flags|=2048,is(9,$o.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Go(),t=nl.identifierPrefix;if(Na){var n=Ea,r=Ta;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Bo++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Vo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ds={readContext:ao,useCallback:hs,useContext:ao,useEffect:ls,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Jo,useRef:as,useState:function(){return Jo(qo)},useDebugValue:ms,useDeferredValue:function(e){return _s(Ko(),Io.memoizedState,e)},useTransition:function(){return[Jo(qo)[0],Ko().memoizedState]},useMutableSource:Xo,useSyncExternalStore:Zo,useId:ys,unstable_isNewReconciler:!1},Os={readContext:ao,useCallback:hs,useContext:ao,useEffect:ls,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Yo,useRef:as,useState:function(){return Yo(qo)},useDebugValue:ms,useDeferredValue:function(e){var t=Ko();return Io===null?t.memoizedState=e:_s(t,Io.memoizedState,e)},useTransition:function(){return[Yo(qo)[0],Ko().memoizedState]},useMutableSource:Xo,useSyncExternalStore:Zo,useId:ys,unstable_isNewReconciler:!1};function ks(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function As(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:M({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var js={isMounted:function(e){return(e=e._reactInternals)?ft(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Dl(),i=Ol(e),a=mo(r,i);a.payload=t,n!=null&&(a.callback=n),t=ho(e,a,i),t!==null&&(kl(t,e,i,r),go(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Dl(),i=Ol(e),a=mo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=ho(e,a,i),t!==null&&(kl(t,e,i,r),go(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dl(),r=Ol(e),i=mo(n,r);i.tag=2,t!=null&&(i.callback=t),t=ho(e,i,r),t!==null&&(kl(t,e,r,n),go(t,e,r))}};function Ms(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ir(n,r)||!Ir(i,a):!0}function Ns(e,t,n){var r=!1,i=ta,a=t.contextType;return typeof a==`object`&&a?a=ao(a):(i=oa(t)?ia:na.current,r=t.contextTypes,a=(r=r!=null)?aa(e,i):ta),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=js,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ps(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function Fs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},fo(e);var a=t.contextType;typeof a==`object`&&a?i.context=ao(a):(a=oa(t)?ia:na.current,i.context=aa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(As(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&js.enqueueReplaceState(i,i.state,null),vo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Is(e,t){try{var n=``,r=t;do n+=de(r),r=r.return;while(r);var i=n}catch(e){i=`
7
7
  Error generating stack: `+e.message+`
8
- `+e.stack}return{value:e,source:t,stack:i,digest:null}}function Is(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ls(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Rs=typeof WeakMap==`function`?WeakMap:Map;function zs(e,t,n){n=po(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gl||(gl=!0,_l=r),Ls(e,t)},n}function Bs(e,t,n){n=po(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ls(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ls(e,t),typeof r!=`function`&&(vl===null?vl=new Set([this]):vl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Vs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=$l.bind(null,e,t,n),t.then(e,e))}function Hs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Us(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=po(-1,1),t.tag=2,mo(n,t,1))),n.lanes|=1),e)}var Ws=C.ReactCurrentOwner,Gs=!1;function Ks(e,t,n,r){t.child=e===null?Ya(t,null,n,r):Ja(t,e.child,n,r)}function qs(e,t,n,r,i){n=n.render;var a=t.ref;return ro(t,i),r=Ho(e,t,n,r,a,i),n=Uo(),e!==null&&!Gs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pc(e,t,i)):(Ma&&n&&Oa(t),t.flags|=1,Ks(e,t,r,i),t.child)}function Js(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!su(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Ys(e,t,a,r,i)):(e=uu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Fr:n,n(o,r)&&e.ref===t.ref)return pc(e,t,i)}return t.flags|=1,e=lu(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ys(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Fr(a,r)&&e.ref===t.ref)if(Gs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Gs=!0);else return t.lanes=e.lanes,pc(e,t,i)}return Qs(e,t,n,r,i)}function Xs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$i(al,il),il|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$i(al,il),il|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,$i(al,il),il|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),$i(al,il),il|=r;return Ks(e,t,i,n),t.child}function Zs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Qs(e,t,n,r,i){var a=aa(n)?ra:ta.current;return a=ia(t,a),ro(t,i),n=Ho(e,t,n,r,a,i),r=Uo(),e!==null&&!Gs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,pc(e,t,i)):(Ma&&r&&Oa(t),t.flags|=1,Ks(e,t,n,i),t.child)}function $s(e,t,n,r,i){if(aa(n)){var a=!0;la(t)}else a=!1;if(ro(t,i),t.stateNode===null)fc(e,t),Ms(t,n,r),Ps(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=io(l):(l=aa(n)?ra:ta.current,l=ia(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ns(t,o,r,l),lo=!1;var f=t.memoizedState;o.state=f,_o(t,r,o,i),c=t.memoizedState,s!==r||f!==c||na.current||lo?(typeof u==`function`&&(ks(t,n,u,r),c=t.memoizedState),(s=lo||js(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,fo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Os(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=io(c):(c=aa(n)?ra:ta.current,c=ia(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ns(t,o,r,c),lo=!1,f=t.memoizedState,o.state=f,_o(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||na.current||lo?(typeof p==`function`&&(ks(t,n,p,r),m=t.memoizedState),(l=lo||js(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ec(e,t,n,r,a,i)}function ec(e,t,n,r,i,a){Zs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&ua(t,n,!1),pc(e,t,a);r=t.stateNode,Ws.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ja(t,e.child,null,a),t.child=Ja(t,null,s,a)):Ks(e,t,s,a),t.memoizedState=r.state,i&&ua(t,n,!0),t.child}function tc(e){var t=e.stateNode;t.pendingContext?sa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sa(e,t.context,!1),wo(e,t.containerInfo)}function nc(e,t,n,r,i){return Va(),Ha(i),t.flags|=256,Ks(e,t,n,r),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0};function ic(e){return{baseLanes:e,cachePool:null,transitions:null}}function ac(e,t,n){var r=t.pendingProps,i=Oo.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$i(Oo,i&1),e===null)return La(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=fu(o,r,0,null),e=du(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ic(n),t.memoizedState=rc,e):oc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return cc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=lu(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=du(a,o,n,null),a.flags|=2):a=lu(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?ic(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=rc,r}return a=e.child,e=a.sibling,r=lu(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function oc(e,t){return t=fu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function sc(e,t,n,r){return r!==null&&Ha(r),Ja(t,e.child,null,n),e=oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Is(Error(r(422))),sc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=fu({mode:`visible`,children:i.children},a,0,null),o=du(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ja(t,e.child,null,s),t.child.memoizedState=ic(s),t.memoizedState=rc,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return sc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Is(o,i,void 0),sc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Gs||c){if(i=tl,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,co(e,a),Ol(i,e,a,-1))}return Hl(),i=Is(Error(r(421))),sc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=tu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ja=Ii(a.nextSibling),Aa=t,Ma=!0,Na=null,e!==null&&(xa[Sa++]=wa,xa[Sa++]=Ta,xa[Sa++]=Ca,wa=e.id,Ta=e.overflow,Ca=t),t=oc(t,i.children),t.flags|=4096,t)}function lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),no(e.return,t,n)}function uc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function dc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ks(e,t,r.children,n),r=Oo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lc(e,n,t);else if(e.tag===19)lc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($i(Oo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&L(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),uc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&L(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}uc(t,!0,n,null,a);break;case`together`:uc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cl|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=lu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mc(e,t,n){switch(t.tag){case 3:tc(t),Va();break;case 5:Eo(t);break;case 1:aa(t.type)&&la(t);break;case 4:wo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;$i(Xa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?($i(Oo,Oo.current&1),e=pc(e,t,n),e===null?null:e.sibling):ac(e,t,n):($i(Oo,Oo.current&1),t.flags|=128,null);$i(Oo,Oo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$i(Oo,Oo.current),r)break;return null;case 22:case 23:return t.lanes=0,Xs(e,t,n)}return pc(e,t,n)}var hc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},gc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Co(bo.current);var o=null;switch(n){case`input`:i=ye(e,i),r=ye(e,r),o=[];break;case`select`:i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case`textarea`:i=Ee(e,i),r=Ee(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ei)}Be(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&fi(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},_c=function(e,t,n,r){n!==r&&(t.flags|=4)};function vc(e,t){if(!Ma)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function yc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bc(e,t,n){var i=t.pendingProps;switch(ka(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yc(t),null;case 1:return aa(t.type)&&oa(),yc(t),null;case 3:return i=t.stateNode,To(),Qi(na),Qi(ta),Ao(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(za(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Na!==null&&(Ml(Na),Na=null))),yc(t),null;case 5:Do(t);var o=Co(So.current);if(n=t.type,e!==null&&t.stateNode!=null)gc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return yc(t),null}if(e=Co(bo.current),za(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[zi]=t,i[Bi]=s,e=(t.mode&1)!=0,n){case`dialog`:fi(`cancel`,i),fi(`close`,i);break;case`iframe`:case`object`:case`embed`:fi(`load`,i);break;case`video`:case`audio`:for(o=0;o<ci.length;o++)fi(ci[o],i);break;case`source`:fi(`error`,i);break;case`img`:case`image`:case`link`:fi(`error`,i),fi(`load`,i);break;case`details`:fi(`toggle`,i);break;case`input`:be(i,s),fi(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},fi(`invalid`,i);break;case`textarea`:De(i,s),fi(`invalid`,i)}for(var c in Be(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Ti(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Ti(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&fi(`scroll`,i)}switch(n){case`input`:ge(i),Ce(i,s,!0);break;case`textarea`:ge(i),ke(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ei)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Ae(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[zi]=t,e[Bi]=i,hc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ve(n,i),n){case`dialog`:fi(`cancel`,e),fi(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:fi(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ci.length;o++)fi(ci[o],e);o=i;break;case`source`:fi(`error`,e),o=i;break;case`img`:case`image`:case`link`:fi(`error`,e),fi(`load`,e),o=i;break;case`details`:fi(`toggle`,e),o=i;break;case`input`:be(e,i),o=ye(e,i),fi(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=M({},i,{value:void 0}),fi(`invalid`,e);break;case`textarea`:De(e,i),o=Ee(e,i),fi(`invalid`,e);break;default:o=i}for(s in Be(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Re(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ne(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Pe(e,u):typeof u==`number`&&Pe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&fi(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:ge(e),Ce(e,i,!1);break;case`textarea`:ge(e),ke(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+N(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&P(e,!!i.multiple,i.defaultValue,!0):P(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Ei)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return yc(t),null;case 6:if(e&&t.stateNode!=null)_c(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=Co(So.current),Co(bo.current),za(t)){if(i=t.stateNode,n=t.memoizedProps,i[zi]=t,(s=i.nodeValue!==n)&&(e=Aa,e!==null))switch(e.tag){case 3:Ti(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ti(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[zi]=t,t.stateNode=i}return yc(t),null;case 13:if(Qi(Oo),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ma&&ja!==null&&t.mode&1&&!(t.flags&128))Ba(),Va(),t.flags|=98560,s=!1;else if(s=za(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[zi]=t}else Va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;yc(t),s=!1}else Na!==null&&(Ml(Na),Na=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Oo.current&1?ol===0&&(ol=3):Hl())),t.updateQueue!==null&&(t.flags|=4),yc(t),null);case 4:return To(),e===null&&hi(t.stateNode.containerInfo),yc(t),null;case 10:return to(t.type._context),yc(t),null;case 17:return aa(t.type)&&oa(),yc(t),null;case 19:if(Qi(Oo),s=t.memoizedState,s===null)return yc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)vc(s,!1);else{if(ol!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=L(e),c!==null){for(t.flags|=128,vc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $i(Oo,Oo.current&1|2),t.child}e=e.sibling}s.tail!==null&&xt()>ml&&(t.flags|=128,i=!0,vc(s,!1),t.lanes=4194304)}else{if(!i)if(e=L(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Ma)return yc(t),null}else 2*xt()-s.renderingStartTime>ml&&n!==1073741824&&(t.flags|=128,i=!0,vc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(yc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xt(),t.sibling=null,n=Oo.current,$i(Oo,i?n&1|2:n&1),t);case 22:case 23:return Rl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?il&1073741824&&(yc(t),t.subtreeFlags&6&&(t.flags|=8192)):yc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function xc(e,t){switch(ka(t),t.tag){case 1:return aa(t.type)&&oa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return To(),Qi(na),Qi(ta),Ao(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Do(t),null;case 13:if(Qi(Oo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qi(Oo),null;case 4:return To(),null;case 10:return to(t.type._context),null;case 22:case 23:return Rl(),null;case 24:return null;default:return null}}var Sc=!1,Cc=!1,wc=typeof WeakSet==`function`?WeakSet:Set,z=null;function Tc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){Ql(e,t,n)}else n.current=null}function Ec(e,t,n){try{n()}catch(n){Ql(e,t,n)}}var Dc=!1;function Oc(e,t){if(Di=vn,e=zr(),Br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Oi={focusedElem:e,selectionRange:n},vn=!1,z=t;z!==null;)if(t=z,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Os(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Ql(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return h=Dc,Dc=!1,h}function kc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Ec(t,n,a)}i=i.next}while(i!==r)}}function Ac(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Mc(e){var t=e.alternate;t!==null&&(e.alternate=null,Mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zi],delete t[Bi],delete t[Hi],delete t[Ui],delete t[Wi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nc(e){return e.tag===5||e.tag===3||e.tag===4}function Pc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ei));else if(r!==4&&(e=e.child,e!==null))for(Fc(e,t,n),e=e.sibling;e!==null;)Fc(e,t,n),e=e.sibling}function Ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}var Lc=null,Rc=!1;function zc(e,t,n){for(n=n.child;n!==null;)Bc(e,t,n),n=n.sibling}function Bc(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount==`function`)try{kt.onCommitFiberUnmount(Ot,n)}catch{}switch(n.tag){case 5:Cc||Tc(n,t);case 6:var r=Lc,i=Rc;Lc=null,zc(e,t,n),Lc=r,Rc=i,Lc!==null&&(Rc?(e=Lc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Lc.removeChild(n.stateNode));break;case 18:Lc!==null&&(Rc?(e=Lc,n=n.stateNode,e.nodeType===8?Fi(e.parentNode,n):e.nodeType===1&&Fi(e,n),gn(e)):Fi(Lc,n.stateNode));break;case 4:r=Lc,i=Rc,Lc=n.stateNode.containerInfo,Rc=!0,zc(e,t,n),Lc=r,Rc=i;break;case 0:case 11:case 14:case 15:if(!Cc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Ec(n,t,o),i=i.next}while(i!==r)}zc(e,t,n);break;case 1:if(!Cc&&(Tc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Ql(n,t,e)}zc(e,t,n);break;case 21:zc(e,t,n);break;case 22:n.mode&1?(Cc=(r=Cc)||n.memoizedState!==null,zc(e,t,n),Cc=r):zc(e,t,n);break;default:zc(e,t,n)}}function Vc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wc),t.forEach(function(t){var r=nu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Hc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Lc=c.stateNode,Rc=!1;break a;case 3:Lc=c.stateNode.containerInfo,Rc=!0;break a;case 4:Lc=c.stateNode.containerInfo,Rc=!0;break a}c=c.return}if(Lc===null)throw Error(r(160));Bc(o,s,a),Lc=null,Rc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Ql(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Uc(t,e),t=t.sibling}function Uc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Hc(t,e),Wc(e),i&4){try{kc(3,e,e.return),Ac(3,e)}catch(t){Ql(e,e.return,t)}try{kc(5,e,e.return)}catch(t){Ql(e,e.return,t)}}break;case 1:Hc(t,e),Wc(e),i&512&&n!==null&&Tc(n,n.return);break;case 5:if(Hc(t,e),Wc(e),i&512&&n!==null&&Tc(n,n.return),e.flags&32){var a=e.stateNode;try{Pe(a,``)}catch(t){Ql(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&xe(a,o),Ve(c,s);var u=Ve(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Re(a,f):d===`dangerouslySetInnerHTML`?Ne(a,f):d===`children`?Pe(a,f):S(a,d,f,u)}switch(c){case`input`:Se(a,o);break;case`textarea`:Oe(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?P(a,!!o.multiple,o.multiple?[]:``,!1):P(a,!!o.multiple,o.defaultValue,!0)):P(a,!!o.multiple,m,!1)}a[Bi]=o}catch(t){Ql(e,e.return,t)}}break;case 6:if(Hc(t,e),Wc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Ql(e,e.return,t)}}break;case 3:if(Hc(t,e),Wc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{gn(t.containerInfo)}catch(t){Ql(e,e.return,t)}break;case 4:Hc(t,e),Wc(e);break;case 13:Hc(t,e),Wc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(pl=xt())),i&4&&Vc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Cc=(u=Cc)||d,Hc(t,e),Cc=u):Hc(t,e),Wc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(z=e,d=e.child;d!==null;){for(f=z=d;z!==null;){switch(p=z,m=p.child,p.tag){case 0:case 11:case 14:case 15:kc(4,p,p.return);break;case 1:Tc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Ql(i,n,e)}}break;case 5:Tc(p,p.return);break;case 22:if(p.memoizedState!==null){Jc(f);continue}}m===null?Jc(f):(m.return=p,z=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Le(`display`,s))}catch(t){Ql(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Ql(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Hc(t,e),Wc(e),i&4&&Vc(e);break;case 21:break;default:Hc(t,e),Wc(e)}}function Wc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Nc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Pe(a,``),i.flags&=-33),Ic(e,Pc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Fc(e,Pc(e),o);break;default:throw Error(r(161))}}catch(t){Ql(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gc(e,t,n){z=e,Kc(e,t,n)}function Kc(e,t,n){for(var r=(e.mode&1)!=0;z!==null;){var i=z,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Sc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||Cc;s=Sc;var l=Cc;if(Sc=o,(Cc=c)&&!l)for(z=i;z!==null;)o=z,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Yc(i):(c.return=o,z=c);for(;a!==null;)z=a,Kc(a,t,n),a=a.sibling;z=i,Sc=s,Cc=l}qc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,z=a):qc(e,t,n)}}function qc(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Cc||Ac(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!Cc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Os(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&vo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}vo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&gn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Cc||t.flags&512&&jc(t)}catch(e){Ql(t,t.return,e)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function Jc(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Yc(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ac(4,t)}catch(e){Ql(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Ql(t,i,e)}}var a=t.return;try{jc(t)}catch(e){Ql(t,a,e)}break;case 5:var o=t.return;try{jc(t)}catch(e){Ql(t,o,e)}}}catch(e){Ql(t,t.return,e)}if(t===e){z=null;break}var s=t.sibling;if(s!==null){s.return=t.return,z=s;break}z=t.return}}var Xc=Math.ceil,Zc=C.ReactCurrentDispatcher,Qc=C.ReactCurrentOwner,$c=C.ReactCurrentBatchConfig,el=0,tl=null,nl=null,rl=0,il=0,al=Zi(0),ol=0,sl=null,cl=0,ll=0,ul=0,dl=null,fl=null,pl=0,ml=1/0,hl=null,gl=!1,_l=null,vl=null,yl=!1,bl=null,xl=0,Sl=0,Cl=null,wl=-1,Tl=0;function El(){return el&6?xt():wl===-1?wl=xt():wl}function Dl(e){return e.mode&1?el&2&&rl!==0?rl&-rl:Ua.transition===null?(e=Kt,e===0?(e=window.event,e=e===void 0?16:wn(e.type),e):e):(Tl===0&&(Tl=Vt()),Tl):1}function Ol(e,t,n,i){if(50<Sl)throw Sl=0,Cl=null,Error(r(185));Ut(e,n,i),(!(el&2)||e!==tl)&&(e===tl&&(!(el&2)&&(ll|=n),ol===4&&Pl(e,rl)),kl(e,i),n===1&&el===0&&!(t.mode&1)&&(ml=xt()+500,fa&&ga()))}function kl(e,t){var n=e.callbackNode;F(e,t);var r=Rt(e,e===tl?rl:0);if(r===0)n!==null&&vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vt(n),t===1)e.tag===0?ha(Fl.bind(null,e)):ma(Fl.bind(null,e)),Ni(function(){!(el&6)&&ga()}),n=null;else{switch(qt(r)){case 1:n=Ct;break;case 4:n=wt;break;case 16:n=Tt;break;case 536870912:n=Dt;break;default:n=Tt}n=iu(n,Al.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Al(e,t){if(wl=-1,Tl=0,el&6)throw Error(r(327));var n=e.callbackNode;if(Xl()&&e.callbackNode!==n)return null;var i=Rt(e,e===tl?rl:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Ul(e,i);else{t=i;var a=el;el|=2;var o=Vl();(tl!==e||rl!==t)&&(hl=null,ml=xt()+500,zl(e,t));do try{Gl();break}catch(t){Bl(e,t)}while(1);eo(),Zc.current=o,el=a,nl===null?(tl=null,rl=0,t=ol):t=0}if(t!==0){if(t===2&&(a=Bt(e),a!==0&&(i=a,t=jl(e,a))),t===1)throw n=sl,zl(e,0),Pl(e,i),kl(e,xt()),n;if(t===6)Pl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Nl(a)&&(t=Ul(e,i),t===2&&(o=Bt(e),o!==0&&(i=o,t=jl(e,o))),t===1))throw n=sl,zl(e,0),Pl(e,i),kl(e,xt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Jl(e,fl,hl);break;case 3:if(Pl(e,i),(i&130023424)===i&&(t=pl+500-xt(),10<t)){if(Rt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){El(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ai(Jl.bind(null,e,fl,hl),t);break}Jl(e,fl,hl);break;case 4:if(Pl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-jt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=xt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Xc(i/1960))-i,10<i){e.timeoutHandle=Ai(Jl.bind(null,e,fl,hl),i);break}Jl(e,fl,hl);break;case 5:Jl(e,fl,hl);break;default:throw Error(r(329))}}}return kl(e,xt()),e.callbackNode===n?Al.bind(null,e):null}function jl(e,t){var n=dl;return e.current.memoizedState.isDehydrated&&(zl(e,t).flags|=256),e=Ul(e,t),e!==2&&(t=fl,fl=n,t!==null&&Ml(t)),e}function Ml(e){fl===null?fl=e:fl.push.apply(fl,e)}function Nl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Pr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pl(e,t){for(t&=~ul,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function Fl(e){if(el&6)throw Error(r(327));Xl();var t=Rt(e,0);if(!(t&1))return kl(e,xt()),null;var n=Ul(e,t);if(e.tag!==0&&n===2){var i=Bt(e);i!==0&&(t=i,n=jl(e,i))}if(n===1)throw n=sl,zl(e,0),Pl(e,t),kl(e,xt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jl(e,fl,hl),kl(e,xt()),null}function Il(e,t){var n=el;el|=1;try{return e(t)}finally{el=n,el===0&&(ml=xt()+500,fa&&ga())}}function Ll(e){bl!==null&&bl.tag===0&&!(el&6)&&Xl();var t=el;el|=1;var n=$c.transition,r=Kt;try{if($c.transition=null,Kt=1,e)return e()}finally{Kt=r,$c.transition=n,el=t,!(el&6)&&ga()}}function Rl(){il=al.current,Qi(al)}function zl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ji(n)),nl!==null)for(n=nl.return;n!==null;){var r=n;switch(ka(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&oa();break;case 3:To(),Qi(na),Qi(ta),Ao();break;case 5:Do(r);break;case 4:To();break;case 13:Qi(Oo);break;case 19:Qi(Oo);break;case 10:to(r.type._context);break;case 22:case 23:Rl()}n=n.return}if(tl=e,nl=e=lu(e.current,null),rl=il=t,ol=0,sl=null,ul=ll=cl=0,fl=dl=null,ao!==null){for(t=0;t<ao.length;t++)if(n=ao[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}ao=null}return e}function Bl(e,t){do{var n=nl;try{if(eo(),jo.current=ws,Lo){for(var i=Po.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Lo=!1}if(No=0,Io=Fo=Po=null,Ro=!1,zo=0,Qc.current=null,n===null||n.return===null){ol=1,sl=t,nl=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=rl,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Hs(s);if(m!==null){m.flags&=-257,Us(m,s,c,o,t),m.mode&1&&Vs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Vs(o,u,t),Hl();break a}l=Error(r(426))}}else if(Ma&&c.mode&1){var _=Hs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Us(_,s,c,o,t),Ha(Fs(l,c));break a}}o=l=Fs(l,c),ol!==4&&(ol=2),dl===null?dl=[o]:dl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=zs(o,l,t);go(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(vl===null||!vl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Bs(o,c,t);go(o,x);break a}}o=o.return}while(o!==null)}ql(n)}catch(e){t=e,nl===n&&n!==null&&(nl=n=n.return);continue}break}while(1)}function Vl(){var e=Zc.current;return Zc.current=ws,e===null?ws:e}function Hl(){(ol===0||ol===3||ol===2)&&(ol=4),tl===null||!(cl&268435455)&&!(ll&268435455)||Pl(tl,rl)}function Ul(e,t){var n=el;el|=2;var i=Vl();(tl!==e||rl!==t)&&(hl=null,zl(e,t));do try{Wl();break}catch(t){Bl(e,t)}while(1);if(eo(),el=n,Zc.current=i,nl!==null)throw Error(r(261));return tl=null,rl=0,ol}function Wl(){for(;nl!==null;)Kl(nl)}function Gl(){for(;nl!==null&&!yt();)Kl(nl)}function Kl(e){var t=ru(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?ql(e):nl=t,Qc.current=null}function ql(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=xc(n,t),n!==null){n.flags&=32767,nl=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ol=6,nl=null;return}}else if(n=bc(n,t,il),n!==null){nl=n;return}if(t=t.sibling,t!==null){nl=t;return}nl=t=e}while(t!==null);ol===0&&(ol=5)}function Jl(e,t,n){var r=Kt,i=$c.transition;try{$c.transition=null,Kt=1,Yl(e,t,n,r)}finally{$c.transition=i,Kt=r}return null}function Yl(e,t,n,i){do Xl();while(bl!==null);if(el&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Wt(e,o),e===tl&&(nl=tl=null,rl=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||yl||(yl=!0,iu(Tt,function(){return Xl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=$c.transition,$c.transition=null;var s=Kt;Kt=1;var c=el;el|=4,Qc.current=null,Oc(e,n),Uc(n,e),Vr(Oi),vn=!!Di,Oi=Di=null,e.current=n,Gc(n,e,a),bt(),el=c,Kt=s,$c.transition=o}else e.current=n;if(yl&&(yl=!1,bl=e,xl=a),o=e.pendingLanes,o===0&&(vl=null),At(n.stateNode,i),kl(e,xt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(gl)throw gl=!1,e=_l,_l=null,e;return xl&1&&e.tag!==0&&Xl(),o=e.pendingLanes,o&1?e===Cl?Sl++:(Sl=0,Cl=e):Sl=0,ga(),null}function Xl(){if(bl!==null){var e=qt(xl),t=$c.transition,n=Kt;try{if($c.transition=null,Kt=16>e?16:e,bl===null)var i=!1;else{if(e=bl,bl=null,xl=0,el&6)throw Error(r(331));var a=el;for(el|=4,z=e.current;z!==null;){var o=z,s=o.child;if(z.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(z=u;z!==null;){var d=z;switch(d.tag){case 0:case 11:case 15:kc(8,d,o)}var f=d.child;if(f!==null)f.return=d,z=f;else for(;z!==null;){d=z;var p=d.sibling,m=d.return;if(Mc(d),d===u){z=null;break}if(p!==null){p.return=m,z=p;break}z=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}z=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,z=s;else b:for(;z!==null;){if(o=z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:kc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,z=v;break b}z=o.return}}var y=e.current;for(z=y;z!==null;){s=z;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,z=b;else b:for(s=y;z!==null;){if(c=z,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ac(9,c)}}catch(e){Ql(c,c.return,e)}if(c===s){z=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,z=x;break b}z=c.return}}if(el=a,ga(),kt&&typeof kt.onPostCommitFiberRoot==`function`)try{kt.onPostCommitFiberRoot(Ot,e)}catch{}i=!0}return i}finally{Kt=n,$c.transition=t}}return!1}function Zl(e,t,n){t=Fs(n,t),t=zs(e,t,1),e=mo(e,t,1),t=El(),e!==null&&(Ut(e,1,t),kl(e,t))}function Ql(e,t,n){if(e.tag===3)Zl(e,e,n);else for(;t!==null;){if(t.tag===3){Zl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vl===null||!vl.has(r))){e=Fs(n,e),e=Bs(t,e,1),t=mo(t,e,1),e=El(),t!==null&&(Ut(t,1,e),kl(t,e));break}}t=t.return}}function $l(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=El(),e.pingedLanes|=e.suspendedLanes&n,tl===e&&(rl&n)===n&&(ol===4||ol===3&&(rl&130023424)===rl&&500>xt()-pl?zl(e,0):ul|=n),kl(e,t)}function eu(e,t){t===0&&(e.mode&1?(t=It,It<<=1,!(It&130023424)&&(It=4194304)):t=1);var n=El();e=co(e,t),e!==null&&(Ut(e,t,n),kl(e,n))}function tu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eu(e,n)}function nu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),eu(e,n)}var ru=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||na.current)Gs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Gs=!1,mc(e,t,n);Gs=!!(e.flags&131072)}else Gs=!1,Ma&&t.flags&1048576&&Da(t,ba,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;fc(e,t),e=t.pendingProps;var a=ia(t,ta.current);ro(t,n),a=Ho(null,t,i,e,a,n);var o=Uo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,aa(i)?(o=!0,la(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,uo(t),a.updater=As,t.stateNode=a,a._reactInternals=t,Ps(t,i,e,n),t=ec(null,t,i,!0,o,n)):(t.tag=0,Ma&&o&&Oa(t),Ks(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(fc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=cu(i),e=Os(i,e),a){case 0:t=Qs(null,t,i,e,n);break a;case 1:t=$s(null,t,i,e,n);break a;case 11:t=qs(null,t,i,e,n);break a;case 14:t=Js(null,t,i,Os(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Os(i,a),Qs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Os(i,a),$s(e,t,i,a,n);case 3:a:{if(tc(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,fo(e,t),_o(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Fs(Error(r(423)),t),t=nc(e,t,i,n,a);break a}else if(i!==a){a=Fs(Error(r(424)),t),t=nc(e,t,i,n,a);break a}else for(ja=Ii(t.stateNode.containerInfo.firstChild),Aa=t,Ma=!0,Na=null,n=Ya(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Va(),i===a){t=pc(e,t,n);break a}Ks(e,t,i,n)}t=t.child}return t;case 5:return Eo(t),e===null&&La(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,ki(i,a)?s=null:o!==null&&ki(i,o)&&(t.flags|=32),Zs(e,t),Ks(e,t,s,n),t.child;case 6:return e===null&&La(t),null;case 13:return ac(e,t,n);case 4:return wo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ja(t,null,i,n):Ks(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Os(i,a),qs(e,t,i,a,n);case 7:return Ks(e,t,t.pendingProps,n),t.child;case 8:return Ks(e,t,t.pendingProps.children,n),t.child;case 12:return Ks(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,$i(Xa,i._currentValue),i._currentValue=s,o!==null)if(Pr(o.value,s)){if(o.children===a.children&&!na.current){t=pc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=po(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),no(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),no(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ks(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,ro(t,n),a=io(a),i=i(a),t.flags|=1,Ks(e,t,i,n),t.child;case 14:return i=t.type,a=Os(i,t.pendingProps),a=Os(i.type,a),Js(e,t,i,a,n);case 15:return Ys(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Os(i,a),fc(e,t),t.tag=1,aa(i)?(e=!0,la(t)):e=!1,ro(t,n),Ms(t,i,a),Ps(t,i,a,n),ec(null,t,i,!0,e,n);case 19:return dc(e,t,n);case 22:return Xs(e,t,n)}throw Error(r(156,t.tag))};function iu(e,t){return _t(e,t)}function au(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ou(e,t,n,r){return new au(e,t,n,r)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cu(e){if(typeof e==`function`)return+!!su(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===j)return 14}return 2}function lu(e,t){var n=e.alternate;return n===null?(n=ou(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)su(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return du(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=ou(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case A:return e=ou(13,n,t,a),e.elementType=A,e.lanes=o,e;case ne:return e=ou(19,n,t,a),e.elementType=ne,e.lanes=o,e;case ie:return fu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ee:s=10;break a;case te:s=9;break a;case k:s=11;break a;case j:s=14;break a;case re:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=ou(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function du(e,t,n,r){return e=ou(7,e,r,t),e.lanes=n,e}function fu(e,t,n,r){return e=ou(22,e,r,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function pu(e,t,n){return e=ou(6,e,null,t),e.lanes=n,e}function mu(e,t,n){return t=ou(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gu(e,t,n,r,i,a,o,s,c){return e=new hu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=ou(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},uo(a),e}function _u(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function vu(e){if(!e)return ea;e=e._reactInternals;a:{if(dt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(aa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(aa(n))return ca(e,n,t)}return t}function yu(e,t,n,r,i,a,o,s,c){return e=gu(n,r,!0,e,i,a,o,s,c),e.context=vu(null),n=e.current,r=El(),i=Dl(n),a=po(r,i),a.callback=t??null,mo(n,a,i),e.current.lanes=i,Ut(e,i,r),kl(e,r),e}function bu(e,t,n,r){var i=t.current,a=El(),o=Dl(i);return n=vu(n),t.context===null?t.context=n:t.pendingContext=n,t=po(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=mo(i,t,o),e!==null&&(Ol(e,i,o,a),ho(e,i,o)),o}function xu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Su(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cu(e,t){Su(e,t),(e=e.alternate)&&Su(e,t)}function wu(){return null}var Tu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Eu(e){this._internalRoot=e}Du.prototype.render=Eu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));bu(e,t,null,null)},Du.prototype.unmount=Eu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ll(function(){bu(null,e,null,null)}),t[Vi]=null}};function Du(e){this._internalRoot=e}Du.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sn.length&&t!==0&&t<sn[n].priority;n++);sn.splice(n,0,e),n===0&&fn(e)}};function Ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Au(){}function ju(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=xu(o);a.call(e)}}var o=yu(t,r,e,0,null,!1,!1,``,Au);return e._reactRootContainer=o,e[Vi]=o.current,hi(e.nodeType===8?e.parentNode:e),Ll(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=xu(c);s.call(e)}}var c=gu(e,0,!1,null,null,!1,!1,``,Au);return e._reactRootContainer=c,e[Vi]=c.current,hi(e.nodeType===8?e.parentNode:e),Ll(function(){bu(t,c,n,r)}),c}function Mu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=xu(o);s.call(e)}}bu(t,o,e,i)}else o=ju(n,t,e,i,r);return xu(o)}Jt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lt(t.pendingLanes);n!==0&&(Gt(t,n|1),kl(t,xt()),!(el&6)&&(ml=xt()+500,ga()))}break;case 13:Ll(function(){var t=co(e,1);t!==null&&Ol(t,e,1,El())}),Cu(e,1)}},Yt=function(e){if(e.tag===13){var t=co(e,134217728);t!==null&&Ol(t,e,134217728,El()),Cu(e,134217728)}},Xt=function(e){if(e.tag===13){var t=Dl(e),n=co(e,t);n!==null&&Ol(n,e,t,El()),Cu(e,t)}},Zt=function(){return Kt},Qt=function(e,t){var n=Kt;try{return Kt=e,t()}finally{Kt=n}},We=function(e,t,n){switch(t){case`input`:if(Se(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ji(i);if(!a)throw Error(r(90));_e(i),Se(i,a)}}}break;case`textarea`:Oe(e,n);break;case`select`:t=n.value,t!=null&&P(e,!!n.multiple,t,!1)}},Xe=Il,Ze=Ll;var Nu={usingClientEntryPoint:!1,Events:[Ki,qi,Ji,Je,Ye,Il]},Pu={findFiberByHostInstance:Gi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Fu={bundleType:Pu.bundleType,version:Pu.version,rendererPackageName:Pu.rendererPackageName,rendererConfig:Pu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ht(e),e===null?null:e.stateNode},findFiberByHostInstance:Pu.findFiberByHostInstance||wu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Iu.isDisabled&&Iu.supportsFiber)try{Ot=Iu.inject(Fu),kt=Iu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Nu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ou(t))throw Error(r(200));return _u(e,t,null,n)},e.createRoot=function(e,t){if(!Ou(e))throw Error(r(299));var n=!1,i=``,a=Tu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=gu(e,1,!1,null,null,n,!1,i,a),e[Vi]=t.current,hi(e.nodeType===8?e.parentNode:e),new Eu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ht(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Ll(e)},e.hydrate=function(e,t,n){if(!ku(t))throw Error(r(200));return Mu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Ou(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=Tu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=yu(t,null,e,1,n??null,a,!1,o,s),e[Vi]=t.current,hi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Du(t)},e.render=function(e,t,n){if(!ku(t))throw Error(r(200));return Mu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!ku(e))throw Error(r(40));return e._reactRootContainer?(Ll(function(){Mu(null,null,e,!1,function(){e._reactRootContainer=null,e[Vi]=null})}),!0):!1},e.unstable_batchedUpdates=Il,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!ku(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Mu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),_=`commitPendingSession`,v=new WeakMap;function y(e,t){let n=v.get(e);n||(n=new Set,v.set(e,n)),n.add(t)}function b(e){return Object.getOwnPropertyDescriptor(e,_)!==void 0}function x(e){if(b(e))return;let t=e[_];Object.defineProperty(e,_,{value:()=>{if(typeof t==`function`)try{t.call(e)}catch{}C(e)},configurable:!0,enumerable:!1,writable:!0})}function S(e,t,n={}){let r=n.delayMs,i=typeof r==`function`?r:()=>r??0,a=n.maxWaitMs,o=null,s=null,c=!1,l=()=>{o!==null&&(clearTimeout(o),o=null),s!==null&&(clearTimeout(s),s=null)},u=()=>{l(),c&&(c=!1,t())},d={notify(){c=!0,o!==null&&clearTimeout(o),o=setTimeout(u,Math.max(0,i())),a!==void 0&&s===null&&(s=setTimeout(u,Math.max(0,a)))},flush(){if(!c){l();return}try{u()}catch(e){console.warn(`[session-notifier] a committed session-changed dispatch threw`,e)}}};return y(e,d),x(e),d}function C(e){let t=v.get(e);if(t)for(let e of[...t])e.flush()}var w=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}},T=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}},E=function(){return null};E.isRequired=E;var D=()=>E,O={array:E,bigint:E,bool:E,func:E,number:E,object:E,string:E,symbol:E,any:E,element:E,elementType:E,node:E,arrayOf:D,instanceOf:D,objectOf:D,oneOf:D,oneOfType:D,shape:D,exact:D,checkPropTypes:()=>{},resetWarningCache:()=>{}};O.PropTypes=O;var ee=Object.prototype;function te(e){return typeof e==`object`&&!!e}function k(e){return Array.isArray(e)?e:typeof e==`number`?[e]:e.replace(/\[(\d+)\]/g,`.$1`).split(`.`).filter(Boolean)}function A(e){let t=[];for(let n of e??[])Array.isArray(n)?t.push(...n):t.push(n);return t}function ne(e,t,n){if(!Array.isArray(t)&&e!=null&&Object.prototype.hasOwnProperty.call(Object(e),t)){let r=e[t];return r===void 0?n:r}let r=e;for(let e of k(t)){if(r==null)return n;r=r[e]}return r===void 0?n:r}function j(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:!te(e)||Object.keys(e).length===0}function re(e,t,n){let r=n?.(e,t);if(r!==void 0)return!!r;if(Object.is(e,t))return!0;if(!te(e)||!te(t))return!1;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>re(e,t[r],n));let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(r=>ee.hasOwnProperty.call(t,r)&&re(e[r],t[r],n))}function ie(e,t){return re(e,t)}function ae(e,t){let n=t??(e=>e);return Array.from({length:Math.max(0,e)},(e,t)=>n(t))}function oe(...e){let t=Math.max(0,...e.map(e=>e.length));return Array.from({length:t},(t,n)=>e.map(e=>e[n]))}function M(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var se=`$$material`;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}function le(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ue(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var de=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(ue(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=le(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),fe=`-ms-`,pe=`-moz-`,N=`-webkit-`,me=`comm`,he=`rule`,ge=`decl`,_e=`@import`,ve=`@keyframes`,ye=`@layer`,be=Math.abs,xe=String.fromCharCode,Se=Object.assign;function Ce(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function we(e){return e.trim()}function Te(e,t){return(e=t.exec(e))?e[0]:e}function P(e,t,n){return e.replace(t,n)}function Ee(e,t){return e.indexOf(t)}function De(e,t){return e.charCodeAt(t)|0}function Oe(e,t,n){return e.slice(t,n)}function ke(e){return e.length}function Ae(e){return e.length}function je(e,t){return t.push(e),e}function Me(e,t){return e.map(t).join(``)}var Ne=1,Pe=1,Fe=0,Ie=0,Le=0,Re=``;function ze(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Ne,column:Pe,length:o,return:``}}function Be(e,t){return Se(ze(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Ve(){return Le}function He(){return Le=Ie>0?De(Re,--Ie):0,Pe--,Le===10&&(Pe=1,Ne--),Le}function Ue(){return Le=Ie<Fe?De(Re,Ie++):0,Pe++,Le===10&&(Pe=1,Ne++),Le}function We(){return De(Re,Ie)}function Ge(){return Ie}function Ke(e,t){return Oe(Re,e,t)}function qe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Je(e){return Ne=Pe=1,Fe=ke(Re=e),Ie=0,[]}function Ye(e){return Re=``,e}function Xe(e){return we(Ke(Ie-1,$e(e===91?e+2:e===40?e+1:e)))}function Ze(e){for(;(Le=We())&&Le<33;)Ue();return qe(e)>2||qe(Le)>3?``:` `}function Qe(e,t){for(;--t&&Ue()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return Ke(e,Ge()+(t<6&&We()==32&&Ue()==32))}function $e(e){for(;Ue();)switch(Le){case e:return Ie;case 34:case 39:e!==34&&e!==39&&$e(Le);break;case 40:e===41&&$e(e);break;case 92:Ue();break}return Ie}function et(e,t){for(;Ue()&&e+Le!==57&&!(e+Le===84&&We()===47););return`/*`+Ke(t,Ie-1)+`*`+xe(e===47?e:Ue())}function tt(e){for(;!qe(We());)Ue();return Ke(e,Ie)}function nt(e){return Ye(rt(``,null,null,null,[``],e=Je(e),0,[0],e))}function rt(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Ue()){case 40:if(m!=108&&De(C,d-1)==58){Ee(C+=P(Xe(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Xe(v);break;case 9:case 10:case 13:case 32:C+=Ze(m);break;case 92:C+=Qe(Ge()-1,7);continue;case 47:switch(We()){case 42:case 47:je(at(et(Ue(),Ge()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=ke(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=P(C,/\f/g,``)),p>0&&ke(C)-d&&je(p>32?ot(C+`;`,r,n,d-1):ot(P(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(je(S=it(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)rt(C,t,S,S,b,a,d,s,x);else switch(f===99&&De(C,3)===110?100:f){case 100:case 108:case 109:case 115:rt(e,S,S,r&&je(it(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:rt(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+ke(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&He()==125)continue}switch(C+=xe(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(ke(C)-1)*_,_=1;break;case 64:We()===45&&(C+=Xe(Ue())),f=We(),u=d=ke(y=C+=tt(Ge())),v++;break;case 45:m===45&&ke(C)==2&&(h=0)}}return a}function it(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Ae(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Oe(e,d+1,d=be(h=o[m])),y=e;_<p;++_)(y=we(h>0?f[_]+` `+v:P(v,/&\f/g,f[_])))&&(c[g++]=y);return ze(e,t,n,i===0?he:s,c,l,u)}function at(e,t,n){return ze(e,t,n,me,xe(Ve()),Oe(e,2,-2),0)}function ot(e,t,n,r){return ze(e,t,n,ge,Oe(e,0,r),Oe(e,r+1,-1),r)}function st(e,t){for(var n=``,r=Ae(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function ct(e,t,n,r){switch(e.type){case ye:if(e.children.length)break;case _e:case ge:return e.return=e.return||e.value;case me:return``;case ve:return e.return=e.value+`{`+st(e.children,r)+`}`;case he:e.value=e.props.join(`,`)}return ke(n=st(e.children,r))?e.return=e.value+`{`+n+`}`:``}function lt(e){var t=Ae(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function ut(e){return function(t){t.root||(t=t.return)&&e(t)}}function dt(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ft=function(e,t,n){for(var r=0,i=0;r=i,i=We(),r===38&&i===12&&(t[n]=1),!qe(i);)Ue();return Ke(e,Ie)},pt=function(e,t){var n=-1,r=44;do switch(qe(r)){case 0:r===38&&We()===12&&(t[n]=1),e[n]+=ft(Ie-1,t,n);break;case 2:e[n]+=Xe(r);break;case 4:if(r===44){e[++n]=We()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=xe(r)}while(r=Ue());return e},mt=function(e,t){return Ye(pt(Je(e),t))},ht=new WeakMap,gt=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ht.get(n))&&!r){ht.set(e,!0);for(var i=[],a=mt(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},_t=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function vt(e,t){switch(Ce(e,t)){case 5103:return N+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+pe+e+fe+e+e;case 6828:case 4268:return N+e+fe+e+e;case 6165:return N+e+fe+`flex-`+e+e;case 5187:return N+e+P(e,/(\w+).+(:[^]+)/,N+`box-$1$2`+fe+`flex-$1$2`)+e;case 5443:return N+e+fe+`flex-item-`+P(e,/flex-|-self/,``)+e;case 4675:return N+e+fe+`flex-line-pack`+P(e,/align-content|flex-|-self/,``)+e;case 5548:return N+e+fe+P(e,`shrink`,`negative`)+e;case 5292:return N+e+fe+P(e,`basis`,`preferred-size`)+e;case 6060:return N+`box-`+P(e,`-grow`,``)+N+e+fe+P(e,`grow`,`positive`)+e;case 4554:return N+P(e,/([^-])(transform)/g,`$1`+N+`$2`)+e;case 6187:return P(P(P(e,/(zoom-|grab)/,N+`$1`),/(image-set)/,N+`$1`),e,``)+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,N+`box-pack:$3`+fe+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+N+e+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,N+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ke(e)-1-t>6)switch(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return P(e,/(.+:)(.+)-([^]+)/,`$1`+N+`$2-$3$1`+pe+(De(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Ee(e,`stretch`)?vt(P(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,ke(e)-3-(~Ee(e,`!important`)&&10))){case 107:return P(e,`:`,`:`+N)+e;case 101:return P(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+N+(De(e,14)===45?`inline-`:``)+`box$3$1`+N+`$2$3$1`+fe+`$2box$3`)+e}break;case 5936:switch(De(e,t+11)){case 114:return N+e+fe+P(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return N+e+fe+P(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return N+e+fe+P(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return N+e+fe+e+e}return e}var yt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ge:e.return=vt(e.value,e.length);break;case ve:return st([Be(e,{value:P(e.value,`@`,`@`+N)})],r);case he:if(e.length)return Me(e.props,function(t){switch(Te(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return st([Be(e,{props:[P(t,/:(read-\w+)/,`:`+pe+`$1`)]})],r);case`::placeholder`:return st([Be(e,{props:[P(t,/:(plac\w+)/,`:`+N+`input-$1`)]}),Be(e,{props:[P(t,/:(plac\w+)/,`:`+pe+`$1`)]}),Be(e,{props:[P(t,/:(plac\w+)/,fe+`input-$1`)]})],r)}return``})}}],bt=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||yt,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[gt,_t],l,u=[ct,ut(function(e){l.insert(e)})],d=lt(c.concat(r,u)),f=function(e){return st(nt(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new de({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},xt=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),St=o(((e,t)=>{t.exports=xt()})),Ct=o(((e,t)=>{var n=St(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function wt(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Tt=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Et=function(e,t,n){Tt(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Dt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ot={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kt=/[A-Z]|^ms/g,At=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jt=function(e){return e.charCodeAt(1)===45},Mt=function(e){return e!=null&&typeof e!=`boolean`},Nt=dt(function(e){return jt(e)?e:e.replace(kt,`-$&`).toLowerCase()}),Pt=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(At,function(e,t,n){return Rt={name:t,styles:n,next:Rt},t})}return Ot[e]!==1&&!jt(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Ft(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Rt={name:i.name,styles:i.styles,next:Rt},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Rt={name:o.name,styles:o.styles,next:Rt},o=o.next;return a.styles+`;`}return It(e,t,n);case`function`:if(e!==void 0){var s=Rt,c=n(e);return Rt=s,Ft(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function It(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ft(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Mt(s)&&(r+=Nt(a)+`:`+Pt(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Mt(o[c])&&(r+=Nt(a)+`:`+Pt(a,o[c])+`;`);else{var l=Ft(e,t,o);switch(a){case`animation`:case`animationName`:r+=Nt(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Lt=/label:\s*([^\s;{]+)\s*(;|$)/g,Rt;function zt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Rt=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Ft(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Ft(n,t,e[o]),r&&(i+=a[o]);Lt.lastIndex=0;for(var s=``,c;(c=Lt.exec(i))!==null;)s+=`-`+c[1];return{name:Dt(i)+s,styles:i,next:Rt}}var F=l(d()),Bt=function(e){return e()},Vt=F.useInsertionEffect?F.useInsertionEffect:!1,Ht=Vt||Bt,Ut=Vt||F.useLayoutEffect,Wt=F.createContext(typeof HTMLElement<`u`?bt({key:`css`}):null),Gt=Wt.Provider,Kt=function(e){return(0,F.forwardRef)(function(t,n){return e(t,(0,F.useContext)(Wt),n)})},qt=F.createContext({}),Jt={}.hasOwnProperty,Yt=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Xt=function(e,t){var n={};for(var r in t)Jt.call(t,r)&&(n[r]=t[r]);return n[Yt]=e,n},Zt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Tt(t,n,r),Ht(function(){return Et(t,n,r)}),null},Qt=Kt(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Yt],a=[r],o=``;typeof e.className==`string`?o=wt(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=zt(a,void 0,F.useContext(qt));o+=t.key+`-`+s.name;var c={};for(var l in e)Jt.call(e,l)&&l!==`css`&&l!==Yt&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),F.createElement(F.Fragment,null,F.createElement(Zt,{cache:t,serialized:s,isStringTag:typeof i==`string`}),F.createElement(i,c))});Ct();var $t=function(e,t){var n=arguments;if(t==null||!Jt.call(t,`css`))return F.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Qt,i[1]=Xt(e,t);for(var a=2;a<r;a++)i[a]=n[a];return F.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})($t||={});var en=Kt(function(e,t){var n=e.styles,r=zt([n],void 0,F.useContext(qt)),i=F.useRef();return Ut(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Ut(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&Et(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function tn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return zt(t)}function nn(){var e=tn.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var rn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,an=dt(function(e){return rn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),on=function(e){return e!==`theme`},sn=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?an:on},cn=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},ln=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Tt(t,n,r),Ht(function(){return Et(t,n,r)}),null},un=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=cn(t,n,r),c=s||sn(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Kt(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=F.useContext(qt)}typeof e.className==`string`?a=wt(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=zt(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?sn(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),F.createElement(F.Fragment,null,F.createElement(ln,{cache:t,serialized:m,isStringTag:typeof r==`string`}),F.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,ce({},n,r,{shouldForwardProp:cn(h,r,!0)})).apply(void 0,d)},h}},dn=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),fn=un.bind(null);dn.forEach(function(e){fn[e]=fn(e)});var pn=o((e=>{var t=d(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),I=o(((e,t)=>{t.exports=pn()}))(),mn=new Map,hn={insert:void 0},gn=(e,t)=>{let n=bt(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},_n;if(typeof document==`object`&&(_n=document.querySelector(`[name="emotion-insertion-point"]`),!_n)){_n=document.createElement(`meta`),_n.setAttribute(`name`,`emotion-insertion-point`),_n.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(_n)}function vn(e,t){if(e||t){class n extends de{insert(e,t){return hn.insert?hn.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=_n),super.insert(e,t))}}let r=gn({key:`css`,insertionPoint:e?_n:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function yn(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=F.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&mn.has(e))return mn.get(e);let r=vn(t,n);return mn.set(e,r),r},[t,n]);return i?(0,I.jsx)(Gt,{value:i,children:r}):r}function bn(e){return e==null||Object.keys(e).length===0}function xn(e){let{styles:t,defaultTheme:n={}}=e;return(0,I.jsx)(en,{styles:typeof t==`function`?e=>t(bn(e)?n:e):t})}function Sn(e,t){return fn(e,t)}function Cn(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var wn=[];function Tn(e){return wn[0]=e,zt(wn)}var En=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Dn=o(((e,t)=>{t.exports=En()}))();function On(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function kn(e){if(F.isValidElement(e)||(0,Dn.isValidElementType)(e)||!On(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=kn(e[n])}),t}function An(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return On(e)&&On(t)&&Object.keys(t).forEach(i=>{F.isValidElement(t[i])||(0,Dn.isValidElementType)(t[i])?r[i]=t[i]:On(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&On(e[i])?r[i]=An(e[i],t[i],n):n.clone?r[i]=On(t[i])?kn(t[i]):t[i]:r[i]=t[i]}),r}var jn=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Mn(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=jn(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function Nn(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function Pn(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Fn(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function In(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Ln={borderRadius:4};function Rn(e,t){return t?An(e,t,{clone:!1}):e}var zn={xs:0,sm:600,md:900,lg:1200,xl:1536},Bn={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${zn[e]}px)`},Vn={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:zn[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Hn(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Bn;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Bn;return Object.keys(t).reduce((i,a)=>{if(Pn(e.keys,a)){let e=Fn(r.containerQueries?r:Vn,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||zn).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function Un(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function Wn(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Gn(e){if(typeof e!=`string`)throw Error(M(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kn(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function qn(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:Kn(e,n)||r,t&&(i=t(i,r,e)),i}function Jn(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=Kn(o,r)||{};return Hn(e,a,e=>{let r=qn(s,i,e);return e===r&&typeof e==`string`&&(r=qn(s,i,`${t}${e==="default"?``:Gn(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Yn(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Xn={m:`margin`,p:`padding`},Zn={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Qn={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},$n=Yn(e=>{if(e.length>2)if(Qn[e])e=Qn[e];else return[e];let[t,n]=e.split(``),r=Xn[t],i=Zn[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),er=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],tr=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],nr=[...er,...tr];function rr(e,t,n,r){let i=Kn(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function ir(e){return rr(e,`spacing`,8,`spacing`)}function ar(e,t){return typeof t==`string`||t==null?t:e(t)}function or(e,t){return n=>e.reduce((e,r)=>(e[r]=ar(t,n),e),{})}function sr(e,t,n,r){if(!t.includes(n))return null;let i=or($n(n),r),a=e[n];return Hn(e,a,i)}function cr(e,t){let n=ir(e.theme);return Object.keys(e).map(r=>sr(e,t,r,n)).reduce(Rn,{})}function lr(e){return cr(e,er)}lr.propTypes={},lr.filterProps=er;function ur(e){return cr(e,tr)}ur.propTypes={},ur.filterProps=tr;function dr(e){return cr(e,nr)}dr.propTypes={},dr.filterProps=nr;function fr(e=8,t=ir({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function pr(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Rn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function mr(e){return typeof e==`number`?`${e}px solid`:e}function hr(e,t){return Jn({prop:e,themeKey:`borders`,transform:t})}var gr=hr(`border`,mr),_r=hr(`borderTop`,mr),vr=hr(`borderRight`,mr),yr=hr(`borderBottom`,mr),br=hr(`borderLeft`,mr),xr=hr(`borderColor`),Sr=hr(`borderTopColor`),Cr=hr(`borderRightColor`),wr=hr(`borderBottomColor`),Tr=hr(`borderLeftColor`),Er=hr(`outline`,mr),Dr=hr(`outlineColor`),Or=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=rr(e.theme,`shape.borderRadius`,4,`borderRadius`);return Hn(e,e.borderRadius,e=>({borderRadius:ar(t,e)}))}return null};Or.propTypes={},Or.filterProps=[`borderRadius`],pr(gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Or,Er,Dr);var kr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=rr(e.theme,`spacing`,8,`gap`);return Hn(e,e.gap,e=>({gap:ar(t,e)}))}return null};kr.propTypes={},kr.filterProps=[`gap`];var Ar=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=rr(e.theme,`spacing`,8,`columnGap`);return Hn(e,e.columnGap,e=>({columnGap:ar(t,e)}))}return null};Ar.propTypes={},Ar.filterProps=[`columnGap`];var jr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=rr(e.theme,`spacing`,8,`rowGap`);return Hn(e,e.rowGap,e=>({rowGap:ar(t,e)}))}return null};jr.propTypes={},jr.filterProps=[`rowGap`],pr(kr,Ar,jr,Jn({prop:`gridColumn`}),Jn({prop:`gridRow`}),Jn({prop:`gridAutoFlow`}),Jn({prop:`gridAutoColumns`}),Jn({prop:`gridAutoRows`}),Jn({prop:`gridTemplateColumns`}),Jn({prop:`gridTemplateRows`}),Jn({prop:`gridTemplateAreas`}),Jn({prop:`gridArea`}));function Mr(e,t){return t===`grey`?t:e}pr(Jn({prop:`color`,themeKey:`palette`,transform:Mr}),Jn({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Mr}),Jn({prop:`backgroundColor`,themeKey:`palette`,transform:Mr}));function Nr(e){return e<=1&&e!==0?`${e*100}%`:e}var Pr=Jn({prop:`width`,transform:Nr}),Fr=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Hn(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||zn[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Nr(t)}}):null;Fr.filterProps=[`maxWidth`];var Ir=Jn({prop:`minWidth`,transform:Nr}),Lr=Jn({prop:`height`,transform:Nr}),Rr=Jn({prop:`maxHeight`,transform:Nr}),zr=Jn({prop:`minHeight`,transform:Nr});Jn({prop:`size`,cssProperty:`width`,transform:Nr}),Jn({prop:`size`,cssProperty:`height`,transform:Nr}),pr(Pr,Fr,Ir,Lr,Rr,zr,Jn({prop:`boxSizing`}));var Br={border:{themeKey:`borders`,transform:mr},borderTop:{themeKey:`borders`,transform:mr},borderRight:{themeKey:`borders`,transform:mr},borderBottom:{themeKey:`borders`,transform:mr},borderLeft:{themeKey:`borders`,transform:mr},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:mr},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Or},color:{themeKey:`palette`,transform:Mr},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Mr},backgroundColor:{themeKey:`palette`,transform:Mr},p:{style:ur},pt:{style:ur},pr:{style:ur},pb:{style:ur},pl:{style:ur},px:{style:ur},py:{style:ur},padding:{style:ur},paddingTop:{style:ur},paddingRight:{style:ur},paddingBottom:{style:ur},paddingLeft:{style:ur},paddingX:{style:ur},paddingY:{style:ur},paddingInline:{style:ur},paddingInlineStart:{style:ur},paddingInlineEnd:{style:ur},paddingBlock:{style:ur},paddingBlockStart:{style:ur},paddingBlockEnd:{style:ur},m:{style:lr},mt:{style:lr},mr:{style:lr},mb:{style:lr},ml:{style:lr},mx:{style:lr},my:{style:lr},margin:{style:lr},marginTop:{style:lr},marginRight:{style:lr},marginBottom:{style:lr},marginLeft:{style:lr},marginX:{style:lr},marginY:{style:lr},marginInline:{style:lr},marginInlineStart:{style:lr},marginInlineEnd:{style:lr},marginBlock:{style:lr},marginBlockStart:{style:lr},marginBlockEnd:{style:lr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:kr},rowGap:{style:jr},columnGap:{style:Ar},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Nr},maxWidth:{style:Fr},minWidth:{transform:Nr},height:{transform:Nr},maxHeight:{transform:Nr},minHeight:{transform:Nr},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function Vr(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function Hr(e,t){return typeof e==`function`?e(t):e}function Ur(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=Kn(n,s)||{};return l?l(i):Hn(i,t,t=>{let n=qn(u,c,t);return t===n&&typeof t==`string`&&(n=qn(u,c,`${e}${t==="default"?``:Gn(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??Br;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=Un(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Hr(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=Rn(l,e(n,a,i,o));else{let e=Hn({theme:i},a,e=>({[n]:e}));Vr(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=Rn(l,e)}else l=Rn(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Nn(i,Wn(c,l))}:Nn(i,Wn(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var Wr=Ur();Wr.filterProps=[`sx`];function Gr(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Kr(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Mn(n),c=fr(i),l=An({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Ln,...a}},o);return l=In(l),l.applyStyles=Gr,l=t.reduce((e,t)=>An(e,t),l),l.unstable_sxConfig={...Br,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Wr({sx:e,theme:this})},l}function qr(e){return Object.keys(e).length===0}function Jr(e=null){let t=F.useContext(qt);return!t||qr(t)?e:t}var Yr=Kr();function Xr(e=Yr){return Jr(e)}function Zr(e){let t=Tn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Qr({styles:e,themeId:t,defaultTheme:n={}}){let r=Xr(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Zr(typeof e==`function`?e(i):e)):Zr(a)),(0,I.jsx)(xn,{styles:a})}var $r=e=>e,ei=(()=>{let e=$r;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$r}}})();function ti(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ti(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ni(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ti(e))&&(r&&(r+=` `),r+=t);return r}var ri={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function ii(e,t,n=`Mui`){let r=ri[t];return r?`${n}-${r}`:`${ei.generate(e)}-${t}`}function ai(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=ii(e,t,n)}),r}function oi(e){let{variants:t,...n}=e,r={variants:t,style:Tn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Tn(e.style))}),r}var si=Kr();function ci(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function li(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ui(e){return e?(t,n)=>n[e]:null}function di(e,t,n){e.theme=hi(e.theme)?n:e.theme[t]||e.theme}function fi(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>fi(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?li(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?li(Tn(i),n):i}return pi(e,r.variants,[t],n)}return r?.isProcessed?n?li(Tn(r.style),n):r.style:n?li(Tn(r),n):r}function pi(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?li(Tn(o.style(i)),r):o.style(i))):n.push(r?li(Tn(o.style),r):o.style)}return n}function mi(e={}){let{themeId:t,defaultTheme:n=si,rootShouldForwardProp:r=ci,slotShouldForwardProp:i=ci}=e;function a(e){di(e,t,n)}return(e,t={})=>{Cn(e,e=>e.filter(e=>e!==Wr));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=ui(_i(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=ci;o===`Root`||o===`root`?m=r:o?m=i:gi(e)&&(m=void 0);let h=Sn(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return fi(t,e,t.theme.modularCssLayers?d:void 0)};if(On(e)){let t=oi(e);return function(e){return t.variants?fi(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?li(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=fi(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?pi(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Wr),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function hi(e){for(let t in e)return!1;return!0}function gi(e){return typeof e==`string`&&e.charCodeAt(0)>96}function _i(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function vi(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=vi(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=ni(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var yi=typeof window<`u`?F.useLayoutEffect:F.useEffect;function bi(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function xi(e,t=0,n=1){return bi(e,t,n)}function Si(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function Ci(e){if(e.type)return e;if(e.charAt(0)===`#`)return Ci(Si(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(M(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(M(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var wi=e=>{let t=Ci(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Ti=(e,t)=>{try{return wi(e)}catch{return e}};function Ei(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function Di(e){e=Ci(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Ei({type:s,values:c})}function Oi(e){e=Ci(e);let t=e.type===`hsl`||e.type===`hsla`?Ci(Di(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ki(e,t){let n=Oi(e),r=Oi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ai(e,t){return e=Ci(e),t=xi(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Ei(e)}function ji(e,t,n){try{return Ai(e,t)}catch{return e}}function Mi(e,t){if(e=Ci(e),t=xi(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ei(e)}function Ni(e,t,n){try{return Mi(e,t)}catch{return e}}function Pi(e,t){if(e=Ci(e),t=xi(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ei(e)}function Fi(e,t,n){try{return Pi(e,t)}catch{return e}}function Ii(e,t=.15){return Oi(e)>.5?Mi(e,t):Pi(e,t)}function Li(e,t,n){try{return Ii(e,t)}catch{return e}}var Ri=F.createContext(null);function zi(){return F.useContext(Ri)}var Bi=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Vi(e,t){return typeof t==`function`?t(e):{...e,...t}}function Hi(e){let{children:t,theme:n}=e,r=zi(),i=F.useMemo(()=>{let e=r===null?{...n}:Vi(r,n);return e!=null&&(e[Bi]=r!==null),e},[n,r]);return(0,I.jsx)(Ri.Provider,{value:i,children:t})}var Ui=F.createContext();function Wi({value:e,...t}){return(0,I.jsx)(Ui.Provider,{value:e??!0,...t})}var Gi=()=>F.useContext(Ui)??!1,Ki=F.createContext(void 0);function qi({value:e,children:t}){return(0,I.jsx)(Ki.Provider,{value:e,children:t})}function Ji(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?vi(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?vi(i,r,t.components.mergeClassNameAndStyle):r}function Yi({props:e,name:t}){return Ji({props:e,name:t,theme:{components:F.useContext(Ki)}})}var Xi=0;function Zi(e){let[t,n]=F.useState(e),r=e||t;return F.useEffect(()=>{t??(Xi+=1,n(`mui-${Xi}`))},[t]),r}var Qi={...F}.useId;function $i(e){if(Qi!==void 0){let t=Qi();return e??t}return Zi(e)}function ea(e){let t=Jr(),n=$i()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,yi(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,I.jsx)(Qr,{styles:i}):null}var ta={};function na(e,t,n,r=!1){return F.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function ra(e){let{children:t,theme:n,themeId:r}=e,i=Jr(ta),a=zi()||ta,o=na(r,i,n),s=na(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=ea(o);return(0,I.jsx)(Hi,{theme:s,children:(0,I.jsx)(qt.Provider,{value:o,children:(0,I.jsx)(Wi,{value:c,children:(0,I.jsxs)(qi,{value:r?o[r].components:o.components,children:[l,t]})})})})}var ia={theme:void 0};function aa(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(ia.theme=r.theme,i=oi(e(ia)),t=i,n=r.theme),i}}var oa=`mode`,sa=`color-scheme`,ca=`data-color-scheme`;function la(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=oa,colorSchemeStorageKey:a=sa,attribute:o=ca,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
8
+ `+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Rs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var zs=typeof WeakMap==`function`?WeakMap:Map;function Bs(e,t,n){n=mo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_l||(_l=!0,vl=r),Rs(e,t)},n}function Vs(e,t,n){n=mo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Rs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Rs(e,t),typeof r!=`function`&&(yl===null?yl=new Set([this]):yl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Hs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zs;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=eu.bind(null,e,t,n),t.then(e,e))}function Us(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Ws(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mo(-1,1),t.tag=2,ho(n,t,1))),n.lanes|=1),e)}var Gs=C.ReactCurrentOwner,Ks=!1;function qs(e,t,n,r){t.child=e===null?Xa(t,null,n,r):Ya(t,e.child,n,r)}function Js(e,t,n,r,i){n=n.render;var a=t.ref;return io(t,i),r=Uo(e,t,n,r,a,i),n=Wo(),e!==null&&!Ks?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mc(e,t,i)):(Na&&n&&ka(t),t.flags|=1,qs(e,t,r,i),t.child)}function Ys(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!cu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Xs(e,t,a,r,i)):(e=du(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return mc(e,t,i)}return t.flags|=1,e=uu(a,r),e.ref=t.ref,e.return=t,t.child=e}function Xs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref)if(Ks=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ks=!0);else return t.lanes=e.lanes,mc(e,t,i)}return $s(e,t,n,r,i)}function Zs(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ea(ol,al),al|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ea(ol,al),al|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,ea(ol,al),al|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),ea(ol,al),al|=r;return qs(e,t,i,n),t.child}function Qs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $s(e,t,n,r,i){var a=oa(n)?ia:na.current;return a=aa(t,a),io(t,i),n=Uo(e,t,n,r,a,i),r=Wo(),e!==null&&!Ks?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mc(e,t,i)):(Na&&r&&ka(t),t.flags|=1,qs(e,t,n,i),t.child)}function ec(e,t,n,r,i){if(oa(n)){var a=!0;ua(t)}else a=!1;if(io(t,i),t.stateNode===null)pc(e,t),Ns(t,n,r),Fs(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=ao(l):(l=oa(n)?ia:na.current,l=aa(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ps(t,o,r,l),uo=!1;var f=t.memoizedState;o.state=f,vo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||ra.current||uo?(typeof u==`function`&&(As(t,n,u,r),c=t.memoizedState),(s=uo||Ms(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,po(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ks(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=ao(c):(c=oa(n)?ia:na.current,c=aa(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ps(t,o,r,c),uo=!1,f=t.memoizedState,o.state=f,vo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||ra.current||uo?(typeof p==`function`&&(As(t,n,p,r),m=t.memoizedState),(l=uo||Ms(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return tc(e,t,n,r,a,i)}function tc(e,t,n,r,i,a){Qs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&da(t,n,!1),mc(e,t,a);r=t.stateNode,Gs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):qs(e,t,s,a),t.memoizedState=r.state,i&&da(t,n,!0),t.child}function nc(e){var t=e.stateNode;t.pendingContext?ca(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ca(e,t.context,!1),To(e,t.containerInfo)}function rc(e,t,n,r,i){return Ha(),Ua(i),t.flags|=256,qs(e,t,n,r),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0};function ac(e){return{baseLanes:e,cachePool:null,transitions:null}}function oc(e,t,n){var r=t.pendingProps,i=ko.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ea(ko,i&1),e===null)return Ra(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=pu(o,r,0,null),e=fu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ac(n),t.memoizedState=ic,e):sc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return lc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=uu(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=fu(a,o,n,null),a.flags|=2):a=uu(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?ac(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=ic,r}return a=e.child,e=a.sibling,r=uu(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function sc(e,t){return t=pu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function cc(e,t,n,r){return r!==null&&Ua(r),Ya(t,e.child,null,n),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ls(Error(r(422))),cc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=pu({mode:`visible`,children:i.children},a,0,null),o=fu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ya(t,e.child,null,s),t.child.memoizedState=ac(s),t.memoizedState=ic,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return cc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ls(o,i,void 0),cc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Ks||c){if(i=nl,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,lo(e,a),kl(i,e,a,-1))}return Ul(),i=Ls(Error(r(421))),cc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=nu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ma=Li(a.nextSibling),ja=t,Na=!0,Pa=null,e!==null&&(Sa[Ca++]=Ta,Sa[Ca++]=Ea,Sa[Ca++]=wa,Ta=e.id,Ea=e.overflow,wa=t),t=sc(t,i.children),t.flags|=4096,t)}function uc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ro(e.return,t,n)}function dc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function fc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(qs(e,t,r.children,n),r=ko.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uc(e,n,t);else if(e.tag===19)uc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ea(ko,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&I(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),dc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&I(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}dc(t,!0,n,null,a);break;case`together`:dc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=uu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=uu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hc(e,t,n){switch(t.tag){case 3:nc(t),Ha();break;case 5:Do(t);break;case 1:oa(t.type)&&ua(t);break;case 4:To(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ea(Za,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ea(ko,ko.current&1),e=mc(e,t,n),e===null?null:e.sibling):oc(e,t,n):(ea(ko,ko.current&1),t.flags|=128,null);ea(ko,ko.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return fc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ea(ko,ko.current),r)break;return null;case 22:case 23:return t.lanes=0,Zs(e,t,n)}return mc(e,t,n)}var gc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},_c=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,wo(xo.current);var o=null;switch(n){case`input`:i=ye(e,i),r=ye(e,r),o=[];break;case`select`:i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case`textarea`:i=De(e,i),r=De(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Di)}Ve(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&pi(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},vc=function(e,t,n,r){n!==r&&(t.flags|=4)};function yc(e,t){if(!Na)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function bc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xc(e,t,n){var i=t.pendingProps;switch(Aa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bc(t),null;case 1:return oa(t.type)&&sa(),bc(t),null;case 3:return i=t.stateNode,Eo(),$i(ra),$i(na),jo(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ba(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pa!==null&&(Nl(Pa),Pa=null))),bc(t),null;case 5:Oo(t);var o=wo(Co.current);if(n=t.type,e!==null&&t.stateNode!=null)_c(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return bc(t),null}if(e=wo(xo.current),Ba(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Bi]=t,i[Vi]=s,e=(t.mode&1)!=0,n){case`dialog`:pi(`cancel`,i),pi(`close`,i);break;case`iframe`:case`object`:case`embed`:pi(`load`,i);break;case`video`:case`audio`:for(o=0;o<li.length;o++)pi(li[o],i);break;case`source`:pi(`error`,i);break;case`img`:case`image`:case`link`:pi(`error`,i),pi(`load`,i);break;case`details`:pi(`toggle`,i);break;case`input`:be(i,s),pi(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},pi(`invalid`,i);break;case`textarea`:Oe(i,s),pi(`invalid`,i)}for(var c in Ve(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Ei(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Ei(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&pi(`scroll`,i)}switch(n){case`input`:ge(i),Ce(i,s,!0);break;case`textarea`:ge(i),Ae(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Di)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=je(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Bi]=t,e[Vi]=i,gc(e,t,!1,!1),t.stateNode=e;a:{switch(c=He(n,i),n){case`dialog`:pi(`cancel`,e),pi(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:pi(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<li.length;o++)pi(li[o],e);o=i;break;case`source`:pi(`error`,e),o=i;break;case`img`:case`image`:case`link`:pi(`error`,e),pi(`load`,e),o=i;break;case`details`:pi(`toggle`,e),o=i;break;case`input`:be(e,i),o=ye(e,i),pi(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=M({},i,{value:void 0}),pi(`invalid`,e);break;case`textarea`:Oe(e,i),o=De(e,i),pi(`invalid`,e);break;default:o=i}for(s in Ve(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?ze(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Pe(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Fe(e,u):typeof u==`number`&&Fe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&pi(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:ge(e),Ce(e,i,!1);break;case`textarea`:ge(e),Ae(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+N(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Ee(e,!!i.multiple,i.defaultValue,!0):Ee(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Di)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return bc(t),null;case 6:if(e&&t.stateNode!=null)vc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=wo(Co.current),wo(xo.current),Ba(t)){if(i=t.stateNode,n=t.memoizedProps,i[Bi]=t,(s=i.nodeValue!==n)&&(e=ja,e!==null))switch(e.tag){case 3:Ei(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ei(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Bi]=t,t.stateNode=i}return bc(t),null;case 13:if($i(ko),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Na&&Ma!==null&&t.mode&1&&!(t.flags&128))Va(),Ha(),t.flags|=98560,s=!1;else if(s=Ba(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Bi]=t}else Ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;bc(t),s=!1}else Pa!==null&&(Nl(Pa),Pa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||ko.current&1?sl===0&&(sl=3):Ul())),t.updateQueue!==null&&(t.flags|=4),bc(t),null);case 4:return Eo(),e===null&&gi(t.stateNode.containerInfo),bc(t),null;case 10:return no(t.type._context),bc(t),null;case 17:return oa(t.type)&&sa(),bc(t),null;case 19:if($i(ko),s=t.memoizedState,s===null)return bc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)yc(s,!1);else{if(sl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=I(e),c!==null){for(t.flags|=128,yc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ea(ko,ko.current&1|2),t.child}e=e.sibling}s.tail!==null&&St()>hl&&(t.flags|=128,i=!0,yc(s,!1),t.lanes=4194304)}else{if(!i)if(e=I(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Na)return bc(t),null}else 2*St()-s.renderingStartTime>hl&&n!==1073741824&&(t.flags|=128,i=!0,yc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(bc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=St(),t.sibling=null,n=ko.current,ea(ko,i?n&1|2:n&1),t);case 22:case 23:return zl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?al&1073741824&&(bc(t),t.subtreeFlags&6&&(t.flags|=8192)):bc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function Sc(e,t){switch(Aa(t),t.tag){case 1:return oa(t.type)&&sa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Eo(),$i(ra),$i(na),jo(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oo(t),null;case 13:if($i(ko),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $i(ko),null;case 4:return Eo(),null;case 10:return no(t.type._context),null;case 22:case 23:return zl(),null;case 24:return null;default:return null}}var Cc=!1,wc=!1,Tc=typeof WeakSet==`function`?WeakSet:Set,R=null;function Ec(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){$l(e,t,n)}else n.current=null}function Dc(e,t,n){try{n()}catch(n){$l(e,t,n)}}var Oc=!1;function kc(e,t){if(Oi=yn,e=Br(),Vr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(ki={focusedElem:e,selectionRange:n},yn=!1,R=t;R!==null;)if(t=R,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ks(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){$l(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return h=Oc,Oc=!1,h}function Ac(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Dc(t,n,a)}i=i.next}while(i!==r)}}function jc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Mc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Nc(e){var t=e.alternate;t!==null&&(e.alternate=null,Nc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bi],delete t[Vi],delete t[Ui],delete t[Wi],delete t[Gi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pc(e){return e.tag===5||e.tag===3||e.tag===4}function Fc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Di));else if(r!==4&&(e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function Lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}var Rc=null,zc=!1;function Bc(e,t,n){for(n=n.child;n!==null;)Vc(e,t,n),n=n.sibling}function Vc(e,t,n){if(At&&typeof At.onCommitFiberUnmount==`function`)try{At.onCommitFiberUnmount(kt,n)}catch{}switch(n.tag){case 5:wc||Ec(n,t);case 6:var r=Rc,i=zc;Rc=null,Bc(e,t,n),Rc=r,zc=i,Rc!==null&&(zc?(e=Rc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Rc.removeChild(n.stateNode));break;case 18:Rc!==null&&(zc?(e=Rc,n=n.stateNode,e.nodeType===8?Ii(e.parentNode,n):e.nodeType===1&&Ii(e,n),_n(e)):Ii(Rc,n.stateNode));break;case 4:r=Rc,i=zc,Rc=n.stateNode.containerInfo,zc=!0,Bc(e,t,n),Rc=r,zc=i;break;case 0:case 11:case 14:case 15:if(!wc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Dc(n,t,o),i=i.next}while(i!==r)}Bc(e,t,n);break;case 1:if(!wc&&(Ec(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){$l(n,t,e)}Bc(e,t,n);break;case 21:Bc(e,t,n);break;case 22:n.mode&1?(wc=(r=wc)||n.memoizedState!==null,Bc(e,t,n),wc=r):Bc(e,t,n);break;default:Bc(e,t,n)}}function Hc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tc),t.forEach(function(t){var r=ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Uc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Rc=c.stateNode,zc=!1;break a;case 3:Rc=c.stateNode.containerInfo,zc=!0;break a;case 4:Rc=c.stateNode.containerInfo,zc=!0;break a}c=c.return}if(Rc===null)throw Error(r(160));Vc(o,s,a),Rc=null,zc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){$l(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Wc(t,e),t=t.sibling}function Wc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Uc(t,e),Gc(e),i&4){try{Ac(3,e,e.return),jc(3,e)}catch(t){$l(e,e.return,t)}try{Ac(5,e,e.return)}catch(t){$l(e,e.return,t)}}break;case 1:Uc(t,e),Gc(e),i&512&&n!==null&&Ec(n,n.return);break;case 5:if(Uc(t,e),Gc(e),i&512&&n!==null&&Ec(n,n.return),e.flags&32){var a=e.stateNode;try{Fe(a,``)}catch(t){$l(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&xe(a,o),He(c,s);var u=He(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?ze(a,f):d===`dangerouslySetInnerHTML`?Pe(a,f):d===`children`?Fe(a,f):S(a,d,f,u)}switch(c){case`input`:Se(a,o);break;case`textarea`:ke(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Ee(a,!!o.multiple,o.multiple?[]:``,!1):Ee(a,!!o.multiple,o.defaultValue,!0)):Ee(a,!!o.multiple,m,!1)}a[Vi]=o}catch(t){$l(e,e.return,t)}}break;case 6:if(Uc(t,e),Gc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){$l(e,e.return,t)}}break;case 3:if(Uc(t,e),Gc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{_n(t.containerInfo)}catch(t){$l(e,e.return,t)}break;case 4:Uc(t,e),Gc(e);break;case 13:Uc(t,e),Gc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ml=St())),i&4&&Hc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(wc=(u=wc)||d,Uc(t,e),wc=u):Uc(t,e),Gc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(f=R=d;R!==null;){switch(p=R,m=p.child,p.tag){case 0:case 11:case 14:case 15:Ac(4,p,p.return);break;case 1:Ec(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){$l(i,n,e)}}break;case 5:Ec(p,p.return);break;case 22:if(p.memoizedState!==null){Yc(f);continue}}m===null?Yc(f):(m.return=p,R=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Re(`display`,s))}catch(t){$l(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){$l(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Uc(t,e),Gc(e),i&4&&Hc(e);break;case 21:break;default:Uc(t,e),Gc(e)}}function Gc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Pc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Fe(a,``),i.flags&=-33),Lc(e,Fc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Ic(e,Fc(e),o);break;default:throw Error(r(161))}}catch(t){$l(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Kc(e,t,n){R=e,qc(e,t,n)}function qc(e,t,n){for(var r=(e.mode&1)!=0;R!==null;){var i=R,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Cc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||wc;s=Cc;var l=wc;if(Cc=o,(wc=c)&&!l)for(R=i;R!==null;)o=R,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Xc(i):(c.return=o,R=c);for(;a!==null;)R=a,qc(a,t,n),a=a.sibling;R=i,Cc=s,wc=l}Jc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,R=a):Jc(e,t,n)}}function Jc(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:wc||jc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!wc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ks(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&yo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}yo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&_n(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}wc||t.flags&512&&Mc(t)}catch(e){$l(t,t.return,e)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Yc(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function Xc(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jc(4,t)}catch(e){$l(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){$l(t,i,e)}}var a=t.return;try{Mc(t)}catch(e){$l(t,a,e)}break;case 5:var o=t.return;try{Mc(t)}catch(e){$l(t,o,e)}}}catch(e){$l(t,t.return,e)}if(t===e){R=null;break}var s=t.sibling;if(s!==null){s.return=t.return,R=s;break}R=t.return}}var Zc=Math.ceil,Qc=C.ReactCurrentDispatcher,$c=C.ReactCurrentOwner,el=C.ReactCurrentBatchConfig,tl=0,nl=null,rl=null,il=0,al=0,ol=Qi(0),sl=0,cl=null,ll=0,ul=0,dl=0,fl=null,pl=null,ml=0,hl=1/0,gl=null,_l=!1,vl=null,yl=null,bl=!1,xl=null,Sl=0,Cl=0,wl=null,Tl=-1,El=0;function Dl(){return tl&6?St():Tl===-1?Tl=St():Tl}function Ol(e){return e.mode&1?tl&2&&il!==0?il&-il:Wa.transition===null?(e=qt,e===0?(e=window.event,e=e===void 0?16:Tn(e.type),e):e):(El===0&&(El=Ht()),El):1}function kl(e,t,n,i){if(50<Cl)throw Cl=0,wl=null,Error(r(185));Wt(e,n,i),(!(tl&2)||e!==nl)&&(e===nl&&(!(tl&2)&&(ul|=n),sl===4&&Fl(e,il)),Al(e,i),n===1&&tl===0&&!(t.mode&1)&&(hl=St()+500,pa&&_a()))}function Al(e,t){var n=e.callbackNode;P(e,t);var r=zt(e,e===nl?il:0);if(r===0)n!==null&&yt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yt(n),t===1)e.tag===0?ga(Il.bind(null,e)):ha(Il.bind(null,e)),Pi(function(){!(tl&6)&&_a()}),n=null;else{switch(Jt(r)){case 1:n=wt;break;case 4:n=Tt;break;case 16:n=Et;break;case 536870912:n=Ot;break;default:n=Et}n=au(n,jl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jl(e,t){if(Tl=-1,El=0,tl&6)throw Error(r(327));var n=e.callbackNode;if(Zl()&&e.callbackNode!==n)return null;var i=zt(e,e===nl?il:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Wl(e,i);else{t=i;var a=tl;tl|=2;var o=Hl();(nl!==e||il!==t)&&(gl=null,hl=St()+500,Bl(e,t));do try{Kl();break}catch(t){Vl(e,t)}while(1);to(),Qc.current=o,tl=a,rl===null?(nl=null,il=0,t=sl):t=0}if(t!==0){if(t===2&&(a=Vt(e),a!==0&&(i=a,t=Ml(e,a))),t===1)throw n=cl,Bl(e,0),Fl(e,i),Al(e,St()),n;if(t===6)Fl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Pl(a)&&(t=Wl(e,i),t===2&&(o=Vt(e),o!==0&&(i=o,t=Ml(e,o))),t===1))throw n=cl,Bl(e,0),Fl(e,i),Al(e,St()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Yl(e,pl,gl);break;case 3:if(Fl(e,i),(i&130023424)===i&&(t=ml+500-St(),10<t)){if(zt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Dl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ji(Yl.bind(null,e,pl,gl),t);break}Yl(e,pl,gl);break;case 4:if(Fl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Mt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=St()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Zc(i/1960))-i,10<i){e.timeoutHandle=ji(Yl.bind(null,e,pl,gl),i);break}Yl(e,pl,gl);break;case 5:Yl(e,pl,gl);break;default:throw Error(r(329))}}}return Al(e,St()),e.callbackNode===n?jl.bind(null,e):null}function Ml(e,t){var n=fl;return e.current.memoizedState.isDehydrated&&(Bl(e,t).flags|=256),e=Wl(e,t),e!==2&&(t=pl,pl=n,t!==null&&Nl(t)),e}function Nl(e){pl===null?pl=e:pl.push.apply(pl,e)}function Pl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fl(e,t){for(t&=~dl,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Mt(t),r=1<<n;e[n]=-1,t&=~r}}function Il(e){if(tl&6)throw Error(r(327));Zl();var t=zt(e,0);if(!(t&1))return Al(e,St()),null;var n=Wl(e,t);if(e.tag!==0&&n===2){var i=Vt(e);i!==0&&(t=i,n=Ml(e,i))}if(n===1)throw n=cl,Bl(e,0),Fl(e,t),Al(e,St()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yl(e,pl,gl),Al(e,St()),null}function Ll(e,t){var n=tl;tl|=1;try{return e(t)}finally{tl=n,tl===0&&(hl=St()+500,pa&&_a())}}function Rl(e){xl!==null&&xl.tag===0&&!(tl&6)&&Zl();var t=tl;tl|=1;var n=el.transition,r=qt;try{if(el.transition=null,qt=1,e)return e()}finally{qt=r,el.transition=n,tl=t,!(tl&6)&&_a()}}function zl(){al=ol.current,$i(ol)}function Bl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Mi(n)),rl!==null)for(n=rl.return;n!==null;){var r=n;switch(Aa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&sa();break;case 3:Eo(),$i(ra),$i(na),jo();break;case 5:Oo(r);break;case 4:Eo();break;case 13:$i(ko);break;case 19:$i(ko);break;case 10:no(r.type._context);break;case 22:case 23:zl()}n=n.return}if(nl=e,rl=e=uu(e.current,null),il=al=t,sl=0,cl=null,dl=ul=ll=0,pl=fl=null,oo!==null){for(t=0;t<oo.length;t++)if(n=oo[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}oo=null}return e}function Vl(e,t){do{var n=rl;try{if(to(),Mo.current=Ts,Ro){for(var i=Fo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Ro=!1}if(Po=0,Lo=Io=Fo=null,zo=!1,Bo=0,$c.current=null,n===null||n.return===null){sl=1,cl=t,rl=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=il,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Us(s);if(m!==null){m.flags&=-257,Ws(m,s,c,o,t),m.mode&1&&Hs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Hs(o,u,t),Ul();break a}l=Error(r(426))}}else if(Na&&c.mode&1){var _=Us(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Ws(_,s,c,o,t),Ua(Is(l,c));break a}}o=l=Is(l,c),sl!==4&&(sl=2),fl===null?fl=[o]:fl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Bs(o,l,t);_o(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(yl===null||!yl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Vs(o,c,t);_o(o,x);break a}}o=o.return}while(o!==null)}Jl(n)}catch(e){t=e,rl===n&&n!==null&&(rl=n=n.return);continue}break}while(1)}function Hl(){var e=Qc.current;return Qc.current=Ts,e===null?Ts:e}function Ul(){(sl===0||sl===3||sl===2)&&(sl=4),nl===null||!(ll&268435455)&&!(ul&268435455)||Fl(nl,il)}function Wl(e,t){var n=tl;tl|=2;var i=Hl();(nl!==e||il!==t)&&(gl=null,Bl(e,t));do try{Gl();break}catch(t){Vl(e,t)}while(1);if(to(),tl=n,Qc.current=i,rl!==null)throw Error(r(261));return nl=null,il=0,sl}function Gl(){for(;rl!==null;)ql(rl)}function Kl(){for(;rl!==null&&!bt();)ql(rl)}function ql(e){var t=iu(e.alternate,e,al);e.memoizedProps=e.pendingProps,t===null?Jl(e):rl=t,$c.current=null}function Jl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Sc(n,t),n!==null){n.flags&=32767,rl=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sl=6,rl=null;return}}else if(n=xc(n,t,al),n!==null){rl=n;return}if(t=t.sibling,t!==null){rl=t;return}rl=t=e}while(t!==null);sl===0&&(sl=5)}function Yl(e,t,n){var r=qt,i=el.transition;try{el.transition=null,qt=1,Xl(e,t,n,r)}finally{el.transition=i,qt=r}return null}function Xl(e,t,n,i){do Zl();while(xl!==null);if(tl&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Gt(e,o),e===nl&&(rl=nl=null,il=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||bl||(bl=!0,au(Et,function(){return Zl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=el.transition,el.transition=null;var s=qt;qt=1;var c=tl;tl|=4,$c.current=null,kc(e,n),Wc(n,e),Hr(ki),yn=!!Oi,ki=Oi=null,e.current=n,Kc(n,e,a),xt(),tl=c,qt=s,el.transition=o}else e.current=n;if(bl&&(bl=!1,xl=e,Sl=a),o=e.pendingLanes,o===0&&(yl=null),jt(n.stateNode,i),Al(e,St()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(_l)throw _l=!1,e=vl,vl=null,e;return Sl&1&&e.tag!==0&&Zl(),o=e.pendingLanes,o&1?e===wl?Cl++:(Cl=0,wl=e):Cl=0,_a(),null}function Zl(){if(xl!==null){var e=Jt(Sl),t=el.transition,n=qt;try{if(el.transition=null,qt=16>e?16:e,xl===null)var i=!1;else{if(e=xl,xl=null,Sl=0,tl&6)throw Error(r(331));var a=tl;for(tl|=4,R=e.current;R!==null;){var o=R,s=o.child;if(R.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(R=u;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:Ac(8,d,o)}var f=d.child;if(f!==null)f.return=d,R=f;else for(;R!==null;){d=R;var p=d.sibling,m=d.return;if(Nc(d),d===u){R=null;break}if(p!==null){p.return=m,R=p;break}R=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}R=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,R=s;else b:for(;R!==null;){if(o=R,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ac(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,R=v;break b}R=o.return}}var y=e.current;for(R=y;R!==null;){s=R;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,R=b;else b:for(s=y;R!==null;){if(c=R,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:jc(9,c)}}catch(e){$l(c,c.return,e)}if(c===s){R=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,R=x;break b}R=c.return}}if(tl=a,_a(),At&&typeof At.onPostCommitFiberRoot==`function`)try{At.onPostCommitFiberRoot(kt,e)}catch{}i=!0}return i}finally{qt=n,el.transition=t}}return!1}function Ql(e,t,n){t=Is(n,t),t=Bs(e,t,1),e=ho(e,t,1),t=Dl(),e!==null&&(Wt(e,1,t),Al(e,t))}function $l(e,t,n){if(e.tag===3)Ql(e,e,n);else for(;t!==null;){if(t.tag===3){Ql(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yl===null||!yl.has(r))){e=Is(n,e),e=Vs(t,e,1),t=ho(t,e,1),e=Dl(),t!==null&&(Wt(t,1,e),Al(t,e));break}}t=t.return}}function eu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Dl(),e.pingedLanes|=e.suspendedLanes&n,nl===e&&(il&n)===n&&(sl===4||sl===3&&(il&130023424)===il&&500>St()-ml?Bl(e,0):dl|=n),Al(e,t)}function tu(e,t){t===0&&(e.mode&1?(t=Lt,Lt<<=1,!(Lt&130023424)&&(Lt=4194304)):t=1);var n=Dl();e=lo(e,t),e!==null&&(Wt(e,t,n),Al(e,n))}function nu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tu(e,n)}function ru(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),tu(e,n)}var iu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ra.current)Ks=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ks=!1,hc(e,t,n);Ks=!!(e.flags&131072)}else Ks=!1,Na&&t.flags&1048576&&Oa(t,xa,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;pc(e,t),e=t.pendingProps;var a=aa(t,na.current);io(t,n),a=Uo(null,t,i,e,a,n);var o=Wo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,oa(i)?(o=!0,ua(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,fo(t),a.updater=js,t.stateNode=a,a._reactInternals=t,Fs(t,i,e,n),t=tc(null,t,i,!0,o,n)):(t.tag=0,Na&&o&&ka(t),qs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(pc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=lu(i),e=ks(i,e),a){case 0:t=$s(null,t,i,e,n);break a;case 1:t=ec(null,t,i,e,n);break a;case 11:t=Js(null,t,i,e,n);break a;case 14:t=Ys(null,t,i,ks(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),$s(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),ec(e,t,i,a,n);case 3:a:{if(nc(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,po(e,t),vo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Is(Error(r(423)),t),t=rc(e,t,i,n,a);break a}else if(i!==a){a=Is(Error(r(424)),t),t=rc(e,t,i,n,a);break a}else for(Ma=Li(t.stateNode.containerInfo.firstChild),ja=t,Na=!0,Pa=null,n=Xa(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),i===a){t=mc(e,t,n);break a}qs(e,t,i,n)}t=t.child}return t;case 5:return Do(t),e===null&&Ra(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ai(i,a)?s=null:o!==null&&Ai(i,o)&&(t.flags|=32),Qs(e,t),qs(e,t,s,n),t.child;case 6:return e===null&&Ra(t),null;case 13:return oc(e,t,n);case 4:return To(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ya(t,null,i,n):qs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),Js(e,t,i,a,n);case 7:return qs(e,t,t.pendingProps,n),t.child;case 8:return qs(e,t,t.pendingProps.children,n),t.child;case 12:return qs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,ea(Za,i._currentValue),i._currentValue=s,o!==null)if(Fr(o.value,s)){if(o.children===a.children&&!ra.current){t=mc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=mo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ro(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),ro(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}qs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,io(t,n),a=ao(a),i=i(a),t.flags|=1,qs(e,t,i,n),t.child;case 14:return i=t.type,a=ks(i,t.pendingProps),a=ks(i.type,a),Ys(e,t,i,a,n);case 15:return Xs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ks(i,a),pc(e,t),t.tag=1,oa(i)?(e=!0,ua(t)):e=!1,io(t,n),Ns(t,i,a),Fs(t,i,a,n),tc(null,t,i,!0,e,n);case 19:return fc(e,t,n);case 22:return Zs(e,t,n)}throw Error(r(156,t.tag))};function au(e,t){return vt(e,t)}function ou(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function su(e,t,n,r){return new ou(e,t,n,r)}function cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lu(e){if(typeof e==`function`)return+!!cu(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===j)return 14}return 2}function uu(e,t){var n=e.alternate;return n===null?(n=su(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function du(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)cu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return fu(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=su(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case A:return e=su(13,n,t,a),e.elementType=A,e.lanes=o,e;case ne:return e=su(19,n,t,a),e.elementType=ne,e.lanes=o,e;case ie:return pu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case ee:s=10;break a;case te:s=9;break a;case k:s=11;break a;case j:s=14;break a;case re:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=su(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function fu(e,t,n,r){return e=su(7,e,r,t),e.lanes=n,e}function pu(e,t,n,r){return e=su(22,e,r,t),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function mu(e,t,n){return e=su(6,e,null,t),e.lanes=n,e}function hu(e,t,n){return t=su(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function _u(e,t,n,r,i,a,o,s,c){return e=new gu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=su(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fo(a),e}function vu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function yu(e){if(!e)return ta;e=e._reactInternals;a:{if(ft(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(oa(n))return la(e,n,t)}return t}function bu(e,t,n,r,i,a,o,s,c){return e=_u(n,r,!0,e,i,a,o,s,c),e.context=yu(null),n=e.current,r=Dl(),i=Ol(n),a=mo(r,i),a.callback=t??null,ho(n,a,i),e.current.lanes=i,Wt(e,i,r),Al(e,r),e}function xu(e,t,n,r){var i=t.current,a=Dl(),o=Ol(i);return n=yu(n),t.context===null?t.context=n:t.pendingContext=n,t=mo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ho(i,t,o),e!==null&&(kl(e,i,o,a),go(e,i,o)),o}function Su(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Cu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wu(e,t){Cu(e,t),(e=e.alternate)&&Cu(e,t)}function Tu(){return null}var Eu=typeof reportError==`function`?reportError:function(e){console.error(e)};function Du(e){this._internalRoot=e}Ou.prototype.render=Du.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));xu(e,t,null,null)},Ou.prototype.unmount=Du.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rl(function(){xu(null,e,null,null)}),t[Hi]=null}};function Ou(e){this._internalRoot=e}Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cn.length&&t!==0&&t<cn[n].priority;n++);cn.splice(n,0,e),n===0&&pn(e)}};function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Au(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function ju(){}function Mu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=Su(o);a.call(e)}}var o=bu(t,r,e,0,null,!1,!1,``,ju);return e._reactRootContainer=o,e[Hi]=o.current,gi(e.nodeType===8?e.parentNode:e),Rl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=Su(c);s.call(e)}}var c=_u(e,0,!1,null,null,!1,!1,``,ju);return e._reactRootContainer=c,e[Hi]=c.current,gi(e.nodeType===8?e.parentNode:e),Rl(function(){xu(t,c,n,r)}),c}function Nu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=Su(o);s.call(e)}}xu(t,o,e,i)}else o=Mu(n,t,e,i,r);return Su(o)}Yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rt(t.pendingLanes);n!==0&&(Kt(t,n|1),Al(t,St()),!(tl&6)&&(hl=St()+500,_a()))}break;case 13:Rl(function(){var t=lo(e,1);t!==null&&kl(t,e,1,Dl())}),wu(e,1)}},Xt=function(e){if(e.tag===13){var t=lo(e,134217728);t!==null&&kl(t,e,134217728,Dl()),wu(e,134217728)}},Zt=function(e){if(e.tag===13){var t=Ol(e),n=lo(e,t);n!==null&&kl(n,e,t,Dl()),wu(e,t)}},Qt=function(){return qt},$t=function(e,t){var n=qt;try{return qt=e,t()}finally{qt=n}},Ge=function(e,t,n){switch(t){case`input`:if(Se(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Yi(i);if(!a)throw Error(r(90));_e(i),Se(i,a)}}}break;case`textarea`:ke(e,n);break;case`select`:t=n.value,t!=null&&Ee(e,!!n.multiple,t,!1)}},Ze=Ll,Qe=Rl;var Pu={usingClientEntryPoint:!1,Events:[qi,Ji,Yi,Ye,Xe,Ll]},Fu={findFiberByHostInstance:Ki,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Iu={bundleType:Fu.bundleType,version:Fu.version,rendererPackageName:Fu.rendererPackageName,rendererConfig:Fu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gt(e),e===null?null:e.stateNode},findFiberByHostInstance:Fu.findFiberByHostInstance||Tu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{kt=Lu.inject(Iu),At=Lu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pu,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ku(t))throw Error(r(200));return vu(e,t,null,n)},e.createRoot=function(e,t){if(!ku(e))throw Error(r(299));var n=!1,i=``,a=Eu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=_u(e,1,!1,null,null,n,!1,i,a),e[Hi]=t.current,gi(e.nodeType===8?e.parentNode:e),new Du(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=gt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Rl(e)},e.hydrate=function(e,t,n){if(!Au(t))throw Error(r(200));return Nu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!ku(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=Eu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=bu(t,null,e,1,n??null,a,!1,o,s),e[Hi]=t.current,gi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Ou(t)},e.render=function(e,t,n){if(!Au(t))throw Error(r(200));return Nu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Au(e))throw Error(r(40));return e._reactRootContainer?(Rl(function(){Nu(null,null,e,!1,function(){e._reactRootContainer=null,e[Hi]=null})}),!0):!1},e.unstable_batchedUpdates=Ll,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Au(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Nu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),_=`commitPendingSession`,v=new WeakMap;function y(e,t){let n=v.get(e);n||(n=new Set,v.set(e,n)),n.add(t)}function b(e){return Object.getOwnPropertyDescriptor(e,_)!==void 0}function x(e){if(b(e))return;let t=e[_];Object.defineProperty(e,_,{value:()=>{if(typeof t==`function`)try{t.call(e)}catch{}C(e)},configurable:!0,enumerable:!1,writable:!0})}function S(e,t,n={}){let r=n.delayMs,i=typeof r==`function`?r:()=>r??0,a=n.maxWaitMs,o=null,s=null,c=!1,l=()=>{o!==null&&(clearTimeout(o),o=null),s!==null&&(clearTimeout(s),s=null)},u=()=>{l(),c&&(c=!1,t())},d={notify(){c=!0,o!==null&&clearTimeout(o),o=setTimeout(u,Math.max(0,i())),a!==void 0&&s===null&&(s=setTimeout(u,Math.max(0,a)))},flush(){if(!c){l();return}try{u()}catch(e){console.warn(`[session-notifier] a committed session-changed dispatch threw`,e)}}};return y(e,d),x(e),d}function C(e){let t=v.get(e);if(t)for(let e of[...t])e.flush()}var w=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}},T=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}},E=function(){return null};E.isRequired=E;var D=()=>E,O={array:E,bigint:E,bool:E,func:E,number:E,object:E,string:E,symbol:E,any:E,element:E,elementType:E,node:E,arrayOf:D,instanceOf:D,objectOf:D,oneOf:D,oneOfType:D,shape:D,exact:D,checkPropTypes:()=>{},resetWarningCache:()=>{}};O.PropTypes=O;var ee=Object.prototype;function te(e){return typeof e==`object`&&!!e}function k(e){return Array.isArray(e)?e:typeof e==`number`?[e]:e.replace(/\[(\d+)\]/g,`.$1`).split(`.`).filter(Boolean)}function A(e){let t=[];for(let n of e??[])Array.isArray(n)?t.push(...n):t.push(n);return t}function ne(e,t,n){if(!Array.isArray(t)&&e!=null&&Object.prototype.hasOwnProperty.call(Object(e),t)){let r=e[t];return r===void 0?n:r}let r=e;for(let e of k(t)){if(r==null)return n;r=r[e]}return r===void 0?n:r}function j(e){return e==null?!0:typeof e==`string`||Array.isArray(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:!te(e)||Object.keys(e).length===0}function re(e,t,n){let r=n?.(e,t);if(r!==void 0)return!!r;if(Object.is(e,t))return!0;if(!te(e)||!te(t))return!1;if(e instanceof Date||t instanceof Date)return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime();if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>re(e,t[r],n));let i=Object.keys(e),a=Object.keys(t);return i.length===a.length&&i.every(r=>ee.hasOwnProperty.call(t,r)&&re(e[r],t[r],n))}function ie(e,t){return re(e,t)}function ae(e,t){let n=t??(e=>e);return Array.from({length:Math.max(0,e)},(e,t)=>n(t))}function oe(...e){let t=Math.max(0,...e.map(e=>e.length));return Array.from({length:t},(t,n)=>e.map(e=>e[n]))}function M(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var se=`$$material`;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}function le(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ue(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var de=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(ue(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=le(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),fe=`-ms-`,pe=`-moz-`,N=`-webkit-`,me=`comm`,he=`rule`,ge=`decl`,_e=`@import`,ve=`@keyframes`,ye=`@layer`,be=Math.abs,xe=String.fromCharCode,Se=Object.assign;function Ce(e,t){return Oe(e,0)^45?(((t<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function we(e){return e.trim()}function Te(e,t){return(e=t.exec(e))?e[0]:e}function Ee(e,t,n){return e.replace(t,n)}function De(e,t){return e.indexOf(t)}function Oe(e,t){return e.charCodeAt(t)|0}function ke(e,t,n){return e.slice(t,n)}function Ae(e){return e.length}function je(e){return e.length}function Me(e,t){return t.push(e),e}function Ne(e,t){return e.map(t).join(``)}var Pe=1,Fe=1,Ie=0,Le=0,Re=0,ze=``;function Be(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Pe,column:Fe,length:o,return:``}}function Ve(e,t){return Se(Be(``,null,null,``,null,null,0),e,{length:-e.length},t)}function He(){return Re}function Ue(){return Re=Le>0?Oe(ze,--Le):0,Fe--,Re===10&&(Fe=1,Pe--),Re}function We(){return Re=Le<Ie?Oe(ze,Le++):0,Fe++,Re===10&&(Fe=1,Pe++),Re}function Ge(){return Oe(ze,Le)}function Ke(){return Le}function qe(e,t){return ke(ze,e,t)}function Je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ye(e){return Pe=Fe=1,Ie=Ae(ze=e),Le=0,[]}function Xe(e){return ze=``,e}function Ze(e){return we(qe(Le-1,et(e===91?e+2:e===40?e+1:e)))}function Qe(e){for(;(Re=Ge())&&Re<33;)We();return Je(e)>2||Je(Re)>3?``:` `}function $e(e,t){for(;--t&&We()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return qe(e,Ke()+(t<6&&Ge()==32&&We()==32))}function et(e){for(;We();)switch(Re){case e:return Le;case 34:case 39:e!==34&&e!==39&&et(Re);break;case 40:e===41&&et(e);break;case 92:We();break}return Le}function tt(e,t){for(;We()&&e+Re!==57&&!(e+Re===84&&Ge()===47););return`/*`+qe(t,Le-1)+`*`+xe(e===47?e:We())}function nt(e){for(;!Je(Ge());)We();return qe(e,Le)}function rt(e){return Xe(it(``,null,null,null,[``],e=Ye(e),0,[0],e))}function it(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=We()){case 40:if(m!=108&&Oe(C,d-1)==58){De(C+=Ee(Ze(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Ze(v);break;case 9:case 10:case 13:case 32:C+=Qe(m);break;case 92:C+=$e(Ke()-1,7);continue;case 47:switch(Ge()){case 42:case 47:Me(ot(tt(We(),Ke()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Ae(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Ee(C,/\f/g,``)),p>0&&Ae(C)-d&&Me(p>32?st(C+`;`,r,n,d-1):st(Ee(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Me(S=at(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)it(C,t,S,S,b,a,d,s,x);else switch(f===99&&Oe(C,3)===110?100:f){case 100:case 108:case 109:case 115:it(e,S,S,r&&Me(at(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:it(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Ae(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Ue()==125)continue}switch(C+=xe(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Ae(C)-1)*_,_=1;break;case 64:Ge()===45&&(C+=Ze(We())),f=Ge(),u=d=Ae(y=C+=nt(Ke())),v++;break;case 45:m===45&&Ae(C)==2&&(h=0)}}return a}function at(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=je(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=ke(e,d+1,d=be(h=o[m])),y=e;_<p;++_)(y=we(h>0?f[_]+` `+v:Ee(v,/&\f/g,f[_])))&&(c[g++]=y);return Be(e,t,n,i===0?he:s,c,l,u)}function ot(e,t,n){return Be(e,t,n,me,xe(He()),ke(e,2,-2),0)}function st(e,t,n,r){return Be(e,t,n,ge,ke(e,0,r),ke(e,r+1,-1),r)}function ct(e,t){for(var n=``,r=je(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function lt(e,t,n,r){switch(e.type){case ye:if(e.children.length)break;case _e:case ge:return e.return=e.return||e.value;case me:return``;case ve:return e.return=e.value+`{`+ct(e.children,r)+`}`;case he:e.value=e.props.join(`,`)}return Ae(n=ct(e.children,r))?e.return=e.value+`{`+n+`}`:``}function ut(e){var t=je(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function dt(e){return function(t){t.root||(t=t.return)&&e(t)}}function ft(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var pt=function(e,t,n){for(var r=0,i=0;r=i,i=Ge(),r===38&&i===12&&(t[n]=1),!Je(i);)We();return qe(e,Le)},mt=function(e,t){var n=-1,r=44;do switch(Je(r)){case 0:r===38&&Ge()===12&&(t[n]=1),e[n]+=pt(Le-1,t,n);break;case 2:e[n]+=Ze(r);break;case 4:if(r===44){e[++n]=Ge()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=xe(r)}while(r=We());return e},ht=function(e,t){return Xe(mt(Ye(e),t))},gt=new WeakMap,_t=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!gt.get(n))&&!r){gt.set(e,!0);for(var i=[],a=ht(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},vt=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function yt(e,t){switch(Ce(e,t)){case 5103:return N+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+pe+e+fe+e+e;case 6828:case 4268:return N+e+fe+e+e;case 6165:return N+e+fe+`flex-`+e+e;case 5187:return N+e+Ee(e,/(\w+).+(:[^]+)/,N+`box-$1$2`+fe+`flex-$1$2`)+e;case 5443:return N+e+fe+`flex-item-`+Ee(e,/flex-|-self/,``)+e;case 4675:return N+e+fe+`flex-line-pack`+Ee(e,/align-content|flex-|-self/,``)+e;case 5548:return N+e+fe+Ee(e,`shrink`,`negative`)+e;case 5292:return N+e+fe+Ee(e,`basis`,`preferred-size`)+e;case 6060:return N+`box-`+Ee(e,`-grow`,``)+N+e+fe+Ee(e,`grow`,`positive`)+e;case 4554:return N+Ee(e,/([^-])(transform)/g,`$1`+N+`$2`)+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,N+`$1`),/(image-set)/,N+`$1`),e,``)+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,N+`box-pack:$3`+fe+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+N+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,N+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ae(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,`$1`+N+`$2-$3$1`+pe+(Oe(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~De(e,`stretch`)?yt(Ee(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,Ae(e)-3-(~De(e,`!important`)&&10))){case 107:return Ee(e,`:`,`:`+N)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+N+(Oe(e,14)===45?`inline-`:``)+`box$3$1`+N+`$2$3$1`+fe+`$2box$3`)+e}break;case 5936:switch(Oe(e,t+11)){case 114:return N+e+fe+Ee(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return N+e+fe+Ee(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return N+e+fe+Ee(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return N+e+fe+e+e}return e}var bt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ge:e.return=yt(e.value,e.length);break;case ve:return ct([Ve(e,{value:Ee(e.value,`@`,`@`+N)})],r);case he:if(e.length)return Ne(e.props,function(t){switch(Te(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return ct([Ve(e,{props:[Ee(t,/:(read-\w+)/,`:`+pe+`$1`)]})],r);case`::placeholder`:return ct([Ve(e,{props:[Ee(t,/:(plac\w+)/,`:`+N+`input-$1`)]}),Ve(e,{props:[Ee(t,/:(plac\w+)/,`:`+pe+`$1`)]}),Ve(e,{props:[Ee(t,/:(plac\w+)/,fe+`input-$1`)]})],r)}return``})}}],xt=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||bt,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[_t,vt],l,u=[lt,dt(function(e){l.insert(e)})],d=ut(c.concat(r,u)),f=function(e){return ct(rt(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new de({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},St=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Ct=o(((e,t)=>{t.exports=St()})),wt=o(((e,t)=>{var n=Ct(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function Tt(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Et=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Dt=function(e,t,n){Et(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Ot(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},At=/[A-Z]|^ms/g,jt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Mt=function(e){return e.charCodeAt(1)===45},Nt=function(e){return e!=null&&typeof e!=`boolean`},Pt=ft(function(e){return Mt(e)?e:e.replace(At,`-$&`).toLowerCase()}),Ft=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(jt,function(e,t,n){return zt={name:t,styles:n,next:zt},t})}return kt[e]!==1&&!Mt(e)&&typeof t==`number`&&t!==0?t+`px`:t};function It(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return zt={name:i.name,styles:i.styles,next:zt},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)zt={name:o.name,styles:o.styles,next:zt},o=o.next;return a.styles+`;`}return Lt(e,t,n);case`function`:if(e!==void 0){var s=zt,c=n(e);return zt=s,It(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Lt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=It(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Nt(s)&&(r+=Pt(a)+`:`+Ft(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Nt(o[c])&&(r+=Pt(a)+`:`+Ft(a,o[c])+`;`);else{var l=It(e,t,o);switch(a){case`animation`:case`animationName`:r+=Pt(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Rt=/label:\s*([^\s;{]+)\s*(;|$)/g,zt;function Bt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;zt=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=It(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=It(n,t,e[o]),r&&(i+=a[o]);Rt.lastIndex=0;for(var s=``,c;(c=Rt.exec(i))!==null;)s+=`-`+c[1];return{name:Ot(i)+s,styles:i,next:zt}}var P=l(d()),Vt=function(e){return e()},Ht=P.useInsertionEffect?P.useInsertionEffect:!1,Ut=Ht||Vt,Wt=Ht||P.useLayoutEffect,Gt=P.createContext(typeof HTMLElement<`u`?xt({key:`css`}):null),Kt=Gt.Provider,qt=function(e){return(0,P.forwardRef)(function(t,n){return e(t,(0,P.useContext)(Gt),n)})},Jt=P.createContext({}),Yt={}.hasOwnProperty,Xt=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Zt=function(e,t){var n={};for(var r in t)Yt.call(t,r)&&(n[r]=t[r]);return n[Xt]=e,n},Qt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Et(t,n,r),Ut(function(){return Dt(t,n,r)}),null},$t=qt(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Xt],a=[r],o=``;typeof e.className==`string`?o=Tt(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Bt(a,void 0,P.useContext(Jt));o+=t.key+`-`+s.name;var c={};for(var l in e)Yt.call(e,l)&&l!==`css`&&l!==Xt&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),P.createElement(P.Fragment,null,P.createElement(Qt,{cache:t,serialized:s,isStringTag:typeof i==`string`}),P.createElement(i,c))});wt();var en=function(e,t){var n=arguments;if(t==null||!Yt.call(t,`css`))return P.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=$t,i[1]=Zt(e,t);for(var a=2;a<r;a++)i[a]=n[a];return P.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(en||={});var tn=qt(function(e,t){var n=e.styles,r=Bt([n],void 0,P.useContext(Jt)),i=P.useRef();return Wt(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Wt(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&Dt(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function nn(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bt(t)}function rn(){var e=nn.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var an=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,on=ft(function(e){return an.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),sn=function(e){return e!==`theme`},cn=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?on:sn},ln=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},un=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Et(t,n,r),Ut(function(){return Dt(t,n,r)}),null},dn=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=ln(t,n,r),c=s||cn(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=qt(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=P.useContext(Jt)}typeof e.className==`string`?a=Tt(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Bt(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?cn(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),P.createElement(P.Fragment,null,P.createElement(un,{cache:t,serialized:m,isStringTag:typeof r==`string`}),P.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,ce({},n,r,{shouldForwardProp:ln(h,r,!0)})).apply(void 0,d)},h}},fn=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),pn=dn.bind(null);fn.forEach(function(e){pn[e]=pn(e)});var mn=o((e=>{var t=d(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),F=o(((e,t)=>{t.exports=mn()}))(),hn=new Map,gn={insert:void 0},_n=(e,t)=>{let n=xt(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},vn;if(typeof document==`object`&&(vn=document.querySelector(`[name="emotion-insertion-point"]`),!vn)){vn=document.createElement(`meta`),vn.setAttribute(`name`,`emotion-insertion-point`),vn.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(vn)}function yn(e,t){if(e||t){class n extends de{insert(e,t){return gn.insert?gn.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=vn),super.insert(e,t))}}let r=_n({key:`css`,insertionPoint:e?vn:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function bn(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=P.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&hn.has(e))return hn.get(e);let r=yn(t,n);return hn.set(e,r),r},[t,n]);return i?(0,F.jsx)(Kt,{value:i,children:r}):r}function xn(e){return e==null||Object.keys(e).length===0}function Sn(e){let{styles:t,defaultTheme:n={}}=e;return(0,F.jsx)(tn,{styles:typeof t==`function`?e=>t(xn(e)?n:e):t})}function Cn(e,t){return pn(e,t)}function wn(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Tn=[];function En(e){return Tn[0]=e,Bt(Tn)}var Dn=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),On=o(((e,t)=>{t.exports=Dn()}))();function kn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function An(e){if(P.isValidElement(e)||(0,On.isValidElementType)(e)||!kn(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=An(e[n])}),t}function jn(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return kn(e)&&kn(t)&&Object.keys(t).forEach(i=>{P.isValidElement(t[i])||(0,On.isValidElementType)(t[i])?r[i]=t[i]:kn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&kn(e[i])?r[i]=jn(e[i],t[i],n):n.clone?r[i]=kn(t[i])?An(t[i]):t[i]:r[i]=t[i]}),r}var Mn=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Nn(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Mn(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function Pn(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function Fn(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function In(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Ln(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Rn={borderRadius:4};function zn(e,t){return t?jn(e,t,{clone:!1}):e}var Bn={xs:0,sm:600,md:900,lg:1200,xl:1536},Vn={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${Bn[e]}px)`},Hn={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Bn[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Un(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||Vn;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||Vn;return Object.keys(t).reduce((i,a)=>{if(Fn(e.keys,a)){let e=In(r.containerQueries?r:Hn,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||Bn).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function Wn(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function Gn(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function Kn(e){if(typeof e!=`string`)throw Error(M(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qn(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function Jn(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:qn(e,n)||r,t&&(i=t(i,r,e)),i}function Yn(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=qn(o,r)||{};return Un(e,a,e=>{let r=Jn(s,i,e);return e===r&&typeof e==`string`&&(r=Jn(s,i,`${t}${e==="default"?``:Kn(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function Xn(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Zn={m:`margin`,p:`padding`},Qn={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},$n={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},er=Xn(e=>{if(e.length>2)if($n[e])e=$n[e];else return[e];let[t,n]=e.split(``),r=Zn[t],i=Qn[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),tr=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],nr=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],rr=[...tr,...nr];function ir(e,t,n,r){let i=qn(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function ar(e){return ir(e,`spacing`,8,`spacing`)}function or(e,t){return typeof t==`string`||t==null?t:e(t)}function sr(e,t){return n=>e.reduce((e,r)=>(e[r]=or(t,n),e),{})}function cr(e,t,n,r){if(!t.includes(n))return null;let i=sr(er(n),r),a=e[n];return Un(e,a,i)}function lr(e,t){let n=ar(e.theme);return Object.keys(e).map(r=>cr(e,t,r,n)).reduce(zn,{})}function ur(e){return lr(e,tr)}ur.propTypes={},ur.filterProps=tr;function dr(e){return lr(e,nr)}dr.propTypes={},dr.filterProps=nr;function fr(e){return lr(e,rr)}fr.propTypes={},fr.filterProps=rr;function pr(e=8,t=ar({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function mr(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?zn(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function hr(e){return typeof e==`number`?`${e}px solid`:e}function gr(e,t){return Yn({prop:e,themeKey:`borders`,transform:t})}var _r=gr(`border`,hr),vr=gr(`borderTop`,hr),yr=gr(`borderRight`,hr),br=gr(`borderBottom`,hr),xr=gr(`borderLeft`,hr),Sr=gr(`borderColor`),Cr=gr(`borderTopColor`),wr=gr(`borderRightColor`),Tr=gr(`borderBottomColor`),Er=gr(`borderLeftColor`),Dr=gr(`outline`,hr),Or=gr(`outlineColor`),kr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=ir(e.theme,`shape.borderRadius`,4,`borderRadius`);return Un(e,e.borderRadius,e=>({borderRadius:or(t,e)}))}return null};kr.propTypes={},kr.filterProps=[`borderRadius`],mr(_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,kr,Dr,Or);var Ar=e=>{if(e.gap!==void 0&&e.gap!==null){let t=ir(e.theme,`spacing`,8,`gap`);return Un(e,e.gap,e=>({gap:or(t,e)}))}return null};Ar.propTypes={},Ar.filterProps=[`gap`];var jr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=ir(e.theme,`spacing`,8,`columnGap`);return Un(e,e.columnGap,e=>({columnGap:or(t,e)}))}return null};jr.propTypes={},jr.filterProps=[`columnGap`];var Mr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=ir(e.theme,`spacing`,8,`rowGap`);return Un(e,e.rowGap,e=>({rowGap:or(t,e)}))}return null};Mr.propTypes={},Mr.filterProps=[`rowGap`],mr(Ar,jr,Mr,Yn({prop:`gridColumn`}),Yn({prop:`gridRow`}),Yn({prop:`gridAutoFlow`}),Yn({prop:`gridAutoColumns`}),Yn({prop:`gridAutoRows`}),Yn({prop:`gridTemplateColumns`}),Yn({prop:`gridTemplateRows`}),Yn({prop:`gridTemplateAreas`}),Yn({prop:`gridArea`}));function Nr(e,t){return t===`grey`?t:e}mr(Yn({prop:`color`,themeKey:`palette`,transform:Nr}),Yn({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Nr}),Yn({prop:`backgroundColor`,themeKey:`palette`,transform:Nr}));function Pr(e){return e<=1&&e!==0?`${e*100}%`:e}var Fr=Yn({prop:`width`,transform:Pr}),Ir=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Un(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Bn[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Pr(t)}}):null;Ir.filterProps=[`maxWidth`];var Lr=Yn({prop:`minWidth`,transform:Pr}),Rr=Yn({prop:`height`,transform:Pr}),zr=Yn({prop:`maxHeight`,transform:Pr}),Br=Yn({prop:`minHeight`,transform:Pr});Yn({prop:`size`,cssProperty:`width`,transform:Pr}),Yn({prop:`size`,cssProperty:`height`,transform:Pr}),mr(Fr,Ir,Lr,Rr,zr,Br,Yn({prop:`boxSizing`}));var Vr={border:{themeKey:`borders`,transform:hr},borderTop:{themeKey:`borders`,transform:hr},borderRight:{themeKey:`borders`,transform:hr},borderBottom:{themeKey:`borders`,transform:hr},borderLeft:{themeKey:`borders`,transform:hr},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:hr},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:kr},color:{themeKey:`palette`,transform:Nr},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Nr},backgroundColor:{themeKey:`palette`,transform:Nr},p:{style:dr},pt:{style:dr},pr:{style:dr},pb:{style:dr},pl:{style:dr},px:{style:dr},py:{style:dr},padding:{style:dr},paddingTop:{style:dr},paddingRight:{style:dr},paddingBottom:{style:dr},paddingLeft:{style:dr},paddingX:{style:dr},paddingY:{style:dr},paddingInline:{style:dr},paddingInlineStart:{style:dr},paddingInlineEnd:{style:dr},paddingBlock:{style:dr},paddingBlockStart:{style:dr},paddingBlockEnd:{style:dr},m:{style:ur},mt:{style:ur},mr:{style:ur},mb:{style:ur},ml:{style:ur},mx:{style:ur},my:{style:ur},margin:{style:ur},marginTop:{style:ur},marginRight:{style:ur},marginBottom:{style:ur},marginLeft:{style:ur},marginX:{style:ur},marginY:{style:ur},marginInline:{style:ur},marginInlineStart:{style:ur},marginInlineEnd:{style:ur},marginBlock:{style:ur},marginBlockStart:{style:ur},marginBlockEnd:{style:ur},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ar},rowGap:{style:Mr},columnGap:{style:jr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Pr},maxWidth:{style:Ir},minWidth:{transform:Pr},height:{transform:Pr},maxHeight:{transform:Pr},minHeight:{transform:Pr},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function Hr(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function Ur(e,t){return typeof e==`function`?e(t):e}function Wr(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=qn(n,s)||{};return l?l(i):Un(i,t,t=>{let n=Jn(u,c,t);return t===n&&typeof t==`string`&&(n=Jn(u,c,`${e}${t==="default"?``:Kn(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??Vr;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=Wn(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=Ur(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=zn(l,e(n,a,i,o));else{let e=Un({theme:i},a,e=>({[n]:e}));Hr(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=zn(l,e)}else l=zn(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Pn(i,Gn(c,l))}:Pn(i,Gn(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var Gr=Wr();Gr.filterProps=[`sx`];function Kr(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function qr(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Nn(n),c=pr(i),l=jn({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Rn,...a}},o);return l=Ln(l),l.applyStyles=Kr,l=t.reduce((e,t)=>jn(e,t),l),l.unstable_sxConfig={...Vr,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Gr({sx:e,theme:this})},l}function Jr(e){return Object.keys(e).length===0}function Yr(e=null){let t=P.useContext(Jt);return!t||Jr(t)?e:t}var Xr=qr();function Zr(e=Xr){return Yr(e)}function Qr(e){let t=En(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function $r({styles:e,themeId:t,defaultTheme:n={}}){let r=Zr(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Qr(typeof e==`function`?e(i):e)):Qr(a)),(0,F.jsx)(Sn,{styles:a})}var ei=e=>e,ti=(()=>{let e=ei;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ei}}})();function ni(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ni(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ri(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ni(e))&&(r&&(r+=` `),r+=t);return r}var ii={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function ai(e,t,n=`Mui`){let r=ii[t];return r?`${n}-${r}`:`${ti.generate(e)}-${t}`}function oi(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=ai(e,t,n)}),r}function si(e){let{variants:t,...n}=e,r={variants:t,style:En(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=En(e.style))}),r}var ci=qr();function li(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function ui(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function di(e){return e?(t,n)=>n[e]:null}function fi(e,t,n){e.theme=gi(e.theme)?n:e.theme[t]||e.theme}function pi(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>pi(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?ui(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?ui(En(i),n):i}return mi(e,r.variants,[t],n)}return r?.isProcessed?n?ui(En(r.style),n):r.style:n?ui(En(r),n):r}function mi(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?ui(En(o.style(i)),r):o.style(i))):n.push(r?ui(En(o.style),r):o.style)}return n}function hi(e={}){let{themeId:t,defaultTheme:n=ci,rootShouldForwardProp:r=li,slotShouldForwardProp:i=li}=e;function a(e){fi(e,t,n)}return(e,t={})=>{wn(e,e=>e.filter(e=>e!==Gr));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=di(vi(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=li;o===`Root`||o===`root`?m=r:o?m=i:_i(e)&&(m=void 0);let h=Cn(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return pi(t,e,t.theme.modularCssLayers?d:void 0)};if(kn(e)){let t=si(e);return function(e){return t.variants?pi(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?ui(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=pi(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?mi(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Gr),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function gi(e){for(let t in e)return!1;return!0}function _i(e){return typeof e==`string`&&e.charCodeAt(0)>96}function vi(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function yi(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=yi(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=ri(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var bi=typeof window<`u`?P.useLayoutEffect:P.useEffect;function xi(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Si(e,t=0,n=1){return xi(e,t,n)}function Ci(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function wi(e){if(e.type)return e;if(e.charAt(0)===`#`)return wi(Ci(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(M(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(M(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Ti=e=>{let t=wi(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Ei=(e,t)=>{try{return Ti(e)}catch{return e}};function Di(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function Oi(e){e=wi(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Di({type:s,values:c})}function ki(e){e=wi(e);let t=e.type===`hsl`||e.type===`hsla`?wi(Oi(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ai(e,t){let n=ki(e),r=ki(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ji(e,t){return e=wi(e),t=Si(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Di(e)}function Mi(e,t,n){try{return ji(e,t)}catch{return e}}function Ni(e,t){if(e=wi(e),t=Si(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Di(e)}function Pi(e,t,n){try{return Ni(e,t)}catch{return e}}function Fi(e,t){if(e=wi(e),t=Si(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Di(e)}function Ii(e,t,n){try{return Fi(e,t)}catch{return e}}function Li(e,t=.15){return ki(e)>.5?Ni(e,t):Fi(e,t)}function Ri(e,t,n){try{return Li(e,t)}catch{return e}}var zi=P.createContext(null);function Bi(){return P.useContext(zi)}var Vi=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Hi(e,t){return typeof t==`function`?t(e):{...e,...t}}function Ui(e){let{children:t,theme:n}=e,r=Bi(),i=P.useMemo(()=>{let e=r===null?{...n}:Hi(r,n);return e!=null&&(e[Vi]=r!==null),e},[n,r]);return(0,F.jsx)(zi.Provider,{value:i,children:t})}var Wi=P.createContext();function Gi({value:e,...t}){return(0,F.jsx)(Wi.Provider,{value:e??!0,...t})}var Ki=()=>P.useContext(Wi)??!1,qi=P.createContext(void 0);function Ji({value:e,children:t}){return(0,F.jsx)(qi.Provider,{value:e,children:t})}function Yi(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?yi(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?yi(i,r,t.components.mergeClassNameAndStyle):r}function Xi({props:e,name:t}){return Yi({props:e,name:t,theme:{components:P.useContext(qi)}})}var Zi=0;function Qi(e){let[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t??(Zi+=1,n(`mui-${Zi}`))},[t]),r}var $i={...P}.useId;function ea(e){if($i!==void 0){let t=$i();return e??t}return Qi(e)}function ta(e){let t=Yr(),n=ea()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,bi(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,F.jsx)($r,{styles:i}):null}var na={};function ra(e,t,n,r=!1){return P.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function ia(e){let{children:t,theme:n,themeId:r}=e,i=Yr(na),a=Bi()||na,o=ra(r,i,n),s=ra(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=ta(o);return(0,F.jsx)(Ui,{theme:s,children:(0,F.jsx)(Jt.Provider,{value:o,children:(0,F.jsx)(Gi,{value:c,children:(0,F.jsxs)(Ji,{value:r?o[r].components:o.components,children:[l,t]})})})})}var aa={theme:void 0};function oa(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(aa.theme=r.theme,i=si(e(aa)),t=i,n=r.theme),i}}var sa=`mode`,ca=`color-scheme`,la=`data-color-scheme`;function ua(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=sa,colorSchemeStorageKey:a=ca,attribute:o=la,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
9
9
  ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
10
10
  ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
11
- ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,I.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
11
+ ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,F.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
12
12
  try {
13
13
  let colorScheme = '';
14
14
  const mode = localStorage.getItem('${i}') || '${t}';
@@ -32,15 +32,15 @@ try {
32
32
  if (colorScheme) {
33
33
  ${l}
34
34
  }
35
- } catch(e){}})();`}},`mui-color-scheme-init`)}function ua(){}var da=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return ua;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function fa(){}function pa(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ma(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function ha(e){return ma(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function ga(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=oa,colorSchemeStorageKey:o=sa,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=da,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=F.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=F.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=F.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=F.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:pa(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=F.useState(l||!d);F.useEffect(()=>{v(!0)},[]);let y=ha(h),b=F.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:pa(r)}})},[f,t]),x=F.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return ma(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=F.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=F.useRef(S);return C.current=S,F.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),F.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||fa,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||fa,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||fa;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var _a=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function va(e){let{themeId:t,theme:n={},modeStorageKey:r=oa,colorSchemeStorageKey:i=sa,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=F.createContext(void 0),u=()=>F.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=F.useRef(!1),E=zi(),D=F.useContext(l),O=!!D&&!b,ee=F.useMemo(()=>u||(typeof n==`function`?n():n),[u]),te=ee[t],k=te||ee,{colorSchemes:A=d,components:ne=f,cssVarPrefix:j}=k,re=Object.keys(A).filter(e=>!!A[e]).join(`,`),ie=F.useMemo(()=>re.split(`,`),[re]),ae=typeof o==`string`?o:o.light,oe=typeof o==`string`?o:o.dark,{mode:M,setMode:se,systemMode:ce,lightColorScheme:le,darkColorScheme:ue,colorScheme:de,setColorScheme:fe}=ga({supportedColorSchemes:ie,defaultLightColorScheme:ae,defaultDarkColorScheme:oe,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:A[ae]&&A[oe]?S:A[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),pe=M,N=de;O&&(pe=D.mode,N=D.colorScheme);let me=N||k.defaultColorScheme;k.vars&&!C&&(me=k.defaultColorScheme);let he=F.useMemo(()=>{let e=k.generateThemeVars?.()||k.vars,t={...k,components:ne,colorSchemes:A,cssVarPrefix:j,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=A[me];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,me,ne,A,j]),ge=k.colorSchemeSelector;yi(()=>{if(N&&y&&ge&&ge!==`media`){let e=ge,t=ge;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...ie.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,N));else{let e=t.replace(`%s`,N).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||ie.forEach(e=>{y.removeAttribute(t.replace(N,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,N)}}},[N,ge,y,ie]),F.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(_a)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[N,h,v]),F.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let _e=F.useMemo(()=>({allColorSchemes:ie,colorScheme:N,darkColorScheme:ue,lightColorScheme:le,mode:pe,setColorScheme:fe,setMode:se,systemMode:ce}),[ie,N,ue,le,pe,fe,se,ce,he.colorSchemeSelector]),ve=!0;(x||k.cssVariables===!1||O&&E?.cssVarPrefix===j)&&(ve=!1);let ye=(0,I.jsxs)(F.Fragment,{children:[(0,I.jsx)(ra,{themeId:te?t:void 0,theme:he,children:c}),ve&&(0,I.jsx)(xn,{styles:he.generateStyleSheets?.()||[]})]});return O?ye:(0,I.jsx)(l.Provider,{value:_e,children:ye})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>la({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function ya(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var ba=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},xa=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Sa=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Ca(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return xa(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Sa(e,t);Object.assign(i,{[r]:c}),ba(a,e,`var(${r})`,s),ba(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function wa(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Ca(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Ca(n,t);p=An(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Ca(h,t);p=An(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=An(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function Ta(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Ea(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function Da(e,t){return F.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Oa={black:`#000`,white:`#fff`},ka={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},Aa={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},ja={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Ma={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Na={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Pa={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Fa={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function Ia(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:Oa.white,default:Oa.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var La=Ia();function Ra(){return{text:{primary:Oa.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:Oa.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var za=Ra();function Ba(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Pi(e.main,i):t===`dark`&&(e.dark=Mi(e.main,a)))}function Va(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Ha(e=`light`){return e===`dark`?{main:Na[200],light:Na[50],dark:Na[400]}:{main:Na[700],light:Na[400],dark:Na[800]}}function Ua(e=`light`){return e===`dark`?{main:Aa[200],light:Aa[50],dark:Aa[400]}:{main:Aa[500],light:Aa[300],dark:Aa[700]}}function Wa(e=`light`){return e===`dark`?{main:ja[500],light:ja[300],dark:ja[700]}:{main:ja[700],light:ja[400],dark:ja[800]}}function Ga(e=`light`){return e===`dark`?{main:Pa[400],light:Pa[300],dark:Pa[700]}:{main:Pa[700],light:Pa[500],dark:Pa[900]}}function Ka(e=`light`){return e===`dark`?{main:Fa[400],light:Fa[300],dark:Fa[700]}:{main:Fa[800],light:Fa[500],dark:Fa[900]}}function qa(e=`light`){return e===`dark`?{main:Ma[400],light:Ma[300],dark:Ma[700]}:{main:`#ed6c02`,light:Ma[500],dark:Ma[900]}}function Ja(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ya(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Ha(t),s=e.secondary||Ua(t),c=e.error||Wa(t),l=e.info||Ga(t),u=e.success||Ka(t),d=e.warning||qa(t);function f(e){return i?Ja(e):ki(e,za.text.primary)>=n?za.text.primary:La.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(M(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(M(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Va(i,e,`light`,a,r),Va(i,e,`dark`,o,r)):(Ba(e,`light`,a,r),Ba(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=Ia():t===`dark`&&(m=Ra()),An({common:{...Oa},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:ka,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Xa(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Za(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Qa(e){return Math.round(e*1e5)/1e5}var $a={textTransform:`uppercase`},eo=`"Roboto", "Helvetica", "Arial", sans-serif`;function to(e,t){let{fontFamily:n=eo,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===eo?{letterSpacing:`${Qa(i/t)}em`}:{},...a,...l});return An({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,$a),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,$a),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var no=.2,ro=.14,io=.12;function ao(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${no})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ro})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${io})`].join(`,`)}var oo=[`none`,ao(0,2,1,-1,0,1,1,0,0,1,3,0),ao(0,3,1,-2,0,2,2,0,0,1,5,0),ao(0,3,3,-2,0,3,4,0,0,1,8,0),ao(0,2,4,-1,0,4,5,0,0,1,10,0),ao(0,3,5,-1,0,5,8,0,0,1,14,0),ao(0,3,5,-1,0,6,10,0,0,1,18,0),ao(0,4,5,-2,0,7,10,1,0,2,16,1),ao(0,5,5,-3,0,8,10,1,0,3,14,2),ao(0,5,6,-3,0,9,12,1,0,3,16,2),ao(0,6,6,-3,0,10,14,1,0,4,18,3),ao(0,6,7,-4,0,11,15,1,0,4,20,3),ao(0,7,8,-4,0,12,17,2,0,5,22,4),ao(0,7,8,-4,0,13,19,2,0,5,24,4),ao(0,7,9,-4,0,14,21,2,0,5,26,4),ao(0,8,9,-5,0,15,22,2,0,6,28,5),ao(0,8,10,-5,0,16,24,2,0,6,30,5),ao(0,8,11,-5,0,17,26,2,0,6,32,5),ao(0,9,11,-5,0,18,28,2,0,7,34,6),ao(0,9,12,-6,0,19,29,2,0,7,36,6),ao(0,10,13,-6,0,20,31,3,0,8,38,7),ao(0,10,13,-6,0,21,33,3,0,8,40,7),ao(0,10,14,-6,0,22,35,3,0,8,42,7),ao(0,11,14,-7,0,23,36,3,0,9,44,8),ao(0,11,15,-7,0,24,38,3,0,9,46,8)],so={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},co={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lo(e){return`${Math.round(e)}ms`}function uo(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function fo(e){let t={...so,...e.easing},n={...co,...e.duration};return{getAutoHeightDuration:uo,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:lo(i)} ${a} ${typeof o==`string`?o:lo(o)}`).join(`,`)},...e,easing:t,duration:n}}var po={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function mo(e){return On(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function ho(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!mo(a)||i.startsWith(`unstable_`)?delete e[i]:On(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
35
+ } catch(e){}})();`}},`mui-color-scheme-init`)}function da(){}var fa=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return da;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function pa(){}function ma(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ha(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function ga(e){return ha(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function _a(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=sa,colorSchemeStorageKey:o=ca,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=fa,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=P.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=P.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=P.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=P.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:ma(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=P.useState(l||!d);P.useEffect(()=>{v(!0)},[]);let y=ga(h),b=P.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:ma(r)}})},[f,t]),x=P.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return ha(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=P.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=P.useRef(S);return C.current=S,P.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),P.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||pa,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||pa,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||pa;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var va=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function ya(e){let{themeId:t,theme:n={},modeStorageKey:r=sa,colorSchemeStorageKey:i=ca,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=P.createContext(void 0),u=()=>P.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=P.useRef(!1),E=Bi(),D=P.useContext(l),O=!!D&&!b,ee=P.useMemo(()=>u||(typeof n==`function`?n():n),[u]),te=ee[t],k=te||ee,{colorSchemes:A=d,components:ne=f,cssVarPrefix:j}=k,re=Object.keys(A).filter(e=>!!A[e]).join(`,`),ie=P.useMemo(()=>re.split(`,`),[re]),ae=typeof o==`string`?o:o.light,oe=typeof o==`string`?o:o.dark,{mode:M,setMode:se,systemMode:ce,lightColorScheme:le,darkColorScheme:ue,colorScheme:de,setColorScheme:fe}=_a({supportedColorSchemes:ie,defaultLightColorScheme:ae,defaultDarkColorScheme:oe,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:A[ae]&&A[oe]?S:A[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),pe=M,N=de;O&&(pe=D.mode,N=D.colorScheme);let me=N||k.defaultColorScheme;k.vars&&!C&&(me=k.defaultColorScheme);let he=P.useMemo(()=>{let e=k.generateThemeVars?.()||k.vars,t={...k,components:ne,colorSchemes:A,cssVarPrefix:j,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=A[me];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,me,ne,A,j]),ge=k.colorSchemeSelector;bi(()=>{if(N&&y&&ge&&ge!==`media`){let e=ge,t=ge;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...ie.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,N));else{let e=t.replace(`%s`,N).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||ie.forEach(e=>{y.removeAttribute(t.replace(N,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,N)}}},[N,ge,y,ie]),P.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(va)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[N,h,v]),P.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let _e=P.useMemo(()=>({allColorSchemes:ie,colorScheme:N,darkColorScheme:ue,lightColorScheme:le,mode:pe,setColorScheme:fe,setMode:se,systemMode:ce}),[ie,N,ue,le,pe,fe,se,ce,he.colorSchemeSelector]),ve=!0;(x||k.cssVariables===!1||O&&E?.cssVarPrefix===j)&&(ve=!1);let ye=(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(ia,{themeId:te?t:void 0,theme:he,children:c}),ve&&(0,F.jsx)(Sn,{styles:he.generateStyleSheets?.()||[]})]});return O?ye:(0,F.jsx)(l.Provider,{value:_e,children:ye})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>ua({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function ba(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var xa=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Sa=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Ca=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function wa(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Sa(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Ca(e,t);Object.assign(i,{[r]:c}),xa(a,e,`var(${r})`,s),xa(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Ta(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=wa(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=wa(n,t);p=jn(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=wa(h,t);p=jn(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=jn(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function Ea(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Da(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function Oa(e,t){return P.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var ka={black:`#000`,white:`#fff`},Aa={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},ja={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},Ma={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Na={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Pa={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Fa={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Ia={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function La(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:ka.white,default:ka.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var Ra=La();function za(){return{text:{primary:ka.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:ka.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var Ba=za();function Va(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Fi(e.main,i):t===`dark`&&(e.dark=Ni(e.main,a)))}function Ha(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Ua(e=`light`){return e===`dark`?{main:Pa[200],light:Pa[50],dark:Pa[400]}:{main:Pa[700],light:Pa[400],dark:Pa[800]}}function Wa(e=`light`){return e===`dark`?{main:ja[200],light:ja[50],dark:ja[400]}:{main:ja[500],light:ja[300],dark:ja[700]}}function Ga(e=`light`){return e===`dark`?{main:Ma[500],light:Ma[300],dark:Ma[700]}:{main:Ma[700],light:Ma[400],dark:Ma[800]}}function Ka(e=`light`){return e===`dark`?{main:Fa[400],light:Fa[300],dark:Fa[700]}:{main:Fa[700],light:Fa[500],dark:Fa[900]}}function qa(e=`light`){return e===`dark`?{main:Ia[400],light:Ia[300],dark:Ia[700]}:{main:Ia[800],light:Ia[500],dark:Ia[900]}}function Ja(e=`light`){return e===`dark`?{main:Na[400],light:Na[300],dark:Na[700]}:{main:`#ed6c02`,light:Na[500],dark:Na[900]}}function Ya(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Xa(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Ua(t),s=e.secondary||Wa(t),c=e.error||Ga(t),l=e.info||Ka(t),u=e.success||qa(t),d=e.warning||Ja(t);function f(e){return i?Ya(e):Ai(e,Ba.text.primary)>=n?Ba.text.primary:Ra.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(M(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(M(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Ha(i,e,`light`,a,r),Ha(i,e,`dark`,o,r)):(Va(e,`light`,a,r),Va(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=La():t===`dark`&&(m=za()),jn({common:{...ka},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Aa,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Za(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Qa(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function $a(e){return Math.round(e*1e5)/1e5}var eo={textTransform:`uppercase`},to=`"Roboto", "Helvetica", "Arial", sans-serif`;function no(e,t){let{fontFamily:n=to,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===to?{letterSpacing:`${$a(i/t)}em`}:{},...a,...l});return jn({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,eo),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,eo),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var ro=.2,io=.14,ao=.12;function oo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ro})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${io})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ao})`].join(`,`)}var so=[`none`,oo(0,2,1,-1,0,1,1,0,0,1,3,0),oo(0,3,1,-2,0,2,2,0,0,1,5,0),oo(0,3,3,-2,0,3,4,0,0,1,8,0),oo(0,2,4,-1,0,4,5,0,0,1,10,0),oo(0,3,5,-1,0,5,8,0,0,1,14,0),oo(0,3,5,-1,0,6,10,0,0,1,18,0),oo(0,4,5,-2,0,7,10,1,0,2,16,1),oo(0,5,5,-3,0,8,10,1,0,3,14,2),oo(0,5,6,-3,0,9,12,1,0,3,16,2),oo(0,6,6,-3,0,10,14,1,0,4,18,3),oo(0,6,7,-4,0,11,15,1,0,4,20,3),oo(0,7,8,-4,0,12,17,2,0,5,22,4),oo(0,7,8,-4,0,13,19,2,0,5,24,4),oo(0,7,9,-4,0,14,21,2,0,5,26,4),oo(0,8,9,-5,0,15,22,2,0,6,28,5),oo(0,8,10,-5,0,16,24,2,0,6,30,5),oo(0,8,11,-5,0,17,26,2,0,6,32,5),oo(0,9,11,-5,0,18,28,2,0,7,34,6),oo(0,9,12,-6,0,19,29,2,0,7,36,6),oo(0,10,13,-6,0,20,31,3,0,8,38,7),oo(0,10,13,-6,0,21,33,3,0,8,40,7),oo(0,10,14,-6,0,22,35,3,0,8,42,7),oo(0,11,14,-7,0,23,36,3,0,9,44,8),oo(0,11,15,-7,0,24,38,3,0,9,46,8)],co={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},lo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uo(e){return`${Math.round(e)}ms`}function fo(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function po(e){let t={...co,...e.easing},n={...lo,...e.duration};return{getAutoHeightDuration:fo,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:uo(i)} ${a} ${typeof o==`string`?o:uo(o)}`).join(`,`)},...e,easing:t,duration:n}}var mo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ho(e){return kn(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function go(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!ho(a)||i.startsWith(`unstable_`)?delete e[i]:kn(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
36
36
 
37
37
  const theme = ${JSON.stringify(t,null,2)};
38
38
 
39
39
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
40
40
  theme.transitions = createTransitions(theme.transitions || {});
41
41
 
42
- export default theme;`}function go(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var _o=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function vo(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:Ai(t,_o(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${go(n)})`:Pi(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${go(n)})`:Mi(t,n)}})}function yo(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(M(20));let d=Ya({...a,colorSpace:l}),f=Kr(e),p=An(f,{mixins:Za(f.breakpoints,r),palette:d,shadows:oo.slice(),typography:to(d,s),transitions:fo(o),zIndex:{...po}});return p=An(p,u),p=t.reduce((e,t)=>An(e,t),p),p.unstable_sxConfig={...Br,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Wr({sx:e,theme:this})},p.toRuntimeSource=ho,vo(p),p}function bo(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var xo=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=bo(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function So(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Co(e){return e===`dark`?xo:[]}function wo(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Ya({...t,colorSpace:i});return{palette:o,opacity:{...So(o.mode),...n},overlays:r||Co(o.mode),...a}}function To(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Eo=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Do=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return Eo(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Oo(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function L(e,t,n){!e[t]&&n&&(e[t]=n)}function ko(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:Di(e)}function Ao(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ti(ko(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
43
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function jo(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Mo=e=>{try{return e()}catch{}},No=(e=`mui`)=>ya(e);function Po(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=wo({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=yo({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...So(a),...n?.opacity},overlays:n?.overlays||Co(a)},s}function Fo(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=To,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=No(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(M(21,f));let b;o&&(b=`oklch`);let x=Po(b,v,y,u,f);h&&!v.light&&Po(b,v,h,void 0,`light`),g&&!v.dark&&Po(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Xa(x.typography),...x.font},spacing:jo(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(L(t.common,`background`,`#fff`),L(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(L(t.common,`background`,`#000`),L(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===ji&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Ni&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Fi&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Oo(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){L(t.Alert,`errorColor`,r(Ni,o?p(`palette-error-light`):t.error.light,.6)),L(t.Alert,`infoColor`,r(Ni,o?p(`palette-info-light`):t.info.light,.6)),L(t.Alert,`successColor`,r(Ni,o?p(`palette-success-light`):t.success.light,.6)),L(t.Alert,`warningColor`,r(Ni,o?p(`palette-warning-light`):t.warning.light,.6)),L(t.Alert,`errorFilledBg`,n(`palette-error-main`)),L(t.Alert,`infoFilledBg`,n(`palette-info-main`)),L(t.Alert,`successFilledBg`,n(`palette-success-main`)),L(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),L(t.Alert,`errorFilledColor`,Mo(()=>t.getContrastText(t.error.main))),L(t.Alert,`infoFilledColor`,Mo(()=>t.getContrastText(t.info.main))),L(t.Alert,`successFilledColor`,Mo(()=>t.getContrastText(t.success.main))),L(t.Alert,`warningFilledColor`,Mo(()=>t.getContrastText(t.warning.main))),L(t.Alert,`errorStandardBg`,r(Fi,o?p(`palette-error-light`):t.error.light,.9)),L(t.Alert,`infoStandardBg`,r(Fi,o?p(`palette-info-light`):t.info.light,.9)),L(t.Alert,`successStandardBg`,r(Fi,o?p(`palette-success-light`):t.success.light,.9)),L(t.Alert,`warningStandardBg`,r(Fi,o?p(`palette-warning-light`):t.warning.light,.9)),L(t.Alert,`errorIconColor`,n(`palette-error-main`)),L(t.Alert,`infoIconColor`,n(`palette-info-main`)),L(t.Alert,`successIconColor`,n(`palette-success-main`)),L(t.Alert,`warningIconColor`,n(`palette-warning-main`)),L(t.AppBar,`defaultBg`,n(`palette-grey-100`)),L(t.Avatar,`defaultBg`,n(`palette-grey-400`)),L(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),L(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),L(t.Chip,`defaultBorder`,n(`palette-grey-400`)),L(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),L(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),L(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),L(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),L(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),L(t.LinearProgress,`primaryBg`,r(Fi,o?p(`palette-primary-main`):t.primary.main,.62)),L(t.LinearProgress,`secondaryBg`,r(Fi,o?p(`palette-secondary-main`):t.secondary.main,.62)),L(t.LinearProgress,`errorBg`,r(Fi,o?p(`palette-error-main`):t.error.main,.62)),L(t.LinearProgress,`infoBg`,r(Fi,o?p(`palette-info-main`):t.info.main,.62)),L(t.LinearProgress,`successBg`,r(Fi,o?p(`palette-success-main`):t.success.main,.62)),L(t.LinearProgress,`warningBg`,r(Fi,o?p(`palette-warning-light`):t.warning.main,.62)),L(t.Skeleton,`bg`,b?r(ji,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),L(t.Slider,`primaryTrack`,r(Fi,o?p(`palette-primary-main`):t.primary.main,.62)),L(t.Slider,`secondaryTrack`,r(Fi,o?p(`palette-secondary-main`):t.secondary.main,.62)),L(t.Slider,`errorTrack`,r(Fi,o?p(`palette-error-main`):t.error.main,.62)),L(t.Slider,`infoTrack`,r(Fi,o?p(`palette-info-main`):t.info.main,.62)),L(t.Slider,`successTrack`,r(Fi,o?p(`palette-success-main`):t.success.main,.62)),L(t.Slider,`warningTrack`,r(Fi,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Ni,o?p(`palette-background-default`):t.background.default,.6825):Li(t.background.default,.8);L(t.SnackbarContent,`bg`,e),L(t.SnackbarContent,`color`,Mo(()=>b?za.text.primary:t.getContrastText(e))),L(t.SpeedDialAction,`fabHoverBg`,Li(t.background.paper,.15)),L(t.StepConnector,`border`,n(`palette-grey-400`)),L(t.StepContent,`border`,n(`palette-grey-400`)),L(t.Switch,`defaultColor`,n(`palette-common-white`)),L(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),L(t.Switch,`primaryDisabledColor`,r(Fi,o?p(`palette-primary-main`):t.primary.main,.62)),L(t.Switch,`secondaryDisabledColor`,r(Fi,o?p(`palette-secondary-main`):t.secondary.main,.62)),L(t.Switch,`errorDisabledColor`,r(Fi,o?p(`palette-error-main`):t.error.main,.62)),L(t.Switch,`infoDisabledColor`,r(Fi,o?p(`palette-info-main`):t.info.main,.62)),L(t.Switch,`successDisabledColor`,r(Fi,o?p(`palette-success-main`):t.success.main,.62)),L(t.Switch,`warningDisabledColor`,r(Fi,o?p(`palette-warning-main`):t.warning.main,.62)),L(t.TableCell,`border`,r(Fi,ji(o?p(`palette-divider`):t.divider,1),.88)),L(t.Tooltip,`bg`,r(ji,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){L(t.Alert,`errorColor`,r(Fi,o?p(`palette-error-light`):t.error.light,.6)),L(t.Alert,`infoColor`,r(Fi,o?p(`palette-info-light`):t.info.light,.6)),L(t.Alert,`successColor`,r(Fi,o?p(`palette-success-light`):t.success.light,.6)),L(t.Alert,`warningColor`,r(Fi,o?p(`palette-warning-light`):t.warning.light,.6)),L(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),L(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),L(t.Alert,`successFilledBg`,n(`palette-success-dark`)),L(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),L(t.Alert,`errorFilledColor`,Mo(()=>t.getContrastText(t.error.dark))),L(t.Alert,`infoFilledColor`,Mo(()=>t.getContrastText(t.info.dark))),L(t.Alert,`successFilledColor`,Mo(()=>t.getContrastText(t.success.dark))),L(t.Alert,`warningFilledColor`,Mo(()=>t.getContrastText(t.warning.dark))),L(t.Alert,`errorStandardBg`,r(Ni,o?p(`palette-error-light`):t.error.light,.9)),L(t.Alert,`infoStandardBg`,r(Ni,o?p(`palette-info-light`):t.info.light,.9)),L(t.Alert,`successStandardBg`,r(Ni,o?p(`palette-success-light`):t.success.light,.9)),L(t.Alert,`warningStandardBg`,r(Ni,o?p(`palette-warning-light`):t.warning.light,.9)),L(t.Alert,`errorIconColor`,n(`palette-error-main`)),L(t.Alert,`infoIconColor`,n(`palette-info-main`)),L(t.Alert,`successIconColor`,n(`palette-success-main`)),L(t.Alert,`warningIconColor`,n(`palette-warning-main`)),L(t.AppBar,`defaultBg`,n(`palette-grey-900`)),L(t.AppBar,`darkBg`,n(`palette-background-paper`)),L(t.AppBar,`darkColor`,n(`palette-text-primary`)),L(t.Avatar,`defaultBg`,n(`palette-grey-600`)),L(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),L(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),L(t.Chip,`defaultBorder`,n(`palette-grey-700`)),L(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),L(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),L(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),L(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),L(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),L(t.LinearProgress,`primaryBg`,r(Ni,o?p(`palette-primary-main`):t.primary.main,.5)),L(t.LinearProgress,`secondaryBg`,r(Ni,o?p(`palette-secondary-main`):t.secondary.main,.5)),L(t.LinearProgress,`errorBg`,r(Ni,o?p(`palette-error-main`):t.error.main,.5)),L(t.LinearProgress,`infoBg`,r(Ni,o?p(`palette-info-main`):t.info.main,.5)),L(t.LinearProgress,`successBg`,r(Ni,o?p(`palette-success-main`):t.success.main,.5)),L(t.LinearProgress,`warningBg`,r(Ni,o?p(`palette-warning-main`):t.warning.main,.5)),L(t.Skeleton,`bg`,b?r(ji,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),L(t.Slider,`primaryTrack`,r(Ni,o?p(`palette-primary-main`):t.primary.main,.5)),L(t.Slider,`secondaryTrack`,r(Ni,o?p(`palette-secondary-main`):t.secondary.main,.5)),L(t.Slider,`errorTrack`,r(Ni,o?p(`palette-error-main`):t.error.main,.5)),L(t.Slider,`infoTrack`,r(Ni,o?p(`palette-info-main`):t.info.main,.5)),L(t.Slider,`successTrack`,r(Ni,o?p(`palette-success-main`):t.success.main,.5)),L(t.Slider,`warningTrack`,r(Ni,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Fi,o?p(`palette-background-default`):t.background.default,.985):Li(t.background.default,.98);L(t.SnackbarContent,`bg`,e),L(t.SnackbarContent,`color`,Mo(()=>b?La.text.primary:t.getContrastText(e))),L(t.SpeedDialAction,`fabHoverBg`,Li(t.background.paper,.15)),L(t.StepConnector,`border`,n(`palette-grey-600`)),L(t.StepContent,`border`,n(`palette-grey-600`)),L(t.Switch,`defaultColor`,n(`palette-grey-300`)),L(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),L(t.Switch,`primaryDisabledColor`,r(Ni,o?p(`palette-primary-main`):t.primary.main,.55)),L(t.Switch,`secondaryDisabledColor`,r(Ni,o?p(`palette-secondary-main`):t.secondary.main,.55)),L(t.Switch,`errorDisabledColor`,r(Ni,o?p(`palette-error-main`):t.error.main,.55)),L(t.Switch,`infoDisabledColor`,r(Ni,o?p(`palette-info-main`):t.info.main,.55)),L(t.Switch,`successDisabledColor`,r(Ni,o?p(`palette-success-main`):t.success.main,.55)),L(t.Switch,`warningDisabledColor`,r(Ni,o?p(`palette-warning-light`):t.warning.main,.55)),L(t.TableCell,`border`,r(Ni,ji(o?p(`palette-divider`):t.divider,1),.68)),L(t.Tooltip,`bg`,r(ji,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Ao(t.background,`default`),Ao(t.background,`paper`),Ao(t.common,`background`),Ao(t.common,`onBackground`),Ao(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&L(t[e],`mainChannel`,Ti(ko(n.main))),n.light&&L(t[e],`lightChannel`,Ti(ko(n.light))),n.dark&&L(t[e],`darkChannel`,Ti(ko(n.dark))),n.contrastText&&L(t[e],`contrastTextChannel`,Ti(ko(n.contrastText))),e===`text`&&(Ao(t[e],`primary`),Ao(t[e],`secondary`)),e===`action`&&(n.active&&Ao(t[e],`active`),n.selected&&Ao(t[e],`selected`)))})}),S=t.reduce((e,t)=>An(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Do(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=wa(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return fr(u.spacing,ir(this))},S.getColorSchemeSelector=Ta(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Br,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Wr({sx:e,theme:this})},S.toRuntimeSource=ho,S}function Io(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ya({...n===!0?{}:n.palette,mode:t})})}function Lo(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return yo(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=yo({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Io(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Io(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Fo({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var Ro=Lo();function zo(){let e=Xr(Ro);return e.$$material||e}function Bo(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Vo=e=>Bo(e)&&e!==`classes`,R=mi({themeId:se,defaultTheme:Ro,rootShouldForwardProp:Vo});function Ho({theme:e,...t}){let n=`$$material`in e?e[se]:void 0;return(0,I.jsx)(ra,{...t,themeId:n?se:void 0,theme:n||e})}var Uo={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Wo,useColorScheme:Go,getInitColorSchemeScript:Ko}=va({themeId:se,theme:()=>Lo({cssVariables:!0}),colorSchemeStorageKey:Uo.colorSchemeStorageKey,modeStorageKey:Uo.modeStorageKey,defaultColorScheme:{light:Uo.defaultLightColorScheme,dark:Uo.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:to(e.palette,e.typography)};return t.unstable_sx=function(e){return Wr({sx:e,theme:this})},t}}),qo=Wo;function Jo({theme:e,...t}){let n=F.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[se]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,I.jsx)(Ho,{theme:n,...t}):(0,I.jsx)(qo,{theme:e,...t})}var Yo={};function Xo(e,t){let n=F.useRef(Yo);return n.current===Yo&&(n.current=e(t)),n}var Zo=[];function Qo(e){F.useEffect(e,Zo)}var $o=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 es(){let e=Xo($o.create).current;return Qo(e.disposeEffect),e}function ts(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function ns(e){return e?.ref||null}var rs=aa;function is(e){return Yi(e)}var as=Gn;function os(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 ss(e,t){return ss=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ss(e,t)}function cs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ss(e,t)}function ls(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function us(e,t){e.classList?e.classList.add(t):ls(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function ds(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function fs(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=ds(e.className,t):e.setAttribute(`class`,ds(e.className&&e.className.baseVal||``,t))}var ps={disabled:!1},ms=F.createContext(null),hs=function(e){return e.scrollTop},gs=l(h()),_s=`unmounted`,vs=`exited`,ys=`entering`,bs=`entered`,xs=`exiting`,Ss=function(e){cs(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=vs,r.appearStatus=ys):o=bs:o=t.unmountOnExit||t.mountOnEnter?_s:vs,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:vs}: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=ys):(n===`entering`||n===`entered`)&&(t=xs)}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:gs.findDOMNode(this);n&&hs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:_s})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[gs.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||ps.disabled){this.safeSetState({status:bs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:ys},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:bs},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:gs.findDOMNode(this);if(!t||ps.disabled){this.safeSetState({status:vs},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:xs},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:vs},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:gs.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=os(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return F.createElement(ms.Provider,{value:null},typeof n==`function`?n(e,r):F.cloneElement(F.Children.only(n),r))},t}(F.Component);Ss.contextType=ms,Ss.propTypes={};function Cs(){}Ss.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cs,onEntering:Cs,onEntered:Cs,onExit:Cs,onExiting:Cs,onExited:Cs},Ss.UNMOUNTED=_s,Ss.EXITED=vs,Ss.ENTERING=ys,Ss.ENTERED=bs,Ss.EXITING=xs;var ws=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return us(e,t)})},Ts=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return fs(e,t)})},Es=function(e){cs(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&&hs(e),r&&(this.appliedClasses[t][n]=r,ws(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&&Ts(e,r),i&&Ts(e,i),a&&Ts(e,a)},n.render=function(){var e=this.props;e.classNames;var t=os(e,[`classNames`]);return F.createElement(Ss,ce({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(F.Component);Es.defaultProps={classNames:``},Es.propTypes={};function Ds(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Os(e,t){var n=function(e){return t&&(0,F.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&F.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function ks(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 As(e,t,n){return n[t]==null?e.props[t]:n[t]}function js(e,t){return Os(e.children,function(n){return(0,F.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:As(n,`appear`,e),enter:As(n,`enter`,e),exit:As(n,`exit`,e)})})}function Ms(e,t,n){var r=Os(e.children),i=ks(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,F.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,F.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:As(o,`exit`,e),enter:As(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,F.cloneElement)(o,{in:!1}):c&&s&&(0,F.isValidElement)(l)&&(i[a]=(0,F.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:As(o,`exit`,e),enter:As(o,`enter`,e)}))}}),i}var Ns=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ps={component:`div`,childFactory:function(e){return e}},Fs=function(e){cs(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Ds(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?js(e,r):Ms(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Os(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ce({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=os(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Ns(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?F.createElement(ms.Provider,{value:i},a):F.createElement(ms.Provider,{value:i},F.createElement(t,r,a))},t}(F.Component);Fs.propTypes={},Fs.defaultProps=Ps;var Is=e=>e.scrollTop;function Ls(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Rs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function zs(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 Bs(...e){let t=F.useRef(void 0),n=F.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 F.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Vs=Bs;function Hs(e){return`scale(${e}, ${e**2})`}var Us={entering:{opacity:1,transform:Hs(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Hs(.75)},exited:{opacity:0,transform:Hs(.75)}},Ws={opacity:0,transform:Hs(.75),visibility:`hidden`},Gs=F.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=es(),_=F.useRef(),v=zo(),y=F.useRef(null),b=Vs(y,ns(i),t),x=Ls(y,l),S=Ls(y,(e,t)=>{Is(e);let{duration:n,delay:r,easing:i}=zs({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=Ls(y,c),w=Ls(y,f),T=Ls(y,e=>{let{duration:t,delay:n,easing:r}=zs({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=Hs(.75),u&&u(e)}),E=Ls(y,e=>{e.style.transition=``,d&&d(e)});return(0,I.jsx)(Ss,{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=Rs(e,o,Us,Ws,p,i.props.style);return F.cloneElement(i,{style:r,ref:b,...n})}})});Gs&&(Gs.muiSupportAuto=!0);function Ks(e){return e&&e.ownerDocument||document}var qs=`bottom`,Js=`right`,Ys=`left`,Xs=`auto`,Zs=[`top`,qs,Js,Ys],Qs=`start`,$s=`clippingParents`,ec=`viewport`,tc=`popper`,nc=`reference`,rc=Zs.reduce(function(e,t){return e.concat([t+`-`+Qs,t+`-end`])},[]),ic=[].concat(Zs,[Xs]).reduce(function(e,t){return e.concat([t,t+`-`+Qs,t+`-end`])},[]),ac=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function oc(e){return e?(e.nodeName||``).toLowerCase():null}function sc(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){return e instanceof sc(e).Element||e instanceof Element}function lc(e){return e instanceof sc(e).HTMLElement||e instanceof HTMLElement}function uc(e){return typeof ShadowRoot>`u`?!1:e instanceof sc(e).ShadowRoot||e instanceof ShadowRoot}function dc(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!lc(i)||!oc(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function fc(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!lc(r)||!oc(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var pc={name:`applyStyles`,enabled:!0,phase:`write`,fn:dc,effect:fc,requires:[`computeStyles`]};function mc(e){return e.split(`-`)[0]}var hc=Math.max,gc=Math.min,_c=Math.round;function vc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function yc(){return!/^((?!chrome|android).)*safari/i.test(vc())}function bc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&lc(e)&&(i=e.offsetWidth>0&&_c(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_c(r.height)/e.offsetHeight||1);var o=(cc(e)?sc(e):window).visualViewport,s=!yc()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function xc(e){var t=bc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Sc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cc(e){return sc(e).getComputedStyle(e)}function wc(e){return[`table`,`td`,`th`].indexOf(oc(e))>=0}function z(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tc(e){return oc(e)===`html`?e:e.assignedSlot||e.parentNode||(uc(e)?e.host:null)||z(e)}function Ec(e){return!lc(e)||Cc(e).position===`fixed`?null:e.offsetParent}function Dc(e){var t=/firefox/i.test(vc());if(/Trident/i.test(vc())&&lc(e)&&Cc(e).position===`fixed`)return null;var n=Tc(e);for(uc(n)&&(n=n.host);lc(n)&&[`html`,`body`].indexOf(oc(n))<0;){var r=Cc(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Oc(e){for(var t=sc(e),n=Ec(e);n&&wc(n)&&Cc(n).position===`static`;)n=Ec(n);return n&&(oc(n)===`html`||oc(n)===`body`&&Cc(n).position===`static`)?t:n||Dc(e)||t}function kc(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Ac(e,t,n){return hc(e,gc(t,n))}function jc(e,t,n){var r=Ac(e,t,n);return r>n?n:r}function Mc(){return{top:0,right:0,bottom:0,left:0}}function Nc(e){return Object.assign({},Mc(),e)}function Pc(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Fc=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Nc(typeof e==`number`?Pc(e,Zs):e)};function Ic(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=mc(n.placement),c=kc(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Fc(i.padding,n),d=xc(a),f=c===`y`?`top`:Ys,p=c===`y`?qs:Js,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Oc(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=Ac(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Lc(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Sc(t.elements.popper,r)&&(t.elements.arrow=r))}var Rc={name:`arrow`,enabled:!0,phase:`main`,fn:Ic,effect:Lc,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function zc(e){return e.split(`-`)[1]}var Bc={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Vc(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_c(n*i)/i||0,y:_c(r*i)/i||0}}function Hc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=Ys,b=`top`,x=window;if(l){var S=Oc(n),C=`clientHeight`,w=`clientWidth`;if(S===sc(n)&&(S=z(n),Cc(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=qs;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Js;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Bc),O=u===!0?Vc({x:p,y:h},sc(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Uc(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:mc(t.placement),variation:zc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Wc={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Uc,data:{}},Gc={passive:!0};function Kc(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=sc(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Gc)}),s&&c.addEventListener(`resize`,n.update,Gc),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Gc)}),s&&c.removeEventListener(`resize`,n.update,Gc)}}var qc={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Kc,data:{}},Jc={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Yc(e){return e.replace(/left|right|bottom|top/g,function(e){return Jc[e]})}var Xc={start:`end`,end:`start`};function Zc(e){return e.replace(/start|end/g,function(e){return Xc[e]})}function Qc(e){var t=sc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $c(e){return bc(z(e)).left+Qc(e).scrollLeft}function el(e,t){var n=sc(e),r=z(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=yc();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+$c(e),y:c}}function tl(e){var t=z(e),n=Qc(e),r=e.ownerDocument?.body,i=hc(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=hc(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+$c(e),s=-n.scrollTop;return Cc(r||t).direction===`rtl`&&(o+=hc(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function nl(e){var t=Cc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function rl(e){return[`html`,`body`,`#document`].indexOf(oc(e))>=0?e.ownerDocument.body:lc(e)&&nl(e)?e:rl(Tc(e))}function il(e,t){t===void 0&&(t=[]);var n=rl(e),r=n===e.ownerDocument?.body,i=sc(n),a=r?[i].concat(i.visualViewport||[],nl(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(il(Tc(a)))}function al(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ol(e,t){var n=bc(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function sl(e,t,n){return t===`viewport`?al(el(e,n)):cc(t)?ol(t,n):al(tl(z(e)))}function cl(e){var t=il(Tc(e)),n=[`absolute`,`fixed`].indexOf(Cc(e).position)>=0&&lc(e)?Oc(e):e;return cc(n)?t.filter(function(e){return cc(e)&&Sc(e,n)&&oc(e)!==`body`}):[]}function ll(e,t,n,r){var i=t===`clippingParents`?cl(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=sl(e,n,r);return t.top=hc(i.top,t.top),t.right=gc(i.right,t.right),t.bottom=gc(i.bottom,t.bottom),t.left=hc(i.left,t.left),t},sl(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ul(e){var t=e.reference,n=e.element,r=e.placement,i=r?mc(r):null,a=r?zc(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case qs:c={x:o,y:t.y+t.height};break;case Js:c={x:t.x+t.width,y:s};break;case Ys:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?kc(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Qs:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function dl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?$s:s,l=n.rootBoundary,u=l===void 0?ec:l,d=n.elementContext,f=d===void 0?tc:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=Nc(typeof g==`number`?Pc(g,Zs):g),v=f===`popper`?nc:tc,y=e.rects.popper,b=e.elements[m?v:f],x=ll(cc(b)?b:b.contextElement||z(e.elements.popper),c,u,o),S=bc(e.elements.reference),C=ul({reference:S,element:y,strategy:`absolute`,placement:i}),w=al(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function fl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?ic:c,u=zc(r),d=u?s?rc:rc.filter(function(e){return zc(e)===u}):Zs,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=dl(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[mc(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function pl(e){if(mc(e)===`auto`)return[];var t=Yc(e);return[Zc(e),t,Zc(t)]}function ml(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=mc(g)===g,v=c||(_||!m?[Yc(g)]:pl(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(mc(n)===`auto`?fl(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=mc(E),O=zc(E)===Qs,ee=[`top`,qs].indexOf(D)>=0,te=ee?`width`:`height`,k=dl(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),A=ee?O?Js:Ys:O?qs:`top`;b[te]>x[te]&&(A=Yc(A));var ne=Yc(A),j=[];if(a&&j.push(k[D]<=0),s&&j.push(k[A]<=0,k[ne]<=0),j.every(function(e){return e})){w=E,C=!1;break}S.set(E,j)}if(C)for(var re=m?3:1,ie=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ae=re;ae>0&&ie(ae)!==`break`;ae--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var hl={name:`flip`,enabled:!0,phase:`main`,fn:ml,requiresIfExists:[`offset`],data:{_skip:!1}};function gl(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _l(e){return[`top`,Js,qs,Ys].some(function(t){return e[t]>=0})}function vl(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=dl(t,{elementContext:`reference`}),s=dl(t,{altBoundary:!0}),c=gl(o,r),l=gl(s,i,a),u=_l(c),d=_l(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var yl={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:vl};function bl(e,t,n){var r=mc(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function xl(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=ic.reduce(function(e,n){return e[n]=bl(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var Sl={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:xl};function Cl(e){var t=e.state,n=e.name;t.modifiersData[n]=ul({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var wl={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Cl,data:{}};function Tl(e){return e===`x`?`y`:`x`}function El(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=dl(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=mc(t.placement),v=zc(t.placement),y=!v,b=kc(_),x=Tl(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:Ys,te=b===`y`?qs:Js,k=b===`y`?`height`:`width`,A=S[b],ne=A+g[ee],j=A-g[te],re=p?-w[k]/2:0,ie=v===`start`?C[k]:w[k],ae=v===`start`?-w[k]:-C[k],oe=t.elements.arrow,M=p&&oe?xc(oe):{width:0,height:0},se=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Mc(),ce=se[ee],le=se[te],ue=Ac(0,C[k],M[k]),de=y?C[k]/2-re-ue-ce-E.mainAxis:ie-ue-ce-E.mainAxis,fe=y?-C[k]/2+re+ue+le+E.mainAxis:ae+ue+le+E.mainAxis,pe=t.elements.arrow&&Oc(t.elements.arrow),N=pe?b===`y`?pe.clientTop||0:pe.clientLeft||0:0,me=D?.[b]??0,he=A+de-me-N,ge=A+fe-me,_e=Ac(p?gc(ne,he):ne,A,p?hc(j,ge):j);S[b]=_e,O[b]=_e-A}if(s){var ve=b===`x`?`top`:Ys,ye=b===`x`?qs:Js,be=S[x],xe=x===`y`?`height`:`width`,Se=be+g[ve],Ce=be-g[ye],we=[`top`,Ys].indexOf(_)!==-1,Te=D?.[x]??0,P=we?Se:be-C[xe]-w[xe]-Te+E.altAxis,Ee=we?be+C[xe]+w[xe]-Te-E.altAxis:Ce,De=p&&we?jc(P,be,Ee):Ac(p?P:Se,be,p?Ee:Ce);S[x]=De,O[x]=De-be}t.modifiersData[r]=O}}var Dl={name:`preventOverflow`,enabled:!0,phase:`main`,fn:El,requiresIfExists:[`offset`]};function Ol(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kl(e){return e===sc(e)||!lc(e)?Qc(e):Ol(e)}function Al(e){var t=e.getBoundingClientRect(),n=_c(t.width)/e.offsetWidth||1,r=_c(t.height)/e.offsetHeight||1;return n!==1||r!==1}function jl(e,t,n){n===void 0&&(n=!1);var r=lc(t),i=lc(t)&&Al(t),a=z(t),o=bc(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((oc(t)!==`body`||nl(a))&&(s=kl(t)),lc(t)?(c=bc(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=$c(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Ml(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Nl(e){var t=Ml(e);return ac.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Pl(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Fl(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Il={placement:`bottom`,modifiers:[],strategy:`absolute`};function Ll(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Rl(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Il:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Il,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:cc(e)?il(e):e.contextElement?il(e.contextElement):[],popper:il(t)};var s=Nl(Fl([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ll(t,n)){i.rects={reference:jl(t,Oc(n),i.options.strategy===`fixed`),popper:xc(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Pl(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ll(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var zl=Rl({defaultModifiers:[qc,wl,Wc,pc,Sl,hl,Dl,Rc,yl]});function Bl(e){return typeof e==`string`}function Vl(e,t,n){return e===void 0||Bl(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Hl(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 Ul(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 Wl(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=ni(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=Hl({...i,...r}),s=Ul(r),c=Ul(i),l=t(o),u=ni(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 Gl(e,t,n){return typeof e==`function`?e(t,n):e}function Kl(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Gl(n,r),{props:s,internalRef:c}=Wl({...a,externalSlotProps:o}),l=Bs(c,o?.ref,e.additionalProps?.ref);return Vl(t,{...s,ref:l},r)}function ql(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Jl(e){return typeof e==`function`?e():e}var Yl=F.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=F.useState(null),s=Bs(F.isValidElement(n)?ns(n):null,t);if(yi(()=>{i||o(Jl(r)||document.body)},[r,i]),yi(()=>{if(a&&!i)return ql(t,a),()=>{ql(t,null)}},[t,a,i]),i){if(F.isValidElement(n)){let e={ref:s};return F.cloneElement(n,e)}return n}return a&&gs.createPortal(n,a)});function Xl(e){return ii(`MuiPopper`,e)}ai(`MuiPopper`,[`root`]);function Zl(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function Ql(e){return typeof e==`function`?e():e}function $l(e){return e.nodeType!==void 0}var eu=e=>{let{classes:t}=e;return Ea({root:[`root`]},Xl,t)},tu={},nu=F.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=F.useRef(null),_=Bs(g,t),v=F.useRef(null),y=Bs(v,u),b=F.useRef(y);yi(()=>{b.current=y},[y]),F.useImperativeHandle(u,()=>v.current,[]);let x=Zl(c,i),[S,C]=F.useState(x),[w,T]=F.useState(Ql(n));F.useEffect(()=>{v.current&&v.current.forceUpdate()}),F.useEffect(()=>{n&&T(Ql(n))},[n]),yi(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=zl(w,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[w,a,o,s,l,x]);let E={placement:S};p!==null&&(E.TransitionProps=p);let D=eu(e),O=f.root??`div`;return(0,I.jsx)(O,{...Kl({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),ru=R(F.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=tu,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=F.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=Ql(n);S=e&&$l(e)?Ks(e).body:Ks(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,I.jsx)(Yl,{disablePortal:o,container:S,children:(0,I.jsx)(nu,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),iu=F.forwardRef(function(e,t){let n=Gi(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=is({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,I.jsx)(ru,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function au(e){let t=F.useRef(e);return yi(()=>{t.current=e}),F.useRef((...e)=>(0,t.current)(...e)).current}var ou=au,su=$i;function cu(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=F.useRef(t!==void 0),[o,s]=F.useState(n);return[a?t:o,F.useCallback(e=>{a||s(e)},[])]}var lu=cu;function uu(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=Gl(d[e],i),{props:{component:h,...g},internalRef:_}=Wl({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Bs(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Vl(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function du(e){return ii(`MuiTooltip`,e)}var fu=ai(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function pu(e){return Math.round(e*1e5)/1e5}var mu=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return Ea({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${as(a.split(`-`)[0])}`],arrow:[`arrow`]},du,t)},hu=R(iu,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(rs(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({open:e})=>!e,style:{pointerEvents:`none`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${fu.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${fu.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${fu.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${fu.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${fu.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${fu.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${fu.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${fu.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),gu=R(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${as(n.placement.split(`-`)[0])}`]]}})(rs(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${fu.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${fu.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${fu.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${fu.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${pu(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${fu.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${fu.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${fu.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${fu.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${fu.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${fu.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${fu.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${fu.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${fu.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${fu.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),_u=R(`span`,{name:`MuiTooltip`,slot:`Arrow`})(rs(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),vu=!1,yu=new $o,bu={x:0,y:0};function xu(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var Su=F.forwardRef(function(e,t){let n=is({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:x,open:S,placement:C=`bottom`,PopperComponent:w,PopperProps:T={},slotProps:E={},slots:D={},title:O,TransitionComponent:ee,TransitionProps:te,...k}=n,A=F.isValidElement(i)?i:(0,I.jsx)(`span`,{children:i}),ne=zo(),j=Gi(),[re,ie]=F.useState(),[ae,oe]=F.useState(null),M=F.useRef(!1),se=d||g,ce=es(),le=es(),ue=es(),de=es(),[fe,pe]=lu({controlled:S,default:!1,name:`Tooltip`,state:`open`}),N=fe,me=su(_),he=F.useRef(),ge=ou(()=>{he.current!==void 0&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),de.clear()});F.useEffect(()=>ge,[ge]);let _e=e=>{yu.clear(),vu=!0,pe(!0),x&&!N&&x(e)},ve=ou(e=>{yu.start(800+v,()=>{vu=!1}),pe(!1),b&&N&&b(e),ce.start(ne.transitions.duration.shortest,()=>{M.current=!1})}),ye=e=>{M.current&&e.type!==`touchstart`||(re&&re.removeAttribute(`title`),le.clear(),ue.clear(),p||vu&&m?le.start(vu?m:p,()=>{_e(e)}):_e(e))},be=e=>{le.clear(),ue.start(v,()=>{ve(e)})},[,xe]=F.useState(!1),Se=e=>{let t=e?.target??re;if(!t||!ts(t)){xe(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),be(n)}},Ce=e=>{re||ie(e.currentTarget),ts(e.target)&&(xe(!0),ye(e))},we=e=>{M.current=!0;let t=A.props;t.onTouchStart&&t.onTouchStart(e)},Te=e=>{we(e),ue.clear(),ce.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,de.start(h,()=>{document.body.style.WebkitUserSelect=he.current,ye(e)})},P=e=>{A.props.onTouchEnd&&A.props.onTouchEnd(e),ge(),ue.start(y,()=>{ve(e)})};F.useEffect(()=>{if(!N)return;function e(e){e.key===`Escape`&&ve(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[ve,N]);let Ee=Vs(ns(A),ie,t);!O&&O!==0&&(N=!1);let De=F.useRef(),Oe=e=>{let t=A.props;t.onMouseMove&&t.onMouseMove(e),bu={x:e.clientX,y:e.clientY},De.current&&De.current.update()},ke={},Ae=typeof O==`string`;c?(ke.title=!N&&Ae&&!u?O:null,ke[`aria-describedby`]=N?me:null):(ke[`aria-label`]=Ae?O:null,ke[`aria-labelledby`]=N&&!Ae?me:null);let je={...ke,...k,...A.props,className:ni(k.className,A.props.className),onTouchStart:we,ref:Ee,...g?{onMouseMove:Oe}:{}},Me={};f||(je.onTouchStart=Te,je.onTouchEnd=P),u||(je.onMouseOver=xu(ye,je.onMouseOver),je.onMouseLeave=xu(be,je.onMouseLeave),se||(Me.onMouseOver=ye,Me.onMouseLeave=be)),l||(je.onFocus=xu(Ce,je.onFocus),je.onBlur=xu(Se,je.onBlur),se||(Me.onFocus=Ce,Me.onBlur=Se));let Ne={...n,isRtl:j,arrow:r,disableInteractive:se,placement:C,PopperComponentProp:w,touch:M.current},Pe=typeof E.popper==`function`?E.popper(Ne):E.popper,Fe=F.useMemo(()=>{let e=[{name:`arrow`,enabled:!!ae,options:{element:ae,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),Pe?.popperOptions?.modifiers&&(e=e.concat(Pe.popperOptions.modifiers)),{...T.popperOptions,...Pe?.popperOptions,modifiers:e}},[ae,T.popperOptions,Pe?.popperOptions]),Ie=mu(Ne),Le=typeof E.transition==`function`?E.transition(Ne):E.transition,Re={slots:{popper:o.Popper,transition:o.Transition??ee,tooltip:o.Tooltip,arrow:o.Arrow,...D},slotProps:{arrow:E.arrow??s.arrow,popper:{...T,...Pe??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...te,...Le??s.transition}}},[ze,Be]=uu(`popper`,{elementType:hu,externalForwardedProps:Re,ownerState:Ne,className:ni(Ie.popper,T?.className)}),[Ve,He]=uu(`transition`,{elementType:Gs,externalForwardedProps:Re,ownerState:Ne}),[Ue,We]=uu(`tooltip`,{elementType:gu,className:Ie.tooltip,externalForwardedProps:Re,ownerState:Ne}),[Ge,Ke]=uu(`arrow`,{elementType:_u,className:Ie.arrow,externalForwardedProps:Re,ownerState:Ne,ref:oe});return(0,I.jsxs)(F.Fragment,{children:[F.cloneElement(A,je),(0,I.jsx)(ze,{as:w??iu,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:bu.y,left:bu.x,right:bu.x,bottom:bu.y,width:0,height:0})}:re,popperRef:De,open:re?N:!1,id:me,transition:!0,...Me,...Be,popperOptions:Fe,children:({TransitionProps:e})=>(0,I.jsx)(Ve,{timeout:ne.transitions.duration.shorter,...e,...He,children:(0,I.jsxs)(Ue,{...We,children:[O,r?(0,I.jsx)(Ge,{...Ke}):null]})})})]})}),Cu=s({greaterThan:()=>Eu,greaterThanEqual:()=>Ou,lessThan:()=>Tu,lessThanEqual:()=>Du}),wu=e=>({...e,category:`comparison`}),Tu=wu({name:`Less than`,latex:`<`,command:`\\lt`}),Eu=wu({name:`Greater than`,latex:`>`,command:`\\gt`}),Du=wu({name:`Less than or equal`,latex:`\\le`,symbol:`<=`,command:`\\le`,ariaLabel:`less than or equal to`}),Ou=wu({name:`Greater than or equal`,symbol:`>=`,command:`\\ge`,latex:`\\ge`}),ku=e=>t=>({...t,category:e}),Au=(e=[])=>{let t=[];ae(5,()=>t.push([]));let n=e.length,r=0,i=0;for(;i<n;)t[r++].push(e[i++]),r===5&&(r=0);return t},ju=e=>t=>{let n=A(e),r=n.some(e=>e.latex===t.latex),i=n.some(e=>e.name===t.name);return!r&&!i},Mu=(e=[],t=[])=>{t=t.filter(ju(e));let n=[];ae(5-e.length,()=>e.push([])),ae(5,()=>n.push([]));let r=Au(t);for(let t=0;t<5;t++)n[t]=[...e[t],...r[t]];return n},Nu=s({theta:()=>Lu,x:()=>Fu,y:()=>Iu}),Pu=ku(`vars`),Fu=Pu({name:`X`,latex:`x`,write:`x`}),Iu=Pu({name:`Y`,latex:`y`,write:`y`}),Lu=Pu({name:`Theta`,latex:`\\theta`,write:`\\theta`}),Ru=s({blankOverBlank:()=>Bu,xBlankBlank:()=>Hu,xOverBlank:()=>Vu}),zu=ku(`fractions`),Bu=zu({name:`blank/blank`,latex:`\\frac{}{}`,command:`\\frac`,ariaLabel:`fraction`}),Vu=zu({latex:`\\frac{x}{ }`,name:`X/blank`,label:`x/[]`,command:`/`,ariaLabel:`x over blank fraction`}),Hu=zu({name:`X (blank/blank)`,latex:`x\\frac{}{}`,label:`x([]/[])`,command:`\\frac`,ariaLabel:`mixed number`}),Uu=s({nthRoot:()=>Ju,squareRoot:()=>qu,squared:()=>Gu,xToPowerOfN:()=>Ku}),Wu=ku(`exponent`),Gu=Wu({name:`Squared`,latex:`x^2`,write:`^2`}),Ku=Wu({name:`X to the power of n`,latex:`x^{}`,command:`^`,ariaLabel:`exponent`}),qu=Wu({name:`Square root`,latex:`\\sqrt{}`,command:`\\sqrt`}),Ju=Wu({name:`Nth root`,latex:`\\sqrt[{}]{}`,command:`\\nthroot`}),Yu=s({absValue:()=>Qu,approx:()=>nd,brackets:()=>ed,nApprox:()=>rd,notEqual:()=>id,notSimilar:()=>od,parenthesis:()=>$u,percentage:()=>td,plusMinus:()=>Zu,similar:()=>ad}),Xu=ku(`misc`),Zu=Xu({name:`Plus or Minus`,latex:`\\pm`,write:`\\pm`}),Qu=Xu({name:`Absolute Value`,latex:`\\abs{}`,symbol:`| |`,command:`|`}),$u=Xu({name:`Parenthesis`,latex:`\\left(\\right)`,symbol:`( )`,command:`(`}),ed=Xu({name:`Brackets`,latex:`\\left[\\right]`,symbol:`[ ]`,command:`[`}),td=Xu({name:`Percent`,latex:`%`,command:`%`}),nd=Xu({latex:`\\approx`,command:`\\approx`,ariaLabel:`Approximately equal to`}),rd=Xu({latex:`\\napprox`,command:`\\napprox`,ariaLabel:`Not pproximately equal to`}),id=Xu({latex:`\\neq`,command:`\\neq`,ariaLabel:`Not equals`}),ad=Xu({latex:`\\sim`,command:`\\sim`,ariaLabel:`Similar`}),od=Xu({latex:`\\nsim`,command:`\\nsim`,ariaLabel:`Not similar`}),sd=s({eulers:()=>ud,halfInfinity:()=>fd,infinity:()=>dd,pi:()=>ld}),cd=ku(`constants`),ld=cd({name:`Pi`,label:`π`,latex:`\\pi`,command:`\\pi`,category:`constants`}),ud=cd({name:`Eulers`,label:`e`,latex:`e`,command:`e`,category:`constants`}),dd=cd({name:`Infinity`,label:`\\infty`,latex:`\\infty`,command:`\\infty`,category:`constants`}),fd=cd({name:`Half Infinity`,label:`\\propto`,latex:`\\propto`,command:`\\propto`,category:`constants`}),pd=s({cos:()=>gd,cot:()=>bd,csc:()=>yd,sec:()=>vd,sin:()=>hd,tan:()=>_d}),md=ku(`trigonometry`),hd=md({name:`sine`,label:`sin`,command:`\\sin`,latex:`\\sin`}),gd=md({name:`cosine`,label:`cos`,command:`\\cos`,latex:`\\cos`}),_d=md({name:`tanget`,label:`tan`,command:`\\tan`,latex:`\\tan`}),vd=md({name:`secant`,label:`sec`,command:`\\sec`,latex:`\\sec`}),yd=md({name:`cosecant`,label:`csc`,command:`\\csc`,latex:`\\csc`}),bd=md({name:`cotangent`,label:`cot`,command:`\\cot`,latex:`\\cot`}),xd=s({angle:()=>Ad,circledDot:()=>Id,congruentTo:()=>zd,degree:()=>Ld,doublePrimeArcSecond:()=>Hd,leftArrow:()=>Ud,leftrightArrow:()=>Gd,measureOfAngle:()=>Md,notCongruentTo:()=>Bd,notParallel:()=>Od,overArc:()=>jd,overLeftRightArrow:()=>Td,overRightArrow:()=>wd,overline:()=>Cd,parallel:()=>Dd,parallelogram:()=>Fd,perpindicular:()=>kd,primeArcminute:()=>Vd,rightArrow:()=>Wd,segment:()=>Ed,similarTo:()=>Rd,square:()=>Pd,triangle:()=>Nd}),Sd=e=>({...e,category:`geometry`}),Cd=Sd({name:`Line`,latex:`\\overline{}`,command:`\\overline`}),wd=Sd({name:`Ray`,latex:`\\overrightarrow{}`,command:`\\overrightarrow`}),Td=Sd({name:`Segment`,latex:`\\overleftrightarrow{\\overline{}}`,symbol:`AB`,command:`\\overleftrightarrow`}),Ed=Sd({name:`Segment`,latex:`\\overleftrightarrow{AB}`,write:`\\overleftrightarrow{AB}`,label:`AB`}),Dd=Sd({name:`Parallel`,latex:`\\parallel`,command:`\\parallel`}),Od=Sd({name:`Not Parallel`,latex:`\\nparallel`,command:`\\nparallel`}),kd=Sd({name:`Perpendicular`,latex:`\\perp`,command:`\\perpendicular`}),Ad=Sd({name:`Angle`,latex:`\\angle`,command:`\\angle`}),jd=Sd({name:`Over arc`,latex:`\\overarc{\\overline{}}`,command:`\\overarc`}),Md=Sd({name:`Measured Angle`,latex:`\\measuredangle`,command:[`m`,`\\angle`]}),Nd=Sd({name:`Triangle`,latex:`\\triangle`,command:`\\triangle`}),Pd=Sd({name:`Square`,latex:`\\square`,command:`\\square`}),Fd=Sd({name:`Parallelogram`,latex:`\\parallelogram`,command:`\\parallelogram`}),Id=Sd({name:`Circled Dot`,latex:`\\odot`,command:`\\odot`}),Ld=Sd({name:`Degree`,latex:`\\degree`,command:`\\degree`}),Rd=Sd({name:`Similar`,command:`\\sim`,latex:`\\sim`}),zd=Sd({name:`Congruent To`,command:`\\cong`,latex:`\\cong`}),Bd=Sd({name:`Not Congruent To`,command:`\\ncong`,latex:`\\ncong`}),Vd=Sd({name:`Prime`,label:`pam`,latex:`'`,write:`'`}),Hd=Sd({name:`Double Prime`,latex:`''`,write:`''`}),Ud=Sd({name:`Left Arrow`,latex:`\\leftarrow`,command:`\\leftarrow`}),Wd=Sd({name:`Right Arrow`,latex:`\\rightarrow`,command:`\\rightarrow`}),Gd=Sd({name:`Left and Right Arrow`,latex:`\\leftrightarrow`,command:`\\leftrightarrow`}),Kd=s({circleDot:()=>qd}),qd=ku(`operators`)({name:`CircleDot`,label:`⋅`,write:`\\cdot`,ariaLabel:`Dot multiplier`}),Jd=s({ln:()=>Qd,log:()=>Xd,logSubscript:()=>Zd}),Yd=ku(`log`),Xd=Yd({name:`Log`,label:`log`,command:`\\log`,latex:`\\log`}),Zd=Yd({name:`log base n`,label:`log s`,latex:`\\log_{}`,command:[`\\log`,`_`]}),Qd=Yd({name:`natural log`,label:`ln`,command:`\\ln`,latex:`\\ln`}),$d=s({subscript:()=>nf,superscript:()=>tf}),ef=ku(`sub-sup`),tf=ef({name:`Superscript`,latex:`x^{}`,command:`^`}),nf=ef({name:`Subscript`,latex:`x_{}`,command:`_`}),rf=s({mu:()=>cf,sigma:()=>lf,smallSigma:()=>uf,xBar:()=>of,yBar:()=>sf}),af=ku(`statistics`),of=af({name:`X Bar`,label:`x̄`,latex:`\\overline{x}`,write:`\\overline{x}`}),sf=af({name:`Y Bar`,latex:`\\overline{y}`,write:`\\overline{y}`}),cf=af({name:`mu`,label:`mu`,latex:`\\mu`,write:`\\mu`}),lf=af({name:`Sigma`,ariaLabel:`Uppercase Sigma`,label:`\\Sigma`,latex:`\\Sigma`,write:`\\Sigma`}),uf=af({name:`sigma`,ariaLabel:`Lowercase Sigma`,label:`\\sigma`,latex:`\\sigma`,write:`\\sigma`}),df=s({divide:()=>gf,equals:()=>pf,minus:()=>hf,multiply:()=>_f,plus:()=>mf}),ff=ku(`operators`),pf=ff({write:`=`,label:`=`}),mf=ff({write:`+`,label:`+`}),hf=ff({write:`−`,label:`−`}),gf=ff({name:`divide`,label:`÷`,command:`\\divide`,otherNotation:`\\div`}),_f=ff({name:`multiply`,label:`×`,command:`\\times`}),vf=s({doubleCellMatrix:()=>xf,singleCellMatrix:()=>bf}),yf=ku(`matrices`),bf=yf({name:`Single Cell Matrix`,label:`[ ]`,write:`\\begin{pmatrix}\\end{pmatrix}`}),xf=yf({name:`Double Cell Matrix`,label:`[ ] [ ] \\\\newline [ ] [ ]`,write:`\\begin{bmatrix}&\\\\&\\end{bmatrix}`}),Sf={0:`zero`,1:`one`,2:`two`,3:`three`,4:`four`,5:`five`,6:`six`,7:`seven`,8:`eight`,9:`nine`},B=ae(10,String).map(e=>({name:Sf[e],write:e,label:e,category:`digit`})).reduce((e,t)=>(e[t.name]=t,e),{comma:{name:`comma`,label:`,`,write:`,`,category:`digit`},decimalPoint:{name:`decimal-point`,label:`.`,write:`.`,category:`digit`}}),Cf=ku(`logic`),wf=Cf({name:`Therefore`,label:`∴`,write:`∴`}),Tf=Cf({name:`Long division`,latex:`\\longdiv{}`,command:`\\longdiv`}),Ef=ku(`navigation`),Df=Ef({label:`◀`,keystroke:`Left`,ariaLabel:`Move cursor left`}),Of=Ef({label:`▶`,keystroke:`Right`,ariaLabel:`Move cursor right`}),kf={label:`⌫`,category:`edit`,keystroke:`Backspace`,ariaLabel:`Delete`},Af=[[Bu,td,Fu,Gu,qu],[qd,Iu,nf,Ku,Ju],[Zu,Tu,Eu,Du,Ou],[ld,Lu,$u,ed,Qu],[id,hd,gd,_d,Ld]],jf=(()=>{let e=[...Af.map(e=>[...e])];return e[0].push({name:`i`,latex:`i`,write:`i`}),e[1].push(Xd),e[2].push(Zd),e[3].push(Qd),e[4].push(ud),e})(),Mf=(()=>{let e=[...Af.map(e=>[...e])];return e[0].push(cf),e[1].push(of),e[2].push(sf),e[3].push(lf),e[4].push(uf),e})(),Nf=[{predicate:e=>e>=3&&e<=5,set:[[Tu,Eu],[Vu,Hu],[Fu,Tf],[Gu,Ku]]},{predicate:e=>e>=6&&e<=7,set:[[Ld,Tu,Eu],[qd,Du,Ou],[Fu,Iu,Gu,Ku],[Zu,Vu,Hu,qu],[ld,$u,Qu,Ju]]},{predicate:e=>e>=8||e===`HS`,set:Af},{predicate:`non-negative-integers`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,{name:``,latex:``,write:``},{name:``,latex:``,write:``}],[Df,Of,kf]]},{predicate:`integers`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,{name:``,latex:``,write:``},hf],[Df,Of,kf]]},{predicate:`decimals`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,B.decimalPoint,hf],[Df,Of,kf]]},{predicate:`fractions`,set:[[B.seven,B.eight,B.nine],[B.four,B.five,B.six],[B.one,B.two,B.three],[B.zero,Bu,hf],[Df,Of,kf]]},{predicate:`geometry`,set:[[Bu,Ld,Vd,Hd,zd,Rd],[qd,Ad,Md,Nd,Bd,od],[hd,gd,_d,ld,qu,Ju],[yd,vd,bd,Lu,nf,Ku],[Cd,wd,Td,jd,kd,Dd]]},{predicate:`advanced-algebra`,set:jf},{predicate:`statistics`,set:Mf},{predicate:`item-authoring`,set:[[gf,Bu,Tf,fd,Gu,qu,Cd,wd,Td,Xd],[_f,qd,{name:``,latex:``,write:``},nf,Ku,Ju,kd,Dd,jd,Zd],[Zu,ld,Lu,Ld,Ad,Ud,Wd,Nd,Pd,Qd],[id,Qu,uf,cf,wf,lf,Gd,hd,gd,_d],[Du,Ou,{name:``,latex:``,write:``},{name:``,latex:``,write:``},dd,{name:``,latex:``,write:``},{name:``,latex:``,write:``},yd,vd,bd]]},{predicate:e=>e>=1&&e<=2,set:[]}],Pf=e=>{let t=parseInt(e,10);if(e=isNaN(t)?e:t,!e)return[];let n=Nf.find(t=>typeof t.predicate==`string`?t.predicate===e:t.predicate(e));if(n)return n.set||[];if(e!==`language`)return Nf[2].set},Ff=[...Object.values(df),...Object.values(Cu),...Object.values(sd),...Object.values(B),...Object.values(Uu),...Object.values(Ru),...Object.values(xd),...Object.values(Jd),...Object.values(vf),...Object.values(Yu),...Object.values(Kd),...Object.values(rf),...Object.values($d),...Object.values(pd),...Object.values(Nu)],If=e=>(e||[]).map(e=>{let{latex:t}=e,n=(Ff||[]).find(e=>t===e.latex||t===e.write||t===e.command||t===e.otherNotation);return t&&n||e}),Lf=()=>{(Array.from(document.querySelectorAll(`span[mathquill-command-id]`))||[]).forEach(e=>{e&&e.innerText===`∥`&&e.className!==`mq-editable-field`&&(e.style.fontSize=`32px`),(e.innerText===`′`||e.innerText===`′′`)&&!e.hasAttribute(`data-prime`)&&e.setAttribute(`data-prime`,`true`)})},{one:Rf,two:zf,three:Bf,four:Vf,five:Hf,six:Uf,seven:Wf,eight:Gf,nine:Kf,zero:qf,comma:Jf,decimalPoint:Yf}=B,Xf=[[Wf,Gf,Kf,gf],[Vf,Hf,Uf,_f],[Rf,zf,Bf,hf],[qf,Yf,Jf,mf],[Df,Of,kf,pf]];function Zf(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Qf(e){return ii(`MuiSvgIcon`,e)}ai(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var $f=e=>{let{color:t,fontSize:n,classes:r}=e;return Ea({root:[`root`,t!==`inherit`&&`color${as(t)}`,`fontSize${as(n)}`]},Qf,r)},ep=R(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${as(n.color)}`],t[`fontSize${as(n.fontSize)}`]]}})(rs(({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}}]}))),tp=F.forwardRef(function(e,t){let n=is({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=F.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=$f(m);return(0,I.jsxs)(ep,{as:o,className:ni(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,I.jsx)(`title`,{children:u}):null]})});tp.muiName=`SvgIcon`;function np(e,t){function n(t,n){return(0,I.jsx)(tp,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=tp.muiName,F.memo(F.forwardRef(n))}function rp(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var ip=rp,ap=Da,op=Ks;function sp(e){return Ks(e).defaultView||window}var cp=sp,lp=yi;function up(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function dp(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{up(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=ni(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=ni(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]]}}}var fp=class e{static create(){return new e}static use(){let t=Xo(e.create).current,[n,r]=F.useState(!1);return t.shouldMount=n,t.setShouldMount=r,F.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=mp(),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 pp(){return fp.use()}function mp(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function hp(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=F.useState(!1),f=ni(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=ni(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),F.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,I.jsx)(`span`,{className:f,style:p,children:(0,I.jsx)(`span`,{className:m})})}var gp=ai(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),_p=550,vp=nn`
42
+ export default theme;`}function _o(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var vo=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function yo(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:ji(t,vo(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${_o(n)})`:Fi(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${_o(n)})`:Ni(t,n)}})}function bo(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(M(20));let d=Xa({...a,colorSpace:l}),f=qr(e),p=jn(f,{mixins:Qa(f.breakpoints,r),palette:d,shadows:so.slice(),typography:no(d,s),transitions:po(o),zIndex:{...mo}});return p=jn(p,u),p=t.reduce((e,t)=>jn(e,t),p),p.unstable_sxConfig={...Vr,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Gr({sx:e,theme:this})},p.toRuntimeSource=go,yo(p),p}function xo(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var So=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=xo(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Co(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function wo(e){return e===`dark`?So:[]}function To(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Xa({...t,colorSpace:i});return{palette:o,opacity:{...Co(o.mode),...n},overlays:r||wo(o.mode),...a}}function Eo(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Do=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Oo=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return Do(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function ko(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function I(e,t,n){!e[t]&&n&&(e[t]=n)}function Ao(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:Oi(e)}function jo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ei(Ao(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
43
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Mo(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var No=e=>{try{return e()}catch{}},Po=(e=`mui`)=>ba(e);function Fo(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=To({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=bo({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Co(a),...n?.opacity},overlays:n?.overlays||wo(a)},s}function Io(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Eo,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Po(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(M(21,f));let b;o&&(b=`oklch`);let x=Fo(b,v,y,u,f);h&&!v.light&&Fo(b,v,h,void 0,`light`),g&&!v.dark&&Fo(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Za(x.typography),...x.font},spacing:Mo(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(I(t.common,`background`,`#fff`),I(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(I(t.common,`background`,`#000`),I(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===Mi&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Pi&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Ii&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(ko(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){I(t.Alert,`errorColor`,r(Pi,o?p(`palette-error-light`):t.error.light,.6)),I(t.Alert,`infoColor`,r(Pi,o?p(`palette-info-light`):t.info.light,.6)),I(t.Alert,`successColor`,r(Pi,o?p(`palette-success-light`):t.success.light,.6)),I(t.Alert,`warningColor`,r(Pi,o?p(`palette-warning-light`):t.warning.light,.6)),I(t.Alert,`errorFilledBg`,n(`palette-error-main`)),I(t.Alert,`infoFilledBg`,n(`palette-info-main`)),I(t.Alert,`successFilledBg`,n(`palette-success-main`)),I(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),I(t.Alert,`errorFilledColor`,No(()=>t.getContrastText(t.error.main))),I(t.Alert,`infoFilledColor`,No(()=>t.getContrastText(t.info.main))),I(t.Alert,`successFilledColor`,No(()=>t.getContrastText(t.success.main))),I(t.Alert,`warningFilledColor`,No(()=>t.getContrastText(t.warning.main))),I(t.Alert,`errorStandardBg`,r(Ii,o?p(`palette-error-light`):t.error.light,.9)),I(t.Alert,`infoStandardBg`,r(Ii,o?p(`palette-info-light`):t.info.light,.9)),I(t.Alert,`successStandardBg`,r(Ii,o?p(`palette-success-light`):t.success.light,.9)),I(t.Alert,`warningStandardBg`,r(Ii,o?p(`palette-warning-light`):t.warning.light,.9)),I(t.Alert,`errorIconColor`,n(`palette-error-main`)),I(t.Alert,`infoIconColor`,n(`palette-info-main`)),I(t.Alert,`successIconColor`,n(`palette-success-main`)),I(t.Alert,`warningIconColor`,n(`palette-warning-main`)),I(t.AppBar,`defaultBg`,n(`palette-grey-100`)),I(t.Avatar,`defaultBg`,n(`palette-grey-400`)),I(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),I(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),I(t.Chip,`defaultBorder`,n(`palette-grey-400`)),I(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),I(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),I(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),I(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),I(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),I(t.LinearProgress,`primaryBg`,r(Ii,o?p(`palette-primary-main`):t.primary.main,.62)),I(t.LinearProgress,`secondaryBg`,r(Ii,o?p(`palette-secondary-main`):t.secondary.main,.62)),I(t.LinearProgress,`errorBg`,r(Ii,o?p(`palette-error-main`):t.error.main,.62)),I(t.LinearProgress,`infoBg`,r(Ii,o?p(`palette-info-main`):t.info.main,.62)),I(t.LinearProgress,`successBg`,r(Ii,o?p(`palette-success-main`):t.success.main,.62)),I(t.LinearProgress,`warningBg`,r(Ii,o?p(`palette-warning-light`):t.warning.main,.62)),I(t.Skeleton,`bg`,b?r(Mi,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),I(t.Slider,`primaryTrack`,r(Ii,o?p(`palette-primary-main`):t.primary.main,.62)),I(t.Slider,`secondaryTrack`,r(Ii,o?p(`palette-secondary-main`):t.secondary.main,.62)),I(t.Slider,`errorTrack`,r(Ii,o?p(`palette-error-main`):t.error.main,.62)),I(t.Slider,`infoTrack`,r(Ii,o?p(`palette-info-main`):t.info.main,.62)),I(t.Slider,`successTrack`,r(Ii,o?p(`palette-success-main`):t.success.main,.62)),I(t.Slider,`warningTrack`,r(Ii,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Pi,o?p(`palette-background-default`):t.background.default,.6825):Ri(t.background.default,.8);I(t.SnackbarContent,`bg`,e),I(t.SnackbarContent,`color`,No(()=>b?Ba.text.primary:t.getContrastText(e))),I(t.SpeedDialAction,`fabHoverBg`,Ri(t.background.paper,.15)),I(t.StepConnector,`border`,n(`palette-grey-400`)),I(t.StepContent,`border`,n(`palette-grey-400`)),I(t.Switch,`defaultColor`,n(`palette-common-white`)),I(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),I(t.Switch,`primaryDisabledColor`,r(Ii,o?p(`palette-primary-main`):t.primary.main,.62)),I(t.Switch,`secondaryDisabledColor`,r(Ii,o?p(`palette-secondary-main`):t.secondary.main,.62)),I(t.Switch,`errorDisabledColor`,r(Ii,o?p(`palette-error-main`):t.error.main,.62)),I(t.Switch,`infoDisabledColor`,r(Ii,o?p(`palette-info-main`):t.info.main,.62)),I(t.Switch,`successDisabledColor`,r(Ii,o?p(`palette-success-main`):t.success.main,.62)),I(t.Switch,`warningDisabledColor`,r(Ii,o?p(`palette-warning-main`):t.warning.main,.62)),I(t.TableCell,`border`,r(Ii,Mi(o?p(`palette-divider`):t.divider,1),.88)),I(t.Tooltip,`bg`,r(Mi,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){I(t.Alert,`errorColor`,r(Ii,o?p(`palette-error-light`):t.error.light,.6)),I(t.Alert,`infoColor`,r(Ii,o?p(`palette-info-light`):t.info.light,.6)),I(t.Alert,`successColor`,r(Ii,o?p(`palette-success-light`):t.success.light,.6)),I(t.Alert,`warningColor`,r(Ii,o?p(`palette-warning-light`):t.warning.light,.6)),I(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),I(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),I(t.Alert,`successFilledBg`,n(`palette-success-dark`)),I(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),I(t.Alert,`errorFilledColor`,No(()=>t.getContrastText(t.error.dark))),I(t.Alert,`infoFilledColor`,No(()=>t.getContrastText(t.info.dark))),I(t.Alert,`successFilledColor`,No(()=>t.getContrastText(t.success.dark))),I(t.Alert,`warningFilledColor`,No(()=>t.getContrastText(t.warning.dark))),I(t.Alert,`errorStandardBg`,r(Pi,o?p(`palette-error-light`):t.error.light,.9)),I(t.Alert,`infoStandardBg`,r(Pi,o?p(`palette-info-light`):t.info.light,.9)),I(t.Alert,`successStandardBg`,r(Pi,o?p(`palette-success-light`):t.success.light,.9)),I(t.Alert,`warningStandardBg`,r(Pi,o?p(`palette-warning-light`):t.warning.light,.9)),I(t.Alert,`errorIconColor`,n(`palette-error-main`)),I(t.Alert,`infoIconColor`,n(`palette-info-main`)),I(t.Alert,`successIconColor`,n(`palette-success-main`)),I(t.Alert,`warningIconColor`,n(`palette-warning-main`)),I(t.AppBar,`defaultBg`,n(`palette-grey-900`)),I(t.AppBar,`darkBg`,n(`palette-background-paper`)),I(t.AppBar,`darkColor`,n(`palette-text-primary`)),I(t.Avatar,`defaultBg`,n(`palette-grey-600`)),I(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),I(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),I(t.Chip,`defaultBorder`,n(`palette-grey-700`)),I(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),I(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),I(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),I(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),I(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),I(t.LinearProgress,`primaryBg`,r(Pi,o?p(`palette-primary-main`):t.primary.main,.5)),I(t.LinearProgress,`secondaryBg`,r(Pi,o?p(`palette-secondary-main`):t.secondary.main,.5)),I(t.LinearProgress,`errorBg`,r(Pi,o?p(`palette-error-main`):t.error.main,.5)),I(t.LinearProgress,`infoBg`,r(Pi,o?p(`palette-info-main`):t.info.main,.5)),I(t.LinearProgress,`successBg`,r(Pi,o?p(`palette-success-main`):t.success.main,.5)),I(t.LinearProgress,`warningBg`,r(Pi,o?p(`palette-warning-main`):t.warning.main,.5)),I(t.Skeleton,`bg`,b?r(Mi,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),I(t.Slider,`primaryTrack`,r(Pi,o?p(`palette-primary-main`):t.primary.main,.5)),I(t.Slider,`secondaryTrack`,r(Pi,o?p(`palette-secondary-main`):t.secondary.main,.5)),I(t.Slider,`errorTrack`,r(Pi,o?p(`palette-error-main`):t.error.main,.5)),I(t.Slider,`infoTrack`,r(Pi,o?p(`palette-info-main`):t.info.main,.5)),I(t.Slider,`successTrack`,r(Pi,o?p(`palette-success-main`):t.success.main,.5)),I(t.Slider,`warningTrack`,r(Pi,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Ii,o?p(`palette-background-default`):t.background.default,.985):Ri(t.background.default,.98);I(t.SnackbarContent,`bg`,e),I(t.SnackbarContent,`color`,No(()=>b?Ra.text.primary:t.getContrastText(e))),I(t.SpeedDialAction,`fabHoverBg`,Ri(t.background.paper,.15)),I(t.StepConnector,`border`,n(`palette-grey-600`)),I(t.StepContent,`border`,n(`palette-grey-600`)),I(t.Switch,`defaultColor`,n(`palette-grey-300`)),I(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),I(t.Switch,`primaryDisabledColor`,r(Pi,o?p(`palette-primary-main`):t.primary.main,.55)),I(t.Switch,`secondaryDisabledColor`,r(Pi,o?p(`palette-secondary-main`):t.secondary.main,.55)),I(t.Switch,`errorDisabledColor`,r(Pi,o?p(`palette-error-main`):t.error.main,.55)),I(t.Switch,`infoDisabledColor`,r(Pi,o?p(`palette-info-main`):t.info.main,.55)),I(t.Switch,`successDisabledColor`,r(Pi,o?p(`palette-success-main`):t.success.main,.55)),I(t.Switch,`warningDisabledColor`,r(Pi,o?p(`palette-warning-light`):t.warning.main,.55)),I(t.TableCell,`border`,r(Pi,Mi(o?p(`palette-divider`):t.divider,1),.68)),I(t.Tooltip,`bg`,r(Mi,o?p(`palette-grey-700`):t.grey[700],.92))}o||(jo(t.background,`default`),jo(t.background,`paper`),jo(t.common,`background`),jo(t.common,`onBackground`),jo(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&I(t[e],`mainChannel`,Ei(Ao(n.main))),n.light&&I(t[e],`lightChannel`,Ei(Ao(n.light))),n.dark&&I(t[e],`darkChannel`,Ei(Ao(n.dark))),n.contrastText&&I(t[e],`contrastTextChannel`,Ei(Ao(n.contrastText))),e===`text`&&(jo(t[e],`primary`),jo(t[e],`secondary`)),e===`action`&&(n.active&&jo(t[e],`active`),n.selected&&jo(t[e],`selected`)))})}),S=t.reduce((e,t)=>jn(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Oo(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=Ta(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return pr(u.spacing,ar(this))},S.getColorSchemeSelector=Ea(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Vr,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Gr({sx:e,theme:this})},S.toRuntimeSource=go,S}function Lo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Xa({...n===!0?{}:n.palette,mode:t})})}function Ro(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return bo(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=bo({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Lo(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Lo(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Io({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var zo=Ro();function Bo(){let e=Zr(zo);return e.$$material||e}function Vo(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Ho=e=>Vo(e)&&e!==`classes`,L=hi({themeId:se,defaultTheme:zo,rootShouldForwardProp:Ho});function Uo({theme:e,...t}){let n=`$$material`in e?e[se]:void 0;return(0,F.jsx)(ia,{...t,themeId:n?se:void 0,theme:n||e})}var Wo={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Go,useColorScheme:Ko,getInitColorSchemeScript:qo}=ya({themeId:se,theme:()=>Ro({cssVariables:!0}),colorSchemeStorageKey:Wo.colorSchemeStorageKey,modeStorageKey:Wo.modeStorageKey,defaultColorScheme:{light:Wo.defaultLightColorScheme,dark:Wo.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:no(e.palette,e.typography)};return t.unstable_sx=function(e){return Gr({sx:e,theme:this})},t}}),Jo=Go;function Yo({theme:e,...t}){let n=P.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[se]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,F.jsx)(Uo,{theme:n,...t}):(0,F.jsx)(Jo,{theme:e,...t})}var Xo={};function Zo(e,t){let n=P.useRef(Xo);return n.current===Xo&&(n.current=e(t)),n}var Qo=[];function $o(e){P.useEffect(e,Qo)}var es=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 ts(){let e=Zo(es.create).current;return $o(e.disposeEffect),e}function ns(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function rs(e){return e?.ref||null}var is=oa;function as(e){return Xi(e)}var os=Kn;function ss(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 cs(e,t){return cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cs(e,t)}function ls(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cs(e,t)}function us(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function ds(e,t){e.classList?e.classList.add(t):us(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function fs(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function ps(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=fs(e.className,t):e.setAttribute(`class`,fs(e.className&&e.className.baseVal||``,t))}var ms={disabled:!1},hs=P.createContext(null),gs=function(e){return e.scrollTop},_s=l(h()),vs=`unmounted`,ys=`exited`,bs=`entering`,xs=`entered`,Ss=`exiting`,Cs=function(e){ls(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=ys,r.appearStatus=bs):o=xs:o=t.unmountOnExit||t.mountOnEnter?vs:ys,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:ys}: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=bs):(n===`entering`||n===`entered`)&&(t=Ss)}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:_s.findDOMNode(this);n&&gs(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:vs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[_s.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||ms.disabled){this.safeSetState({status:xs},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:bs},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:xs},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:_s.findDOMNode(this);if(!t||ms.disabled){this.safeSetState({status:ys},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Ss},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ys},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:_s.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=ss(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return P.createElement(hs.Provider,{value:null},typeof n==`function`?n(e,r):P.cloneElement(P.Children.only(n),r))},t}(P.Component);Cs.contextType=hs,Cs.propTypes={};function ws(){}Cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ws,onEntering:ws,onEntered:ws,onExit:ws,onExiting:ws,onExited:ws},Cs.UNMOUNTED=vs,Cs.EXITED=ys,Cs.ENTERING=bs,Cs.ENTERED=xs,Cs.EXITING=Ss;var Ts=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ds(e,t)})},Es=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return ps(e,t)})},Ds=function(e){ls(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&&gs(e),r&&(this.appliedClasses[t][n]=r,Ts(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&&Es(e,r),i&&Es(e,i),a&&Es(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ss(e,[`classNames`]);return P.createElement(Cs,ce({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(P.Component);Ds.defaultProps={classNames:``},Ds.propTypes={};function Os(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ks(e,t){var n=function(e){return t&&(0,P.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&P.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function As(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 js(e,t,n){return n[t]==null?e.props[t]:n[t]}function Ms(e,t){return ks(e.children,function(n){return(0,P.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:js(n,`appear`,e),enter:js(n,`enter`,e),exit:js(n,`exit`,e)})})}function Ns(e,t,n){var r=ks(e.children),i=As(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,P.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,P.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,P.cloneElement)(o,{in:!1}):c&&s&&(0,P.isValidElement)(l)&&(i[a]=(0,P.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:js(o,`exit`,e),enter:js(o,`enter`,e)}))}}),i}var Ps=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Fs={component:`div`,childFactory:function(e){return e}},Is=function(e){ls(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Os(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?Ms(e,r):Ns(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=ks(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=ce({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ss(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Ps(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?P.createElement(hs.Provider,{value:i},a):P.createElement(hs.Provider,{value:i},P.createElement(t,r,a))},t}(P.Component);Is.propTypes={},Is.defaultProps=Fs;var Ls=e=>e.scrollTop;function Rs(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function zs(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Bs(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 Vs(...e){let t=P.useRef(void 0),n=P.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 P.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Hs=Vs;function Us(e){return`scale(${e}, ${e**2})`}var Ws={entering:{opacity:1,transform:Us(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Us(.75)},exited:{opacity:0,transform:Us(.75)}},Gs={opacity:0,transform:Us(.75),visibility:`hidden`},Ks=P.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=ts(),_=P.useRef(),v=Bo(),y=P.useRef(null),b=Hs(y,rs(i),t),x=Rs(y,l),S=Rs(y,(e,t)=>{Ls(e);let{duration:n,delay:r,easing:i}=Bs({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=Rs(y,c),w=Rs(y,f),T=Rs(y,e=>{let{duration:t,delay:n,easing:r}=Bs({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=Us(.75),u&&u(e)}),E=Rs(y,e=>{e.style.transition=``,d&&d(e)});return(0,F.jsx)(Cs,{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=zs(e,o,Ws,Gs,p,i.props.style);return P.cloneElement(i,{style:r,ref:b,...n})}})});Ks&&(Ks.muiSupportAuto=!0);function qs(e){return e&&e.ownerDocument||document}var Js=`bottom`,Ys=`right`,Xs=`left`,Zs=`auto`,Qs=[`top`,Js,Ys,Xs],$s=`start`,ec=`clippingParents`,tc=`viewport`,nc=`popper`,rc=`reference`,ic=Qs.reduce(function(e,t){return e.concat([t+`-`+$s,t+`-end`])},[]),ac=[].concat(Qs,[Zs]).reduce(function(e,t){return e.concat([t,t+`-`+$s,t+`-end`])},[]),oc=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function sc(e){return e?(e.nodeName||``).toLowerCase():null}function cc(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lc(e){return e instanceof cc(e).Element||e instanceof Element}function uc(e){return e instanceof cc(e).HTMLElement||e instanceof HTMLElement}function dc(e){return typeof ShadowRoot>`u`?!1:e instanceof cc(e).ShadowRoot||e instanceof ShadowRoot}function fc(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!uc(i)||!sc(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function pc(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!uc(r)||!sc(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var mc={name:`applyStyles`,enabled:!0,phase:`write`,fn:fc,effect:pc,requires:[`computeStyles`]};function hc(e){return e.split(`-`)[0]}var gc=Math.max,_c=Math.min,vc=Math.round;function yc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function bc(){return!/^((?!chrome|android).)*safari/i.test(yc())}function xc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&uc(e)&&(i=e.offsetWidth>0&&vc(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&vc(r.height)/e.offsetHeight||1);var o=(lc(e)?cc(e):window).visualViewport,s=!bc()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Sc(e){var t=xc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Cc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wc(e){return cc(e).getComputedStyle(e)}function Tc(e){return[`table`,`td`,`th`].indexOf(sc(e))>=0}function R(e){return((lc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ec(e){return sc(e)===`html`?e:e.assignedSlot||e.parentNode||(dc(e)?e.host:null)||R(e)}function Dc(e){return!uc(e)||wc(e).position===`fixed`?null:e.offsetParent}function Oc(e){var t=/firefox/i.test(yc());if(/Trident/i.test(yc())&&uc(e)&&wc(e).position===`fixed`)return null;var n=Ec(e);for(dc(n)&&(n=n.host);uc(n)&&[`html`,`body`].indexOf(sc(n))<0;){var r=wc(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function kc(e){for(var t=cc(e),n=Dc(e);n&&Tc(n)&&wc(n).position===`static`;)n=Dc(n);return n&&(sc(n)===`html`||sc(n)===`body`&&wc(n).position===`static`)?t:n||Oc(e)||t}function Ac(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function jc(e,t,n){return gc(e,_c(t,n))}function Mc(e,t,n){var r=jc(e,t,n);return r>n?n:r}function Nc(){return{top:0,right:0,bottom:0,left:0}}function Pc(e){return Object.assign({},Nc(),e)}function Fc(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ic=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Pc(typeof e==`number`?Fc(e,Qs):e)};function Lc(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=hc(n.placement),c=Ac(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Ic(i.padding,n),d=Sc(a),f=c===`y`?`top`:Xs,p=c===`y`?Js:Ys,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=kc(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=jc(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Rc(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Cc(t.elements.popper,r)&&(t.elements.arrow=r))}var zc={name:`arrow`,enabled:!0,phase:`main`,fn:Lc,effect:Rc,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Bc(e){return e.split(`-`)[1]}var Vc={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Hc(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:vc(n*i)/i||0,y:vc(r*i)/i||0}}function Uc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=Xs,b=`top`,x=window;if(l){var S=kc(n),C=`clientHeight`,w=`clientWidth`;if(S===cc(n)&&(S=R(n),wc(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Js;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=Ys;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Vc),O=u===!0?Hc({x:p,y:h},cc(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Wc(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:hc(t.placement),variation:Bc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Uc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Uc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Gc={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Wc,data:{}},Kc={passive:!0};function qc(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=cc(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Kc)}),s&&c.addEventListener(`resize`,n.update,Kc),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Kc)}),s&&c.removeEventListener(`resize`,n.update,Kc)}}var Jc={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:qc,data:{}},Yc={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Xc(e){return e.replace(/left|right|bottom|top/g,function(e){return Yc[e]})}var Zc={start:`end`,end:`start`};function Qc(e){return e.replace(/start|end/g,function(e){return Zc[e]})}function $c(e){var t=cc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function el(e){return xc(R(e)).left+$c(e).scrollLeft}function tl(e,t){var n=cc(e),r=R(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=bc();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+el(e),y:c}}function nl(e){var t=R(e),n=$c(e),r=e.ownerDocument?.body,i=gc(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=gc(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+el(e),s=-n.scrollTop;return wc(r||t).direction===`rtl`&&(o+=gc(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function rl(e){var t=wc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function il(e){return[`html`,`body`,`#document`].indexOf(sc(e))>=0?e.ownerDocument.body:uc(e)&&rl(e)?e:il(Ec(e))}function al(e,t){t===void 0&&(t=[]);var n=il(e),r=n===e.ownerDocument?.body,i=cc(n),a=r?[i].concat(i.visualViewport||[],rl(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(al(Ec(a)))}function ol(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sl(e,t){var n=xc(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function cl(e,t,n){return t===`viewport`?ol(tl(e,n)):lc(t)?sl(t,n):ol(nl(R(e)))}function ll(e){var t=al(Ec(e)),n=[`absolute`,`fixed`].indexOf(wc(e).position)>=0&&uc(e)?kc(e):e;return lc(n)?t.filter(function(e){return lc(e)&&Cc(e,n)&&sc(e)!==`body`}):[]}function ul(e,t,n,r){var i=t===`clippingParents`?ll(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=cl(e,n,r);return t.top=gc(i.top,t.top),t.right=_c(i.right,t.right),t.bottom=_c(i.bottom,t.bottom),t.left=gc(i.left,t.left),t},cl(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function dl(e){var t=e.reference,n=e.element,r=e.placement,i=r?hc(r):null,a=r?Bc(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Js:c={x:o,y:t.y+t.height};break;case Ys:c={x:t.x+t.width,y:s};break;case Xs:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Ac(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case $s:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function fl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?ec:s,l=n.rootBoundary,u=l===void 0?tc:l,d=n.elementContext,f=d===void 0?nc:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=Pc(typeof g==`number`?Fc(g,Qs):g),v=f===`popper`?rc:nc,y=e.rects.popper,b=e.elements[m?v:f],x=ul(lc(b)?b:b.contextElement||R(e.elements.popper),c,u,o),S=xc(e.elements.reference),C=dl({reference:S,element:y,strategy:`absolute`,placement:i}),w=ol(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function pl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?ac:c,u=Bc(r),d=u?s?ic:ic.filter(function(e){return Bc(e)===u}):Qs,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=fl(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[hc(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function ml(e){if(hc(e)===`auto`)return[];var t=Xc(e);return[Qc(e),t,Qc(t)]}function hl(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=hc(g)===g,v=c||(_||!m?[Xc(g)]:ml(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(hc(n)===`auto`?pl(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=hc(E),O=Bc(E)===$s,ee=[`top`,Js].indexOf(D)>=0,te=ee?`width`:`height`,k=fl(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),A=ee?O?Ys:Xs:O?Js:`top`;b[te]>x[te]&&(A=Xc(A));var ne=Xc(A),j=[];if(a&&j.push(k[D]<=0),s&&j.push(k[A]<=0,k[ne]<=0),j.every(function(e){return e})){w=E,C=!1;break}S.set(E,j)}if(C)for(var re=m?3:1,ie=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ae=re;ae>0&&ie(ae)!==`break`;ae--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var gl={name:`flip`,enabled:!0,phase:`main`,fn:hl,requiresIfExists:[`offset`],data:{_skip:!1}};function _l(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function vl(e){return[`top`,Ys,Js,Xs].some(function(t){return e[t]>=0})}function yl(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=fl(t,{elementContext:`reference`}),s=fl(t,{altBoundary:!0}),c=_l(o,r),l=_l(s,i,a),u=vl(c),d=vl(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var bl={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:yl};function xl(e,t,n){var r=hc(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Sl(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=ac.reduce(function(e,n){return e[n]=xl(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var Cl={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Sl};function wl(e){var t=e.state,n=e.name;t.modifiersData[n]=dl({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Tl={name:`popperOffsets`,enabled:!0,phase:`read`,fn:wl,data:{}};function El(e){return e===`x`?`y`:`x`}function Dl(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=fl(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=hc(t.placement),v=Bc(t.placement),y=!v,b=Ac(_),x=El(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:Xs,te=b===`y`?Js:Ys,k=b===`y`?`height`:`width`,A=S[b],ne=A+g[ee],j=A-g[te],re=p?-w[k]/2:0,ie=v===`start`?C[k]:w[k],ae=v===`start`?-w[k]:-C[k],oe=t.elements.arrow,M=p&&oe?Sc(oe):{width:0,height:0},se=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Nc(),ce=se[ee],le=se[te],ue=jc(0,C[k],M[k]),de=y?C[k]/2-re-ue-ce-E.mainAxis:ie-ue-ce-E.mainAxis,fe=y?-C[k]/2+re+ue+le+E.mainAxis:ae+ue+le+E.mainAxis,pe=t.elements.arrow&&kc(t.elements.arrow),N=pe?b===`y`?pe.clientTop||0:pe.clientLeft||0:0,me=D?.[b]??0,he=A+de-me-N,ge=A+fe-me,_e=jc(p?_c(ne,he):ne,A,p?gc(j,ge):j);S[b]=_e,O[b]=_e-A}if(s){var ve=b===`x`?`top`:Xs,ye=b===`x`?Js:Ys,be=S[x],xe=x===`y`?`height`:`width`,Se=be+g[ve],Ce=be-g[ye],we=[`top`,Xs].indexOf(_)!==-1,Te=D?.[x]??0,Ee=we?Se:be-C[xe]-w[xe]-Te+E.altAxis,De=we?be+C[xe]+w[xe]-Te-E.altAxis:Ce,Oe=p&&we?Mc(Ee,be,De):jc(p?Ee:Se,be,p?De:Ce);S[x]=Oe,O[x]=Oe-be}t.modifiersData[r]=O}}var Ol={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Dl,requiresIfExists:[`offset`]};function kl(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Al(e){return e===cc(e)||!uc(e)?$c(e):kl(e)}function jl(e){var t=e.getBoundingClientRect(),n=vc(t.width)/e.offsetWidth||1,r=vc(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ml(e,t,n){n===void 0&&(n=!1);var r=uc(t),i=uc(t)&&jl(t),a=R(t),o=xc(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((sc(t)!==`body`||rl(a))&&(s=Al(t)),uc(t)?(c=xc(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=el(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Nl(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Pl(e){var t=Nl(e);return oc.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Fl(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Il(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Ll={placement:`bottom`,modifiers:[],strategy:`absolute`};function Rl(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function zl(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Ll:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Ll,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:lc(e)?al(e):e.contextElement?al(e.contextElement):[],popper:al(t)};var s=Pl(Il([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Rl(t,n)){i.rects={reference:Ml(t,kc(n),i.options.strategy===`fixed`),popper:Sc(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Fl(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Rl(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Bl=zl({defaultModifiers:[Jc,Tl,Gc,mc,Cl,gl,Ol,zc,bl]});function Vl(e){return typeof e==`string`}function Hl(e,t,n){return e===void 0||Vl(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ul(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 Wl(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 Gl(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=ri(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=Ul({...i,...r}),s=Wl(r),c=Wl(i),l=t(o),u=ri(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 Kl(e,t,n){return typeof e==`function`?e(t,n):e}function ql(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Kl(n,r),{props:s,internalRef:c}=Gl({...a,externalSlotProps:o}),l=Vs(c,o?.ref,e.additionalProps?.ref);return Hl(t,{...s,ref:l},r)}function Jl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Yl(e){return typeof e==`function`?e():e}var Xl=P.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=P.useState(null),s=Vs(P.isValidElement(n)?rs(n):null,t);if(bi(()=>{i||o(Yl(r)||document.body)},[r,i]),bi(()=>{if(a&&!i)return Jl(t,a),()=>{Jl(t,null)}},[t,a,i]),i){if(P.isValidElement(n)){let e={ref:s};return P.cloneElement(n,e)}return n}return a&&_s.createPortal(n,a)});function Zl(e){return ai(`MuiPopper`,e)}oi(`MuiPopper`,[`root`]);function Ql(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function $l(e){return typeof e==`function`?e():e}function eu(e){return e.nodeType!==void 0}var tu=e=>{let{classes:t}=e;return Da({root:[`root`]},Zl,t)},nu={},ru=P.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=P.useRef(null),_=Vs(g,t),v=P.useRef(null),y=Vs(v,u),b=P.useRef(y);bi(()=>{b.current=y},[y]),P.useImperativeHandle(u,()=>v.current,[]);let x=Ql(c,i),[S,C]=P.useState(x),[w,T]=P.useState($l(n));P.useEffect(()=>{v.current&&v.current.forceUpdate()}),P.useEffect(()=>{n&&T($l(n))},[n]),bi(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=Bl(w,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[w,a,o,s,l,x]);let E={placement:S};p!==null&&(E.TransitionProps=p);let D=tu(e),O=f.root??`div`;return(0,F.jsx)(O,{...ql({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),iu=L(P.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=nu,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=P.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=$l(n);S=e&&eu(e)?qs(e).body:qs(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,F.jsx)(Xl,{disablePortal:o,container:S,children:(0,F.jsx)(ru,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),au=P.forwardRef(function(e,t){let n=Ki(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=as({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,F.jsx)(iu,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function ou(e){let t=P.useRef(e);return bi(()=>{t.current=e}),P.useRef((...e)=>(0,t.current)(...e)).current}var su=ou,cu=ea;function lu(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=P.useRef(t!==void 0),[o,s]=P.useState(n);return[a?t:o,P.useCallback(e=>{a||s(e)},[])]}var uu=lu;function du(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=Kl(d[e],i),{props:{component:h,...g},internalRef:_}=Gl({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vs(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Hl(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function fu(e){return ai(`MuiTooltip`,e)}var pu=oi(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function mu(e){return Math.round(e*1e5)/1e5}var hu=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return Da({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${os(a.split(`-`)[0])}`],arrow:[`arrow`]},fu,t)},gu=L(au,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(is(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({open:e})=>!e,style:{pointerEvents:`none`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${pu.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${pu.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${pu.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${pu.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${pu.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${pu.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${pu.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${pu.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),_u=L(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${os(n.placement.split(`-`)[0])}`]]}})(is(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${pu.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${pu.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${pu.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${pu.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${mu(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${pu.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${pu.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${pu.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${pu.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${pu.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${pu.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${pu.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${pu.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${pu.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${pu.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),vu=L(`span`,{name:`MuiTooltip`,slot:`Arrow`})(is(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),yu=!1,bu=new es,xu={x:0,y:0};function Su(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var Cu=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:x,open:S,placement:C=`bottom`,PopperComponent:w,PopperProps:T={},slotProps:E={},slots:D={},title:O,TransitionComponent:ee,TransitionProps:te,...k}=n,A=P.isValidElement(i)?i:(0,F.jsx)(`span`,{children:i}),ne=Bo(),j=Ki(),[re,ie]=P.useState(),[ae,oe]=P.useState(null),M=P.useRef(!1),se=d||g,ce=ts(),le=ts(),ue=ts(),de=ts(),[fe,pe]=uu({controlled:S,default:!1,name:`Tooltip`,state:`open`}),N=fe,me=cu(_),he=P.useRef(),ge=su(()=>{he.current!==void 0&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),de.clear()});P.useEffect(()=>ge,[ge]);let _e=e=>{bu.clear(),yu=!0,pe(!0),x&&!N&&x(e)},ve=su(e=>{bu.start(800+v,()=>{yu=!1}),pe(!1),b&&N&&b(e),ce.start(ne.transitions.duration.shortest,()=>{M.current=!1})}),ye=e=>{M.current&&e.type!==`touchstart`||(re&&re.removeAttribute(`title`),le.clear(),ue.clear(),p||yu&&m?le.start(yu?m:p,()=>{_e(e)}):_e(e))},be=e=>{le.clear(),ue.start(v,()=>{ve(e)})},[,xe]=P.useState(!1),Se=e=>{let t=e?.target??re;if(!t||!ns(t)){xe(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),be(n)}},Ce=e=>{re||ie(e.currentTarget),ns(e.target)&&(xe(!0),ye(e))},we=e=>{M.current=!0;let t=A.props;t.onTouchStart&&t.onTouchStart(e)},Te=e=>{we(e),ue.clear(),ce.clear(),ge(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,de.start(h,()=>{document.body.style.WebkitUserSelect=he.current,ye(e)})},Ee=e=>{A.props.onTouchEnd&&A.props.onTouchEnd(e),ge(),ue.start(y,()=>{ve(e)})};P.useEffect(()=>{if(!N)return;function e(e){e.key===`Escape`&&ve(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[ve,N]);let De=Hs(rs(A),ie,t);!O&&O!==0&&(N=!1);let Oe=P.useRef(),ke=e=>{let t=A.props;t.onMouseMove&&t.onMouseMove(e),xu={x:e.clientX,y:e.clientY},Oe.current&&Oe.current.update()},Ae={},je=typeof O==`string`;c?(Ae.title=!N&&je&&!u?O:null,Ae[`aria-describedby`]=N?me:null):(Ae[`aria-label`]=je?O:null,Ae[`aria-labelledby`]=N&&!je?me:null);let Me={...Ae,...k,...A.props,className:ri(k.className,A.props.className),onTouchStart:we,ref:De,...g?{onMouseMove:ke}:{}},Ne={};f||(Me.onTouchStart=Te,Me.onTouchEnd=Ee),u||(Me.onMouseOver=Su(ye,Me.onMouseOver),Me.onMouseLeave=Su(be,Me.onMouseLeave),se||(Ne.onMouseOver=ye,Ne.onMouseLeave=be)),l||(Me.onFocus=Su(Ce,Me.onFocus),Me.onBlur=Su(Se,Me.onBlur),se||(Ne.onFocus=Ce,Ne.onBlur=Se));let Pe={...n,isRtl:j,arrow:r,disableInteractive:se,placement:C,PopperComponentProp:w,touch:M.current},Fe=typeof E.popper==`function`?E.popper(Pe):E.popper,Ie=P.useMemo(()=>{let e=[{name:`arrow`,enabled:!!ae,options:{element:ae,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),Fe?.popperOptions?.modifiers&&(e=e.concat(Fe.popperOptions.modifiers)),{...T.popperOptions,...Fe?.popperOptions,modifiers:e}},[ae,T.popperOptions,Fe?.popperOptions]),Le=hu(Pe),Re=typeof E.transition==`function`?E.transition(Pe):E.transition,ze={slots:{popper:o.Popper,transition:o.Transition??ee,tooltip:o.Tooltip,arrow:o.Arrow,...D},slotProps:{arrow:E.arrow??s.arrow,popper:{...T,...Fe??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...te,...Re??s.transition}}},[Be,Ve]=du(`popper`,{elementType:gu,externalForwardedProps:ze,ownerState:Pe,className:ri(Le.popper,T?.className)}),[He,Ue]=du(`transition`,{elementType:Ks,externalForwardedProps:ze,ownerState:Pe}),[We,Ge]=du(`tooltip`,{elementType:_u,className:Le.tooltip,externalForwardedProps:ze,ownerState:Pe}),[Ke,qe]=du(`arrow`,{elementType:vu,className:Le.arrow,externalForwardedProps:ze,ownerState:Pe,ref:oe});return(0,F.jsxs)(P.Fragment,{children:[P.cloneElement(A,Me),(0,F.jsx)(Be,{as:w??au,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:xu.y,left:xu.x,right:xu.x,bottom:xu.y,width:0,height:0})}:re,popperRef:Oe,open:re?N:!1,id:me,transition:!0,...Ne,...Ve,popperOptions:Ie,children:({TransitionProps:e})=>(0,F.jsx)(He,{timeout:ne.transitions.duration.shorter,...e,...Ue,children:(0,F.jsxs)(We,{...Ge,children:[O,r?(0,F.jsx)(Ke,{...qe}):null]})})})]})}),wu=s({greaterThan:()=>Du,greaterThanEqual:()=>ku,lessThan:()=>Eu,lessThanEqual:()=>Ou}),Tu=e=>({...e,category:`comparison`}),Eu=Tu({name:`Less than`,latex:`<`,command:`\\lt`}),Du=Tu({name:`Greater than`,latex:`>`,command:`\\gt`}),Ou=Tu({name:`Less than or equal`,latex:`\\le`,symbol:`<=`,command:`\\le`,ariaLabel:`less than or equal to`}),ku=Tu({name:`Greater than or equal`,symbol:`>=`,command:`\\ge`,latex:`\\ge`}),Au=e=>t=>({...t,category:e}),ju=(e=[])=>{let t=[];ae(5,()=>t.push([]));let n=e.length,r=0,i=0;for(;i<n;)t[r++].push(e[i++]),r===5&&(r=0);return t},Mu=e=>t=>{let n=A(e),r=n.some(e=>e.latex===t.latex),i=n.some(e=>e.name===t.name);return!r&&!i},Nu=(e=[],t=[])=>{t=t.filter(Mu(e));let n=[];ae(5-e.length,()=>e.push([])),ae(5,()=>n.push([]));let r=ju(t);for(let t=0;t<5;t++)n[t]=[...e[t],...r[t]];return n},Pu=s({theta:()=>Ru,x:()=>Iu,y:()=>Lu}),Fu=Au(`vars`),Iu=Fu({name:`X`,latex:`x`,write:`x`}),Lu=Fu({name:`Y`,latex:`y`,write:`y`}),Ru=Fu({name:`Theta`,latex:`\\theta`,write:`\\theta`}),zu=s({blankOverBlank:()=>Vu,xBlankBlank:()=>Uu,xOverBlank:()=>Hu}),Bu=Au(`fractions`),Vu=Bu({name:`blank/blank`,latex:`\\frac{}{}`,command:`\\frac`,ariaLabel:`fraction`}),Hu=Bu({latex:`\\frac{x}{ }`,name:`X/blank`,label:`x/[]`,command:`/`,ariaLabel:`x over blank fraction`}),Uu=Bu({name:`X (blank/blank)`,latex:`x\\frac{}{}`,label:`x([]/[])`,command:`\\frac`,ariaLabel:`mixed number`}),Wu=s({nthRoot:()=>Yu,squareRoot:()=>Ju,squared:()=>Ku,xToPowerOfN:()=>qu}),Gu=Au(`exponent`),Ku=Gu({name:`Squared`,latex:`x^2`,write:`^2`}),qu=Gu({name:`X to the power of n`,latex:`x^{}`,command:`^`,ariaLabel:`exponent`}),Ju=Gu({name:`Square root`,latex:`\\sqrt{}`,command:`\\sqrt`}),Yu=Gu({name:`Nth root`,latex:`\\sqrt[{}]{}`,command:`\\nthroot`}),Xu=s({absValue:()=>$u,approx:()=>rd,brackets:()=>td,nApprox:()=>id,notEqual:()=>ad,notSimilar:()=>sd,parenthesis:()=>ed,percentage:()=>nd,plusMinus:()=>Qu,similar:()=>od}),Zu=Au(`misc`),Qu=Zu({name:`Plus or Minus`,latex:`\\pm`,write:`\\pm`}),$u=Zu({name:`Absolute Value`,latex:`\\abs{}`,symbol:`| |`,command:`|`}),ed=Zu({name:`Parenthesis`,latex:`\\left(\\right)`,symbol:`( )`,command:`(`}),td=Zu({name:`Brackets`,latex:`\\left[\\right]`,symbol:`[ ]`,command:`[`}),nd=Zu({name:`Percent`,latex:`%`,command:`%`}),rd=Zu({latex:`\\approx`,command:`\\approx`,ariaLabel:`Approximately equal to`}),id=Zu({latex:`\\napprox`,command:`\\napprox`,ariaLabel:`Not pproximately equal to`}),ad=Zu({latex:`\\neq`,command:`\\neq`,ariaLabel:`Not equals`}),od=Zu({latex:`\\sim`,command:`\\sim`,ariaLabel:`Similar`}),sd=Zu({latex:`\\nsim`,command:`\\nsim`,ariaLabel:`Not similar`}),cd=s({eulers:()=>dd,halfInfinity:()=>pd,infinity:()=>fd,pi:()=>ud}),ld=Au(`constants`),ud=ld({name:`Pi`,label:`π`,latex:`\\pi`,command:`\\pi`,category:`constants`}),dd=ld({name:`Eulers`,label:`e`,latex:`e`,command:`e`,category:`constants`}),fd=ld({name:`Infinity`,label:`\\infty`,latex:`\\infty`,command:`\\infty`,category:`constants`}),pd=ld({name:`Half Infinity`,label:`\\propto`,latex:`\\propto`,command:`\\propto`,category:`constants`}),md=s({cos:()=>_d,cot:()=>xd,csc:()=>bd,sec:()=>yd,sin:()=>gd,tan:()=>vd}),hd=Au(`trigonometry`),gd=hd({name:`sine`,label:`sin`,command:`\\sin`,latex:`\\sin`}),_d=hd({name:`cosine`,label:`cos`,command:`\\cos`,latex:`\\cos`}),vd=hd({name:`tanget`,label:`tan`,command:`\\tan`,latex:`\\tan`}),yd=hd({name:`secant`,label:`sec`,command:`\\sec`,latex:`\\sec`}),bd=hd({name:`cosecant`,label:`csc`,command:`\\csc`,latex:`\\csc`}),xd=hd({name:`cotangent`,label:`cot`,command:`\\cot`,latex:`\\cot`}),Sd=s({angle:()=>jd,circledDot:()=>Ld,congruentTo:()=>Bd,degree:()=>Rd,doublePrimeArcSecond:()=>Ud,leftArrow:()=>Wd,leftrightArrow:()=>Kd,measureOfAngle:()=>Nd,notCongruentTo:()=>Vd,notParallel:()=>kd,overArc:()=>Md,overLeftRightArrow:()=>Ed,overRightArrow:()=>Td,overline:()=>wd,parallel:()=>Od,parallelogram:()=>Id,perpindicular:()=>Ad,primeArcminute:()=>Hd,rightArrow:()=>Gd,segment:()=>Dd,similarTo:()=>zd,square:()=>Fd,triangle:()=>Pd}),Cd=e=>({...e,category:`geometry`}),wd=Cd({name:`Line`,latex:`\\overline{}`,command:`\\overline`}),Td=Cd({name:`Ray`,latex:`\\overrightarrow{}`,command:`\\overrightarrow`}),Ed=Cd({name:`Segment`,latex:`\\overleftrightarrow{\\overline{}}`,symbol:`AB`,command:`\\overleftrightarrow`}),Dd=Cd({name:`Segment`,latex:`\\overleftrightarrow{AB}`,write:`\\overleftrightarrow{AB}`,label:`AB`}),Od=Cd({name:`Parallel`,latex:`\\parallel`,command:`\\parallel`}),kd=Cd({name:`Not Parallel`,latex:`\\nparallel`,command:`\\nparallel`}),Ad=Cd({name:`Perpendicular`,latex:`\\perp`,command:`\\perpendicular`}),jd=Cd({name:`Angle`,latex:`\\angle`,command:`\\angle`}),Md=Cd({name:`Over arc`,latex:`\\overarc{\\overline{}}`,command:`\\overarc`}),Nd=Cd({name:`Measured Angle`,latex:`\\measuredangle`,command:[`m`,`\\angle`]}),Pd=Cd({name:`Triangle`,latex:`\\triangle`,command:`\\triangle`}),Fd=Cd({name:`Square`,latex:`\\square`,command:`\\square`}),Id=Cd({name:`Parallelogram`,latex:`\\parallelogram`,command:`\\parallelogram`}),Ld=Cd({name:`Circled Dot`,latex:`\\odot`,command:`\\odot`}),Rd=Cd({name:`Degree`,latex:`\\degree`,command:`\\degree`}),zd=Cd({name:`Similar`,command:`\\sim`,latex:`\\sim`}),Bd=Cd({name:`Congruent To`,command:`\\cong`,latex:`\\cong`}),Vd=Cd({name:`Not Congruent To`,command:`\\ncong`,latex:`\\ncong`}),Hd=Cd({name:`Prime`,label:`pam`,latex:`'`,write:`'`}),Ud=Cd({name:`Double Prime`,latex:`''`,write:`''`}),Wd=Cd({name:`Left Arrow`,latex:`\\leftarrow`,command:`\\leftarrow`}),Gd=Cd({name:`Right Arrow`,latex:`\\rightarrow`,command:`\\rightarrow`}),Kd=Cd({name:`Left and Right Arrow`,latex:`\\leftrightarrow`,command:`\\leftrightarrow`}),qd=s({circleDot:()=>Jd}),Jd=Au(`operators`)({name:`CircleDot`,label:`⋅`,write:`\\cdot`,ariaLabel:`Dot multiplier`}),Yd=s({ln:()=>$d,log:()=>Zd,logSubscript:()=>Qd}),Xd=Au(`log`),Zd=Xd({name:`Log`,label:`log`,command:`\\log`,latex:`\\log`}),Qd=Xd({name:`log base n`,label:`log s`,latex:`\\log_{}`,command:[`\\log`,`_`]}),$d=Xd({name:`natural log`,label:`ln`,command:`\\ln`,latex:`\\ln`}),ef=s({subscript:()=>rf,superscript:()=>nf}),tf=Au(`sub-sup`),nf=tf({name:`Superscript`,latex:`x^{}`,command:`^`}),rf=tf({name:`Subscript`,latex:`x_{}`,command:`_`}),af=s({mu:()=>lf,sigma:()=>uf,smallSigma:()=>df,xBar:()=>sf,yBar:()=>cf}),of=Au(`statistics`),sf=of({name:`X Bar`,label:`x̄`,latex:`\\overline{x}`,write:`\\overline{x}`}),cf=of({name:`Y Bar`,latex:`\\overline{y}`,write:`\\overline{y}`}),lf=of({name:`mu`,label:`mu`,latex:`\\mu`,write:`\\mu`}),uf=of({name:`Sigma`,ariaLabel:`Uppercase Sigma`,label:`\\Sigma`,latex:`\\Sigma`,write:`\\Sigma`}),df=of({name:`sigma`,ariaLabel:`Lowercase Sigma`,label:`\\sigma`,latex:`\\sigma`,write:`\\sigma`}),ff=s({divide:()=>_f,equals:()=>mf,minus:()=>gf,multiply:()=>vf,plus:()=>hf}),pf=Au(`operators`),mf=pf({write:`=`,label:`=`}),hf=pf({write:`+`,label:`+`}),gf=pf({write:`−`,label:`−`}),_f=pf({name:`divide`,label:`÷`,command:`\\divide`,otherNotation:`\\div`}),vf=pf({name:`multiply`,label:`×`,command:`\\times`}),yf=s({doubleCellMatrix:()=>Sf,singleCellMatrix:()=>xf}),bf=Au(`matrices`),xf=bf({name:`Single Cell Matrix`,label:`[ ]`,write:`\\begin{pmatrix}\\end{pmatrix}`}),Sf=bf({name:`Double Cell Matrix`,label:`[ ] [ ] \\\\newline [ ] [ ]`,write:`\\begin{bmatrix}&\\\\&\\end{bmatrix}`}),Cf={0:`zero`,1:`one`,2:`two`,3:`three`,4:`four`,5:`five`,6:`six`,7:`seven`,8:`eight`,9:`nine`},z=ae(10,String).map(e=>({name:Cf[e],write:e,label:e,category:`digit`})).reduce((e,t)=>(e[t.name]=t,e),{comma:{name:`comma`,label:`,`,write:`,`,category:`digit`},decimalPoint:{name:`decimal-point`,label:`.`,write:`.`,category:`digit`}}),wf=Au(`logic`),Tf=wf({name:`Therefore`,label:`∴`,write:`∴`}),Ef=wf({name:`Long division`,latex:`\\longdiv{}`,command:`\\longdiv`}),Df=Au(`navigation`),Of=Df({label:`◀`,keystroke:`Left`,ariaLabel:`Move cursor left`}),kf=Df({label:`▶`,keystroke:`Right`,ariaLabel:`Move cursor right`}),Af={label:`⌫`,category:`edit`,keystroke:`Backspace`,ariaLabel:`Delete`},jf=[[Vu,nd,Iu,Ku,Ju],[Jd,Lu,rf,qu,Yu],[Qu,Eu,Du,Ou,ku],[ud,Ru,ed,td,$u],[ad,gd,_d,vd,Rd]],Mf=(()=>{let e=[...jf.map(e=>[...e])];return e[0].push({name:`i`,latex:`i`,write:`i`}),e[1].push(Zd),e[2].push(Qd),e[3].push($d),e[4].push(dd),e})(),Nf=(()=>{let e=[...jf.map(e=>[...e])];return e[0].push(lf),e[1].push(sf),e[2].push(cf),e[3].push(uf),e[4].push(df),e})(),Pf=[{predicate:e=>e>=3&&e<=5,set:[[Eu,Du],[Hu,Uu],[Iu,Ef],[Ku,qu]]},{predicate:e=>e>=6&&e<=7,set:[[Rd,Eu,Du],[Jd,Ou,ku],[Iu,Lu,Ku,qu],[Qu,Hu,Uu,Ju],[ud,ed,$u,Yu]]},{predicate:e=>e>=8||e===`HS`,set:jf},{predicate:`non-negative-integers`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,{name:``,latex:``,write:``},{name:``,latex:``,write:``}],[Of,kf,Af]]},{predicate:`integers`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,{name:``,latex:``,write:``},gf],[Of,kf,Af]]},{predicate:`decimals`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,z.decimalPoint,gf],[Of,kf,Af]]},{predicate:`fractions`,set:[[z.seven,z.eight,z.nine],[z.four,z.five,z.six],[z.one,z.two,z.three],[z.zero,Vu,gf],[Of,kf,Af]]},{predicate:`geometry`,set:[[Vu,Rd,Hd,Ud,Bd,zd],[Jd,jd,Nd,Pd,Vd,sd],[gd,_d,vd,ud,Ju,Yu],[bd,yd,xd,Ru,rf,qu],[wd,Td,Ed,Md,Ad,Od]]},{predicate:`advanced-algebra`,set:Mf},{predicate:`statistics`,set:Nf},{predicate:`item-authoring`,set:[[_f,Vu,Ef,pd,Ku,Ju,wd,Td,Ed,Zd],[vf,Jd,{name:``,latex:``,write:``},rf,qu,Yu,Ad,Od,Md,Qd],[Qu,ud,Ru,Rd,jd,Wd,Gd,Pd,Fd,$d],[ad,$u,df,lf,Tf,uf,Kd,gd,_d,vd],[Ou,ku,{name:``,latex:``,write:``},{name:``,latex:``,write:``},fd,{name:``,latex:``,write:``},{name:``,latex:``,write:``},bd,yd,xd]]},{predicate:e=>e>=1&&e<=2,set:[]}],Ff=e=>{let t=parseInt(e,10);if(e=isNaN(t)?e:t,!e)return[];let n=Pf.find(t=>typeof t.predicate==`string`?t.predicate===e:t.predicate(e));if(n)return n.set||[];if(e!==`language`)return Pf[2].set},If=[...Object.values(ff),...Object.values(wu),...Object.values(cd),...Object.values(z),...Object.values(Wu),...Object.values(zu),...Object.values(Sd),...Object.values(Yd),...Object.values(yf),...Object.values(Xu),...Object.values(qd),...Object.values(af),...Object.values(ef),...Object.values(md),...Object.values(Pu)],Lf=e=>(e||[]).map(e=>{let{latex:t}=e,n=(If||[]).find(e=>t===e.latex||t===e.write||t===e.command||t===e.otherNotation);return t&&n||e}),Rf=()=>{(Array.from(document.querySelectorAll(`span[mathquill-command-id]`))||[]).forEach(e=>{e&&e.innerText===`∥`&&e.className!==`mq-editable-field`&&(e.style.fontSize=`32px`),(e.innerText===`′`||e.innerText===`′′`)&&!e.hasAttribute(`data-prime`)&&e.setAttribute(`data-prime`,`true`)})},{one:zf,two:Bf,three:Vf,four:Hf,five:Uf,six:Wf,seven:Gf,eight:Kf,nine:qf,zero:Jf,comma:Yf,decimalPoint:Xf}=z,Zf=[[Gf,Kf,qf,_f],[Hf,Uf,Wf,vf],[zf,Bf,Vf,gf],[Jf,Xf,Yf,hf],[Of,kf,Af,mf]];function Qf(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function $f(e){return ai(`MuiSvgIcon`,e)}oi(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var ep=e=>{let{color:t,fontSize:n,classes:r}=e;return Da({root:[`root`,t!==`inherit`&&`color${os(t)}`,`fontSize${os(n)}`]},$f,r)},tp=L(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${os(n.color)}`],t[`fontSize${os(n.fontSize)}`]]}})(is(({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}}]}))),np=P.forwardRef(function(e,t){let n=as({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=P.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=ep(m);return(0,F.jsxs)(tp,{as:o,className:ri(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,F.jsx)(`title`,{children:u}):null]})});np.muiName=`SvgIcon`;function rp(e,t){function n(t,n){return(0,F.jsx)(np,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=np.muiName,P.memo(P.forwardRef(n))}function ip(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var ap=ip,op=Oa,sp=qs;function cp(e){return qs(e).defaultView||window}var lp=cp,up=bi;function dp(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function fp(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{dp(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=ri(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=ri(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]]}}}var pp=class e{static create(){return new e}static use(){let t=Zo(e.create).current,[n,r]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=r,P.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=hp(),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 mp(){return pp.use()}function hp(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function gp(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=P.useState(!1),f=ri(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=ri(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),P.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,F.jsx)(`span`,{className:f,style:p,children:(0,F.jsx)(`span`,{className:m})})}var _p=oi(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),vp=550,yp=rn`
44
44
  0% {
45
45
  transform: scale(0);
46
46
  opacity: 0.1;
@@ -50,7 +50,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
50
50
  transform: scale(1);
51
51
  opacity: 0.3;
52
52
  }
53
- `,yp=nn`
53
+ `,bp=rn`
54
54
  0% {
55
55
  opacity: 1;
56
56
  }
@@ -58,7 +58,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
58
58
  100% {
59
59
  opacity: 0;
60
60
  }
61
- `,bp=nn`
61
+ `,xp=rn`
62
62
  0% {
63
63
  transform: scale(1);
64
64
  }
@@ -70,23 +70,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
70
70
  100% {
71
71
  transform: scale(1);
72
72
  }
73
- `,xp=R(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Sp=R(hp,{name:`MuiTouchRipple`,slot:`Ripple`})`
73
+ `,Sp=L(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Cp=L(gp,{name:`MuiTouchRipple`,slot:`Ripple`})`
74
74
  opacity: 0;
75
75
  position: absolute;
76
76
 
77
- &.${gp.rippleVisible} {
77
+ &.${_p.rippleVisible} {
78
78
  opacity: 0.3;
79
79
  transform: scale(1);
80
- animation-name: ${vp};
81
- animation-duration: ${_p}ms;
80
+ animation-name: ${yp};
81
+ animation-duration: ${vp}ms;
82
82
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
83
83
  }
84
84
 
85
- &.${gp.ripplePulsate} {
85
+ &.${_p.ripplePulsate} {
86
86
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
87
87
  }
88
88
 
89
- & .${gp.child} {
89
+ & .${_p.child} {
90
90
  opacity: 1;
91
91
  display: block;
92
92
  width: 100%;
@@ -95,25 +95,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
95
95
  background-color: currentColor;
96
96
  }
97
97
 
98
- & .${gp.childLeaving} {
98
+ & .${_p.childLeaving} {
99
99
  opacity: 0;
100
- animation-name: ${yp};
101
- animation-duration: ${_p}ms;
100
+ animation-name: ${bp};
101
+ animation-duration: ${vp}ms;
102
102
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
103
103
  }
104
104
 
105
- & .${gp.childPulsate} {
105
+ & .${_p.childPulsate} {
106
106
  position: absolute;
107
107
  /* @noflip */
108
108
  left: 0px;
109
109
  top: 0;
110
- animation-name: ${bp};
110
+ animation-name: ${xp};
111
111
  animation-duration: 2500ms;
112
112
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
113
113
  animation-iteration-count: infinite;
114
114
  animation-delay: 200ms;
115
115
  }
116
- `,Cp=F.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=is({props:e,name:`MuiTouchRipple`}),[o,s]=F.useState([]),c=F.useRef(0),l=F.useRef(null);F.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=F.useRef(!1),d=es(),f=F.useRef(null),p=F.useRef(null),m=F.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,I.jsx)(Sp,{classes:{ripple:ni(r.ripple,gp.ripple),rippleVisible:ni(r.rippleVisible,gp.rippleVisible),ripplePulsate:ni(r.ripplePulsate,gp.ripplePulsate),child:ni(r.child,gp.child),childLeaving:ni(r.childLeaving,gp.childLeaving),childPulsate:ni(r.childPulsate,gp.childPulsate)},timeout:_p,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=F.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=F.useCallback(()=>{h({},{pulsate:!0})},[h]),_=F.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 F.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,I.jsx)(xp,{className:ni(gp.root,r.root,i),ref:p,...a,children:(0,I.jsx)(Fs,{component:null,exit:!0,children:o})})});function wp(e){return ii(`MuiButtonBase`,e)}var Tp=ai(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),Ep=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Ea({root:[`root`,t&&`disabled`,n&&`focusVisible`]},wp,i);return n&&r&&(a.root+=` ${r}`),a},Dp=R(`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`},[`&.${Tp.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),Op=F.forwardRef(function(e,t){let n=is({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:ee,touchRippleRef:te,type:k,...A}=n,ne=F.useRef(null),j=pp(),re=Vs(j.ref,te),[ie,ae]=F.useState(!1);c&&ie&&ae(!1),F.useImperativeHandle(r,()=>({focusVisible:()=>{ae(!0),ne.current.focus()}}),[]);let oe=j.shouldMount&&!l&&!c;F.useEffect(()=>{ie&&d&&!l&&j.pulsate()},[l,d,ie,j]);let M=kp(j,`start`,S,u),se=kp(j,`stop`,g,u),ce=kp(j,`stop`,_,u),le=kp(j,`stop`,w,u),ue=kp(j,`stop`,e=>{ie&&e.preventDefault(),C&&C(e)},u),de=kp(j,`start`,D,u),fe=kp(j,`stop`,T,u),pe=kp(j,`stop`,E,u),N=kp(j,`stop`,e=>{ts(e.target)||ae(!1),m&&m(e)},!1),me=ou(e=>{ne.current||=e.currentTarget,ts(e.target)&&(ae(!0),y&&y(e)),v&&v(e)}),he=()=>{let e=ne.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},ge=ou(e=>{d&&!e.repeat&&ie&&e.key===` `&&j.stop(e,()=>{j.start(e)}),e.target===e.currentTarget&&he()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&he()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),_e=ou(e=>{d&&e.key===` `&&ie&&!e.defaultPrevented&&j.stop(e,()=>{j.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&he()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),ve=s;ve===`button`&&(A.href||A.to)&&(ve=p);let ye={};if(ve===`button`){let e=!!A.formAction;ye.type=k===void 0&&!e?`button`:k,ye.disabled=c}else!A.href&&!A.to&&(ye.role=`button`),c&&(ye[`aria-disabled`]=c);let be=Vs(t,ne),xe={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:ie},Se=Ep(xe);return(0,I.jsxs)(Dp,{as:ve,className:ni(Se.root,o),ownerState:xe,onBlur:N,onClick:h,onContextMenu:se,onFocus:me,onKeyDown:ge,onKeyUp:_e,onMouseDown:M,onMouseLeave:ue,onMouseUp:le,onDragLeave:ce,onTouchEnd:fe,onTouchMove:pe,onTouchStart:de,ref:be,tabIndex:c?-1:O,type:k,...ye,...A,children:[a,oe?(0,I.jsx)(Cp,{ref:re,center:i,...ee}):null]})});function kp(e,t,n,r=!1){return ou(i=>(n&&n(i),r||e[t](i),!0))}function Ap(e){return typeof e.main==`string`}function jp(e,t=[]){if(!Ap(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Mp(e=[]){return([,t])=>t&&jp(t,e)}function Np(e){return ii(`MuiCircularProgress`,e)}ai(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var Pp=44,Fp=nn`
116
+ `,wp=P.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=as({props:e,name:`MuiTouchRipple`}),[o,s]=P.useState([]),c=P.useRef(0),l=P.useRef(null);P.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=P.useRef(!1),d=ts(),f=P.useRef(null),p=P.useRef(null),m=P.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,F.jsx)(Cp,{classes:{ripple:ri(r.ripple,_p.ripple),rippleVisible:ri(r.rippleVisible,_p.rippleVisible),ripplePulsate:ri(r.ripplePulsate,_p.ripplePulsate),child:ri(r.child,_p.child),childLeaving:ri(r.childLeaving,_p.childLeaving),childPulsate:ri(r.childPulsate,_p.childPulsate)},timeout:vp,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=P.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=P.useCallback(()=>{h({},{pulsate:!0})},[h]),_=P.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 P.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,F.jsx)(Sp,{className:ri(_p.root,r.root,i),ref:p,...a,children:(0,F.jsx)(Is,{component:null,exit:!0,children:o})})});function Tp(e){return ai(`MuiButtonBase`,e)}var Ep=oi(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),Dp=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Da({root:[`root`,t&&`disabled`,n&&`focusVisible`]},Tp,i);return n&&r&&(a.root+=` ${r}`),a},Op=L(`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`},[`&.${Ep.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),kp=P.forwardRef(function(e,t){let n=as({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:ee,touchRippleRef:te,type:k,...A}=n,ne=P.useRef(null),j=mp(),re=Hs(j.ref,te),[ie,ae]=P.useState(!1);c&&ie&&ae(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{ae(!0),ne.current.focus()}}),[]);let oe=j.shouldMount&&!l&&!c;P.useEffect(()=>{ie&&d&&!l&&j.pulsate()},[l,d,ie,j]);let M=Ap(j,`start`,S,u),se=Ap(j,`stop`,g,u),ce=Ap(j,`stop`,_,u),le=Ap(j,`stop`,w,u),ue=Ap(j,`stop`,e=>{ie&&e.preventDefault(),C&&C(e)},u),de=Ap(j,`start`,D,u),fe=Ap(j,`stop`,T,u),pe=Ap(j,`stop`,E,u),N=Ap(j,`stop`,e=>{ns(e.target)||ae(!1),m&&m(e)},!1),me=su(e=>{ne.current||=e.currentTarget,ns(e.target)&&(ae(!0),y&&y(e)),v&&v(e)}),he=()=>{let e=ne.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},ge=su(e=>{d&&!e.repeat&&ie&&e.key===` `&&j.stop(e,()=>{j.start(e)}),e.target===e.currentTarget&&he()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&he()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),_e=su(e=>{d&&e.key===` `&&ie&&!e.defaultPrevented&&j.stop(e,()=>{j.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&he()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),ve=s;ve===`button`&&(A.href||A.to)&&(ve=p);let ye={};if(ve===`button`){let e=!!A.formAction;ye.type=k===void 0&&!e?`button`:k,ye.disabled=c}else!A.href&&!A.to&&(ye.role=`button`),c&&(ye[`aria-disabled`]=c);let be=Hs(t,ne),xe={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:ie},Se=Dp(xe);return(0,F.jsxs)(Op,{as:ve,className:ri(Se.root,o),ownerState:xe,onBlur:N,onClick:h,onContextMenu:se,onFocus:me,onKeyDown:ge,onKeyUp:_e,onMouseDown:M,onMouseLeave:ue,onMouseUp:le,onDragLeave:ce,onTouchEnd:fe,onTouchMove:pe,onTouchStart:de,ref:be,tabIndex:c?-1:O,type:k,...ye,...A,children:[a,oe?(0,F.jsx)(wp,{ref:re,center:i,...ee}):null]})});function Ap(e,t,n,r=!1){return su(i=>(n&&n(i),r||e[t](i),!0))}function jp(e){return typeof e.main==`string`}function Mp(e,t=[]){if(!jp(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Np(e=[]){return([,t])=>t&&Mp(t,e)}function Pp(e){return ai(`MuiCircularProgress`,e)}oi(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var Fp=44,Ip=rn`
117
117
  0% {
118
118
  transform: rotate(0deg);
119
119
  }
@@ -121,7 +121,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
121
121
  100% {
122
122
  transform: rotate(360deg);
123
123
  }
124
- `,Ip=nn`
124
+ `,Lp=rn`
125
125
  0% {
126
126
  stroke-dasharray: 1px, 200px;
127
127
  stroke-dashoffset: 0;
@@ -136,30 +136,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
136
136
  stroke-dasharray: 1px, 200px;
137
137
  stroke-dashoffset: -126px;
138
138
  }
139
- `,Lp=typeof Fp==`string`?null:tn`
140
- animation: ${Fp} 1.4s linear infinite;
141
- `,Rp=typeof Ip==`string`?null:tn`
142
- animation: ${Ip} 1.4s ease-in-out infinite;
143
- `,zp=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return Ea({root:[`root`,n,`color${as(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${as(n)}`,i&&`circleDisableShrink`]},Np,t)},Bp=R(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${as(n.color)}`]]}})(rs(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Lp||{animation:`${Fp} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Mp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Vp=R(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Hp=R(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${as(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(rs(({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:Rp||{animation:`${Ip} 1.4s ease-in-out infinite`}}]}))),Up=R(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(rs(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Wp=F.forwardRef(function(e,t){let n=is({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=zp(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((Pp-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,I.jsx)(Bp,{className:ni(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,I.jsxs)(Vp,{className:m.svg,ownerState:p,viewBox:`${Pp/2} ${Pp/2} ${Pp} ${Pp}`,children:[o?(0,I.jsx)(Up,{className:m.track,ownerState:p,cx:Pp,cy:Pp,r:(Pp-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,I.jsx)(Hp,{className:m.circle,style:h,ownerState:p,cx:Pp,cy:Pp,r:(Pp-l)/2,fill:`none`,strokeWidth:l})]})})});function Gp(e){return ii(`MuiButton`,e)}var Kp=ai(`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(`.`)),qp=F.createContext({}),Jp=F.createContext(void 0),Yp=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=Ea({root:[`root`,o&&`loading`,a,`${a}${as(t)}`,`size${as(i)}`,`${a}Size${as(i)}`,`color${as(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${as(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${as(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${as(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Gp,c);return{...c,...l}},Xp=[{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}}}],Zp=R(Op,{shouldForwardProp:e=>Vo(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${as(n.color)}`],t[`size${as(n.size)}`],t[`${n.variant}Size${as(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(rs(({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`},[`&.${Kp.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]},[`&.${Kp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Kp.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)`,[`&.${Kp.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(Mp()).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`},[`&.${Kp.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${Kp.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}),[`&.${Kp.loading}`]:{color:`transparent`}}}]}})),Qp=R(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${as(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}},...Xp]})),$p=R(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${as(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}},...Xp]})),em=R(`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}}]})),tm=R(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),nm=F.forwardRef(function(e,t){let n=F.useContext(qp),r=F.useContext(Jp),i=is({props:vi(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=su(h),T=_??(0,I.jsx)(Wp,{"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=Yp(E),O=(b||g&&v===`start`)&&(0,I.jsx)(Qp,{className:D.startIcon,ownerState:E,children:b||(0,I.jsx)(tm,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=(f||g&&v===`end`)&&(0,I.jsx)($p,{className:D.endIcon,ownerState:E,children:f||(0,I.jsx)(tm,{className:D.loadingIconPlaceholder,ownerState:E})}),te=r||``,k=typeof g==`boolean`?(0,I.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,I.jsx)(em,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:A,...ne}=D;return(0,I.jsxs)(Zp,{ownerState:E,className:ni(n.className,D.root,c,te),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:ni(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:ne,children:[O,v!==`end`&&k,a,v===`end`&&k,ee]})});function rm(e){return ii(`MuiIconButton`,e)}var im=ai(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),am=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return Ea({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${as(r)}`,i&&`edge${as(i)}`,`size${as(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},rm,t)},om=R(Op,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${as(n.color)}`],n.edge&&t[`edge${as(n.edge)}`],t[`size${as(n.size)}`]]}})(rs(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),rs(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(Mp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Mp()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${im.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${im.loading}`]:{color:`transparent`}}))),sm=R(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),cm=F.forwardRef(function(e,t){let n=is({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=su(u),h=f??(0,I.jsx)(Wp,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=am(g);return(0,I.jsxs)(om,{id:d?m:u,className:ni(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,I.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,I.jsx)(sm,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),lm=()=>{};function um(){let e=function(){};return e.enabled=!1,e.log=lm,e.extend=()=>e,e.destroy=lm,e}um.log=lm,um.enable=lm,um.disable=()=>``,um.enabled=()=>!1;var dm=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,fm=({size:e,children:t})=>(e=dm(e),(0,I.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));fm.propTypes={size:O.number,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var pm=({size:e,children:t,sx:n})=>(0,I.jsx)(fm,{size:e,children:(0,I.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});pm.propTypes={size:O.oneOfType([O.string,O.number]),children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,sx:O.object};var mm=({fill:e})=>(0,I.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});mm.propTypes={fill:O.string.isRequired};var hm=({fill:e})=>(0,I.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});hm.propTypes={fill:O.string.isRequired};var gm=({fill:e})=>(0,I.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});gm.propTypes={fill:O.string.isRequired};var _m=({fill:e})=>(0,I.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});_m.propTypes={fill:O.string.isRequired};var vm=({fill:e})=>(0,I.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});vm.propTypes={fill:O.string.isRequired};var ym=(e,t)=>{class n extends F.Component{static propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,size:O.oneOfType([O.number,O.string]),fg:O.string,bg:O.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,I.jsx)(e,{fill:s}):(0,I.jsx)(t,{fill:s}),u=n===`check`?(0,I.jsx)(e,{fill:c}):(0,I.jsx)(t,{fill:c});return a?(0,I.jsx)(pm,{size:o,children:u}):(0,I.jsxs)(pm,{size:o,children:[i===`feedback`?r===`round`?(0,I.jsx)(gm,{fill:c}):(0,I.jsx)(hm,{fill:c}):r===`round`?(0,I.jsx)(_m,{fill:c}):(0,I.jsx)(vm,{fill:c}),l]})}}return n},bm=({fill:e})=>(0,I.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,I.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
144
- c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,I.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,I.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});bm.propTypes={fill:O.string.isRequired};var xm=({fill:e,x:t=0,y:n=0})=>(0,I.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});xm.propTypes={fill:O.string.isRequired,x:O.number,y:O.number};var Sm=ym(xm,bm);Sm.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Sm.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var Cm=({bgFill:e,fgFill:t})=>(0,I.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-283 359 34 35`,style:{enableBackground:`new -283 359 34 35`},children:[(0,I.jsx)(`circle`,{cx:`-266`,cy:`375.9`,r:`14`,fill:e}),(0,I.jsx)(`path`,{d:`M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z
145
- M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,I.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});Cm.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired};var wm=({bgFill:e,fgFill:t,borderFill:n})=>(0,I.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,I.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
146
- C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,I.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,I.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,I.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
147
- 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,I.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})]});wm.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired,borderFill:O.string.isRequired};var Tm=R(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),Em=({open:e,size:t})=>(0,I.jsx)(Tm,{size:t,children:e?(0,I.jsx)(Cm,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,I.jsx)(wm,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});Em.propTypes={open:O.bool,size:O.string},Em.defaultProps={open:!1};var Dm=({fill:e})=>(0,I.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,I.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,I.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})]});Dm.propTypes={fill:O.string.isRequired};var Om=({fill:e})=>(0,I.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,I.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,I.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,I.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});Om.propTypes={fill:O.string.isRequired};var km=ym(Dm,Om);km.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},km.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Am=({fill:e})=>(0,I.jsxs)(`g`,{children:[(0,I.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,I.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});Am.propTypes={fill:O.string.isRequired};var jm=({fill:e})=>(0,I.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});jm.propTypes={fill:O.string.isRequired};var Mm=({fill:e})=>(0,I.jsxs)(`g`,{children:[(0,I.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,I.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,I.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
148
- C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Mm.propTypes={fill:O.string.isRequired};var Nm=class extends F.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,I.jsxs)(pm,{children:[(0,I.jsx)(jm,{fill:n}),(0,I.jsx)(Am,{fill:t})]}),emoji:(0,I.jsxs)(pm,{children:[(0,I.jsx)(jm,{fill:n}),(0,I.jsx)(Mm,{fill:t})]}),feedback:{check:(0,I.jsxs)(pm,{children:[(0,I.jsx)(jm,{fill:n}),(0,I.jsx)(Mm,{fill:t})]}),emoji:(0,I.jsxs)(pm,{children:[(0,I.jsx)(jm,{fill:n}),(0,I.jsx)(Mm,{fill:t})]}),square:{check:(0,I.jsxs)(pm,{children:[(0,I.jsx)(jm,{fill:n}),(0,I.jsx)(Am,{fill:t})]}),emoji:(0,I.jsxs)(pm,{children:[(0,I.jsx)(jm,{fill:n}),(0,I.jsx)(Mm,{fill:t})]}),open:{check:(0,I.jsx)(pm,{children:(0,I.jsx)(Am,{fill:n})}),emoji:(0,I.jsx)(pm,{children:(0,I.jsx)(Mm,{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]}};Nm.propTypes={iconSet:O.oneOf([`emoji`,`check`,void 0]),shape:O.oneOf([`square`,void 0]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string},Nm.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Pm=({fill:e})=>(0,I.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,I.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,I.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Pm.propTypes={fill:O.string.isRequired};var Fm=({fill:e})=>(0,I.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,I.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,I.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,I.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})]});Fm.propTypes={fill:O.string.isRequired};var Im=ym(Pm,Fm);Im.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Im.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Lm(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Rm(e){let t=Ks(e);return t.body===e?sp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function zm(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Bm(e){return parseFloat(sp(e).getComputedStyle(e).paddingRight)||0}function Vm(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 Hm(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Vm(e);t&&n&&zm(e,i)})}function Um(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Wm(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(Rm(r)){let e=Lm(sp(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Bm(r)+e}px`;let t=Ks(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Bm(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Ks(r).body;else{let t=r.parentElement,n=sp(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 Gm(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Km=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&&zm(e.modalRef,!1);let r=Gm(t);Hm(t,e.mount,e.modalRef,r,!0);let i=Um(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=Um(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Wm(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Um(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&&zm(e.modalRef,t),Hm(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&&zm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function qm(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 Jm=qm;function Ym(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Xm=Ym,Zm=`data-mui-focusable`;function Qm(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Zm}]`):null}var $m=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function eh(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 th(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 nh(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||th(e))}function rh(e){let t=[],n=[];return Array.from(e.querySelectorAll($m)).forEach((e,r)=>{let i=eh(e);i===-1||!nh(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 ih(){return!0}function ah(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=rh,isEnabled:o=ih,open:s}=e,c=F.useRef(!1),l=F.useRef(null),u=F.useRef(null),d=F.useRef(null),f=F.useRef(null),p=F.useRef(!1),m=F.useRef(null),h=Bs(ns(t),m),g=F.useRef(null);F.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),F.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Xm(Ks(m.current)),t=Qm(m.current)??m.current;return Jm(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]),F.useEffect(()=>{if(!s||!m.current)return;let e=Ks(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Xm(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Xm(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Jm(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=Xm(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,I.jsxs)(F.Fragment,{children:[(0,I.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),F.cloneElement(t,{ref:h,onFocus:_}),(0,I.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var oh={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},sh={opacity:0,visibility:`hidden`},ch=F.forwardRef(function(e,t){let n=zo(),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=F.useRef(null),y=Vs(v,ns(o),t),b=Ls(v,d),x=Ls(v,(e,t)=>{Is(e);let r=zs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Ls(v,u),C=Ls(v,m),w=Ls(v,e=>{let t=zs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Ls(v,e=>{e.style.transition=``,p&&p(e)});return(0,I.jsx)(Ss,{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=Rs(e,c,oh,sh,h,o.props.style);return F.cloneElement(o,{style:r,ref:y,...n})}})});function lh(e){return ii(`MuiBackdrop`,e)}ai(`MuiBackdrop`,[`root`,`invisible`]);var uh=e=>{let{classes:t,invisible:n}=e;return Ea({root:[`root`,n&&`invisible`]},lh,t)},dh=R(`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`}}]}),fh=F.forwardRef(function(e,t){let n=is({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=uh(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=uu(`root`,{elementType:dh,externalForwardedProps:_,className:ni(g.root,i),ownerState:h}),[b,x]=uu(`transition`,{elementType:ch,externalForwardedProps:_,ownerState:h});return(0,I.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,I.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function ph(e){return typeof e==`function`?e():e}function mh(e){return e?e.props.hasOwnProperty(`in`):!1}var hh=()=>{},gh=new Km;function _h(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=F.useRef({}),f=F.useRef(null),p=F.useRef(null),m=Bs(p,u),[h,g]=F.useState(!l),_=mh(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Ks(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{gh.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=au(()=>{let e=ph(t)||y().body;gh.add(b(),e),p.current&&x()}),C=()=>gh.isTopModal(b()),w=au(e=>{f.current=e,e&&(l&&C()?x():p.current&&zm(p.current,v))}),T=F.useCallback(()=>{gh.remove(b(),v)},[v]);F.useEffect(()=>()=>{T()},[T]),F.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=Hl(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:Zf(()=>{g(!1),a&&a()},s?.props.onEnter??hh),onExited:Zf(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??hh)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function vh(e){return ii(`MuiModal`,e)}ai(`MuiModal`,[`root`,`hidden`,`backdrop`]);var yh=e=>{let{open:t,exited:n,classes:r}=e;return Ea({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},vh,r)},bh=R(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(rs(({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`}}]}))),xh=R(fh,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Sh=F.forwardRef(function(e,t){let n=is({name:`MuiModal`,props:e}),{BackdropComponent:r=xh,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=_h({...ee,rootRef:t}),ae={...ee,exited:re},oe=yh(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ce,le]=uu(`root`,{ref:t,elementType:bh,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:ni(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ue,de]=uu(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ni(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,I.jsx)(Yl,{ref:ne,container:l,disablePortal:g,children:(0,I.jsxs)(ce,{...le,children:[!y&&r?(0,I.jsx)(ue,{...de}):null,(0,I.jsx)(ah,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:F.cloneElement(c,M)})]})})});function Ch(e){return ii(`MuiPaper`,e)}ai(`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 wh=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Ea({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},Ch,i)},Th=R(`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}`]]}})(rs(({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)`}}]}))),Eh=F.forwardRef(function(e,t){let n=is({props:e,name:`MuiPaper`}),r=zo(),{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=wh(u);return(0,I.jsx)(Th,{as:a,ownerState:u,className:ni(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(${Ai(`#fff`,bo(o))}, ${Ai(`#fff`,bo(o))})`}},...l.style}})});function Dh(e){return ii(`MuiPopover`,e)}ai(`MuiPopover`,[`root`,`paper`]);function Oh(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function kh(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Ah(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function jh(e){return typeof e==`function`?e():e}var Mh=e=>{let{classes:t}=e;return Ea({root:[`root`],paper:[`paper`]},Dh,t)},Nh=R(Sh,{name:`MuiPopover`,slot:`Root`})({}),Ph=R(Eh,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Fh=F.forwardRef(function(e,t){let n=is({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=F.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Mh(w),E=F.useCallback(()=>{if(s===`anchorPosition`)return o;let e=jh(i),t=(e&&e.nodeType===1?e:op(C.current).body).getBoundingClientRect();return{top:t.top+Oh(t,a.vertical),left:t.left+kh(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=F.useCallback(e=>({vertical:Oh(e,_.vertical),horizontal:kh(e,_.horizontal)}),[_.horizontal,_.vertical]),O=F.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Ah(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=cp(jh(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:Ah(n)}},[i,s,E,D,f]),[ee,te]=F.useState(p),k=F.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);F.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};F.useEffect(()=>{p&&k()}),F.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),F.useEffect(()=>{if(!p)return;let e=ip(()=>{k()}),t=cp(jh(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=uu(`transition`,{elementType:Gs,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?op(jh(i)).body:void 0),[M,{slots:se,slotProps:ce,...le}]=uu(`root`,{ref:t,elementType:Nh,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:dp(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:ni(T.root,l)}),[ue,de]=uu(`paper`,{ref:C,className:T.paper,elementType:Ph,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,I.jsx)(M,{...le,...!Bl(M)&&{slots:se,slotProps:ce,disableScrollLock:x},children:(0,I.jsx)(ie,{...ae,timeout:j,children:(0,I.jsx)(ue,{...de,children:c})})})}),Ih={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`},Lh={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`},Rh=s({background:()=>cg,backgroundDark:()=>lg,black:()=>Sg,blueGrey100:()=>Ag,blueGrey300:()=>jg,blueGrey600:()=>Mg,blueGrey900:()=>Ng,border:()=>hg,borderDark:()=>_g,borderGray:()=>vg,borderLight:()=>gg,buttonBorder:()=>Bg,buttonFocusOutline:()=>kg,buttonHoverBg:()=>Vg,correct:()=>Wh,correctSecondary:()=>Gh,correctTertiary:()=>Kh,correctWithIcon:()=>qh,defaults:()=>V,disabled:()=>Vh,disabledSecondary:()=>Hh,disabledText:()=>Uh,dropdownBackground:()=>dg,fadedPrimary:()=>rg,focusChecked:()=>Tg,focusCheckedBorder:()=>Eg,focusUnchecked:()=>Dg,focusUncheckedBorder:()=>Og,incorrect:()=>Jh,incorrectSecondary:()=>Xh,incorrectWithIcon:()=>Yh,keyBoardFocusIndicator:()=>zg,keypadButton:()=>Pg,keypadButtonHover:()=>Lg,keypadButtonOperator:()=>Fg,keypadButtonOperatorHover:()=>Rg,keypadEmptyPlaceholder:()=>Ig,missing:()=>Zh,missingWithIcon:()=>Qh,primary:()=>$h,primaryDark:()=>tg,primaryLight:()=>eg,primaryText:()=>ng,secondary:()=>ig,secondaryBackground:()=>ug,secondaryDark:()=>og,secondaryLight:()=>ag,secondaryText:()=>sg,surface:()=>fg,tableGrid:()=>yg,tableGridLight:()=>bg,tableStripe:()=>xg,tertiary:()=>pg,tertiaryLight:()=>mg,text:()=>Bh,transparent:()=>wg,v:()=>zh,visualElementsColors:()=>Hg,white:()=>Cg}),V={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Fa[500],CORRECT_SECONDARY:Fa[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Ma[500],INCORRECT_SECONDARY:ja[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:ja[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Lh[500],PRIMARY_LIGHT:Lh[200],PRIMARY_DARK:Lh[800],SECONDARY:Ih.A400,SECONDARY_LIGHT:Ih[200],SECONDARY_DARK:Ih[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(V);var zh=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},H=zh(`pie`),Bh=()=>H(`text`,V.TEXT),Vh=()=>H(`disabled`,V.DISABLED),Hh=()=>H(`disabled-secondary`,V.DISABLED_SECONDARY),Uh=()=>H(`disabled-text`,`text`,V.DISABLED_TEXT),Wh=()=>H(`correct`,V.CORRECT),Gh=()=>H(`correct-secondary`,V.CORRECT_SECONDARY),Kh=()=>H(`correct-tertiary`,V.CORRECT_TERTIARY),qh=()=>H(`correct-icon`,V.CORRECT_WITH_ICON),Jh=()=>H(`incorrect`,V.INCORRECT),Yh=()=>H(`incorrect-icon`,V.INCORRECT_WITH_ICON),Xh=()=>H(`incorrect-secondary`,V.INCORRECT_SECONDARY),Zh=()=>H(`missing`,V.MISSING),Qh=()=>H(`missing-icon`,V.MISSING_WITH_ICON),$h=()=>H(`primary`,V.PRIMARY),eg=()=>H(`primary-light`,V.PRIMARY_LIGHT),tg=()=>H(`primary-dark`,V.PRIMARY_DARK),ng=()=>H(`primary-text`,`text`,V.TEXT),rg=()=>H(`faded-primary`,V.FADED_PRIMARY),ig=()=>H(`secondary`,V.SECONDARY),ag=()=>H(`secondary-light`,V.SECONDARY_LIGHT),og=()=>H(`secondary-dark`,V.SECONDARY_DARK),sg=()=>H(`secondary-text`,`text`,V.TEXT),cg=()=>H(`background`,V.BACKGROUND),lg=()=>H(`background-dark`,V.BACKGROUND_DARK),ug=()=>H(`secondary-background`,V.SECONDARY_BACKGROUND),dg=()=>H(`dropdown-background`,V.DROPDOWN_BACKGROUND),fg=()=>H(`surface`,V.SURFACE),pg=()=>H(`tertiary`,V.TERTIARY),mg=()=>H(`tertiary-light`,V.TERTIARY_LIGHT),hg=()=>H(`border`,V.BORDER),gg=()=>H(`border-light`,V.BORDER_LIGHT),_g=()=>H(`border-dark`,V.BORDER_DARK),vg=()=>H(`border-gray`,V.BORDER_GRAY),yg=()=>H(`table-grid`,`text`,V.TABLE_GRID),bg=()=>H(`table-grid-light`,`border-light`,V.TABLE_GRID_LIGHT),xg=()=>H(`table-stripe`,`background-dark`,V.TABLE_STRIPE),Sg=()=>H(`black`,V.BLACK),Cg=()=>H(`white`,V.WHITE),wg=()=>V.TRANSPARENT,Tg=()=>H(`focus-checked`,V.FOCUS_CHECKED),Eg=()=>H(`focus-checked-border`,V.FOCUS_CHECKED_BORDER),Dg=()=>H(`focus-unchecked`,V.FOCUS_UNCHECKED),Og=()=>H(`focus-unchecked-border`,V.FOCUS_UNCHECKED_BORDER),kg=()=>H(`button-focus-outline`,V.BUTTON_FOCUS_OUTLINE),Ag=()=>H(`blue-grey-100`,V.BLUE_GREY100),jg=()=>H(`blue-grey-300`,V.BLUE_GREY300),Mg=()=>H(`blue-grey-600`,V.BLUE_GREY600),Ng=()=>H(`blue-grey-900`,V.BLUE_GREY900),Pg=()=>H(`keypad-button`,V.KEYPAD_BUTTON),Fg=()=>H(`keypad-button-operator`,V.KEYPAD_BUTTON_OPERATOR),Ig=()=>H(`keypad-empty-placeholder`,V.KEYPAD_EMPTY_PLACEHOLDER),Lg=()=>H(`keypad-button-hover`,V.KEYPAD_BUTTON_HOVER),Rg=()=>H(`keypad-button-operator-hover`,V.KEYPAD_BUTTON_OPERATOR_HOVER),zg=()=>H(`keyboard-focus-indicator`,V.KEY_BOARD_FOCUS_INDICATOR),Bg=()=>H(`button-border`,V.BUTTON_BORDER),Vg=()=>H(`button-hover-bg`,V.BUTTON_HOVER_BG),Hg={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Ug=R(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Wg=R(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Vh()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Wh()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Jh()})`}}),Gg=R(`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`}}),Kg=class extends F.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=F.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,I.jsx)(Es,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,I.jsx)(Gg,{ref:this.nodeRef,children:(0,I.jsx)(Ug,{children:(0,I.jsx)(Wg,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,I.jsx)(`div`,{children:(0,I.jsx)(Fs,{children:this.renderFeedback()})})}},qg=s({Correct:()=>$g,Incorrect:()=>e_,NothingSubmitted:()=>n_,PartiallyCorrect:()=>t_}),Jg=um(`pie-libs:render-ui:response-indicators`),Yg=R(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Xg=R(Fh)({cursor:`pointer`}),Zg=R(`div`)({padding:`0`,borderRadius:`4px`}),Qg=(e,t)=>{class n extends F.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Jg(`[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,I.jsxs)(Yg,{hasFeedback:!!n,children:[(0,I.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,I.jsx)(e,{})}),n&&(0,I.jsx)(Xg,{PaperComponent:Zg,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,I.jsx)(Kg,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},$g=Qg(Sm,`correct`),e_=Qg(km,`incorrect`),t_=Qg(Im,`partially-correct`),n_=Qg(Nm,`nothing-submitted`);function r_(e){return ii(`MuiCollapse`,e)}ai(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var i_=e=>{let{orientation:t,classes:n}=e;return Ea({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},r_,n)},a_=R(`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]}})(rs(({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`}}]}))),o_=R(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),s_=R(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),c_=F.forwardRef(function(e,t){let n=is({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=co.standard,TransitionComponent:x=Ss,...S}=n,C={...n,orientation:g,collapsedSize:o},w=i_(C),T=zo(),E=es(),D=F.useRef(null),O=F.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=F.useRef(null),ne=Vs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Ls(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Ls(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=zs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Ls(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Ls(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Ls(A,m),se=Ls(A,e=>{let t=j(),{duration:n,easing:r}=zs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=uu(`root`,{ref:ne,className:ni(w.root,a),elementType:a_,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=uu(`wrapper`,{ref:D,className:w.wrapper,elementType:o_,externalForwardedProps:le,ownerState:C}),[N,me]=uu(`wrapperInner`,{className:w.wrapperInner,elementType:s_,externalForwardedProps:le,ownerState:C});return(0,I.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,I.jsx)(ue,{...de,className:ni(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,I.jsx)(fe,{...pe,ownerState:r,children:(0,I.jsx)(N,{...me,ownerState:r,children:i})})})}})});c_&&(c_.muiSupportAuto=!0);var l_=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,u_=`pie-mathjax-version-conflict`,d_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function f_(e,t){if(typeof window>`u`)return;let n=globalThis;n[d_]??={logged:!1,conditions:[]};let r=n[d_];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 ${l_}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(u_,{detail:{condition:e,message:i,docsUrl:l_}}))}function p_(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var m_=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,h_={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},g_=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,__=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,v_=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,y_=/\\embed\{newLine\}\[\]/g,b_=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],x_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),S_=`PIE-MJX-CHTML-styles`,C_=`MJX-CHTML-styles`,w_=[C_,`MJX-SVG-styles`],T_=201;function E_(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 D_(){return window.MathJax}function O_(e){let t=e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e;for(let[e,n]of b_)if(t.startsWith(e)&&t.endsWith(n))return t.substring(e.length,t.length-n.length);return t}function k_(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`))continue;let e=t.textContent;e&&(t.textContent=`\\(${O_(e)}\\)`.replace(y_,`\\newline `),t.dataset.mathHandled=`true`)}}function A_(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?v_:__).test(e.textContent??``)}function j_(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=D_(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&M_(e),r?.defaultReady?.(),i&&N_(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...h_}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(g_),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||m_,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function M_(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=S_)}function N_(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(E_(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,T_,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&E_(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===C_&&(r.id=S_),I_()}function P_(e){return e instanceof HTMLStyleElement&&w_.includes(e.id)}function F_(e){f_(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function I_(){let e=document.head,t=[...e.children].find(P_);if(t){F_(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(P_);if(e){F_(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function L_(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=D_()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function R_(e){let t=D_();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():L_(t):j_(e)}function z_(e){return R_(e).then(()=>{typeof D_()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function B_(e){let t=globalThis,n=t[x_];return n||(n=z_(e),t[x_]=n),n}function V_(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=p_();r&&f_(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),k_(n);let i=B_(e);if(!A_(n,t)){i.catch(()=>{});return}await i;let a=D_();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),E_(n))}}var H_=`@pie-lib/math-rendering`,U_=`@pie-lib/math-rendering@2`,W_=null;function G_(){return!!window[U_]?.opts?.useSingleDollar}function K_(){return W_||=V_({useSingleDollar:G_()}),W_}function q_(){if(typeof window>`u`)return null;let e=window[H_];return typeof e?.renderMath==`function`?e:null}var J_=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=q_();return r?await r.renderMath?.(n):await K_()(n),t?n.innerHTML:void 0},Y_=R(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),X_=R(c_)(({theme:e})=>({paddingTop:e.spacing(2)})),Z_=class extends F.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){J_(this.root)}componentDidUpdate(){J_(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,I.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,I.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,I.jsx)(Y_,{children:r})}),(0,I.jsx)(X_,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}},Q_=np((0,I.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`),$_=np((0,I.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`),ev=R(`div`)({display:`flex`,flexDirection:`column`}),tv=R(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),nv=R(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),rv=R(nm)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),iv=e=>{class t extends F.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,I.jsxs)(ev,{children:[(0,I.jsxs)(tv,{children:[(0,I.jsxs)(rv,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,I.jsx)(nv,{children:(0,I.jsx)($_,{})}),`Undo`]}),(0,I.jsxs)(rv,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,I.jsx)(nv,{children:(0,I.jsx)(Q_,{})}),`Start Over`]})]}),(0,I.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},av=Lo({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`}}}}}}),ov=R(`div`)({"& table, th, td":{fontSize:`inherit`}}),sv=class extends F.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,I.jsx)(yn,{injectFirst:!0,children:(0,I.jsxs)(Jo,{theme:av,children:[i?.rules?(0,I.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,I.jsx)(ov,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}},cv=R(sv)({display:`flex`,flexDirection:`column`,position:`relative`}),lv=class extends F.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,I.jsx)(cv,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},uv=class extends F.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,I.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function dv({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 fv=F.createContext(void 0);function pv(){return F.useContext(fv)}function mv(e){return ii(`MuiFormLabel`,e)}var hv=ai(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),gv=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return Ea({root:[`root`,`color${as(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},mv,t)},_v=R(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(rs(({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(Mp()).map(([t])=>({props:{color:t},style:{[`&.${hv.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hv.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),vv=R(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(rs(({theme:e})=>({[`&.${hv.error}`]:{color:(e.vars||e).palette.error.main}}))),yv=F.forwardRef(function(e,t){let n=is({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=dv({props:n,muiFormControl:pv(),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=gv(m);return(0,I.jsxs)(_v,{as:o,ownerState:m,className:ni(h.root,i),ref:t,...f,children:[r,p.required&&(0,I.jsxs)(vv,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function bv(e){return ii(`MuiInputLabel`,e)}ai(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var xv=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=Ea({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${as(r)}`,o],asterisk:[s&&`asterisk`]},bv,t);return{...t,...c}},Sv=R(yv,{shouldForwardProp:e=>Vo(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${hv.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]]}})(rs(({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)`}}]}))),Cv=F.forwardRef(function(e,t){let n=is({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=pv(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=dv({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=xv(f);return(0,I.jsx)(Sv,{"data-shrink":u,ref:t,className:ni(p.root,s),...c,ownerState:f,classes:p})});function wv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Tv(e,t=!1){return e&&(wv(e.value)&&e.value!==``||t&&wv(e.defaultValue)&&e.defaultValue!==``)}function Ev(e){return e.startAdornment}function Dv(e){return ii(`MuiFormControl`,e)}ai(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var Ov=e=>{let{classes:t,margin:n,fullWidth:r}=e;return Ea({root:[`root`,n!==`none`&&`margin${as(n)}`,r&&`fullWidth`]},Dv,t)},kv=R(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${as(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%`}}]}),Av=R(F.forwardRef(function(e,t){let n=is({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=Ov(_),[y,b]=F.useState(()=>{let e=!1;return r&&F.Children.forEach(r,t=>{if(!ap(t,[`Input`,`Select`]))return;let n=ap(t,[`Select`])?t.props.input:t;n&&Ev(n.props)&&(e=!0)}),e}),[x,S]=F.useState(()=>{let e=!1;return r&&F.Children.forEach(r,t=>{ap(t,[`Input`,`Select`])&&(Tv(t.props,!0)||Tv(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=F.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;F.useRef(!1);let E=F.useCallback(()=>{S(!0)},[]),D=F.useCallback(()=>{S(!1)},[]),O=F.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,I.jsx)(fv.Provider,{value:O,children:(0,I.jsx)(kv,{as:o,ownerState:_,className:ni(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),jv=R(Cv)(()=>({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)`}})),Mv=({label:e,className:t,children:n})=>(0,I.jsxs)(Av,{className:t,children:[(0,I.jsx)(jv,{shrink:!0,children:e}),n]});Mv.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var Nv=R(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table:not([role="presentation"])':{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:yg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:xg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:xg()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:Bh()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${Bh()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),Pv=/\\embed\{newLine\}\[\]/g,Fv=`\\newline `,Iv=`preview-prompt`,Lv=class extends F.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string})};static defaultProps={onClick:()=>{}};promptRef=F.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof J_==`function`&&J_(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`:``} ${Iv}`.trim();return(0,I.jsx)(Nv,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(Pv,Fv)}})}},Rv=e=>(0,I.jsx)(I.Fragment,{children:F.Children.map(e.children,t=>F.cloneElement(t,{"data-pie-readable":e.false===void 0}))});Rv.propTypes={children:O.node,false:O.bool};var zv=e=>(0,I.jsx)(I.Fragment,{children:F.Children.map(e.children,t=>F.cloneElement(t,{"data-pie-purpose":e.purpose}))});zv.propTypes={children:O.node,purpose:O.string};var Bv;typeof window<`u`&&(Bv=new DOMParser);var Vv=e=>Bv.parseFromString(e,`text/html`).body.textContent,Hv=e=>{if(!e)return!1;let t=Vv(e);return!!(t&&t.trim())},Uv;typeof window<`u`&&(Uv=new DOMParser);var Wv=e=>{if(!e)return!1;let t=Uv.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},Gv=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`;function Kv(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var qv=F.createContext({});function Jv(e){return ii(`MuiList`,e)}ai(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var Yv=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ea({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Jv,t)},Xv=R(`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}}]}),Zv=F.forwardRef(function(e,t){let n=is({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=F.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Yv(d);return(0,I.jsx)(qv.Provider,{value:u,children:(0,I.jsxs)(Xv,{as:a,className:ni(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),Qv=Lm;function $v(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ey(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ty(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 ny(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`)||!ty(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var ry=F.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=F.useRef(null),p=F.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lp(()=>{r&&f.current.focus()},[r]),F.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${Qv(cp(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=Xm(op(t));if(n===`ArrowDown`)e.preventDefault(),ny(t,r,c,s,$v);else if(n===`ArrowUp`)e.preventDefault(),ny(t,r,c,s,ey);else if(n===`Home`)e.preventDefault(),ny(t,null,c,s,$v);else if(n===`End`)e.preventDefault(),ny(t,null,c,s,ey);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&&ty(r,i);i.previousKeyMatched&&(c||ny(t,r,!1,s,$v,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Vs(f,t),g=-1;F.Children.forEach(a,(e,t)=>{if(!F.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 _=F.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),F.cloneElement(e,t)}return e});return(0,I.jsx)(Zv,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function iy(e){return ii(`MuiMenu`,e)}ai(`MuiMenu`,[`root`,`paper`,`list`]);var ay={vertical:`top`,horizontal:`right`},oy={vertical:`top`,horizontal:`left`},sy=e=>{let{classes:t}=e;return Ea({root:[`root`],paper:[`paper`],list:[`list`]},iy,t)},cy=R(Fh,{shouldForwardProp:e=>Vo(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),ly=R(Ph,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),uy=R(ry,{name:`MuiMenu`,slot:`List`})({outline:0}),dy=F.forwardRef(function(e,t){let n=is({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=Gi(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=sy(b),S=r&&!o&&l,C=F.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;F.Children.map(i,(e,t)=>{F.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=Kl({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=uu(`paper`,{className:x.paper,elementType:ly,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=uu(`list`,{className:ni(x.list,s.className),elementType:uy,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,I.jsx)(cy,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?ay:oy,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,I.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),fy=({slotProps:e,...t})=>(0,I.jsx)(dy,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),py=s({Collapsible:()=>Z_,EnableAudioAutoplayImage:()=>Gv,Feedback:()=>Kg,HtmlAndMath:()=>uv,InlineMenu:()=>fy,InputContainer:()=>Mv,PreviewLayout:()=>lv,PreviewPrompt:()=>Lv,Purpose:()=>zv,Readable:()=>Rv,UiLayout:()=>sv,color:()=>Rh,hasMedia:()=>Wv,hasText:()=>Hv,indicators:()=>qg,transformDataHeadings:()=>Kv,withUndoReset:()=>iv});function U(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}U.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},U.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},U.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},U.prototype.attr=function(e,t){return t===_y?this.elements[0]?this.elements[0].getAttribute(e):_y:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},U.prototype.html=function(e){return e===_y?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},U.prototype.append=function(e){var t=e instanceof U?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},U.prototype.prepend=function(e){var t=e instanceof U?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},U.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof U)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},U.prototype.appendTo=function(e){var t=e instanceof U?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},U.prototype.prependTo=function(e){var t=e instanceof U?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},U.prototype.insertBefore=function(e){var t=e instanceof U?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},U.prototype.insertAfter=function(e){var t=e instanceof U?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},U.prototype.replaceWith=function(e){var t=[];return e instanceof U?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},U.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},U.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},U.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new U(t)},U.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new U(t)},U.prototype.closest=function(e){return new U(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},U.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new U(e)},U.prototype.filter=function(e){return new U(this.elements.filter(function(t,n){return e(n,t)}))},U.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},U.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},U.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function my(e){return(e||``).split(`.`)[0]}U.prototype.on=function(e,t){var n=my(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},U.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=my(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},U.prototype.off=function(e,t){var n=my(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},U.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=my(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},U.prototype.trigger=function(e){var t=new Event(my(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},U.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},U.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){U.prototype[e]=function(t){return this.on(e,t)}}),U.prototype.next=function(e){return new U(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},U.prototype.prev=function(e){return new U(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},U.prototype.parent=function(){return new U(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},U.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},U.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},U.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},U.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},U.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},U.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},U.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},U.prototype.css=function(e,t){if(t===_y){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):_y}}else this.elements.forEach(function(n){n.style[e]=t});return this},U.prototype.scrollTop=function(e){var t=this.elements[0];return e===_y?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},U.prototype.scrollLeft=function(e){var t=this.elements[0];return e===_y?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},U.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},U.prototype.eq=function(e){return new U([this.elements[e]])},U.prototype.get=function(e){return e===_y?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},U.prototype.add=function(e){var t=this.elements.slice();return e instanceof U?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new U(t)},U.prototype.first=function(){return new U([this.elements[0]])},U.prototype.last=function(){return new U([this.elements[this.elements.length-1]])},U.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof U?e.elements[0]:e;return this.elements.indexOf(n)},U.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},U.prototype.text=function(e){return e===_y?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},U.prototype.val=function(e){var t=this.elements[0];return t?e===_y?t.value===_y?t.textContent:t.value:(this.elements.forEach(function(t){t.value===_y?t.textContent=e:t.value=e}),this):_y};function hy(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(U.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var W=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof U?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof U?e.elements:e.length===_y?[]:Array.from(e);return hy(n)};W.contains=function(e,t){return e!==t&&e.contains(t)};var gy=W,_y,vy=`mathquill-command-id`,yy=`mathquill-block-id`,by=Math.min,xy=Math.max;function Sy(){}var Cy=[].slice;function wy(e){var t=e.length-1;return function(){var n=Cy.call(arguments,0,t),r=Cy.call(arguments,t);return e.apply(this,n.concat([r]))}}var Ty=wy(function(e,t){return wy(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function Ey(e){return wy(function(t,n){return typeof t!=`function`&&(t=Ty(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function G(e){var t=Cy.call(arguments,1);return function(){return e.apply(this,t)}}function Dy(e,t){if(!t)throw Error(`prayer failed: `+e)}var K=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),q=-1,J=1;function Oy(e){Dy(`a direction was passed`,e===q||e===J)}var ky=K(function(e){e.parent=0,e[q]=0,e[J]=0,e.init=function(e,t,n){this.parent=e,this[q]=t,this[J]=n},this.copy=function(e){return ky(e.parent,e[q],e[J])}}),Ay=K(function(e){e[q]=0,e[J]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),Ay.byId[this.id]=this,this.ends={},this.ends[q]=0,this.ends[J]=0},e.dispose=function(){delete Ay.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=W(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=W(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&Ay.byId[n].jQadd(e),r&&Ay.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){Oy(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[q],t[J]),n},e.createLeftOf=function(e){return this.createDir(q,e)},e.selectChildren=function(e,t){return Iy(e,t)},e.bubble=Ey(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=Ey(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[q]===0&&this.ends[J]===0},e.isStyleBlock=function(){return!1},e.children=function(){return My(this.ends[q],this.ends[J])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return My(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return My(this,this).adopt(e,t,n),this},e.disown=function(){return My(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function jy(e,t,n){Dy(`a parent is always present`,e),t&&(t[J]!==n&&(t[J]=n),t.parent!==e&&(t.parent=e)),n&&(n[q]!==t&&(n[q]=t),n.parent!==e&&(n.parent=e)),Dy(`leftward is properly set up`,(function(){return t?t[J]===n&&t.parent===e:e.ends[q]===n})()),Dy(`rightward is properly set up`,(function(){return n?n[q]===t&&n.parent===e:e.ends[J]===t})())}var My=K(function(e){e.init=function(e,t,n){if(n===_y&&(n=q),Oy(n),Dy(`no half-empty fragments`,!e==!t),this.ends={},e){Dy(`withDir is passed to Fragment`,e instanceof Ay),Dy(`oppDir is passed to Fragment`,t instanceof Ay),Dy(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=W(),e.withDirAdopt=function(e,t,n,r){return e===q?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){jy(e,t,n);var r=this;r.disowned=!1;var i=r.ends[q];if(!i)return this;var a=r.ends[J];return t||(e.ends[q]=i),n?n[q]=a:e.ends[J]=a,r.ends[J][J]=n,r.each(function(n){n[q]=t,n.parent=e,t&&(t[J]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[q];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[J],r=t.parent;return jy(r,t[q],t),jy(r,n,n[J]),t[q]?t[q][J]=n[J]:r.ends[q]=n[J],n[J]?n[J][q]=t[q]:r.ends[J]=t[q],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=Ey(function(e){var t=this,n=t.ends[q];if(!n)return t;for(;n!==t.ends[J][J]&&e(n)!==!1;n=n[J]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),Y={},Ny={},Py={},Fy=K(ky,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=W(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[J]?this.selection&&this.selection.ends[q][q]===this[q]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[J].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=W(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return Oy(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(q,e)},e.insRightOf=function(e){return this.insDirOf(J,e)},e.insAtDirEnd=function(e,t){return Oy(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(q,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(J,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=ky.copy(n);var r=n.upDownCache[t.id];if(r)r[J]?n.insLeftOf(r[J]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[J],r=this,i=e[q];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[J])}),!this[J])if(this[q])this[J]=this[q][J];else for(;!this[J];)if(this.parent=this.parent[J],this.parent)this[J]=this.parent.ends[q];else{this[J]=e[J],this.parent=t;break}this[J]?this.insLeftOf(this[J]):this.insAtRightEnd(t),e.jQ.remove(),e[q].siblingDeleted&&e[q].siblingDeleted(r.options,J),e[J].siblingDeleted&&e[J].siblingDeleted(r.options,q)},e.startSelection=function(){for(var e=this.anticursor=ky.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[q]===e[q]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=J;if(n[q]!==r){for(var s=n;s;s=s[J])if(s[J]===r[J]){o=q,i=n,a=r;break}}return o===J&&(i=r,a=n),i instanceof ky&&(i=i[J]),a instanceof ky&&(a=a[q]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[q]=this.selection.ends[q][q],this[J]=this.selection.ends[J][J],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[q]=e.ends[q][q],this[J]=e.ends[J][J],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof nb);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==_y)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),Iy=K(My,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),Ly=K(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=Fy(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===q||t===J?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),Ry={},zy=K(),By={},Vy=K(),Hy={};function Uy(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
139
+ `,Rp=typeof Ip==`string`?null:nn`
140
+ animation: ${Ip} 1.4s linear infinite;
141
+ `,zp=typeof Lp==`string`?null:nn`
142
+ animation: ${Lp} 1.4s ease-in-out infinite;
143
+ `,Bp=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return Da({root:[`root`,n,`color${os(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${os(n)}`,i&&`circleDisableShrink`]},Pp,t)},Vp=L(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${os(n.color)}`]]}})(is(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Rp||{animation:`${Ip} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Np()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Hp=L(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Up=L(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${os(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(is(({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:zp||{animation:`${Lp} 1.4s ease-in-out infinite`}}]}))),Wp=L(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(is(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Gp=P.forwardRef(function(e,t){let n=as({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=Bp(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((Fp-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,F.jsx)(Vp,{className:ri(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,F.jsxs)(Hp,{className:m.svg,ownerState:p,viewBox:`${Fp/2} ${Fp/2} ${Fp} ${Fp}`,children:[o?(0,F.jsx)(Wp,{className:m.track,ownerState:p,cx:Fp,cy:Fp,r:(Fp-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,F.jsx)(Up,{className:m.circle,style:h,ownerState:p,cx:Fp,cy:Fp,r:(Fp-l)/2,fill:`none`,strokeWidth:l})]})})});function Kp(e){return ai(`MuiButton`,e)}var qp=oi(`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(`.`)),Jp=P.createContext({}),Yp=P.createContext(void 0),Xp=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=Da({root:[`root`,o&&`loading`,a,`${a}${os(t)}`,`size${os(i)}`,`${a}Size${os(i)}`,`color${os(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${os(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${os(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${os(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Kp,c);return{...c,...l}},Zp=[{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}}}],Qp=L(kp,{shouldForwardProp:e=>Ho(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${os(n.color)}`],t[`size${os(n.size)}`],t[`${n.variant}Size${os(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(is(({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`},[`&.${qp.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]},[`&.${qp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${qp.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)`,[`&.${qp.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(Np()).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`},[`&.${qp.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${qp.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}),[`&.${qp.loading}`]:{color:`transparent`}}}]}})),$p=L(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${os(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}},...Zp]})),em=L(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${os(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}},...Zp]})),tm=L(`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}}]})),nm=L(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),rm=P.forwardRef(function(e,t){let n=P.useContext(Jp),r=P.useContext(Yp),i=as({props:yi(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=cu(h),T=_??(0,F.jsx)(Gp,{"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=Xp(E),O=(b||g&&v===`start`)&&(0,F.jsx)($p,{className:D.startIcon,ownerState:E,children:b||(0,F.jsx)(nm,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=(f||g&&v===`end`)&&(0,F.jsx)(em,{className:D.endIcon,ownerState:E,children:f||(0,F.jsx)(nm,{className:D.loadingIconPlaceholder,ownerState:E})}),te=r||``,k=typeof g==`boolean`?(0,F.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,F.jsx)(tm,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:A,...ne}=D;return(0,F.jsxs)(Qp,{ownerState:E,className:ri(n.className,D.root,c,te),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:ri(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:ne,children:[O,v!==`end`&&k,a,v===`end`&&k,ee]})});function im(e){return ai(`MuiIconButton`,e)}var am=oi(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),om=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return Da({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${os(r)}`,i&&`edge${os(i)}`,`size${os(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},im,t)},sm=L(kp,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${os(n.color)}`],n.edge&&t[`edge${os(n.edge)}`],t[`size${os(n.size)}`]]}})(is(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),is(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(Np()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Np()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${am.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${am.loading}`]:{color:`transparent`}}))),cm=L(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),lm=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=cu(u),h=f??(0,F.jsx)(Gp,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=om(g);return(0,F.jsxs)(sm,{id:d?m:u,className:ri(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,F.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,F.jsx)(cm,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),um=()=>{};function dm(){let e=function(){};return e.enabled=!1,e.log=um,e.extend=()=>e,e.destroy=um,e}dm.log=um,dm.enable=um,dm.disable=()=>``,dm.enabled=()=>!1;var fm=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,pm=({size:e,children:t})=>(e=fm(e),(0,F.jsx)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t}));pm.propTypes={size:O.number,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var mm=({size:e,children:t,sx:n})=>(0,F.jsx)(pm,{size:e,children:(0,F.jsx)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t})});mm.propTypes={size:O.oneOfType([O.string,O.number]),children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,sx:O.object};var hm=({fill:e})=>(0,F.jsx)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e});hm.propTypes={fill:O.string.isRequired};var gm=({fill:e})=>(0,F.jsx)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e});gm.propTypes={fill:O.string.isRequired};var _m=({fill:e})=>(0,F.jsx)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e});_m.propTypes={fill:O.string.isRequired};var vm=({fill:e})=>(0,F.jsx)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e});vm.propTypes={fill:O.string.isRequired};var ym=({fill:e})=>(0,F.jsx)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e});ym.propTypes={fill:O.string.isRequired};var bm=(e,t)=>{class n extends P.Component{static propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,size:O.oneOfType([O.number,O.string]),fg:O.string,bg:O.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,F.jsx)(e,{fill:s}):(0,F.jsx)(t,{fill:s}),u=n===`check`?(0,F.jsx)(e,{fill:c}):(0,F.jsx)(t,{fill:c});return a?(0,F.jsx)(mm,{size:o,children:u}):(0,F.jsxs)(mm,{size:o,children:[i===`feedback`?r===`round`?(0,F.jsx)(_m,{fill:c}):(0,F.jsx)(gm,{fill:c}):r===`round`?(0,F.jsx)(vm,{fill:c}):(0,F.jsx)(ym,{fill:c}),l]})}}return n},xm=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(1, 0)`,children:[(0,F.jsx)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
144
+ c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e}),(0,F.jsx)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e})]});xm.propTypes={fill:O.string.isRequired};var Sm=({fill:e,x:t=0,y:n=0})=>(0,F.jsx)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e});Sm.propTypes={fill:O.string.isRequired,x:O.number,y:O.number};var Cm=bm(Sm,xm);Cm.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Cm.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var wm=({bgFill:e,fgFill:t})=>(0,F.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-283 359 34 35`,style:{enableBackground:`new -283 359 34 35`},children:[(0,F.jsx)(`circle`,{cx:`-266`,cy:`375.9`,r:`14`,fill:e}),(0,F.jsx)(`path`,{d:`M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z
145
+ M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e}),(0,F.jsx)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t})]});wm.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired};var Tm=({bgFill:e,fgFill:t,borderFill:n})=>(0,F.jsxs)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,F.jsx)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
146
+ C-97.4,153.5-104.3,160.4-112.9,160.4z`}),(0,F.jsx)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`}),(0,F.jsx)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e}),(0,F.jsx)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
147
+ M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n}),(0,F.jsx)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t})]});Tm.propTypes={bgFill:O.string.isRequired,fgFill:O.string.isRequired,borderFill:O.string.isRequired};var Em=L(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),Dm=({open:e,size:t})=>(0,F.jsx)(Em,{size:t,children:e?(0,F.jsx)(wm,{bgFill:`#bce2ff`,fgFill:`#1a9cff`}):(0,F.jsx)(Tm,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`})});Dm.propTypes={open:O.bool,size:O.string},Dm.defaultProps={open:!1};var Om=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,F.jsx)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e}),(0,F.jsx)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e})]});Om.propTypes={fill:O.string.isRequired};var km=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(1,0)`,children:[(0,F.jsx)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e}),(0,F.jsx)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e})]});km.propTypes={fill:O.string.isRequired};var Am=bm(Om,km);Am.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Am.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var jm=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e}),(0,F.jsx)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e})]});jm.propTypes={fill:O.string.isRequired};var Mm=({fill:e})=>(0,F.jsx)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e});Mm.propTypes={fill:O.string.isRequired};var Nm=({fill:e})=>(0,F.jsxs)(`g`,{children:[(0,F.jsx)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e}),(0,F.jsx)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
148
+ C25.7,26.4,25,27.1,24.2,27.1z`,fill:e})]});Nm.propTypes={fill:O.string.isRequired};var Pm=class extends P.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(jm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),feedback:{check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),square:{check:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(jm,{fill:t})]}),emoji:(0,F.jsxs)(mm,{children:[(0,F.jsx)(Mm,{fill:n}),(0,F.jsx)(Nm,{fill:t})]}),open:{check:(0,F.jsx)(mm,{children:(0,F.jsx)(jm,{fill:n})}),emoji:(0,F.jsx)(mm,{children:(0,F.jsx)(Nm,{fill:n})})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};Pm.propTypes={iconSet:O.oneOf([`emoji`,`check`,void 0]),shape:O.oneOf([`square`,void 0]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string},Pm.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var Fm=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(0, 0)`,children:[(0,F.jsx)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e}),(0,F.jsx)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e})]});Fm.propTypes={fill:O.string.isRequired};var Im=({fill:e})=>(0,F.jsxs)(`g`,{transform:`translate(2, 0)`,children:[(0,F.jsx)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e}),(0,F.jsx)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e})]});Im.propTypes={fill:O.string.isRequired};var Lm=bm(Fm,Im);Lm.propTypes={iconSet:O.oneOf([`emoji`,`check`]),shape:O.oneOf([`round`,`square`]),category:O.oneOf([`feedback`,void 0]),open:O.bool,fg:O.string,bg:O.string,size:O.oneOfType([O.string,O.number])},Lm.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function Rm(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function zm(e){let t=qs(e);return t.body===e?cp(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bm(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Vm(e){return parseFloat(cp(e).getComputedStyle(e).paddingRight)||0}function Hm(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Um(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Hm(e);t&&n&&Bm(e,i)})}function Wm(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function Gm(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(zm(r)){let e=Rm(cp(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Vm(r)+e}px`;let t=qs(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Vm(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=qs(r).body;else{let t=r.parentElement,n=cp(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Km(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var qm=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bm(e.modalRef,!1);let r=Km(t);Um(t,e.mount,e.modalRef,r,!0);let i=Wm(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Wm(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Gm(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Wm(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Bm(e.modalRef,t),Um(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Bm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Jm(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Ym=Jm;function Xm(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Zm=Xm,Qm=`data-mui-focusable`;function $m(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Qm}]`):null}var eh=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function th(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function nh(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function rh(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||nh(e))}function ih(e){let t=[],n=[];return Array.from(e.querySelectorAll(eh)).forEach((e,r)=>{let i=th(e);i===-1||!rh(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function ah(){return!0}function oh(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ih,isEnabled:o=ah,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(!1),m=P.useRef(null),h=Vs(rs(t),m),g=P.useRef(null);P.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),P.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Zm(qs(m.current)),t=$m(m.current)??m.current;return Ym(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!m.current)return;let e=qs(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&Zm(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=Zm(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Ym(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Zm(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,F.jsxs)(P.Fragment,{children:[(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),P.cloneElement(t,{ref:h,onFocus:_}),(0,F.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var sh={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},ch={opacity:0,visibility:`hidden`},lh=P.forwardRef(function(e,t){let n=Bo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,..._}=e,v=P.useRef(null),y=Hs(v,rs(o),t),b=Rs(v,d),x=Rs(v,(e,t)=>{Ls(e);let r=Bs({style:h,timeout:g,easing:s},{mode:`enter`});e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),S=Rs(v,u),C=Rs(v,m),w=Rs(v,e=>{let t=Bs({style:h,timeout:g,easing:s},{mode:`exit`});e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),T=Rs(v,e=>{e.style.transition=``,p&&p(e)});return(0,F.jsx)(Cs,{appear:a,in:c,nodeRef:v,onEnter:x,onEntered:S,onEntering:b,onExit:w,onExited:T,onExiting:C,addEndListener:e=>{i&&i(v.current,e)},timeout:g,..._,children:(e,{ownerState:t,...n})=>{let r=zs(e,c,sh,ch,h,o.props.style);return P.cloneElement(o,{style:r,ref:y,...n})}})});function uh(e){return ai(`MuiBackdrop`,e)}oi(`MuiBackdrop`,[`root`,`invisible`]);var dh=e=>{let{classes:t,invisible:n}=e;return Da({root:[`root`,n&&`invisible`]},uh,t)},fh=L(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),ph=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=dh(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=du(`root`,{elementType:fh,externalForwardedProps:_,className:ri(g.root,i),ownerState:h}),[b,x]=du(`transition`,{elementType:lh,externalForwardedProps:_,ownerState:h});return(0,F.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,F.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function mh(e){return typeof e==`function`?e():e}function hh(e){return e?e.props.hasOwnProperty(`in`):!1}var gh=()=>{},_h=new qm;function vh(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=P.useRef({}),f=P.useRef(null),p=P.useRef(null),m=Vs(p,u),[h,g]=P.useState(!l),_=hh(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>qs(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{_h.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=ou(()=>{let e=mh(t)||y().body;_h.add(b(),e),p.current&&x()}),C=()=>_h.isTopModal(b()),w=ou(e=>{f.current=e,e&&(l&&C()?x():p.current&&Bm(p.current,v))}),T=P.useCallback(()=>{_h.remove(b(),v)},[v]);P.useEffect(()=>()=>{T()},[T]),P.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Ul(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:Qf(()=>{g(!1),a&&a()},s?.props.onEnter??gh),onExited:Qf(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??gh)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function yh(e){return ai(`MuiModal`,e)}oi(`MuiModal`,[`root`,`hidden`,`backdrop`]);var bh=e=>{let{open:t,exited:n,classes:r}=e;return Da({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},yh,r)},xh=L(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(is(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Sh=L(ph,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Ch=P.forwardRef(function(e,t){let n=as({name:`MuiModal`,props:e}),{BackdropComponent:r=Sh,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,ee={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:te,getBackdropProps:k,getTransitionProps:A,portalRef:ne,isTopModal:j,exited:re,hasTransition:ie}=vh({...ee,rootRef:t}),ae={...ee,exited:re},oe=bh(ae),M={};if(c.props.tabIndex===void 0&&(M.tabIndex=`-1`),ie){let{onEnter:e,onExited:t}=A();M.onEnter=e,M.onExited=t}let se={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ce,le]=du(`root`,{ref:t,elementType:xh,externalForwardedProps:{...se,...O,component:u},getSlotProps:te,ownerState:ae,className:ri(o,oe?.root,!ae.open&&ae.exited&&oe?.hidden)}),[ue,de]=du(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>k({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ri(i?.className,oe?.backdrop),ownerState:ae});return!b&&!w&&(!ie||re)?null:(0,F.jsx)(Xl,{ref:ne,container:l,disablePortal:g,children:(0,F.jsxs)(ce,{...le,children:[!y&&r?(0,F.jsx)(ue,{...de}):null,(0,F.jsx)(oh,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:j,open:w,children:P.cloneElement(c,M)})]})})});function wh(e){return ai(`MuiPaper`,e)}oi(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var Th=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Da({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},wh,i)},Eh=L(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(is(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Dh=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiPaper`}),r=Bo(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=Th(u);return(0,F.jsx)(Eh,{as:a,ownerState:u,className:ri(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${ji(`#fff`,xo(o))}, ${ji(`#fff`,xo(o))})`}},...l.style}})});function Oh(e){return ai(`MuiPopover`,e)}oi(`MuiPopover`,[`root`,`paper`]);function kh(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Ah(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function jh(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Mh(e){return typeof e==`function`?e():e}var Nh=e=>{let{classes:t}=e;return Da({root:[`root`],paper:[`paper`]},Oh,t)},Ph=L(Ch,{name:`MuiPopover`,slot:`Root`})({}),Fh=L(Dh,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Ih=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=P.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Nh(w),E=P.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Mh(i),t=(e&&e.nodeType===1?e:sp(C.current).body).getBoundingClientRect();return{top:t.top+kh(t,a.vertical),left:t.left+Ah(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=P.useCallback(e=>({vertical:kh(e,_.vertical),horizontal:Ah(e,_.horizontal)}),[_.horizontal,_.vertical]),O=P.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:jh(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=lp(Mh(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:jh(n)}},[i,s,E,D,f]),[ee,te]=P.useState(p),k=P.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,te(!0)},[O]);P.useEffect(()=>(x&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,x,k]);let A=()=>{k()},ne=()=>{te(!1)};P.useEffect(()=>{p&&k()}),P.useImperativeHandle(r,()=>p?{updatePosition:()=>{k()}}:null,[p,k]),P.useEffect(()=>{if(!p)return;let e=ap(()=>{k()}),t=lp(Mh(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,k]);let j=y,re={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ie,ae]=du(`transition`,{elementType:Ks,externalForwardedProps:re,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),A()},onExited:t=>{e.onExited?.(t),ne()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ie.muiSupportAuto&&(j=void 0);let oe=u||(i?sp(Mh(i)).body:void 0),[M,{slots:se,slotProps:ce,...le}]=du(`root`,{ref:t,elementType:Ph,externalForwardedProps:{...re,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:fp(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:oe,open:p},ownerState:w,className:ri(T.root,l)}),[ue,de]=du(`paper`,{ref:C,className:T.paper,elementType:Fh,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:ee?void 0:{opacity:0}},ownerState:w});return(0,F.jsx)(M,{...le,...!Vl(M)&&{slots:se,slotProps:ce,disableScrollLock:x},children:(0,F.jsx)(ie,{...ae,timeout:j,children:(0,F.jsx)(ue,{...de,children:c})})})}),Lh={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},Rh={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},zh=s({background:()=>lg,backgroundDark:()=>ug,black:()=>Cg,blueGrey100:()=>jg,blueGrey300:()=>Mg,blueGrey600:()=>Ng,blueGrey900:()=>Pg,border:()=>gg,borderDark:()=>vg,borderGray:()=>yg,borderLight:()=>_g,buttonBorder:()=>Vg,buttonFocusOutline:()=>Ag,buttonHoverBg:()=>Hg,correct:()=>Gh,correctSecondary:()=>Kh,correctTertiary:()=>qh,correctWithIcon:()=>Jh,defaults:()=>B,disabled:()=>Hh,disabledSecondary:()=>Uh,disabledText:()=>Wh,dropdownBackground:()=>fg,fadedPrimary:()=>ig,focusChecked:()=>Eg,focusCheckedBorder:()=>Dg,focusUnchecked:()=>Og,focusUncheckedBorder:()=>kg,incorrect:()=>Yh,incorrectSecondary:()=>Zh,incorrectWithIcon:()=>Xh,keyBoardFocusIndicator:()=>Bg,keypadButton:()=>Fg,keypadButtonHover:()=>Rg,keypadButtonOperator:()=>Ig,keypadButtonOperatorHover:()=>zg,keypadEmptyPlaceholder:()=>Lg,missing:()=>Qh,missingWithIcon:()=>$h,primary:()=>eg,primaryDark:()=>ng,primaryLight:()=>tg,primaryText:()=>rg,secondary:()=>ag,secondaryBackground:()=>dg,secondaryDark:()=>sg,secondaryLight:()=>og,secondaryText:()=>cg,surface:()=>pg,tableGrid:()=>bg,tableGridLight:()=>xg,tableStripe:()=>Sg,tertiary:()=>mg,tertiaryLight:()=>hg,text:()=>Vh,transparent:()=>Tg,v:()=>Bh,visualElementsColors:()=>Ug,white:()=>wg}),B={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,DISABLED_TEXT:`#545454`,CORRECT:Ia[500],CORRECT_SECONDARY:Ia[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:Na[500],INCORRECT_SECONDARY:Ma[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Ma[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:Rh[500],PRIMARY_LIGHT:Rh[200],PRIMARY_DARK:Rh[800],SECONDARY:Lh.A400,SECONDARY_LIGHT:Lh[200],SECONDARY_DARK:Lh[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,SURFACE:`#E0E1E6`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,TABLE_GRID:`black`,TABLE_GRID_LIGHT:`#dfe2e5`,TABLE_STRIPE:`#f6f8fa`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BUTTON_FOCUS_OUTLINE:`#3B82F6`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#81848F`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,KEY_BOARD_FOCUS_INDICATOR:`#2B87FF`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(B);var Bh=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},V=Bh(`pie`),Vh=()=>V(`text`,B.TEXT),Hh=()=>V(`disabled`,B.DISABLED),Uh=()=>V(`disabled-secondary`,B.DISABLED_SECONDARY),Wh=()=>V(`disabled-text`,`text`,B.DISABLED_TEXT),Gh=()=>V(`correct`,B.CORRECT),Kh=()=>V(`correct-secondary`,B.CORRECT_SECONDARY),qh=()=>V(`correct-tertiary`,B.CORRECT_TERTIARY),Jh=()=>V(`correct-icon`,B.CORRECT_WITH_ICON),Yh=()=>V(`incorrect`,B.INCORRECT),Xh=()=>V(`incorrect-icon`,B.INCORRECT_WITH_ICON),Zh=()=>V(`incorrect-secondary`,B.INCORRECT_SECONDARY),Qh=()=>V(`missing`,B.MISSING),$h=()=>V(`missing-icon`,B.MISSING_WITH_ICON),eg=()=>V(`primary`,B.PRIMARY),tg=()=>V(`primary-light`,B.PRIMARY_LIGHT),ng=()=>V(`primary-dark`,B.PRIMARY_DARK),rg=()=>V(`primary-text`,`text`,B.TEXT),ig=()=>V(`faded-primary`,B.FADED_PRIMARY),ag=()=>V(`secondary`,B.SECONDARY),og=()=>V(`secondary-light`,B.SECONDARY_LIGHT),sg=()=>V(`secondary-dark`,B.SECONDARY_DARK),cg=()=>V(`secondary-text`,`text`,B.TEXT),lg=()=>V(`background`,B.BACKGROUND),ug=()=>V(`background-dark`,B.BACKGROUND_DARK),dg=()=>V(`secondary-background`,B.SECONDARY_BACKGROUND),fg=()=>V(`dropdown-background`,B.DROPDOWN_BACKGROUND),pg=()=>V(`surface`,B.SURFACE),mg=()=>V(`tertiary`,B.TERTIARY),hg=()=>V(`tertiary-light`,B.TERTIARY_LIGHT),gg=()=>V(`border`,B.BORDER),_g=()=>V(`border-light`,B.BORDER_LIGHT),vg=()=>V(`border-dark`,B.BORDER_DARK),yg=()=>V(`border-gray`,B.BORDER_GRAY),bg=()=>V(`table-grid`,`text`,B.TABLE_GRID),xg=()=>V(`table-grid-light`,`border-light`,B.TABLE_GRID_LIGHT),Sg=()=>V(`table-stripe`,`background-dark`,B.TABLE_STRIPE),Cg=()=>V(`black`,B.BLACK),wg=()=>V(`white`,B.WHITE),Tg=()=>B.TRANSPARENT,Eg=()=>V(`focus-checked`,B.FOCUS_CHECKED),Dg=()=>V(`focus-checked-border`,B.FOCUS_CHECKED_BORDER),Og=()=>V(`focus-unchecked`,B.FOCUS_UNCHECKED),kg=()=>V(`focus-unchecked-border`,B.FOCUS_UNCHECKED_BORDER),Ag=()=>V(`button-focus-outline`,B.BUTTON_FOCUS_OUTLINE),jg=()=>V(`blue-grey-100`,B.BLUE_GREY100),Mg=()=>V(`blue-grey-300`,B.BLUE_GREY300),Ng=()=>V(`blue-grey-600`,B.BLUE_GREY600),Pg=()=>V(`blue-grey-900`,B.BLUE_GREY900),Fg=()=>V(`keypad-button`,B.KEYPAD_BUTTON),Ig=()=>V(`keypad-button-operator`,B.KEYPAD_BUTTON_OPERATOR),Lg=()=>V(`keypad-empty-placeholder`,B.KEYPAD_EMPTY_PLACEHOLDER),Rg=()=>V(`keypad-button-hover`,B.KEYPAD_BUTTON_HOVER),zg=()=>V(`keypad-button-operator-hover`,B.KEYPAD_BUTTON_OPERATOR_HOVER),Bg=()=>V(`keyboard-focus-indicator`,B.KEY_BOARD_FOCUS_INDICATOR),Vg=()=>V(`button-border`,B.BUTTON_BORDER),Hg=()=>V(`button-hover-bg`,B.BUTTON_HOVER_BG),Ug={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Wg=L(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),Gg=L(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${Hh()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${Gh()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${Yh()})`}}),Kg=L(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),qg=class extends P.Component{static propTypes={correctness:O.string,feedback:O.string};nodeRef=P.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,F.jsx)(Ds,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,F.jsx)(Kg,{ref:this.nodeRef,children:(0,F.jsx)(Wg,{children:(0,F.jsx)(Gg,{className:e,dangerouslySetInnerHTML:{__html:t}})})})},`hasFeedback`)}render(){return(0,F.jsx)(`div`,{children:(0,F.jsx)(Is,{children:this.renderFeedback()})})}},Jg=s({Correct:()=>e_,Incorrect:()=>t_,NothingSubmitted:()=>r_,PartiallyCorrect:()=>n_}),Yg=dm(`pie-libs:render-ui:response-indicators`),Xg=L(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),Zg=L(Ih)({cursor:`pointer`}),Qg=L(`div`)({padding:`0`,borderRadius:`4px`}),$g=(e,t)=>{class n extends P.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{Yg(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,F.jsxs)(Xg,{hasFeedback:!!n,children:[(0,F.jsx)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,F.jsx)(e,{})}),n&&(0,F.jsx)(Zg,{PaperComponent:Qg,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(0,F.jsx)(qg,{feedback:n,correctness:t})})]})}}return n.propTypes={feedback:O.string},n},e_=$g(Cm,`correct`),t_=$g(Am,`incorrect`),n_=$g(Lm,`partially-correct`),r_=$g(Pm,`nothing-submitted`);function i_(e){return ai(`MuiCollapse`,e)}oi(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var a_=e=>{let{orientation:t,classes:n}=e;return Da({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},i_,n)},o_=L(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(is(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),s_=L(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),c_=L(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),l_=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=lo.standard,TransitionComponent:x=Cs,...S}=n,C={...n,orientation:g,collapsedSize:o},w=a_(C),T=Bo(),E=ts(),D=P.useRef(null),O=P.useRef(),ee=typeof o==`number`?`${o}px`:o,te=g===`horizontal`,k=te?`width`:`height`,A=P.useRef(null),ne=Hs(t,A),j=()=>D.current?D.current[te?`clientWidth`:`clientHeight`]:0,re=Rs(A,(e,t)=>{D.current&&te&&(D.current.style.position=`absolute`),e.style[k]=ee,u&&u(e,t)}),ie=Rs(A,(e,t)=>{let n=j();D.current&&te&&(D.current.style.position=``);let{duration:r,easing:i}=Bs({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[k]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),ae=Rs(A,(e,t)=>{e.style[k]=`auto`,d&&d(e,t)}),oe=Rs(A,e=>{e.style[k]=`${j()}px`,p&&p(e)}),M=Rs(A,m),se=Rs(A,e=>{let t=j(),{duration:n,easing:r}=Bs({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[k]=ee,e.style.transitionTimingFunction=r,h&&h(e)}),ce=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(A.current,e)},le={slots:_,slotProps:v,component:s},[ue,de]=du(`root`,{ref:ne,className:ri(w.root,a),elementType:o_,externalForwardedProps:le,ownerState:C,additionalProps:{style:{[te?`minWidth`:`minHeight`]:ee,...y}}}),[fe,pe]=du(`wrapper`,{ref:D,className:w.wrapper,elementType:s_,externalForwardedProps:le,ownerState:C}),[N,me]=du(`wrapperInner`,{className:w.wrapperInner,elementType:c_,externalForwardedProps:le,ownerState:C});return(0,F.jsx)(x,{in:l,onEnter:re,onEntered:ae,onEntering:ie,onExit:oe,onExited:M,onExiting:se,addEndListener:ce,nodeRef:A,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,F.jsx)(ue,{...de,className:ri(de.className,{entered:w.entered,exited:!l&&ee===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,F.jsx)(fe,{...pe,ownerState:r,children:(0,F.jsx)(N,{...me,ownerState:r,children:i})})})}})});l_&&(l_.muiSupportAuto=!0);var u_=`https://github.com/pie-framework/pie-players/blob/develop/docs/item-player/loading-strategies.md#one-mathjax-version-per-page`,d_=`pie-mathjax-version-conflict`,f_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/unsupported-page`);function p_(e,t){if(typeof window>`u`)return;let n=globalThis;n[f_]??={logged:!1,conditions:[]};let r=n[f_];if(r.conditions.includes(e))return;r.conditions.push(e);let i=`[math-rendering] Unsupported page (${e}): ${t}. PIE supports one MathJax major version per page; with MathJax 3 and 4 on one page, math rendering is best effort and may break. See ${u_}`;r.logged||(r.logged=!0,console.error(i)),window.dispatchEvent(new CustomEvent(d_,{detail:{condition:e,message:i,docsUrl:u_}}))}function m_(){let e=window.MathJax?.version;return typeof e==`string`&&e.startsWith(`3.`)?e:void 0}var h_=`https://cdn.jsdelivr.net/npm/mathjax@4.1.3/tex-mml-chtml.js`,g_={parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`,abs:[`\\left|#1\\right|`,1]},__=`[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)`,v_=/\\\(|\\\[|\$\$|\\\$|\\begin\{|\\(?:eq)?ref\{/,y_=/\\\(|\\\[|\$|\\begin\{|\\(?:eq)?ref\{/,b_=/\\embed\{newLine\}\[\]/g,x_=[[`$$`,`$$`],[`$`,`$`],[`\\[`,`\\]`],[`\\(`,`\\)`]],S_=Symbol.for(`@pie-element/shared-math-rendering-mathjax/loading`),C_=`PIE-MJX-CHTML-styles`,w_=`MJX-CHTML-styles`,T_=[w_,`MJX-SVG-styles`],E_=201;function D_(e){let t=[...e.matches(`mjx-container`)?[e]:[],...e.querySelectorAll(`mjx-container`)];for(let e of t)for(let t of[e,...e.querySelectorAll(`[data-latex],[data-latex-item]`)])t.removeAttribute(`data-latex`),t.removeAttribute(`data-latex-item`)}function O_(){return window.MathJax}function k_(e){for(let[t,n]of x_)if(e.startsWith(t)&&e.endsWith(n))return e.substring(t.length,e.length-n.length);return e}function A_(e){return k_(e.includes(`\\displaystyle`)?e.replace(`\\displaystyle`,``).trim():e)}var j_=`mathjax_ignore`,M_=`mathjax_process`;function N_(e,t){let n=e.closest(`.${j_}, .${M_}`);return n!==null&&t.contains(n)&&!n.classList.contains(M_)}function P_(e){for(let t of e.querySelectorAll(`[data-latex]`)){if(t.dataset.mathHandled||t.closest(`mjx-container`)||N_(t,e))continue;let n=t.textContent;n&&(t.textContent=`\\(${A_(n)}\\)`.replace(b_,`\\newline `),t.dataset.mathHandled=`true`)}}function F_(e,t){for(let t of e.querySelectorAll(`math`))if(!t.closest(`mjx-assistive-mml`))return!0;return(t?y_:v_).test(e.textContent??``)}function I_(e){return new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={loader:{load:i?[`a11y/assistive-mml`]:[],failed:e=>n(e)},startup:{typeset:!1,ready:()=>{let e=O_(),r=e?.startup,i=!!e?.version?.startsWith(`4.`);i&&L_(e),r?.defaultReady?.(),i&&R_(r?.document),Promise.resolve(r?.promise).then(()=>t(),n)}},tex:{macros:{...g_}},options:{enableMenu:i,menuOptions:{settings:{assistiveMml:i,enrich:!1,inTabOrder:!1}}}};r&&s.tex&&(console.warn(__),s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||h_,c.async=!0,c.onerror=()=>n(Error(`Failed to load MathJax`)),document.head.appendChild(c)})}function L_(e){let t=e?._?.output?.chtml_ts?.CHTML;t&&(t.STYLESHEETID=C_)}function R_(e){if(!e)return;let t=new WeakSet,n=e=>{let n=e.typesetRoot;!n||t.has(n)||(D_(n),t.add(n))};e.addRenderAction?.(`pie-strip-latex`,E_,e=>{for(let t of e.math??[])n(t);return!1},e=>{let t=e.typesetRoot;return t&&D_(t),!1});let r=e.outputJax?.chtmlStyles;r?.id===w_&&(r.id=C_),V_()}function z_(e){return e instanceof HTMLStyleElement&&T_.includes(e.id)}function B_(e){p_(`foreign-output-stylesheet`,`another MathJax added <style id="${e.id}"> to <head>`)}function V_(){let e=document.head,t=[...e.children].find(z_);if(t){B_(t);return}let n=new MutationObserver(e=>{for(let t of e){let e=[...t.addedNodes].find(z_);if(e){B_(e),n.disconnect();return}}});n.observe(e,{childList:!0})}function H_(e){return new Promise((t,n)=>{let r=e.startup??{};e.startup=r;let i=r.ready;r.ready=()=>{let e=O_()?.startup;i?i.call(r):e?.defaultReady?.(),Promise.resolve(e?.promise).then(()=>t(),n)}})}function U_(e){let t=O_();return t?t.version?t.startup?.promise?Promise.resolve(t.startup.promise).then(()=>void 0):Promise.resolve():H_(t):I_(e)}function W_(e){return U_(e).then(()=>{typeof O_()?.typesetPromise!=`function`&&console.warn(`[mathjax-renderer] MathJax on this page has no typesetPromise; math stays untypeset.`)})}function G_(e){let t=globalThis,n=t[S_];return n||(n=W_(e),t[S_]=n),n}function K_(e={}){let t=e.useSingleDollar??!1;return async n=>{if(typeof window>`u`)return;let r=m_();r&&p_(`mathjax-3-global`,`window.MathJax is MathJax ${r}`),P_(n);let i=G_(e);if(!F_(n,t)){i.catch(()=>{});return}await i;let a=O_();await a?.startup?.promise,typeof a?.typesetPromise==`function`&&(await a.typesetPromise([n]),D_(n))}}var q_=`@pie-lib/math-rendering`,J_=`@pie-lib/math-rendering@2`,Y_=`pie-print`,X_=50,Z_=1e4,Q_=null;function $_(){return!!window[J_]?.opts?.useSingleDollar}function ev(){return Q_||=K_({useSingleDollar:$_()}),Q_}function tv(){if(typeof window>`u`)return null;let e=window[q_];return typeof e?.renderMath==`function`&&e.renderMath!==av?e:null}function nv(e){let t=e;for(;t;){if(t instanceof Element&&t.localName===Y_)return t;t=t instanceof ShadowRoot?t.host:t.parentNode}return null}function rv(){let e=window.renderMath;return typeof e==`function`?e:null}async function iv(e){let t=nv(e);if(!t)return null;let n=rv();if(n||t.mathRenderingModuleUrlImported!==!0)return n;let r=Date.now()+Z_;for(;Date.now()<r;){await new Promise(e=>setTimeout(e,X_));let e=rv();if(e)return e}return null}var av=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body;let r=tv(),i=r||t?null:await iv(n);return r?await r.renderMath?.(n):i&&i!==av?await i(n):await ev()(n),t?n.innerHTML:void 0},ov=L(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),sv=L(l_)(({theme:e})=>({paddingTop:e.spacing(2)})),cv=class extends P.Component{static propTypes={className:O.string,children:O.object,labels:O.shape({visible:O.string,hidden:O.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){av(this.root)}componentDidUpdate(){av(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,F.jsxs)(`div`,{className:n,ref:e=>this.root=e,children:[(0,F.jsx)(`div`,{onClick:this.toggleExpanded,children:(0,F.jsx)(ov,{children:r})}),(0,F.jsx)(sv,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t})]})}},lv=rp((0,F.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),uv=rp((0,F.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),dv=L(`div`)({display:`flex`,flexDirection:`column`}),fv=L(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),pv=L(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),mv=L(rm)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),hv=e=>{class t extends P.Component{static propTypes={session:O.object,onSessionChange:O.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,F.jsxs)(dv,{children:[(0,F.jsxs)(fv,{children:[(0,F.jsxs)(mv,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,F.jsx)(pv,{children:(0,F.jsx)(uv,{})}),`Undo`]}),(0,F.jsxs)(mv,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,F.jsx)(pv,{children:(0,F.jsx)(lv,{})}),`Start Over`]})]}),(0,F.jsx)(e,{...t,session:r,onSessionChange:this.onSessionChange})]})}}return t},gv=Ro({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),_v=L(`div`)({"& table, th, td":{fontSize:`inherit`}}),vv=class extends P.Component{static propTypes={className:O.string,children:O.array,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,F.jsx)(bn,{injectFirst:!0,children:(0,F.jsxs)(Yo,{theme:gv,children:[i?.rules?(0,F.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}}):null,(0,F.jsx)(_v,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e})]})})}},yv=L(vv)({display:`flex`,flexDirection:`column`,position:`relative`}),bv=class extends P.Component{static propTypes={ariaLabel:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired,role:O.string,extraCSSRules:O.shape({names:O.arrayOf(O.string),rules:O.string}),fontSizeFactor:O.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,F.jsx)(yv,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e})}},xv=class extends P.Component{static propTypes={tag:O.string,className:O.string,html:O.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,F.jsx)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}})}};function Sv({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var Cv=P.createContext(void 0);function wv(){return P.useContext(Cv)}function Tv(e){return ai(`MuiFormLabel`,e)}var Ev=oi(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),Dv=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return Da({root:[`root`,`color${os(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Tv,t)},Ov=L(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(is(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Np()).map(([t])=>({props:{color:t},style:{[`&.${Ev.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ev.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ev.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),kv=L(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(is(({theme:e})=>({[`&.${Ev.error}`]:{color:(e.vars||e).palette.error.main}}))),Av=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=Sv({props:n,muiFormControl:wv(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Dv(m);return(0,F.jsxs)(Ov,{as:o,ownerState:m,className:ri(h.root,i),ref:t,...f,children:[r,p.required&&(0,F.jsxs)(kv,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function jv(e){return ai(`MuiInputLabel`,e)}oi(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var Mv=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=Da({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${os(r)}`,o],asterisk:[s&&`asterisk`]},jv,t);return{...t,...c}},Nv=L(Av,{shouldForwardProp:e=>Ho(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Ev.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(is(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Pv=P.forwardRef(function(e,t){let n=as({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=wv(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=Sv({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=Mv(f);return(0,F.jsx)(Nv,{"data-shrink":u,ref:t,className:ri(p.root,s),...c,ownerState:f,classes:p})});function Fv(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Iv(e,t=!1){return e&&(Fv(e.value)&&e.value!==``||t&&Fv(e.defaultValue)&&e.defaultValue!==``)}function Lv(e){return e.startAdornment}function Rv(e){return ai(`MuiFormControl`,e)}oi(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var zv=e=>{let{classes:t,margin:n,fullWidth:r}=e;return Da({root:[`root`,n!==`none`&&`margin${os(n)}`,r&&`fullWidth`]},Rv,t)},Bv=L(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${os(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Vv=L(P.forwardRef(function(e,t){let n=as({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=zv(_),[y,b]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{if(!op(t,[`Input`,`Select`]))return;let n=op(t,[`Select`])?t.props.input:t;n&&Lv(n.props)&&(e=!0)}),e}),[x,S]=P.useState(()=>{let e=!1;return r&&P.Children.forEach(r,t=>{op(t,[`Input`,`Select`])&&(Iv(t.props,!0)||Iv(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=P.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;P.useRef(!1);let E=P.useCallback(()=>{S(!0)},[]),D=P.useCallback(()=>{S(!1)},[]),O=P.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,F.jsx)(Cv.Provider,{value:O,children:(0,F.jsx)(Bv,{as:o,ownerState:_,className:ri(v.root,i),ref:t,...g,children:r})})}))(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),Hv=L(Pv)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),Uv=({label:e,className:t,children:n})=>(0,F.jsxs)(Vv,{className:t,children:[(0,F.jsx)(Hv,{shrink:!0,children:e}),n]});Uv.propTypes={label:O.oneOfType([O.string,O.object]).isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var Wv=L(`div`)(({theme:e,tagName:t})=>({'&:not(.MathJax) > table:not([role="presentation"])':{borderCollapse:`collapse`},'&:not(.MathJax) table[border]:not([role="presentation"]), &:not(.MathJax) table[border]:not([role="presentation"]) td, &:not(.MathJax) table[border]:not([role="presentation"]) th':{borderStyle:`solid`,borderColor:bg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)':{backgroundColor:Sg()},'&:not(.MathJax) > table:not([role="presentation"]):has(tbody tr > td:first-child) tbody tr:nth-child(even) td':{backgroundColor:Sg()},'&:not(.MathJax) table:not([role="presentation"]) td, &:not(.MathJax) table:not([role="presentation"]) th':{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:Vh()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${Vh()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),Gv=/\\embed\{newLine\}\[\]/g,Kv=`\\newline `,qv=`preview-prompt`,Jv=class extends P.Component{static propTypes={prompt:O.string,tagName:O.string,className:O.string,onClick:O.func,defaultClassName:O.string,autoplayAudioEnabled:O.bool,customAudioButton:O.shape({playImage:O.string,pauseImage:O.string})};static defaultProps={onClick:()=>{}};promptRef=P.createRef();parsedText=e=>{let{autoplayAudioEnabled:t,customAudioButton:n}=this.props,r=document.createElement(`div`);r.innerHTML=e;let i=r.querySelector(`audio`);if(i){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,i.getAttribute(`src`)),i.removeAttribute(`src`),i.setAttribute(`id`,`pie-prompt-audio-player`),i.appendChild(e),n){i.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t?n.pauseImage:n.playImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),i.parentNode.insertBefore(e,i)}}return r.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{n&&t&&(n.style.backgroundImage=`url(${t.playImage})`),console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&r.play()},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=this.promptRef.current;e&&typeof av==`function`&&av(e)}alignImages(){let e=this.promptRef.current;if(!e)return;let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.attributes.alignment.value,n=t===`center`?`center`:t===`right`?`flex-end`:`flex-start`,r=e.parentElement;if(r.tagName===`DIV`&&r.style.display===`flex`&&r.style.width===`100%`)r.style.justifyContent=n;else{let t=document.createElement(`div`);t.style.display=`flex`,t.style.width=`100%`,t.style.justifyContent=n;let i=e.cloneNode(!0);t.appendChild(i),r.replaceChild(t,e)}}}}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``} ${qv}`.trim();return(0,F.jsx)(Wv,{as:t||`div`,ref:this.promptRef,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(Gv,Kv)}})}},Yv=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-readable":e.false===void 0}))});Yv.propTypes={children:O.node,false:O.bool};var Xv=e=>(0,F.jsx)(F.Fragment,{children:P.Children.map(e.children,t=>P.cloneElement(t,{"data-pie-purpose":e.purpose}))});Xv.propTypes={children:O.node,purpose:O.string};var Zv;typeof window<`u`&&(Zv=new DOMParser);var Qv=e=>Zv.parseFromString(e,`text/html`).body.textContent,$v=e=>{if(!e)return!1;let t=Qv(e);return!!(t&&t.trim())},ey;typeof window<`u`&&(ey=new DOMParser);var ty=e=>{if(!e)return!1;let t=ey.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},ny=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARtJNt2S4sDaljMNB2dZfNr9gGn49hfzv1WA+PYX879VgPj2F/O/VYD49hrNqpeyvaz1A0d8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaA75UPIqepe0B3yoeRU9S9oDvlQ8ip6l7QHfKh5FT1L2gO+VDyKnqXtAd8qHkVPUvaBY5hSm7QpVZPsUb/rA+mLbV3Fx8zAoAAAAAAAAAAAAAAAAAAAAPhxOYqDcaNtOM3w+YD8bF5u296cnLsb4epAfnV887lrvvV6eLoB88topvSNRJW5xfsA0d/Z/nv8AaAd/Z/nv9oCPPpxTbrcFf+EBtvaZX0rafpe8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veA8Jvlvre8B4TfLfW94Dwm+W+t7wHhN8t9b3gPCb5b63vAeE3y31veBu0to4VZ7inLXn3TggP0cJnNOpLuae+km27q6XbxA/UoVac1GruKcZLg219nMD9qjUhOKUFO1r+Mn9rA3AAAAAAAAAAAAAAAAAAB8mPxLoU92ErSlxfYgOF7W7S5XszlmMzzNsfTw2AwNKVatVqLxVGK8Z29F7c3pZan6WbNeIuRatRrVM6RD8716jD25u3Z0piNZl5+9MPWv2828zPEYLZHM8Zs7kEZtUYYafcsVXjfSdWpHxot+RF2SdnvWuVbY+VMLgaIrxNMV3OXXfEdERxT1z7tEn2xmvF46uaMLVNu3yabqp6Znjjqj36ukMXjMZj68sVjsVWxNaesqlao5yl6W9WdTRbotxwaI0joctXcruVcKudZ6WyengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN7CYzGYCvHFYHFVsNWhrGpRqOEo+hrVHmu3Rcjg1xrHS90XK7dXConSeh3Z0Q9avbvYTMKGB2rzLGbQZFKa7rDEVO6YqgnxnTqy8aVvIk2tLLd4nLbXyphcdRNeGpi3c6N0T0THF749+rqdj5rxeBrijE1Tct9O+Y6Ynjnqn3aM+NltqMBtDluDzvKMXTxeExtOOIw9ZSsqkJap6cHZ8LKz4olN6zXh7lVq5GlUTpMKxZvUYi3TdtTrTMaxLmuX42U4NxqzaUVeMo726r2110t6voPzfo/To1FVhvqpGevFKwG4AAAAAAAAAAAAAAAAAfgZpWko1au/KSi7KV9fmt6AMQOvHthiMDsVlWy2FxDpxzvMJVa8Y/wAOlQSk4S7V3SdKX+qrcztckYWLuMrxFUfgjd0TV+0THvcTnjFTawdGHpn8c7+mKf3mJ9zCcqCWgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGaXUi2wr4zYvNdl8Ripz7y46NahF6qnSrpy3UuzfhVl/rMl+d8LFrGUYiI/HG/rj9piFSyPipu4OvD1T+Cd3RFX7xM+9ltlGKi9y8U3JqTk22mr+p+g4p2zkuFxNOreEIRppO0VdXfzAfSAAAAAAAAAAAAAAAA0VZUowfdpRjFqzcnZAcUziruUG4ylGcVfzNfe+ugGD/Xnqznidj4Saaj3xtbz/ABf7+ooeQ+cdjxJ3n7m/b8LFcoSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGUXUeqyp4va1Ra8Z5do158R+q5Pc+c37fhUTIPOOx4mbWVTiqcJVpWcZWi6fBevzXJ4ojmeGgpRjiJL9knHV66/N8yA3wAAAAAAAAAAAAAAAG1ilF4epv8N1+vl9IHDtoXGGH3VFq8XqtF6G+foAwg67zi8Tsju8P2/bstu4bk9fuih5D5x2PEnefub9vwsXihJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZOdSj/H7Xf8A0H2YknufOb9vwqJkHnHY8TNjZ7WV5VHBRfJ2TRPFEcwy9zUof4zudvFtfd+wD9IAAAAAAAAAAAAAAABs4tTeHnuSs0m351zA4ftG2sNpNqSacUn62Bg5124OOO2UdrJ/H0r6P/N+XzlDyHzjseJO8/c37fhYxFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAya6lN/je1iva8cDr/8AkE9z5zft+FRMg847HiZrbPb1NqO+oNvTRa8bpXehPFEczy9y7pG1Va6um5NfqswP0wAAAAAAAAAAAAAAAGxjJ7mHmrtNq11G4HDtpFL4uqt/F4JJJPXz8fmsBg912t14zZLdem7jrLs/J/P6Sh5D5x2PEnefub9vwsYihJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZNdSn8s2s/RwP94J7nzm/b8KiZB5x2PEzd2fhGcVGSun7yeKI5fgYVEoN4eMocp6byA/QAAAAAAAAAAAAAAAAbOLipYeeidk2r8gOG7RNzp9zcYqKW85pXkvMBg/12oRhidkk14/7fu9eFsNb9ZQ8h847HiTvP3N+34WMJQk7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMm+pSv23tY+xYH+8E9z5zft+FRMg847HiZubOS8ZRat2efiTxRHNcBUh3CFPeSkr6XV3qB9QAAAAAAAAAAAAAAADYxkHKhJqUk4pvR8V5wOGZ81GlKDbV1rfmla33uBg/wBdhp4rZK1tFj+bul+1/m+7KHkPnHY8Sd5+5v2/CxjKEnYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk11Kfyzaz9HA/3gnufOb9vwqJkHnHY8TN7Zzl9+0niiObYH8lh8/2sD6AAAAAAAAAAAAAAAAGxjYKeHld23dUBw3aNN0UpNJdrtfj6L2Awd67Di8bso4xaVsdpe/+jlDyHzjseJO8/c37fhYyFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyb6lLfxvaxaarAvh/wCIJ7nzm/b8KiZB5x2PEzb2fjvKLV7p3XjNdvYTxRHNsFTi8PCd5X1/hO3HsA+oAAAAAAAAAAAAAAAB8+Oq9yw8v2Ock1bxeQHEdoG6mC8Vt3krR+/vAwa666ti9kteMcd/uCh5D5x2PEnefub9vwsZChJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA+rLMqzPO8fRyrJsuxWPxuJluUcNhaMqtWrLjaMIpuT05I8XLlFqma7kxERyzuh7t2671UUW4mZnkjfLlP4FumP8A+U22X/6HFf8A8GH/ABXAf89H91P6s3+E4/8A4K/7av0PwLdMf/ym2y//AEOK/wD4H8VwH/PR/dT+p/Ccf/wV/wBtX6Nut0O9LmHg6lfos2vpwXGU8jxSS+dwPsbUwNW6L1H90fq+TsvHUxrNmv8Atn9HGsxyvM8oxLwWbZdicFiI6uliKMqc1/qySZl0XKLscKiYmOjew7luu1PBriYnp3PlPbwAZe7A/B/+HGw+QbZ/ha+Jd/Mtw2Y/Fu8PdO491pxnub/xhb1t617K/YjhsbnT7JibmH8hrwZmNeFprpOn5Xd4LJX2zDW8R5fThRE6cHXTWNfzOmOsX0FPoB2uy/ZXwp7+rH5bHMPjHxL4ruXq1Ibm73Sd/wDF3vdceGmu/wBh7Y/jViq9wODpOmmuvJE+qPW5/buxv4Lfps8Ph6xrrppyzHrn1OqTdNIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ/wC2HUh2G6Rdgsi2g2Eq09mNoauUYSpNJOWCxc3Ri26kFd05N8Zw87cZN3Jlhc24nA4mu1ifv0cKeuN/JPL1T8YU/FZRw2Ow1F3Dfcr4MdU7uWOTrj4Swt6R+inb3onzp5Ht1s/Xy+rJvuNa2/QxEV/CpVF4s1w4O6vqk9Dv8DtLDbSt+Uw1evfHXCfY/ZuK2bc8niaNOnknqlxIzmCAAAAAAAAAAAABk11KbfGtrUvxt3A2fL/OCe585v2/ComQecdjxM3tnL3j2a/rJ4ojmmCVX4vBqcd3XTd149twPqAAAAAAAAAAAAAAAAfPjZ7tFxUrOSfNa+bX9QHD9oKtB4ZQ34RndOytvWf2rUDBzrrxaxeybemmOVuf+b8ih5D5x2PEnefub9vwsZChJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA7W6q374XYf+Uv93M0uY/Rd7q+sN3lz0rZ6/pL1gIotr8qttXsth6tTD19pcqp1aUnCcJ4ympRknZppvRp6WP2jDXpjWKJ+EvxnE2YnSa4+MN3BbQ5BmVb4vl2eZfiqtr7lHEwnK3oTufK7F23GtVMxHU+037Vc6U1RM9bZ2l2T2Y2yyypk21mQZfm+BqJ71DGYeNWF+1KSdn2NWa4o9WMTewtflLFU0z64nR5xGGs4qjyd+mKo9UxqwQ61vU/w3Rzl9fpH6Mqdeps/TnfMMtnJ1J4BSaSqU5PxpUruzTvKN07tX3aRlzM9WOrjCYz8fJPr6J6e9NsyZXpwNE4vB/g5Y9XTHR3MTjtnDvXnoD/yH7Afzay7+zwIZtn0jf8Abq75XXYvo6x7FPdDDL4Rb/K5s9/Nyn/acQd9kbzK57f0hwGevPbfsfWWKZ2riQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD2W6Pf3A7NfyPg/6mBBMb51c9qe+V+wXmtv2Y7ofVtTsns1ttktfZ3a3JMJmuW4lfsmHxNNTjflJc4yXKSs1yaPGHxN7CXIu2Kppqjlh7xGGs4u3Nq/TFVM8ksJenDqDZtlTxG0PQviamZYNXnPJcXUXxmmuL7jUdlUXZGVpacZtlC2RnOi5pa2hGk/mji98cnXG7qTza+S67et3Z86x+WeP3Ty9U7+tiFmGXZhlGOr5ZmuBxGCxmGm6dbD4ilKnUpyXGMoySafmZ3VFdN2mK6J1ieWHCV26rVU0VxpMck8b5j08AAAAAAAAAABk31Kt1V9rpO+8lgLdlrYi9/oJ7nzm/b8KiZB5x2PEzbyCU4qLjuLXVydrcSeKI5tl874eMGpXV9d12evID6gAAAAAAAAAAAAAAAGxjP8RJb8Yqz4q9/MgOHbQ1GqKS3XNK6klrxs0Bg512JXxuynDhjuSX+jlDyHzjseJO8/c37fhYyFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAB2t1V2l1hNh7v/ANpf7uZpcxei73V9YbvLnpWz1/SXrARRbXjv0wf5Wttv5x5l2/6TU7S77L8xs+xT3Qgu1PPr3t1d8uJRlKElOEnGUXdNOzTM6Y13SwYnTfDMHqS9Yva6W2uD6I9sM5xea5XmdKcMrqYmfdKmErU4Snub8vGdOUYyVm3ZqCjZXRwmbNh2Ps846xTFNVP4tOWJ3a9ffv1d7lLbt/7RGBxFU1U1fh15Jjfp1ftozpzbK8DneV4zJczoRr4PH4ephcRSlwqUpxcZRfmabROLdyq1XFyidJidY9ykXLdN2ibdcaxMaT1S8bNscgeym12ebLOt3Z5PmOJy91PLdKrKG98+7cveFvfabFF780RPxjVAsVY+zX67P5ZmPhOj1h6A/wDIfsB/NrLv7PAie2fSN/26u+Vt2L6OsexT3Qwx+EWv+F3Z/s8G6X9qxB32RvMrnt/SHAZ68+t+x9ZYqHauJc+6NugrpU6WnKpsPslicZhKc9ypjarjRw0HzXdJtRk1zUbtdhrcftjBbN3YiuIn1cc/CGzwGx8btPfhqJmPXxR8Z+jujBfB3dMleCnjdp9kMM2r7ixWJnJPsdqNvU2c/XnjAROlNFc+6P1dDRkbH1RrVXRHvn9HFNt+pJ09bGYSpj6GR4LaOhSW9N5JiJV6iXmpTjCpJ+aMWzNwmbdmYqrgzVNE/wBUafOJmPjLBxeUdp4WnhRTFcf0zr8piJ+EOhqtKpRqTo1qcqdSnJxnCSs4tcU1yZ0sTExrDmpiYnSXbXRt1W+lvpX2Xp7X7G5fltfLqtapQUquYU6c1ODtJOL1Xz8mnzNHj8w4HZt7yGImYq4+KeVvMBl3HbSsxfw8RNPFxxyNvpN6sPS30R7NLazbHKcHTy74zDCyqYbGQrOE5qTi2o8F4tr9rXaetn5gwO073kMPVPC013xo87Qy9jtmWfL4imODrpunV1ObppHLejLov2v6XNpJbK7FYOjiMfDDTxc1WrKlCNKLjFtyei1nFelowtobQsbMteWxE6U66eveztn7Ov7TveQw8a1aa+rc7Xl1E+sHFOUsmydJK7bzSlojSf8A2Gy/zT/bLd//AB21Pyx/dDH2pDudSVPfjLdk1vRd07c15jqInWNXLzGk6NIfAAAAAAAAAAAAAAAAAAAAAAAB7LdHv7gdmv5Hwf8AUwIJjfOrntT3yv2C81t+zHdDkBisoA616YOr50a9NWAdPavJ1SzKEN3D5thEqeLo9i3rePFeTNNcbWepttmbaxeyatbFX3eWmeKf064ajamxMJtanS/T97kqjjj9eqWAXTf1SukrocliM2p4aW0GzVNuSzTBUnejDtr0tXS9N3Dh419Cm7IzLhNqaUTPAuflnl6p5e/oTHa+WcXsvWuI4dv80cnXHJ3dLpA6JzgAAAAAAAAAyb6lNvjO1r4ySwNlfjpiPdzJ7nzm/b8KiZB5x2PEzd2dbSTSb8y+cniiOZYGFZ0ac1WtDXxHFdvaB9gAAAAAAAAAAAAAAAD58bZUJPzNfj7v/P0AcM2jpuUISjFSdrfjtvj2X/UBhB12Zb2N2T0X4uO4K1/ycoeQ+cdjxJ3n7m/b8LGMoSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAO1uqt++F2H/lL/dzNLmP0Xe6vrDd5c9K2ev6S9YCKLa8d+l+fdOlnbae7u720WZO172/bNQu+zI0wNmP6Ke6EF2pOuOvT/XV3y4iZzBd59TLYnNtrunjIsfg8JUngNn3PMcfXV1ClFQlGmm+2VRxSjzW9yTOczVi6MNs2umqfvV7o+O/4Q6TKmErxO06KqY+7Rvmfdu+MvUMjqyPHTpZzjC7Q9Ke2OfYGanhsxz/MMVQkuEqc8ROUX6mi8bNtTYwVm3VxxTTHwiEF2ndi/jb12nimqqfnL1O6A/8AIfsB/NrLv7PAjO2fSN/26u+Vn2L6OsexT3Qwy+EWa/C5s8r6+DlP+1Yg77I3mVz2/pDgM9ee2/Y+suvOqf0K4Ppp6ToZfn1OU9n8moPH5nGM3B1knu06Ka1W9J6213Yzs07M2uZNq1bKwfCtfjqnSOj1z7o+ejVZa2TTtbGcG7+CmNZ6fVHvn5avTyUsi2SyKdRxwmVZRlWGc3uxjSo4ejCN3otIxSRH/wCZibnLVVVPXMzKxfy8Nb13U00x1REQxuzr4Qroby7N54HLcj2lzXB0puLx1DDUqcKi8qnCpUjNr9JQfmOstZJx9dHCrqppn1TM/PSJj4auSu532fbucGimqqPXER8tZifjo746NekzY/pZ2Xo7XbFZi8Vgas5UpxnBwq0Ksbb1OpF8JK67U0002mmc3j8Bf2bemxiI0n5THrh0uA2hY2lZi/h51j5xPqlip1++hHKKGV4fpn2dwEMPi/jMMJncaUbRrRmrUq8raKSklBv+Fvw7Ne0yZta5Nc7PuzrGmtPRpxx9eje4rOmyLcURtC1Gk66VdOvFP06dz8v4OrpBjhc12k6MsZiIwjjYQzjBRlpepC1OtFPtcXRaXZCR+2eMFwqLeMpji+7PfH1+L8cjY3g13MHVPH96O6fp8GV3TpsL+Enoj2o2OhSdTEY3ATnhIpXbxNJqpRS9NSEV85xWyMZ9gx1q/wAkTv6p3T8pdttjB/b8Ddw/LMbuuN8fOHkJwLmhLOf4OfYfuOU7UdIuJpNSxNenlOFk428SEe6VbPmm50/nh5ic55xety1hI5I4U+/dHdPxUjIuD0t3cXPLPBj3b574+DvDrX9IL6Oug3aHMsPiHSx+aU1lGCcePda94yafJxpqpJPtic5lzBfbto26JjdH3p6o/fSHR5kxv2HZtyuJ31fdjrn9tZeVBaUUAAAAAAAAAAAAAAAAAAAAAAAAD2W6Pf3A7NfyPg/6mBBMb51c9qe+V+wXmtv2Y7ocgMVlAACSjGcXCcVKMlZpq6aHEcbGfpw6j+wnSG6+f7ASobK59O85U4U/2hiZ8fHpx1pN+VDTm4t6nXbIzdicDpaxP8yj/tHv5ff8XIbXyjhsdrdwv8uv/rPu5Pd8GB/SN0VbedFGcvI9udnsRl9VuXcazW9QxEU/xqVReLNejVX1SehSsDtHDbSt+Uw1evfHXCaY/ZuJ2bc8niaNO6eqXEjNYIAAAAAADJnqVq+K2telt3A8r8sRy5k9z5zft+FRMg847HiZv7Ocvv2k8URzPAStSjHk78IPjft4AfWAAAAAAAAAAAAAAAA28Rf4vUsv4L+wDhe0tRfF1Sas/wAZPt1QGDfXW/LNk/0cd/dyh5D5x2PEnefub9vwsZShJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA7W6q374XYf+Uv93M0uY/Rd7q+sN3lz0rZ6/pL1gIotrH/aLqQ9CO0+0GZ7S5nDPljM2xlbHYjueYKMO6VZuct1bjsrydlc6exm3aOHtU2aODpTERG7kiNPW5i/lHZ2Iu1Xq+FrVMzO/lmdfU+bB9Qzq/YWuq1fLs7xkFxpVszkov8AoKMvpPdecdqVRpE0x7v11eKcm7LpnWYqn3/po7n2H6PdiujbJoZBsNs5g8owUdXCjFudR6+NUqSbnUlq9ZNs5/F43EY655XEVzVPT9I4o9zoMJgsPgLfksNRFMdH1njn3unetb1lck6Jtlcbsrs7mVHEbZZpQlQo0aUt55fCas8RUt+LJJ3hF6uVnZxTN9lzYNzaV6m9djS1TOs/1ackfXo6WgzJt+3syzNi1Ot2qNI/p15Z+nT0PM0rqQPXnoD/AMh+wH82su/s8CGbZ9I3/bq75XXYvo6x7FPdDDL4RZr8Lmzyvr4OU/7ViDvsjeZXPb+kOAz157b9j6y6M6LumrpD6G62Y4jYDN6GAqZrGlDFSqYOlXclTcnFLukXu/jy4WvpfgjpNo7Jwu1IpjFU68HXTfMcfU5vZ21sVsqapwtWnC013RPF1uyKvTb1renrIMw2JwFPMdoMux8Y0cZHLskppKKlGdpVadNbibSveSunbmamNk7E2NdpxFUxRVG+Nap6uKZ3tvO19t7ZtVYemJrpndOlMdfHEbn5eB6mHWRx0I1F0duhCSunXzTBwfzx7rvL50ftXmrZNG7yuvVTV+j8KMqbXr3+S066qf1ZWdSrob6Veh6ltbgekLKKeX4TMpYKtgoRxlGupVIKsqrSpye67SpXb42Vji817VwW1JtVYWrWaddd0x6tOP3u2ynsrG7Li7TiqdIq003xPr14vc5p1yqFKv1btse6w3u5wwdSOvCSxlGzNdleqadrWdOn/GWwzTTFWyb2vR/lDzo6Ftvq/Rh0pbObbUqjjSy/GRWKXlYaonTrL/7cpW89irbWwUbQwVzDzyxu643x80o2TjZ2fjbeIjknf1Tun5PX6nUp1qca1GpGdOcVKMou6knwafNELmJidJXaJiY1h5M9ZXYV9HnTbtVkEKThhauNlj8Joku4V/2WKjblHfcP9Rlt2DjPt2zrV2ePTSeuN37oht/B/Ydo3bUcWusdU7/lxPR/q5bD/g86FNk9m6kHHErARxmKTVmq9dutOL/Rc93/AFUSfbmL+3bQu3o4tdI6o3R3aq1sLB/Ydn2rPLprPXO+e/Ril8Ij0hvMtq8h6NMHVfccmw8sxxqTVpYitpTi/PGnFv0VjtckYHydivF1cdU6R1Rx/Ge5xOecd5S/bwdPFTGs9c8XwjvYfndODAAAAAAAAAAAAAAAAAAAAAAAAD2W6Pf3A7NfyPg/6mBBMb51c9qe+V+wXmtv2Y7ocgMVlAAAAA/I2p2S2a23yWvs7tbkmEzXLcR/jMPiaanG/KS5xkuUlZrk0fvh8TewlyLtiqaao5YfhicNZxdubV+mKqZ5JYS9OXUIzTJ1idpOhrFzzHBQTqVMmxlVLEUktX3Gq7Kol5MrS04zbKFsjOVF3Szj40n80cXvjk927qTvbGTK7Wt7Z86x+WeP3Ty+/f1sO5RlCThOLjKLs0+KZ3kTrvhwUxpOkoAAAAAGTXUpt8b2s7d3A/3gnufOb9vwqJkHnHY8TN7Zzl9+0niiObYH8lh8/wBrA+gAAAAAAAAAAAAAAABtYm/xepu+SwOE7RNzW40o2jpJq/PzMDB/rr7vxvZK177uOv2f5uUPIfOOx4k7z9zft+FjIUJOwAAAAAAAAAAAAAAAAAAAAAAAAAAAHa3VW/fC7D/yl/u5mlzH6LvdX1hu8uelbPX9JesBFFtYH7d9ffpX2W232h2YweyuydXD5RmuLwFKdXD4lzlClWlCLlauldqKvbS5SMHkzB4nD271VyrWqmJ5OWNfUm2MzpjcNiLlmm3TpTVMcvJOnrcfq/CJ9M0lajsrsZB2d28JipP5v2wZVOR8BHHXX8Y//LEqzzj54qKPhV/+nCtseuf1gNr6FXCLa6GR4aqrSp5Ph44aS/Rq61Y/NNGxwuVdl4WYq4HCn+qdflxfJrsVmvamKiafKcGP6Y0+fH83SWIxFfF16mKxVepWrVpupUqVJOUpybu5NvVtvmdDTTFMcGmNIc7VVNU8KqdZbZ9fHrz0Ba9B+wFv/hvLv7PAhm2fSN/26u+V12L6OsexT3Qwy+EWa/C5s8r6+DlP+1Yg77I3mVz2/pDgM9ee2/Y+suDdUzoFwvTft1Xe0DqR2dyCnTxOPjC6eJnKVqeH3lZxUlGbbWqUWlZtNbLMu2atk4aItf6le6Oj1z+jXZZ2NTtbEz5b/To3z0zyR+r0oUNkejnZapOnSy/IMgybDyqSVOEaNDD0oq7dlovtb7WSX+fjr0RvrrqnrmZVv+RgbMzuoopjqiIY47S/CG9FOV4ythNndmc/zuFJ2jid2nhqVXzx3252/Sgn5jq8PkjG3KYqu1009G+Z+W75uTxGeMDbqmm1RVV07oj57/k7C6vXWVyzrBVs8o5Zsrisn7xxw0qjr4mNXuird0tbdirW7l9PmNXtvYNexYomuuKuFrxRpxafq2mxNv0bbmuKKJp4OnHOvHr+i9cT97dtn/3OE/tlE+ZY9LWeuf8AGX3NHom91R/lDyvLOiz1P6ofSC+kLoKyHEYmv3THZJF5Li25b0t6gkqbb43dJ0m782yM5mwX2LaVcRG6r70e/j+eq0ZYxv27ZtuZn71P3Z93F8tHX/Wq6D6nSH0x9FudUcAq2DzDG96M2aV70KO9ilG3DWlHFK77EbTLu14wOAxNuZ0mI4VPXP3e/gtXmPZE47H4W5EaxM8Grqj73dwmUeIxFDCYeri8VVhSo0YSqVKk3aMIpXbb5JJHG00zVMUxxy7OqqKYmqeKHj10sbdYjpL6SNoducQ52zbHVKtGM/xoUF4tGD/RpxhH5i77NwcYDCW8NH+2Pny/PVBtp4ycfi7mJn/dO7q5PhGjiRmsEAAAAAAAAAAAAAAAAAAAAAAAAPZbo9/cDs1/I+D/AKmBBMb51c9qe+V+wXmtv2Y7ocgMVlAAAAA626YOsF0a9CuAdXavOI1cynHew+U4Rqpi62mj3L+JF+XNpdl3obbZmxcXtarSxT93lqnij9eqGo2ptvCbJo1v1fe5KY45/TrlgF03dbbpL6Yp4jKaWJls9s3UvFZXgqrvWg+Vero6v6NlD+LfUpuyctYTZelcxw7n5p5OqOTv6Ux2vmbGbUmaIngW/wAscvXPL3dDo86JzgAAAAAGTXUp/K9rLcd3A2X/AOQT3PnN+34VEyDzjseJm9s5y+/aTxRHNME6vxeCUI7uuu9rx7LAfUAAAAAAAAAAAAAAAA2MXNwoSShJ7yaule3pA4TtJNOMVKlPVaPSy19oGEXXZSWN2TsreLjv4Sf+jlDyHzjseJO8/c37fhYxlCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAB2t1Vv3wuw/8AKX+7maXMfou91fWG7y56Vs9f0l6wEUW1489Ml/wvbcXd34SZnfS3+dVC77L8xs+xT3Qg21fP7/t1f5S4eZzAAAAD156A/wDIfsB/NrLv7PAhm2fSN/26u+V12L6OsexT3Qwy+EWX/pd2fdl+5ylr/wDVYg77I3mVz2/pDgM9ee2/Y+su0Pg43hfwfbWRhKPxlZzTdRc1DuEdz6d/1M0+etftVr1cH6//AMbjImn2W76+F9HZfXJ2U2o2w6CM3y3ZTCVsXiKGIw+Mr4WhFyqV6FOd5KMUm5NPdlZeQanK2Js4XaVFd6dImJiJ9Uz/AO0bjNOGvYrZldFiNZiYmY9cR/7V5eQoV6leOFp0ak605qnGnGLcnJuyilxvfSxYpqiI4UzuRqKZmeDEb3oX1EehvbTo42dz7anbHL6mWT2leGjhsBiIOGIp0qPdP2SpF6w3nVdotJpRu+KJdnDamHx12izh54XA11mOLWdN0dWip5O2ViMBauXsRHB4emkTx6Rrvnr14nYfXBhKfVv20jCLb7hhXZdixdFs1WWPS1nrn/GW2zPv2Te6o/yh5WlnRVlt8Hl0hd6Nu856OcZXaobQYVYzCRfD4zQTckvPKlKbf/dI4jO+C8rhqMXTx0TpPVP797ucj47yWJrwlU7q41jrj9u5n9KnTnKEp04ydOW9BtXcXZq67HZtehsmUTMKdMRPG6T64+362D6Cc7WHxPcsfn+7k2Fs7N91v3Xhr/iY1de1o6DK+C+2bSo1jdR96fdxfPRz2acb9i2bXpO+v7se/j+Wry3LIjIAAAAAAAAAAAAAAAAAAAAAAAAAPZbo9/cDs1/I+D/qYEExvnVz2p75X7Bea2/ZjuhyAxWUAAPydqdrNmticlr7RbW53hMqy3DL9kxGJqKMU3wiucpPlFXb5Jn74fDXsXci1YpmqqeSH4YjE2cJbm7fqimmOWWEvTh1+c2zV4jZ7oXw1TLcG7wnnWLpr4zUXB9xpu6prslK8teEGihbIyZRb0u7QnWfyxxe+eXqjd1p5tfOldzW1s+NI/NPH7o5Oud/UxCzDMcwzfHV8zzXHYjG4zEzdStiMRVlUqVJPjKUpNtvzs7qiim1TFFEaRHJDhK7lV2qa651meWeN8x6eAAAAAAAGTXUpTeL2stdeLgVfs/KCe585v2/ComQecdjxM3dnJw3VPeW72305k8URzfA/ksPn+1gfQAAAAAAAAAAAAAAAA2sVFSw87xTtFtX5acQOFbS1KkaailHdtdJ63d/QBg711rfG9k+22O05W/a9ih5D5x2PEnefub9vwsZShJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAA7W6q374XYf8AlL/dzNLmP0Xe6vrDd5c9K2ev6S9YCKLa8eemNNdLu3CfFbSZnzv/AJ1U58y77L8xs+xT3Qg21fP7/t1f5S4eZzAAAAD156A7/gP2Av8A/DWW/wBngQzbPpG/7dXfK67G9HWPYp7oYY/CK2/C9s+9L+DdLn//AKsQd9kbzK57f0hwGevPrfsfWXXfVd6fZ9BG21XF5lQq4nZ7O4Qw+a0qSvOCi26daC/hShvS05xlJcbG2zDsb+MYeKaJ0rp30/WPe1OXdtfwbETVXGtFW6r6T7npnshtvslt/k9PP9jNoMFm+AqpNVcNU3t1tX3Zx/GhLtjJJrmiQ4nCX8Fc8liKZpnp/wDb1fwuLsY235XD1xVHR/7c+zvPkGExc87eV5fRxUVKc8X3CEaiTT3m52v231PHlbtVPk+FMx6tfo/TyVqmrynBiJ9en1cP2b6d+jLbDpDxXRlsvtDTzPNsFgqmNr1MPaWGShUjCVNVL2nUW+naN1ZPW6aM6/sfGYXCxjL1PBpmdI1498a66ckdbAsbYweKxU4OzXwqojWdOLdOmmvr6m9057K1ttuh/a/ZnC64jGZTXeHXlVoR7pTj5ryhFX5XPOyMTGEx9q9VxRVGvVO6fk9bYw04vAXbMcc0zp1xvj5vIMuiEuR9HW2OM6Ptusi21wLn3XJ8dSxTjC16lNS/ZIa+VByj85i47C043DV4er/dEx+k+6d7LwOKqwOJoxFP+2Yn9Y98bnsXl+OwuaYDDZngqndMPi6MK9Gdrb0JxUov1NEGrom3VNFXHG5e6K4uUxXTxTvYAfCE9IMc86Rcp6P8FiFPD7NYN18SoyWmKxFpbrXmpRpNfpv56dknBeRwteKqjfXOkdUfvr8EwzvjvLYqjC0zuojWeuf20+LFA7VxAAAAAAAAAAAAAAAAAAAAAAAAAAPZbo9/cDs1/I+D/qYEExvnVz2p75X7Bea2/ZjuhyAxWUkpRhFznJRjFXbbskhxnExn6cOvBsJ0eOvkGwEaG1WfQvCVSFT9oYafDx6kdarXkw05OSeh12yMo4nHaXcT/Lo/7T7uT3/ByG183YbA62sL/Mr/AOse/l93xYH9I/Stt70sZ088262gr5hVi33GjfcoYeL/AINKmvFguHBXdtW3qUnA7Nw2zbfk8NRp3z1ymmP2litpXPKYmvXo5I6ocSM5ggAAAAAAAADJrqUt/HNrFfTdwP8AeCe585v2/ComQecdjxM3dnFJRVnHefO2nMniiOb4C/xSnfjr9rA+gAAAAAAAAAAAAAAABsYxruEouputp2W9a/mA4RtHPeShvR4X4q7+js7AMJOu1u/HtlN2DirY7RvX/oCh5D5x2PEnefub9vwsYihJ2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD6suzTM8nxKxuU5jisFiIqyq4atKnNLs3otPkjxct0XY4NcRMdO97t3K7U8K3MxPRufoZrtttlntD4tnm1udZjRtbueLx9WtG3ZaUmj8reEw9mdbdumJ6IiH63MXiL0cG5cqmOmZl+KZDHAAHZvQD0L590z7fZdk2GyvFTyOhiIVM4xsIuNOhhk05x7pwVSS8WK43d7WTa1G2tq2tlYaq5NUcOY+7Hrnq9UcrcbF2Td2riqbcUzwIn708kR1+ueR6uY3GZZs5kuIzDF1KeEy7K8LOtVk9IUaNODbfmSjF+oitFNd+5FNO+qqfjMrZXVRYtzVVuppj4RDx36Qdr8b0gbcZ5tnj3N1s5x1XFbsndwjKXiQ9EY7sV5oou+CwtOCw1GHp4qYiP39/GguOxVWNxNeIq46pmf293E48ZTFAAAAAAAAAAAAAAAAAAAAAAAAAB7LdHv7gdmv5Hwf9TAgmN86ue1PfK/YLzW37Md0OK9MHWD6NehXAOptXnCq5lOG9h8pwlqmLrdj3b2hF+VNpcbXehmbM2Li9rVaWKfu8tU8Ufr1Qwtqbbwmyadb9X3uSmOOf065YBdOHW06SumSVfKaeJls/s1OTSyvBVWnWjqrYiqrOrx/FsocHu3SZTtkZawmy9K5jh3PzTydUcnXx9KY7XzLi9q60RPAt/ljl655eri6HSB0LnAAAAAAAAAAAAZN9Sl2xW1t2krYFu682I5k9z5zft+FRMg847HiZu7NpRUUr8+Lv2k8URzbAK2Fh57/AGgfQAAAAAAAAAAAAAAAA2Mar4ad76di9wHDNok40nJX1Wrtf0a8uHqAwf67CisZsmle6WPTurf6OUPIfOOx4k7z9zft+FjGUJOwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkB1G8uwOZ9PmCw+Y4Ghi6Ky3GS3K1JVIp7lr2aa5/Scxm6uq3syZonSdYdRk+im5tOIrjWNJemNKjhsFQVKhSpUKNNO0YRUYxXF6LREimZrnWd8q/ERRGkboYYddHrQbPY7Z/E9EHR5mlDM6mPtHOsww1RTo0acZp/F6c07TnJxW+1oo+Lq21Hv8q5eu0XYx2Kp4MR+GJ456Z6PV/wC1n+a8w2qrU4DC1cKZ/FMcUdEdPr+HVg6UVOAAAAAAAAAAAAAAAAAAAAAAAAAAAMrtvOvZtC9kMp2M6J8vqZMsJluGwuKzbGQhPEucaUYzVGn40IK6fjtyb4pRepxWDyfa8vXiMbPC1mZimOLj5Z456t3vdtjc43fIUYfAxwdIiJqnj4uSOKOvf7mLWY5jmGb46vmebY/EY3GYmbqV8RiKsqlSrN8ZSlJtt+dnZ0W6LVMUURpEcURxOMuXK7tU11zrM8czxvmPTwAAAAAAAAAAAABk11KVfF7WXs1u4Ff2gnufOb9vwqJkHnHY8TN7Zzl9+0niiObYH8lh8/2sD6AAAAAAAAAAAAAAAAGzjHFYWq5vxd1p6X08/mPsa67nydNN7hu0zn8XUd17mjvra9+HYfH1g311vyzZP9HHf3coeQ+cdjxJ3n7m/b8LGUoSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADfwWPx2W4iOLy7G18LXimo1aNRwmr8bNanmuim5HBrjWOl6orqtzwqJ0nofs5p0hbfZ3gll2dbcbQY/CKO6qGKzOtVpqPZuyk1bV+s/C3gcLZq4du3TE+uIiPoyLmOxV6ngXLlUx6pmZ+rj5ksUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZNdSn8s2s/RwP94J7nzm/b8KiZB5x2PEze2c5fftJ4ojm2B/JYfP9rA+gAAAAAAAAAAAAAAABtYpSlhqqjPde69bXPsdL5PQ4VtNu9zirPetxvpa/YfH1g711vyzZP8ARx393KHkPnHY8Sd5+5v2/CxlKEnYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABk11Kfyzaz9HA/wB4J7nzm/b8KiZB5x2PEze2c5fftJ4ojm2B/JYfP9rA+gAAAAAAAAAAAAAAABtYqEamGqxnG63W/n5H2J03w+TGu6XCtppPucY6Wtfhrx7T4+sHeut+WbJ/o47+7lDyHzjseJO8/c37fhYylCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAya6lP5ZtZ+jgf7wT3PnN+34VEyDzjseJm9s5y+/aTxRHNsD+Sw+f7WB9AAAAAAAAAAAAAAAAD58d+SVeP4vJtNff1duh9p43yricP2mj+11PdXJXs78fV+s+PrBvrrflmyf6OO/u5Q8h847HiTvP3N+34WMpQk7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMmupT+WbWfo4H+8E9z5zft+FRMg847HiZvbOcvv2k8URzbA/ksPn+1gfQAAAAAAAAAAAAAAAA2cXf4rVUW03Bq64rz8GIJcN2jVOWGctd6Nlqrc/pAwc666axmyd014uO+zDlDyHzjseJO8/c37fhYyFCTsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8vPNqdndmqcaufZzhMEpK8VVqJSku1R4v5kYmL2hhcDETibkU6+ud/ujjZmE2fisdMxhrc1aeqN0dc8T8nK+lTo9zmssPgNq8E6spKMY1XKi5N8lvpX+YwcPmHZmKq4Fu9GvTrHfEM7EZd2nhaeHcszp0aT3TLlSaklKLTT1TRueNpeIAAAAAAAAAAAAAAAAAAADJvqUp/G9rJcksCv7QT3PnN+34VEyDzjseJm3s/UjTUXNtJu17Pzk8URzjA/ksPn+1gfQAAAAAAAAAAAAAAAA28RGpKjKNJJuSa1YHC9oIVJwVo9t227fMub9AGEXXeX7a2Rldu6x/F66fF1+ooeQ+cdjxJ3n7m/b8LF4oSdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4t0k7ZQ2I2VxObxcXipfsOFi7O9Rp2dnxSSb+a3M1G3NpxsrB1Xo/FO6nrn9ONuNhbLna2MpsT+GN9XVH68TFC+0+3e0MIUaGPzfNcwquNChRpzxFatU5QhBJuT/ipehciL38RdxVybt6qaqp5ZWqxh7WFtxas0xTTHJD6dtOjrpA6OsZSwW32wef7MV8ZDutChnGW1sJOcL8YqrGLa86Pxfs7Q6BOknHPNo7D5tinXwleM+99SbcpwnFX7nfjuOKbV+FrI7zKG27kXo2fenWmfw9GkcXVpHucFnDYluqzO0LMaVR+LpiZ4+vWfe7/ACkpoAAAAAAAAAAAAAAAAAADJzqTxcsVtYkld/EEvViCe585v2/ComQecdjxM28hjKO4tWnxSTX0/OTxRHNMA5woxo1IS4XjLimn9nzsD6wAAAAAAAJfWzT42QBNPVO4FAj3tWrPTRecA3w0vf6AF9bAE07pPhxAjTcHF2bas9NPUBxfPsPKVp8UpSjJcX4urd1btAw566uyuIxmyuV7S0aNSp3oxkqdZ20p0qyScm+zukIR+dfN2uSMVFrGV4eqfxxu6Zp/aZn3OJzxhZu4OjEUx+Cd/RFX7xEe9hyVBLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdLdZ2vOGRZNh0lu1cTUcu3SKt9pwee5nyNnrnuh3uQ4jy96eiO+WQXwLezuTZl0+7V59jsBTrY7KNnl8SqzV3RdWqozcextRSvxtdc2TZS2XHwwuSZTmHVPp5tjMBRq4zLdo8G8JXlHx6O/CqpqL4pSSV1wdl2IDxu6HmvwlZEr8cQ+X8V+o22wqpo2jZmn80NTt2mK9m3oq/LLMAt6GgAAAAAAAAAAAAAAAAAAzC6mOy2IweyeabSV6E4d9sZGNF2/wAZSoXSmu1d0lONvMyX53xUXcZRh6Z/BG/omr9oifeqWR8LNrB14iqPxzu6Yp/eZj3Muslw8rQXjOEHHjZtNJ8fUvn7OJxTtnM8JFRo3i7p6J9qSsn89r/OBvgAAGinJzhGTdna0kuF+YGsABJJuLUZWbWjtwAoEcU7taNq11xA03cUlbRXvz0+24GpNO6T4cQKAAjSejVwDV7atWd9APyc4w0KkKkXFN7rmknx4X9Gm8/PZAdZ7Z7L4LaXKsTlGa4ONbB4ym8NWpyjdShK6dufPlrfW97H62b1eHuU3bU6VUzrEvyvWaMRbqtXY1pqjSYYF9J/Vt202Jx1bEZBg6+e5S3vQlhoOpiKMW9I1IJJy5+PBOOjvuvxVV9lZqwmOoinETFuvp3RPVPJ1TOvXxpNtbKmLwNc1YeJuUdG+Y645euI06uJ1LicLicHVlh8Xh6tCrHjCpBxkvSmdPRXTcjhUTrDl66Krc8GuNJbR6eQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0j1oP8A1TkP/ia3+zE4PPf+jZ657od9kP8A1r3VHfLJj4E1L8M23r/7P0f68mylMtfhef3n+J1/94sv/wBmqB4w9DkN7pJyOV7bmIv6fFa/WbTYvpCz7UNXtv0de9mWX5cULAAAAAAAAAAAAAAAAG7hsLicZVjh8Jh6terLhCnByk/Qkea66bccKudIeqKKrk8GiNZdt9F3Vt2z24x1LE7Q4TEZDk8HvVamIp7mIqxT1jTpy1Tdrb0lZXulK1jmNrZrwmBomnDzFy5yacUdcx3Rv5N3G6nZGU8Xj64qxETbt8uu6qeqJ753cu/iZ2bGbL5dkOXYHKMtwtLD4LB0o0qMYrSEY2SjfW78/N9r1JRevV4i5VduzrVVOsyrFmzRh7dNq1GlNMaRDsbJsNOn3Kaptyb33Faacfm+ftt2M/J+rkUI7sVG97JK/wDzA1AAI72dnZ8gNELS1taUW0+fHW1+zh9AG4AAAAAADTKF5RknZrS/m7PoQCM7u1rXV1fi/mA1AAAG3Vpd0XHk/N9PLVIDjecZSoqbtuvWSnG61tdWSv61wb9AHDMyyOClKo8NepBtKnKO7a997TlwWi83YB+LidnI1tZ4fWbkpX5PxbSfLjJffiH5ktloKyWH3ZOVlePN8rc1r7uAG3PZTDWk6bbUXbm9Eld34cftQGl7JUl/CW62kpWlbW/Hs4fdagHsnBLW0bK7clJLzL0v9TAPZKCvpZKN25KSALZGMnFRWjtq1Li/t94EWycJRvBbzSd7KX23Ar2Spp7t05P8WylrrYAtkVa8o217JXta9wItkoys4RvFvR2l22Ar2ThGydruTS0lZ6ff1gFsje/iWt5pagR7Jwcmoq/pUr8E72v5wKtkYpKU1Za30loBFsmm2lFXXFeNdekCvZKMY70lZbt9IydvMwJ4JLelDdV4uzS3tGBfBGKV5Rf4t7KMnr2ATwTW9u2Tdr2W9wA1LZFaOUbXveyk2gNL2TirXilfhfe9X0oCrZG9/EtbzS1AS2Sir2jp51JcrvmBFsmpJOMU03xW8BqeyK4KN3fslawGnwTjdLdV3wXjagVbIp6uNtbcJX9IDwR10hxdlpK/GwGlbKKSbhFSt2bwGt7IRV1a7ukrKVmBpeyaSbcUrK7vvAWOySk14qs+dpWAeCKsrRd7XekgI9k4xV5RSS7d778mBVsjd23LaX4S9QB7IrlF8Fe6kgI9k4xV5RSS7d778mBVsjd23LaX4S9QB7IrlF8Fe6kgI9k0k24pWV3feAsdklJrxVZ87SsA8EVZWi72u9JAPBHlucXbhIDStlFJNwipW7N4DW9kIq6td3SVlKzAngj/ABPokBPBON0t1XfBeNqBVsinq421twlf0gHsj2Q05aSAj2Stxh9EgC2TUknGKab4reA1PZFcFG7v2StYCeCP8T6JAR7JxVrxSu7L8bj92gKtkb38S1vNLUA9kVd7sW1e2qkgHgj/ABPokBgl8K5lEcr2D2Ge6t6pmWK7b27nTfP0oD874E3/ACzber/s/R/rwMtfhef3n+J/nFl/+zVA8bugDbHI+j/pl2T2y2lq1KWV5VmMK+KnTpd0nGmk02o83qgPQfLfhLerzi83jgMVs7thhMDKpuPMK+EouEVr40oQrOVrJ2STfDTjYMqujvaHYbpY2cwu13R3n+FzzKcX+LXw0pb0HzjODtKE1zjKzWt7Acl8Fry3Y0JPS/O9u3iBfBSX+jT+n2gPBSX+jT+n2ga4bJJqTnBwtG+qlr9IE8E024qKvF2a8bQC+CP8T6JAPBH+J9EgHgjHccpKzXK0gJ4JptxUVeLs142gF8Ef4n0SAeCP8T6JAVbIrdvu62TtaXPl/wAgNK2Ti3uqKva9vG4Afbl2y8YTlCorRcXJOzdnbjr+rUDk2W5LGnGbkoxlzUb3aVr6vz7y5PTzaBy7L8qjRmpyUXaN47qb3eF35+DYHI8FhHh/Hl+NKKVnq49uvq9QH1gAAGipLdTlyinJ9nz/AH5AWEdyKiuC0Xo5AagAAAAAAANurayTfF2VuOumn37QNavZXVnzAoAABtYml3WnupXfov5u1doH5VTJ6uJklUgocbtu6V+xJ6WbbA+Cts9OUtYR5vxJa7rs+GnZbhx83APnxGzfi+JhIQTlGylDhK+9or+d9vNAaIbPw3k3RhaUIySUXuu/B69u8/naXJAIbPJ71Pua7o7Jvdbu2uGvmjf1+dgI7PwlLdjTjreySbT9/i+rXmwIsgp79+5xaVkkldat2XDzvX0eYBPZ2Mp7ihFyuoxitNeHzcX90BZZDSnuzUYxi/Git211yeqAkdn4dzUVTUUtHLdcnbhr5tF6XfncCLIKMHvunCVk278EtHfh5vt7WBZbOwUpRqpKSdmrW1562+kC+D8JLdhSildybSvdLVvhyu/oXYBpWz9BpNqLuteXFei4Fns+mu6OEYxXHxb2vqlw8/Ds8yAd4KMdVGLas1yaa1+1ASWzsYWcoxUUmvxddNOzV3t9IFeQUYp7sYt9vB8nbs5AHs7GNm4xUeGsezjy46ev0gO8FBwsoxvJPXg1dW7OwCS2eju77hFJcfF5vW2i7H9gFWQUEpLdjvLS/Cz52aX0gFs7F33YR5vhfS93y8/2eYCQyCimt+MHrbh6+Xo+6APZ+k5b27HS78yWj7OGn29rAPZxRk4yjBS4JNW9enoA1d4aEorcjFJO/C17cLpoDStnI7nixilFcWr6cE728328wKshoRd5QhJcOHN+hen7sCS2dpSlolJt/O+K7PP97ICvZ6F1KSglJby8W1128ACyGhbd3Ypu+qXFefS3H9TAkdnae94sU/p52XL+N9nYgHg7CLamoXXmt+oCvIaEtN2MbK9ktNfSuz2ASOzkG3GEE29FpfW3o/i/b5wC2fpLioPXs9wFeQ0ZPhFWSsktF6192BI7OQbcYQTb0Wl9bej+L9vnALZ+kuKg9ez3AV5DRk9VFaOySukvV23+0CR2dp73ixT+nnZcv432diAeDsItqahdea36gLLIaL/gQSXJa6v5vN9gEeztJu0YqV3ZW4812ef72QFez0LqUlBKS3l4trrt4AO8FLd3Ywp3el72v6dAIsgoNKUbcecbfqALZyO54sYpRXFq+nBO9vN9vMCxyCindwpy9P8AyAneCi5eNbV8bX9PL0fSA8HqSd1GLtdvhZLR9nm+3tYFezkYScZximuTVn9gCWQ0d227BJcbc/oAng9RacXu3Wj/AF2dvpAq2di77sI83wvpe75ef7PMAjs/SVnKNOXb2fYAeQUm7tR9i9XYBHs9QlHlqvRx+YDzt+GWy74j0b9HslT3VPN8ZyXHuVN8vT9gHXfwJt/wzbe/zfo/14GWvwvP7z/Ffziy/wD2aoHh7s/kecbTZ5gNndn8BiMdmWZ4iGEwuGw9Nzq1qk3uxjGK1bbfADvzpZ6gfWj6F9gqfSZtx0erDZRCEKmNeDxlLE1MBvJNOtCm3uK7s2rxT4tAcD6CusV0odXfNc0znozzmhhK2bYKWDxVLE0FWoyWu5U3HpKpCUm4tp2u07ptAfs1uuZ1pq+ZyzmfTftR3dtXUcVajfjbuSXc7acN22nCwGbHUs+EnzHbDanL+inrAfEPjGa1aeGyzaGjRhh4zrtWjTxME9xOUtFOCSvJXiuIHpjLIaS1tSilJR4N8b25cfxvo7EBVs/SavuxXq9gDwfpdkPo9gFWQUbreUWly+6ALZ6m34lNPe8VRjG+qXC7XYk/6XnAng/S7IfR7AHg/S7IfR7AKsgpXvKMJen/AJATwdhxjBO6eijfglfW36Ovp7WA8H6XZD6PYBVs/STut1NffsA3KeT7jj+yWUWmrPhx5fOB+tgsos9+U5PegnJtr8a6a7eCf/ID9WjhaVBWUU3zk+LA3gAAABtpuorxdotKz7U/pQGtJJJJWS4ICgAAAAAAAaZw3ra8NUnwvyYByau3HRc/YgLdXtfV8gKAAAAJZXvbVcwJKEZXUldPinqvUBVFK1layskuAEUIq9la7u7aXYBwg5Kbit5cHbUA4RlFxkt5Pk9QEYwS3Yx3VF8ErL76gSVOlvd0lCG9deM0r35Aat1NNNXUuKeoGmNKlB3hTjF9qVgK6cJRUZxUkvK1+0CRpU4pqEFG/HdVvsAs6dOdt+EZW4XVwJGlTimoQUb8d1W+wCzp05234RlbhdXAkaVKDvCnGL7UrAV04SiozipJeVr9oGnuNCLUlRgmmrWiBr3U001dS4p6gaPi9D8zT/ooDVGMEkoJJRbso6ICSo0pPelSg2+bigEaNKL3o0oJrmooCuEZRcZLeT5PUDT8Xofmaf8ARQGqNOEVuwioq9/F0AkqVKbvOnGT7WrgT4vQ/M0/6KA1qKVrK1lZJcANDo0JSd6MG+LbiA+L0PzNP+igNdtbgaHQw6snRp68PFQD4vQ/M0/6KA121uBo+L0PzNP+igHxeh+Zp/0UBrUUrWVrKyS4AaHQottujBt8XuoB8Xofmaf9FAao04RW7CKir38XQCSp0qj3p04yfDxogT4vQ/M0/wCigLGjSi96NKCa5qKArhGUXGS3k+T1A0qhh3dKjT04+KgHxeh+Zp/0UBqUIxSUVupcEtEBJUaUnvSpQbfNxQE+L0PzNP8AooAqFFNNUYJrg91Aa91NNNXUuKeoGj4vQ/M0/wCigCoYdpNUIa/xEBY0qUHeFOMX2pWA2sbicBgcHUxmZYihQwuHjv1KuImowhFcZSlLRLzsDojOOvT1PMizSpk+YdOeyaxVKbpzVKv3WMZLk5wTitdOIHcOyO12xe32SYfaPYvPcqzrLMVFTpYrA16danNeaUW0B53/AA3FOnDo16NtyEY3zjHXsrf9FSA6h+BNv+Gbb3+b9H+vAy1+F5/ef4r+cWX/AOzVA8vvg5oQqddbosU1FpZnXklJX1WErtfOnr8wHuN1pqFPE9W3pPo1aMasJbKZnvQlHeTXxeb1QH82GX4WpjcfhsHScVOvWhSjvcLykkr6PTXsYHt9lnwSPVb/AAVQ2WxmW5rX2lqYFp7Rd8KsasMY46VY079z3FLhBxaavze8B4qbU5Didjds822YljFLE5HmdfAPEQbinUo1XBzT4rWN0wMmMR8KH1yFh8Ll+C6RMNgqGCw9LDRjSyyjvT7nFR35ympSc5WvLW13wAyN6rfwum0GI2iwOyfWWy3AVsux1eOHhtLgKTpTwk5KyliaPjRlC7fjQS3Ul4rs2g9XcvqZZmOCoZjl1ShicLiqca1CtTanCcJRTjKL5pqzv5wPo+L0PzNP+igNcYxit2MUkuSQGiVKjOTcqUW+bcf1gT4vh42Xcaer0ukBfi9D8zT/AKKA1RhCCtCKiuxKwElSpTd504yfa1cCLD4df9DD+igHxeh+Zp/0UBqhTpwvuQjG/GysBqAAAAG3Z7705pq+qXn/AFAbgEur2vq+QFAAAIrNuSd+XHsAoAAAAAAAACWV721XMCgRq/OwB30s/SAd+SAJWAJ3SbVvMATvfzAG0rJvjwAoAAAAjSdm1w4AUAAAiXHW9/oAO/JgErJJcgGt+GgFAl9bW+cCgRO9/MBQJ4sk4uz5NAUAAAARq6aTt5wKBErJJcgCvZXd3zAoE1vw0AoEbsm0r+YCgRJK7S48QF9bAUABE00mndPgwKBGuGtrfSASsBQJrfjoBQAE1vw0ANJ6NXAoEvra3zgUDyV+GH6zm08NrsF1btmMyrYLKcPgqOZZ53GdvjdSpd0qUmn+LGKu4u920+QHnVlXRZ0kZ3sziNtMn2GzrHZFhLqtmFDBznQh6ZRVtL/Q+xgc06vHWe6VOrRtpR2q6Os9qLD1aqnmOVV5ftTHwvrGpDhF2taUdVZa20Ay4+ET60mwXWq6uPRhtrsfP4rjMPnONo5pldWadbA1+40rxklxi+MZcGrAb/wJv+Wbb1f9n6P9eBnn8Il0LbY9O3VizrY7YHBvG53hcZh80w2Cj+Pi+5b29Shf+E1NtegDzq+Dj6ofT5lvWl2a292u6Oc42cyLZGWJxmMxWZ4V0VOboVKcKVNSacpOU1qrpJO/ID1e60Kb6uHSbZf+6mZ/2eYH83Gzn7ocr/8AG0P9tAf1IYKSlhaf42kVx56cfQB/Mp00X/DVt3ZpPwpzTVuyX7bqcwPQ7qf/AAVXRl0v9A+S9KPSttPn1LMtrMNPF4PDZXWp04YLDOUo0m3KD36rUVJ3W6t61m9QMDus50JYnq6dNu03RBWzbvnSyWtD4vi3FRdWjUhGpCTXKW7JJ8NU+QHs58Fhthmu2PUx2RhnOIqV6uQ4vHZPRqSlq6FKvJ0o6cownGCXZBAZcgANFSTi4JO15WfaBqSsBQAEaT0auBQAAAAAAAAAABLa3uwHjW5N39GgC+trfOAsr3tquYC1kkm9PnuA8a3Ju/o0AX0V01fl2AE07pPhxAoAAAAAAAAAAAAAAEsr3tquYC2twDXDW1vpAO+ln6QDvyQC+trfOAbtbzgG0tW7AUAAAAAAAAAAARpOza4cAKBErAGr87AUCK+t36ADvZ2V3yAoETvysAbsBQJdXtfVcgKAAAAAACNJppq6fFAUCNXTT5gUABErJJu/nAoEV7K7u+YFAivzQBuybSv5gKB4f/DBbCYzZzrRx2tdKSwO0+UYatSm27d1oxVOpFf0Yv8A1gMsfgb9v8k2o6As96MMVTozxezuaV6lXD1Ypqth8Ruy3t21mt68Xf6bgdM/Cb/B+5XsJg8X1hehbJ3h8ndVPaHJ8PTXc8G5f5zTX8GDdlKPJyVuIHmcpyUHHedr33eK4cfSB6N/Amu/TLt7aTivB+h4i4P9n4vz+1gexTV7eYCgfFneTZbtHkuYbPZxho4nAZphauDxVGXCpRqQcJxfmcZNfOBhRsT8Ef1cdiulPC9IMc52kzTB4DGxx+DyPGVaUsPTnGalFTnu79SCaWj111fADOKK3YqPZotb6elgfzm9YzoG6WdnOsbtvspitg86xGMxe0uNq4P4vgqk44ulXryqUp0pbtpKUJxd1e19QPdzqo7C5/0ZdW/o62C2poRoZtkuz+Fw+MpJ37nV3FKUL87OTXzAeL3wo379Tbj/ALvAf2WmB6QfBBXfU9wzaSb2jzHnrwpJX+b6LelhmyAA26qbimlqne64r2+y4GtNNJp3T4MCgAAAAAAAAAAAAAAAAAAAAAAI0mmmrp8UAtxs2ru4Bb2u9bjpbsAm8rXl4tld35AagAAAAAAAAAAAAAAAAAAAARpNNNXT4oA1e3mAW1vf5gHja8Hrpy0AN2TaV/MAbtbzgLq9r6vkBQAAAAAAAAAAAAAAAAABEkkklZLggCVgFtb3+YBrfjoA1vw0AN2TaV/MBQIndJrmATTuk+HECgAAAAAAAAMIPhZugqp0pdXZ7c5PglVzjYTErMFuxvUqYSfiVYJ2bst5TtpfdQHmd8Ht1gaXV+6x2R5vnGKrU9n8+fejNFCWkY1WlCo1z3ZW7NGwPf8AzPLMj2tyHFZPm+Dw2ZZTm2FlQxOHqpTpV6FSFpRkuDTjL6QP56Ou/wBWzHdWTp1zjZCkt/IMxnLMcjrXu5YSbdoS0spRd4210SfmQZO/AouUumfbpxa12fpOd76Lu9oxXn+iy43A9inxWr48kBQAGinpdNJNvetftA1Li1d9vADTKjRnUhWnShKpTvuScU3G/Gz5XA1geAnwof79Pbn9DA82/wDNqfaB6R/BB73+B1g22t17RZlursV6d/pv99EGbAACO9nZ2fIDRTtFula1tY35rzejh6gNwAAAAAAAAAAAAAAAAAAAAAAAAAAI1dNPmBN3xt5Pjo9PT7QG81+NG3DhrqBU09U7gUAAAAAAAAAAAAAAAAAAAAAAAAARRSbklq+ICztpLnzQDW/DQAnx0tb6QG8rKTdk7cdAKAAAAAAAAAAAAAAAAAAAAAAAjim02tVzAoESskm7+cAr2V3d8wCvzQBPjpa30gL62AXV7X1fID4s8ybLtosmx2QZvho4jBZjh6mFxFKSTU6c4uMlr5mB/OR1seg3OOrx06bRbB46h3PDUsXPFZbUUWozws5OVK1+LUXG4HsH8GV1lodPHQLg8gzzMe7bU7GRhlmPhLWdSjFfsNbhqnGyfJNWAx7+G52VzDE5T0b7X4fK9/C4SpjcHiMXGDbg5dzlGEmvxU9Wr2u78bAcH+BJyjMqnSV0iZ9DBVXgKGUYTCzxG74iqzqyahe1r2i3a/C3agPX4AAA0JS3lvK9lx7H939+Yala7tfjrcCgAP53/hCtocPtP1y+lHM8JUhUpU82hgoyjzeHoUqMr+fepsD1Z+CYy14DqX7PYpRtDMc3zXE03e90sTKlf10n7uCDMcABt1fxqS7Z/qYG4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASyve2q5gLaOzavz7AJvWbu7LRaq2v3sBqAivZXVnzAoEvra3zgUAAAAAAAAAAAAAAAAAAAAAAAAlle9tVzANXt5gDXDW1vpAa346AN5Wcm7JXvfQBrfhoBQAETuk2reYCgAAAAAAAAAAAAAAAAAAAAARpOza4cAMD/hYOrDU6WuiOl0rbJ5Q8RtLsWpVMQqME6mIy+zc1prLc4pekDzU6h3WRn1Z+n3LNo82xk6GzWcLvXn0dbRoSfi1WrXvCWt+ScgPfvN8i2K6Udk4YLP8py3aDIc1owrxpYinGtRqwlG8ZK/mejWuoGjYno42D6N8qlkmwWyeW5DgpzdSdLA0FSU5PnJrVv0sDkgGlXUnGUk76rtArduVwCik20rXAoEbsm3yA+XN80wWR5Tjc7zKsqWEy/D1MViKj/gU6cXKT+ZJgfzDdJe089tekXafbGrJynnmb4vMZt8XKrWlNv1yA/oK6iew9Xo+6o3Rhs5iMJLB4pZJDHYmk0lJVcTOeImn571Xfz3A76AARuzWj9KAkVFNqL0VlbkvZyArvyYFAjvZ2V3yAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQ1JXklvNcOT466/fgBqjJSV0/cBQAEtrcCgAAAAAAAAAAAAAAAAAAAAAAAAAAAARpNNNXT4oAk1bxr2Wt1qwJvNfjR7XpqBbq9r6rkBQIlYCgAAAAAAAAAAAAAAAAAAAA2cZhMNj8JXwGNoQrYfE05UatOavGcJK0otdjTaA/n7+EE6sGP6tvTnmNHA4KpHZXaWpUzHJa1vEjCUvHo38qMr8lo1xAzu+CU62lLbbYqfV+26z+M8/2ejKpkksTUXdMVgEl+xptpydN3VrN7ttdAPRwABpkrq64rVAIyu2nxT7Laff7ANQAABj/wBfTpFh0X9UrpFz9VJwr4vKZ5Nh3Fre7pi/2unrxsqkn81/OB/P30b7KYvb3pB2d2NwmGqYqvnma4XARpw3t6bq1ow5Jv8AhAf085TluHyfKsHlGEio0MDh6eGpJKyUIRUUrctEgPrAAbcW3VlroklZ/avvy8wG4AAAAIkkkkrJcEBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEaTs2uHADTFSjZPxr8X7gNUZKS3ou6YFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpcU4OC8VWsraW9AF8aztZ9i4AE+OlrfSAjJSW9F6AUAAAAAAAAAAAAAAAAAAAOgeuv1YMq60/Qtj9jXuUM/y6XfHI8W1rTxUIv8AY2/Jmm4v0p8gPAvLcx6Rerz0s0swwscVkW1uxuZtqNanKEqdanKzjKLs3GSumucZPtA9/Op91ptkutV0V4Xa/J6tHDZ3gYww+eZUqu9UwWItzvq4Ss3GVldehgd7AANEotu8dHwf6vT6POwNSaaTTunwYBPjpa30gUDzd+Gt6S5ZL0V7DdF2ExTjV2kzavmeJhHnQwlOMUpeZzxCa88AMNvgrejSPSD1vtncwxdCrPBbJYTFZ7VcYXj3SEVTpKT4Jd0rRf8Aq2A96wAADbp+Om34yk96LfZyA3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACJJXaXHiBpjvRspXbk3qtUvv9+QGpNPVO4FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjSdm1w4AGrgRKS0bvx1+fRAVPWzTXEAmndJ8OIFAAAAAAAAAAAAAAAAefPwoPUbh0v7OVunjo0wShtfs/hpTzfB04aZpgoRbc0lr3amlx/hRuuKTA8t+rJ1jdu+rB0pYDpB2MrznTVSFDNstlJ9yzHB76dShNcna+7LjGVnw3osP6HuiTpQ2W6aejvIek/YzFqvk+fYSOKoKS8elJ6Spz7JRd4tcboDmAACJWvq3d315ARaybfFaLT0AV35IDxO+GV2uxWddZ7K9l3Ubwuz2zWGhCO7bdqVqlSpPXzp0/o8wHcfwIOxtBYbpO6QZqcqzngcnptrxYRtOrNJ9re5f9GIHqeAAkrqL3eNtANKs1Bz/GWiv28/1gawAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0yhvJ68Vaz1T+YA52fjKys22+VgNQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaVFR4fP5/SAbko8N6XqAt9bAE00mndPgwKAAAAAAAAAAANM4QqQlTqQUoSTjKMldNPimgPCr4Uvqz5d0EdOVPazZbDLD7ObeqtmGGw8IJU8LiYOPd6UbKyi5SUknr4z5LQO/vgV+mjHfGNs+g3NMQ5YGlQhn+XOrV0oy3+514RvwUt6nLdXNSemtw9U/juDtf43Rtpr3RcwJ8dwf+l0f/ALiAksXgZRcZYui01Z/si9oCOOwk3piqStrbfXZ9+AGt4nDJpPEU7vgt9agfz4fCObQ4jaLrm9JNWriJVaOCzClgcPrdRhSw9OLS828pAel/wPWzeDynqo1c8oUYxrZ5tFjatWcYpb/ctyjG9uOkPPx48kGcoADbrWcHFrSV4u3G1uXaBrV9bv0AUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEaTTTV0+KAjUknuPWzsnwuAlJRaT58+SA1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAm6tdLXd3bQBbW9/mAR3reNb0rmBN5Levoo63fCwGoAAAAAAAAB51fDVbI5tm3QjsZtbgMtqV8LkOe1aWNrwjvfF4YiklFy7IudKKvwu4rmgPHTBY3F4GpOrgsTXoVZRcd6jUcHu8Xqnw0WgH1LaLaF2tn+YXbtb41NfrAstos/co2z3Mop83iqmvK/H28wC2jz+y389zG2uqxc73tpz4X/AFgSO0W0V1J57mG6mk28VUt89mAe0W0G6nHPsy0/Gvi58deGvYB8NarUrVXWxU51KspN1HKTc5O+rbfP2Ae/vwZWyeb7H9TTYbA5zg6+GrY143MYwrx3Z9zrYmc4Pd5Jxaa7VZ8wMpwAG3VtaN3rvK1uN/N9+FwNavzQFAAAAAAAAAAAAAAAAAAAAAAiad0nw4gLa3v8wFAAAAACK/NAUAAAAAAACN2Tb5AUAAAjSaaaunxQBKwFAAAJrfjoBQAAAAAAAIndJtW8wFAAAAAAAAAAJonrLjokBQAAAAAjvpZekCgAAAAAAAAAETuk1zAoE3Vrpa7u7aAUAAAAR35MCgAPkzXKcqz3LsRk+d5bhcwwGLpuliMLiqMatGtB8YzhJOMk+xoDrV9U/qsyblLq1dFbb1bexuXf8EA+qf1WZNyl1auitt6tvY3Lv+CA/wAE7qsf9Wnoq/8AJuXf8EB/gndVj/q09FX/AJNy7/ggR9U/qspNrq0dFT83gbl3/BAv+Cd1WP8Aq09FX/k3Lv8Agga8P1VurBhK9PFYXq4dF1GtRmqlOpT2Py6MoSTupJqjdNPVNAdoU6dOlTjSpQjCEEoxjFWSS4JLkBqAARpOza4cAKAAAS2t7/MBQImnqncCgAAACK+t16AKAAAAAAAAAltb3+YCgAAACN2TaV/MBQAAAAAAAAEtrcCgAAEV7K6s+YFAAAAAAAAARtLVuwBpPRq4FAjvpZ+kCgAAAAAAARu1vOBQAAABGr87AUAAAAAAETuk2reYCgAAAAAAltbgUAAAjvZ2V3yAoAAAAAAAAABLK97armAur2vq+QFAivrd+gCgAAAAAAAAIncCgAAEStzuBQAAAAAARPjpa30gUAAAAAAAAAAAS6va+r5AUCW1uBQAAABE7gUAAAASyve2r5gUCJ8dLW+kCgAAAAAAjvZ2V3yAoAAAAAAAACK9ld3fMCgAAAAAAARrhra30gUAAAAAAAABHZvdvqrPRgUAAAAAI3YCgAAEsr3tq+YFAARvhpe/0AUAAAAAAACK9ldWfMCgAAAAAAjvZ2dnyAoAAAAAAAACJcdb3+gCgAAAAAAAAIlYBZXvbV8wKAAAAAAAAAAAAAAAAAAAAABLq9r6rkBQI3YCgAI3w0vf6AKAAARXsrqz5gUABHezs7PkBQAAABEuOt7/AEAUAAAARKwFAAAAEsr3tquYFAAAAAAAAAAAAAAAAAAAAAAAAJdXtfVcgKBL62AoACJ35WAoACK+t16AKAAjvZ2dnyAoAAAAiVkk3fzgUAAAjV7eYCgAAACNJ6NXAoAAAAAAAAAAAAAAAAAAAAAACO9nZ2fICLeVrq7fHsWgF0iufH08QFle9tVzAXV7X1XICgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEd7Ozs+QESem8724O/HTmBdJLxo8+YC+tgKBLq9r6rkBQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEsr3tquYFAARKwFAARLjre/0AUABHezs7PkBQAAABFeyurPmBQAACN8NL3+gCgAAACN2AoAAAAAS6va+q5AUAAAAAAAAAAAAAAAAAAAAAAAAjSejVwKAAjV7eYCgAAESskm7+cCgAI72dnZ8gKAAAAIr63XoAoAAAAid+VgKAAAAJfWwFAAAAACPdT3nZXsr/AGAUAAAAAI1cCgAAAAAAjXDW1vpAoAAAAAAAEV7K7u+YFAAAAAABHezsrvkBQAAAAAAAAET46Wt9IFAAAAAAAAARO4FAAAAAABLK97armBQJdXtfV8gKAAAAIlYCgAAAAAAiXHW9/oAoAAAAAAI72dnZ8gKAAAAAAAAAivZXVnzAoAAAAAAAEb4aXv8AQBQAAAAAARXsrqz5gUAAAAAAAAAAARuybSv5gFle9tXzAoAAAAAAAAABLa3AoETvfzAUAAAAAAAABErc7gUAAAiaeqdwKAAAAAACK+t36AKAAAAAAAAAAAI72dld8gKAAAAAAAAAAAAEsr3tq+YBO6Tat5gKAAAAAAAAAjVwKAAjdrecCgAAAAAAARrhra30gUAAAARtLVuwFAAAAAAAAAAAAAAAltbgUCJ3SbVvMBQAAAAAAAAAAAAltb3+YCgAI3ZNvkBQAAAAAAAAAAAAivzYFAAAAETTuk+HECgAAAAAAAAJZXvbVcwCvrdegCgAAAAAAAAAAAAAltbgUCN2TaV/MBQAAAAAAAAAAAAjV+dgKAAAAIndJrmBQAAAAAAAAACO+ln6QKAAAAAEaTs2uHACgAAAAAAAAAEbSTbdkuLAoEd+SAoAAAAjVwKAAAAAAAAAAAAAABG+Gl7/AEAUAAAltb3+YCgAAAAAAAAAAAAAAAAETuk1zAoE1vx0AoAAAAARJLRKwFAAAAAAAAAAAEbSTbdkuLAoEV+aAoAABLa3AoAAAAAAAAAAAAAAACJ8dLW+kCgAJbW9/mAoAAAAARtKyb48AKAAAAAAAAAAAAEStzuBQAACX1tb5wKAAAAAAAAAAAAAAAAiSSSSslwQFAmt+OgFAAAAACJ3AoAAAAAAAAAAAARq9vMBQAACa34aAUAAAAAAETTuk+HECgAAAAAAAAAEavzsBQAAABG7crgUAAAAAAAAAAAAAACJJXaXHiBQAE1vx0AoAAAAAf/Z`;function ry(e=``,t=2){if(!e)return e;let n=new DOMParser().parseFromString(e,`text/html`);return n.body.querySelectorAll(`[data-heading]`).forEach(e=>{let r=e.getAttribute(`data-heading`)||``,i=parseInt(r.replace(`heading`,``),10);if(!Number.isFinite(i))return;let a=Math.min(6,Math.max(1,t+i-1)),o=n.createElement(`h${a}`);o.setAttribute(`data-heading`,r),Array.from(e.attributes).forEach(e=>{e.name!==`data-heading`&&o.setAttribute(e.name,e.value)}),o.innerHTML=e.innerHTML,e.replaceWith(o)}),n.body.innerHTML}var iy=P.createContext({});function ay(e){return ai(`MuiList`,e)}oi(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var oy=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Da({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},ay,t)},sy=L(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),cy=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=P.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=oy(d);return(0,F.jsx)(iy.Provider,{value:u,children:(0,F.jsxs)(sy,{as:a,className:ri(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),ly=Rm;function uy(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fy(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function py(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!fy(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var my=P.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=P.useRef(null),p=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});up(()=>{r&&f.current.focus()},[r]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${ly(lp(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=Zm(sp(t));if(n===`ArrowDown`)e.preventDefault(),py(t,r,c,s,uy);else if(n===`ArrowUp`)e.preventDefault(),py(t,r,c,s,dy);else if(n===`Home`)e.preventDefault(),py(t,null,c,s,uy);else if(n===`End`)e.preventDefault(),py(t,null,c,s,dy);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&fy(r,i);i.previousKeyMatched&&(c||py(t,r,!1,s,uy,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=Hs(f,t),g=-1;P.Children.forEach(a,(e,t)=>{if(!P.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=P.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),P.cloneElement(e,t)}return e});return(0,F.jsx)(cy,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function hy(e){return ai(`MuiMenu`,e)}oi(`MuiMenu`,[`root`,`paper`,`list`]);var gy={vertical:`top`,horizontal:`right`},_y={vertical:`top`,horizontal:`left`},vy=e=>{let{classes:t}=e;return Da({root:[`root`],paper:[`paper`],list:[`list`]},hy,t)},yy=L(Ih,{shouldForwardProp:e=>Ho(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),by=L(Fh,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),xy=L(my,{name:`MuiMenu`,slot:`List`})({outline:0}),Sy=P.forwardRef(function(e,t){let n=as({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=Ki(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=vy(b),S=r&&!o&&l,C=P.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;P.Children.map(i,(e,t)=>{P.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=ql({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[ee,te]=du(`paper`,{className:x.paper,elementType:by,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[k,A]=du(`list`,{className:ri(x.list,s.className),elementType:xy,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),ne=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,F.jsx)(yy,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?gy:_y,slots:{root:g.root,paper:ee,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:te,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...ne,onEntering:(...e)=>{w(...e),ne?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,F.jsx)(k,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...A,children:i})})}),Cy=({slotProps:e,...t})=>(0,F.jsx)(Sy,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}}),wy=s({Collapsible:()=>cv,EnableAudioAutoplayImage:()=>ny,Feedback:()=>qg,HtmlAndMath:()=>xv,InlineMenu:()=>Cy,InputContainer:()=>Uv,PreviewLayout:()=>bv,PreviewPrompt:()=>Jv,Purpose:()=>Xv,Readable:()=>Yv,UiLayout:()=>vv,color:()=>zh,hasMedia:()=>ty,hasText:()=>$v,indicators:()=>Jg,transformDataHeadings:()=>ry,withUndoReset:()=>hv});function H(e){this.elements=Array.isArray(e)?e:[e].filter(Boolean),this.length=this.elements.length;for(var t=0;t<this.elements.length;t++)this[t]=this.elements[t]}H.prototype.addClass=function(e){var t=(e||``).split(/\s+/).filter(Boolean);return this.elements.forEach(function(e){t.forEach(function(t){e.classList.add(t)})}),this},H.prototype.removeClass=function(e){return this.elements.forEach(function(t){e?(e||``).split(/\s+/).filter(Boolean).forEach(function(e){t.classList.remove(e)}):t.className=``}),this},H.prototype.toggleClass=function(e,t){var n=(e||``).split(/\s+/).filter(Boolean),r=arguments.length>1?!!t:null;return this.elements.forEach(function(e){n.forEach(function(t){r===null?e.classList.toggle(t):e.classList.toggle(t,r)})}),this},H.prototype.attr=function(e,t){return t===Oy?this.elements[0]?this.elements[0].getAttribute(e):Oy:(this.elements.forEach(function(n){n.setAttribute(e,t)}),this)},H.prototype.html=function(e){return e===Oy?this.elements[0]?this.elements[0].innerHTML:``:(this.elements.forEach(function(t){t.innerHTML=e}),this)},H.prototype.append=function(e){var t=e instanceof H?e.elements[0]:e;return this.elements.forEach(function(e){e.appendChild(t)}),this},H.prototype.prepend=function(e){var t=e instanceof H?e.elements[0]:e;return this.elements.forEach(function(e,n){var r=n===0?t:t.cloneNode(!0);e.insertBefore(r,e.firstChild)}),this},H.prototype.wrapAll=function(e){if(!this.elements.length)return this;var t;if(typeof e==`string`&&e.trim().indexOf(`<`)===0){var n=document.createElement(`div`);n.innerHTML=e.trim(),t=n.firstChild}else if(e instanceof H)t=e.elements[0];else if(e&&e.nodeType)t=e;else return this;var r=this.elements[0],i=r.parentNode;return i&&(i.insertBefore(t,r),this.elements.forEach(function(e){t.appendChild(e)})),this},H.prototype.appendTo=function(e){var t=e instanceof H?e.elements[0]:e;return t&&this.elements.forEach(function(e){t.appendChild(e)}),this},H.prototype.prependTo=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.firstChild;return this.elements.forEach(function(e){t.insertBefore(e,n),n=e}),this},H.prototype.insertBefore=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.parentNode;return n&&this.elements.forEach(function(e){n.insertBefore(e,t)}),this},H.prototype.insertAfter=function(e){var t=e instanceof H?e.elements[0]:e;if(!t)return this;var n=t.parentNode,r=t.nextSibling;return n&&this.elements.forEach(function(e){n.insertBefore(e,r),r=e}),this},H.prototype.replaceWith=function(e){var t=[];return e instanceof H?t=e.elements.slice():e&&typeof e.length==`number`&&!e.tagName?t=Array.from(e):e&&e.nodeType&&(t=[e]),this.elements.forEach(function(e){var n=e.parentNode;n&&(t.forEach(function(t){n.insertBefore(t,e)}),n.removeChild(e))}),this},H.prototype.insDirOf=function(e,t){return e===-1?this.insertBefore(t.first()):this.insertAfter(t.last())},H.prototype.insAtDirEnd=function(e,t){return e===-1?this.prependTo(t):this.appendTo(t)},H.prototype.children=function(e){var t=[];return this.elements.forEach(function(n){var r;if(!e)r=Array.from(n.children);else if(e===`:first`)r=n.firstElementChild?[n.firstElementChild]:[];else if(e===`:last`)r=n.lastElementChild?[n.lastElementChild]:[];else{var i=/^:eq\((\d+)\)$/.exec(e);if(i){var a=parseInt(i[1],10),o=Array.from(n.children);r=o[a]?[o[a]]:[]}else r=Array.from(n.querySelectorAll(`:scope > `+e))}t.push.apply(t,r)}),new H(t)},H.prototype.find=function(e){var t=[];return this.elements.forEach(function(n){var r=Array.from(n.querySelectorAll(e));t.push.apply(t,r)}),new H(t)},H.prototype.closest=function(e){return new H(this.elements.map(function(t){return t.closest(e)}).filter(Boolean))},H.prototype.contents=function(){var e=[];return this.elements.forEach(function(t){var n=Array.from(t.childNodes);e.push.apply(e,n)}),new H(e)},H.prototype.filter=function(e){return new H(this.elements.filter(function(t,n){return e(n,t)}))},H.prototype.detach=function(){return this.elements.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this},H.prototype.remove=function(){return this.elements.forEach(function(e){e.remove()}),this},H.prototype.empty=function(){return this.elements.forEach(function(e){e.innerHTML=``}),this};function Ty(e){return(e||``).split(`.`)[0]}H.prototype.on=function(e,t){var n=Ty(e);return this.elements.forEach(function(e){e.addEventListener(n,t)}),this},H.prototype.bind=function(e,t,n){var r=this;if(typeof e==`object`){for(var i in e)e.hasOwnProperty(i)&&r.bind(i,e[i]);return this}var a=typeof t==`function`?t:n;return a===!1&&(a=function(e){e.preventDefault()}),(e||``).split(/\s+/).filter(Boolean).forEach(function(e){var t=Ty(e);r.elements.forEach(function(e){e.addEventListener(t,a)})}),this},H.prototype.off=function(e,t){var n=Ty(e);return this.elements.forEach(function(e){e.removeEventListener(n,t)}),this},H.prototype.unbind=function(e,t){if(e&&e.includes(`.`))this.elements.forEach(function(e){var t=e.cloneNode(!0);e.parentNode&&e.parentNode.replaceChild(t,e)});else if(e&&t){var n=Ty(e);this.elements.forEach(function(e){e.removeEventListener(n,t)})}return this},H.prototype.trigger=function(e){var t=new Event(Ty(e),{bubbles:!0,cancelable:!0});return this.elements.forEach(function(e){e.dispatchEvent(t)}),this},H.prototype.focus=function(e){return typeof e==`function`?this.on(`focus`,e):(this.elements.forEach(function(e){e.focus&&e.focus()}),this)},H.prototype.blur=function(e){return typeof e==`function`?this.on(`blur`,e):(this.elements.forEach(function(e){e.blur&&e.blur()}),this)},[`mousemove`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`click`,`keydown`,`keypress`,`keyup`,`focusout`,`paste`,`cut`,`copy`,`input`,`load`].forEach(function(e){H.prototype[e]=function(t){return this.on(e,t)}}),H.prototype.next=function(e){return new H(this.elements.map(function(e){return e.nextElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},H.prototype.prev=function(e){return new H(this.elements.map(function(e){return e.previousElementSibling}).filter(function(t){return!e||t&&t.matches(e)}))},H.prototype.parent=function(){return new H(this.elements.map(function(e){return e.parentElement}).filter(Boolean))},H.prototype.offset=function(){if(!this.elements[0])return{top:0,left:0};var e=this.elements[0].getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}},H.prototype.width=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.width)||e.getBoundingClientRect().width},H.prototype.height=function(){var e=this.elements[0];if(!e)return 0;var t=window.getComputedStyle(e);return parseFloat(t.height)||e.getBoundingClientRect().height},H.prototype.outerWidth=function(){return this.elements[0]?this.elements[0].offsetWidth:0},H.prototype.outerHeight=function(){return this.elements[0]?this.elements[0].offsetHeight:0},H.prototype.innerWidth=function(){return this.elements[0]?this.elements[0].clientWidth:0},H.prototype.innerHeight=function(){return this.elements[0]?this.elements[0].clientHeight:0},H.prototype.css=function(e,t){if(t===Oy){if(typeof e==`string`){var n=this.elements[0];return n?window.getComputedStyle(n).getPropertyValue(e.replace(/([A-Z])/g,`-$1`).toLowerCase()):Oy}}else this.elements.forEach(function(n){n.style[e]=t});return this},H.prototype.scrollTop=function(e){var t=this.elements[0];return e===Oy?t?t===window?window.pageYOffset||document.documentElement.scrollTop:t.scrollTop:0:(t===window?window.scrollTo(window.pageXOffset||0,e):this.elements.forEach(function(t){t.scrollTop=e}),this)},H.prototype.scrollLeft=function(e){var t=this.elements[0];return e===Oy?t?t===window?window.pageXOffset||document.documentElement.scrollLeft:t.scrollLeft:0:(t===window?window.scrollTo(e,window.pageYOffset||0):this.elements.forEach(function(t){t.scrollLeft=e}),this)},H.prototype.each=function(e){return this.elements.forEach(function(t,n){e.call(t,n,t)}),this},H.prototype.eq=function(e){return new H([this.elements[e]])},H.prototype.get=function(e){return e===Oy?this.elements:e<0?this.elements[this.elements.length+e]:this.elements[e]},H.prototype.add=function(e){var t=this.elements.slice();return e instanceof H?t.push.apply(t,e.elements):Array.isArray(e)?t.push.apply(t,e):e&&e.nodeType&&t.push(e),new H(t)},H.prototype.first=function(){return new H([this.elements[0]])},H.prototype.last=function(){return new H([this.elements[this.elements.length-1]])},H.prototype.index=function(e){if(!e){var t=this.elements[0]&&this.elements[0].parentElement;return t?Array.from(t.children).indexOf(this.elements[0]):-1}var n=e instanceof H?e.elements[0]:e;return this.elements.indexOf(n)},H.prototype.is=function(e){return this.elements.some(function(t){return t.matches(e)})},H.prototype.text=function(e){return e===Oy?this.elements.map(function(e){return e.textContent}).join(``):(this.elements.forEach(function(t){t.textContent=e}),this)},H.prototype.val=function(e){var t=this.elements[0];return t?e===Oy?t.value===Oy?t.textContent:t.value:(this.elements.forEach(function(t){t.value===Oy?t.textContent=e:t.value=e}),this):Oy};function Ey(e){var t=Array.isArray(e)?e:[e].filter(Boolean),n=Object.create(H.prototype);n.elements=t,n.length=t.length;for(var r=0;r<t.length;r++)n[r]=t[r];return n}var U=function(e,t){var n;if(!e)n=[];else if(e===window||e===document)n=[e];else if(e.nodeType)n=[e];else if(e&&e.current&&e.current.nodeType)n=[e.current];else if(typeof e==`string`&&e[0]===`<`){var r=document.createElement(`div`);r.innerHTML=e.trim(),n=Array.from(r.children)}else if(typeof e==`string`){var i=t instanceof H?t.elements[0]:t||document;n=Array.from(i.querySelectorAll(e))}else n=e instanceof H?e.elements:e.length===Oy?[]:Array.from(e);return Ey(n)};U.contains=function(e,t){return e!==t&&e.contains(t)};var Dy=U,Oy,ky=`mathquill-command-id`,Ay=`mathquill-block-id`,jy=Math.min,My=Math.max;function Ny(){}var Py=[].slice;function Fy(e){var t=e.length-1;return function(){var n=Py.call(arguments,0,t),r=Py.call(arguments,t);return e.apply(this,n.concat([r]))}}var Iy=Fy(function(e,t){return Fy(function(n,r){if(e in n)return n[e].apply(n,t.concat(r))})});function Ly(e){return Fy(function(t,n){return typeof t!=`function`&&(t=Iy(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function W(e){var t=Py.call(arguments,1);return function(){return e.apply(this,t)}}function Ry(e,t){if(!t)throw Error(`prayer failed: `+e)}var G=(function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function o(s,c){c===n&&(c=s,s=Object);function l(){var e=new u;return i(e.init)&&e.init.apply(e,arguments),e}function u(){}l.Bare=u;var d=a[e]=s[e],f=u[e]=l[e]=l.p=new a,p;return f.constructor=l,l.extend=function(e){return o(l,e)},(l.open=function(e){if(p={},i(e)?p=e.call(l,f,d,l,s):r(e)&&(p=e),r(p))for(var n in p)t.call(p,n)&&(f[n]=p[n]);return i(f.init)||(f.init=s),l})(c)}})(`prototype`,{}.hasOwnProperty),K=-1,q=1;function zy(e){Ry(`a direction was passed`,e===K||e===q)}var By=G(function(e){e.parent=0,e[K]=0,e[q]=0,e.init=function(e,t,n){this.parent=e,this[K]=t,this[q]=n},this.copy=function(e){return By(e.parent,e[K],e[q])}}),Vy=G(function(e){e[K]=0,e[q]=0,e.parent=0;var t=0;function n(){return t+=1}this.byId={},e.init=function(){this.id=n(),Vy.byId[this.id]=this,this.ends={},this.ends[K]=0,this.ends[q]=0},e.dispose=function(){delete Vy.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=U(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){var e=U(e||this.html());function t(e){if(e.getAttribute){var n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`);n&&Vy.byId[n].jQadd(e),r&&Vy.byId[r].jQadd(e)}for(e=e.firstChild;e;e=e.nextSibling)t(e)}for(var n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){zy(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[K],t[q]),n},e.createLeftOf=function(e){return this.createDir(K,e)},e.selectChildren=function(e,t){return qy(e,t)},e.bubble=Ly(function(e){for(var t=this;t&&e(t)!==!1;t=t.parent);return this}),e.postOrder=Ly(function(e){return(function t(n){n.eachChild(t),e(n)})(this),this}),e.isEmpty=function(){return this.ends[K]===0&&this.ends[q]===0},e.isStyleBlock=function(){return!1},e.children=function(){return Uy(this.ends[K],this.ends[q])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return Uy(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return Uy(this,this).adopt(e,t,n),this},e.disown=function(){return Uy(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}});function Hy(e,t,n){Ry(`a parent is always present`,e),t&&(t[q]!==n&&(t[q]=n),t.parent!==e&&(t.parent=e)),n&&(n[K]!==t&&(n[K]=t),n.parent!==e&&(n.parent=e)),Ry(`leftward is properly set up`,(function(){return t?t[q]===n&&t.parent===e:e.ends[K]===n})()),Ry(`rightward is properly set up`,(function(){return n?n[K]===t&&n.parent===e:e.ends[q]===t})())}var Uy=G(function(e){e.init=function(e,t,n){if(n===Oy&&(n=K),zy(n),Ry(`no half-empty fragments`,!e==!t),this.ends={},e){Ry(`withDir is passed to Fragment`,e instanceof Vy),Ry(`oppDir is passed to Fragment`,t instanceof Vy),Ry(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=U(),e.withDirAdopt=function(e,t,n,r){return e===K?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){Hy(e,t,n);var r=this;r.disowned=!1;var i=r.ends[K];if(!i)return this;var a=r.ends[q];return t||(e.ends[K]=i),n?n[K]=a:e.ends[q]=a,r.ends[q][q]=n,r.each(function(n){n[K]=t,n.parent=e,t&&(t[q]=n),t=n}),r},e.disown=function(){var e=this,t=e.ends[K];if(!t||e.disowned)return e;e.disowned=!0;var n=e.ends[q],r=t.parent;return Hy(r,t[K],t),Hy(r,n,n[q]),t[K]?t[K][q]=n[q]:r.ends[K]=n[q],n[q]?n[q][K]=t[K]:r.ends[q]=t[K],e},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=Ly(function(e){var t=this,n=t.ends[K];if(!n)return t;for(;n!==t.ends[q][q]&&e(n)!==!1;n=n[q]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),J={},Wy={},Gy={},Ky=G(By,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=U(`<span class="mq-cursor">&#8203;</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[q]?this.selection&&this.selection.ends[K][K]===this[K]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[q].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=U(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return zy(e),!t||!t.jQ?this:(this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this)},e.insLeftOf=function(e){return this.insDirOf(K,e)},e.insRightOf=function(e){return this.insDirOf(q,e)},e.insAtDirEnd=function(e,t){return zy(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(K,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(q,e)},e.jumpUpDown=function(e,t){var n=this;n.upDownCache[e.id]=By.copy(n);var r=n.upDownCache[t.id];if(r)r[q]?n.insLeftOf(r[q]):n.insAtRightEnd(r.parent);else{var i=n.offset().left;t.seek(i,n)}},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[q],r=this,i=e[K];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[q])}),!this[q])if(this[K])this[q]=this[K][q];else for(;!this[q];)if(this.parent=this.parent[q],this.parent)this[q]=this.parent.ends[K];else{this[q]=e[q],this.parent=t;break}this[q]?this.insLeftOf(this[q]):this.insAtRightEnd(t),e.jQ.remove(),e[K].siblingDeleted&&e[K].siblingDeleted(r.options,q),e[q].siblingDeleted&&e[q].siblingDeleted(r.options,K)},e.startSelection=function(){for(var e=this.anticursor=By.copy(this),t=e.ancestors={},n=e;n.parent;n=n.parent)t[n.parent.id]=n},e.endSelection=function(){delete this.anticursor},e.select=function(){var e=this.anticursor;if(!e||!e.ancestors||this[K]===e[K]&&this.parent===e.parent)return!1;for(var t,n=this;n.parent;n=n.parent)if(n.parent.id in e.ancestors){t=n.parent;break}if(!t)return!1;var r=e.ancestors[t.id],i,a,o=q;if(n[K]!==r){for(var s=n;s;s=s[q])if(s[q]===r[q]){o=K,i=n,a=r;break}}return o===q&&(i=r,a=n),i instanceof By&&(i=i[q]),a instanceof By&&(a=a[K]),!i||!a?!1:(this.hide().selection=t.selectChildren(i,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0)},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[K]=this.selection.ends[K][K],this[q]=this.selection.ends[q][q],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[K]=e.ends[K][K],this[q]=e.ends[q][q],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=+(e instanceof fb);return t},e.isTooDeep=function(e){if(this.options.maxDepth!==Oy)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),qy=G(Uy,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){var e=this.jQ[0];return e&&this.jQ.replaceWith(e.childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),Jy=G(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=Ky(e,n)},e.handle=function(e,t){var n=this.options.handlers;if(n&&n.fns[e]){var r=n.APIClasses[this.KIND_OF_MQ](this);t===K||t===q?n.fns[e](t,r):n.fns[e](r)}};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),Yy={},Xy=G(),Zy={},Qy=G(),$y={};function eb(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
149
149
 
150
150
  MathQuill = MathQuill.getInterface(1);
151
151
  // now MathQuill.MathField() works like it used to
152
152
 
153
153
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
154
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function Wy(e){return Uy(),$b(e)}Wy.prototype=Vy.p,Wy.VERSION=`v1.2.1-beta.1`,Wy.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return Uy=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
154
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function tb(e){return eb(),lx(e)}tb.prototype=Qy.p,tb.VERSION=`v1.2.1-beta.1`,tb.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return eb=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
155
155
 
156
156
  MathQuill = MathQuill.getInterface(1);
157
157
  // now MathQuill.MathField() works like it used to
158
158
 
159
159
  See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
160
- https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},Uy(),Wy},Wy.getInterface=qy;var Gy=qy.MIN=1,Ky=qy.MAX=3;function qy(e){if(!(Gy<=e&&e<=Ky))throw`Only interface versions between `+Gy+` and `+Ky+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=W(e).children(`.mq-root-block`).attr(yy),r=t&&Ay.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=q,t.R=J,t.saneKeyboardEvents=Xy;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=By[r];e[r]=a?a(i):i}}t.config=function(e){return r(zy.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;Hy[e]=t};var i=n.AbstractMathQuill=K(Vy,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=W(`<span class="mq-root-block"/>`).attr(yy,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=K(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[q]=e.ends[J]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=Y[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[q];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(q)},e.moveToRightEnd=function(){return this.moveToDirEnd(J)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:Sy});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-W(window).scrollLeft(),i=t-W(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(W(a),e,t),Zb().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return gy.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(W(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,Ry)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=Ly(a.RootBlock(),W(n),zy());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,Ry[a]);return t}Wy.noConflict=function(){return window.MathQuill=Jy,Wy};var Jy=window.MathQuill;window.MathQuill=Wy;function Yy(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var X=K(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){Dy(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return Dy(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){Dy(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),Xy=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=gy(e),o=gy(n.container||a),s=Sy,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=Sy,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=Sy,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();Ly.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),Ly.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),W(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),W(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),Ly.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),Ay.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(q);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(J,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(q,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[J];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[J]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[q];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[q]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[q])for(;r[q];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[J])for(;r[J];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(J);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[q];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){Dy(`overridden or never called on this node`)}}),Ly.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){Oy(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},By.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){Oy(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(q)},e.moveRight=function(){return this.moveDir(J)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[J][r]?n.insAtLeftEnd(n[J][r]):n[q][r]?n.insAtRightEnd(n[q][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof Ay&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){Oy(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,J),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,q),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){Oy(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===q?My(t.parent.ends[q],t[q]).remove():My(t[J],t.parent.ends[J]).remove(),t.insAtDirEnd(e,t.parent),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,J),t[J].siblingDeleted&&t[J].siblingDeleted(t.options,q),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(q)},e.deleteForward=function(){return this.deleteDir(J)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;Oy(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(q)},e.selectRight=function(){return this.selectDir(J)}});var Zy=/[\\]{2,}/gm,Qy=(function(){function e(e){var t=nb();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||nb(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[J],0);return t}var n=X.string,r=X.regex,i=X.letter,a=X.any,o=X.optWhitespace,s=X.succeed,c=X.fail,l=i.map(function(e){return db(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Z(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return Py[e]&&Py[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=Y[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();Ly.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return Qy.parse(e).postOrder(`finalizeTree`,zy.p).join(`latex`).trim()},By.maxDepth=function(e){return typeof e==`number`?e:_y},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=X.all,r=X.eof,i=Qy.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[q],t[J]),i.jQize().insertBefore(t.jQ),t[q]=i.ends[J],i.finalizeInsert(t.options,t),i.ends[J][J].siblingCreated&&i.ends[J][J].siblingCreated(t.options,q),i.ends[q][q].siblingCreated&&i.ends[q][q].siblingCreated(t.options,J),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(Zy,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=X.all,a=X.eof,o=Qy.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[q]=t.ends[J]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[q]=t.ends[J]=0,delete n.selection,n.show().insAtRightEnd(t);var r=X.regex,i=X.string,a=X.eof,o=X.all,s=i(`$`).then(Qy).skip(i(`$`).or(a)).map(function(e){var t=sb(n);t.createBlocks();var r=t.ends[q];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Z),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[J],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),Ly.open(function(e){zy.p.ignoreNextMousedown=Sy,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=W(t.target).closest(`.mq-root-block`),r=Ay.byId[n.attr(yy)||e.attr(yy)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=Sy;function s(e){i.anticursor||i.startSelection(),r.seek(W(e.target),e.pageX,e.pageY).cursor.select(),e.target&&W(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),W(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(W(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),W(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),Ly.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(yy)||e.attr(vy);if(!i){var a=e.parent();i=a.attr(yy)||a.attr(vy)}}var o=i&&Ay.byId[i]?Ay.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),Ly.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[q]===e[J])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),Ly.open(function(e){zy.p.substituteTextarea=function(){return W(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=W(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=W(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;Tb(e.container[0]),e.textareaSelectionTimeout===_y&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=_y;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(gy(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},zy.p.substituteKeyboardEvents=Xy,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
161
- `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var $y=K(Ay,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[J].siblingCreated&&n[J].siblingCreated(e,q),n[q].siblingCreated&&n[q].siblingCreated(e,J),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==_y){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof nb);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),eb=K($y,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=Qy.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[J],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[q],0,0),r.jQ.appendTo(n.ends[q].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=nb()).adopt(e,e.ends[J],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[q],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return Iy(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[q]=e.jQ.offset().left,t[J]=t[q]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[q])return t.insLeftOf(r);if(e>i[J])return t.insRightOf(r);var a=i[q];r.eachChild(function(o){var s=n(o);if(e<s[q])return e-a<s[q]-e?o[q]?t.insAtRightEnd(o[q]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[J])o[J]?a=s[J]:i[J]-e<e-s[J]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);Dy(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){Dy(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],Dy(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),tb=K(eb,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return X.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=Sy,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=Sy,e.isEmpty=function(){return!0}}),Z=K(tb,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),Q=K(tb,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),nb=K($y,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[q]===this.ends[J]&&this.ends[q]!==0?this.ends[q].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?q:J,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[J];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[q].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[q];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?db(e):/^\d$/.test(e)?lb(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?Y[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?Y[`×`](e):(n=Ny[e]||Y[e])?n(e):Z(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});zy.p.mouseEvents=!0,Ry.StaticMath=function(e){return K(e.AbstractMathQuill,function(t,n){this.RootBlock=nb,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var rb=K(nb,Yy);Ry.MathField=function(e){return K(e.EditableField,function(e,t){this.RootBlock=rb,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=Sy),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var ib=K(Ay,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof My?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[q]&&this.ends[q].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[J].siblingCreated&&n[J].siblingCreated(e.options,q),n[q].siblingCreated&&n[q].siblingCreated(e.options,J),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=X.string,n=X.regex;return X.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?My():(ab(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=eb.prototype.selectTowards,e.deleteTowards=eb.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[q]?(e[q].appendText(n),this.bubble(`reflow`)):ab(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Z(`\\$`,`$`).createLeftOf(e);else if(!e[J])e.insRightOf(this);else if(!e[q])e.insLeftOf(this);else{var r=ib(),i=this.ends[q];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?q:J,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[q]&&t[q].text.length;else if(t.anticursor.parent===this){var l=t[q]&&t[q].text.length;if(this.anticursorPosition===l)t.anticursor=ky.copy(t);else{if(this.anticursorPosition<l){var u=t[q].splitRight(this.anticursorPosition);t[q]=u}else var u=t[J].splitRight(this.anticursorPosition-l);t.anticursor=ky(this,u[q],u)}}},e.blur=function(e){nb.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[q]===this?e[q]=this[q]:e[J]===this&&(e[J]=this[J])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},Dy(`only node in TextBlock span is Text node`,t.nodeType===3);var n=ab(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=nb.prototype.focus}),ab=K(Ay,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=W(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){Oy(t),t===J?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=ab(this.text.slice(e)).adopt(this.parent,this,this[J]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===q?0:-1+t.length)}e.moveTowards=function(e,t){Oy(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):ab(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===J?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){Oy(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=ab(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=ab(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});Y.text=Y.textnormal=Y.textrm=Y.textup=Y.textmd=ib;function ob(e,t,n){return K(ib,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}Y.em=Y.italic=Y.italics=Y.emph=Y.textit=Y.textsl=ob(`\\textit`,`i`,`class="mq-text-mode"`),Y.strong=Y.bold=Y.textbf=ob(`\\textbf`,`b`,`class="mq-text-mode"`),Y.sf=Y.textsf=ob(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),Y.tt=Y.texttt=ob(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),Y.textsc=ob(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),Y.uppercase=ob(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),Y.lowercase=ob(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var sb=K(eb,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[q].cursor=this.cursor,this.ends[q].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Z(`\\$`,`$`).createLeftOf(e.show())):e[J]?e[q]?nb.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):nb.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[q].latex()+`$`}}),cb=K(rb,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)sb(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Z(t,n).createLeftOf(e)}}});Ry.TextField=function(e){return K(e.EditableField,function(e,t){this.RootBlock=cb,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},Ny[`\\`]=K(eb,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[q].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[q].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[q].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Z(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[q].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return W(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[q].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[J]?e.insLeftOf(this[J]):e.insAtRightEnd(this.parent);var t=this.ends[q].latex();t||=` `;var n=Y[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=ib(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),Y[`∉`]=Y.notin=G(Q,`\\notin `,`&#8713;`),Y[`≅`]=Y.cong=G(Q,`\\cong `,`&#8773;`),Y[`≡`]=Y.equiv=G(Q,`\\equiv `,`&#8801;`),Y[`⊕`]=Y.oplus=G(Q,`\\oplus `,`&#8853;`),Y[`⊗`]=Y.otimes=G(Q,`\\otimes `,`&#8855;`),Y[`≠`]=Y.ne=Y.neq=G(Q,`\\ne `,`&ne;`),Y[`≇`]=Y.ncong=G(Q,`\\ncong `,`&ncong;`),Y[`∗`]=Y.ast=Y.star=Y.loast=Y.lowast=G(Q,`\\ast `,`&lowast;`),Y.therefor=Y.therefore=G(Q,`\\therefore `,`&there4;`),Y.cuz=Y.because=G(Q,`\\because `,`&#8757;`),Y.prop=Y.propto=G(Q,`\\propto `,`&prop;`),Y[`≈`]=Y.asymp=Y.approx=G(Q,`\\approx `,`&asymp;`),Y[`≉`]=Y.nasymp=Y.napprox=G(Q,`\\napprox `,`&nap;`),Y.isin=Y.in=G(Q,`\\in `,`&isin;`),Y.ni=Y.contains=G(Q,`\\ni `,`&ni;`),Y.notni=Y.niton=Y.notcontains=Y.doesnotcontain=Py[`\\not\\ni`]=G(Q,`\\not\\ni `,`&#8716;`),Y.sub=Y.subset=G(Q,`\\subset `,`&sub;`),Y.sup=Y.supset=Y.superset=G(Q,`\\supset `,`&sup;`),Y.nsub=Y.notsub=Y.nsubset=Y.notsubset=Py[`\\not\\subset`]=G(Q,`\\not\\subset `,`&#8836;`),Y.nsup=Y.notsup=Y.nsupset=Y.notsupset=Y.nsuperset=Y.notsuperset=Py[`\\not\\supset`]=G(Q,`\\not\\supset `,`&#8837;`),Y.sube=Y.subeq=Y.subsete=Y.subseteq=G(Q,`\\subseteq `,`&sube;`),Y.supe=Y.supeq=Y.supsete=Y.supseteq=Y.supersete=Y.superseteq=G(Q,`\\supseteq `,`&supe;`),Y.nsube=Y.nsubeq=Y.notsube=Y.notsubeq=Y.nsubsete=Y.nsubseteq=Y.notsubsete=Y.notsubseteq=Py[`\\not\\subseteq`]=G(Q,`\\not\\subseteq `,`&#8840;`),Y.nsupe=Y.nsupeq=Y.notsupe=Y.notsupeq=Y.nsupsete=Y.nsupseteq=Y.notsupsete=Y.notsupseteq=Y.nsupersete=Y.nsuperseteq=Y.notsupersete=Y.notsuperseteq=Py[`\\not\\supseteq`]=G(Q,`\\not\\supseteq `,`&#8841;`),Y.N=Y.naturals=Y.Naturals=G(Z,`\\mathbb{N}`,`&#8469;`),Y.P=Y.primes=Y.Primes=Y.projective=Y.Projective=Y.probability=Y.Probability=G(Z,`\\mathbb{P}`,`&#8473;`),Y.Z=Y.integers=Y.Integers=G(Z,`\\mathbb{Z}`,`&#8484;`),Y.Q=Y.rationals=Y.Rationals=G(Z,`\\mathbb{Q}`,`&#8474;`),Y.R=Y.reals=Y.Reals=G(Z,`\\mathbb{R}`,`&#8477;`),Y.C=Y.complex=Y.Complex=Y.complexes=Y.Complexes=Y.complexplane=Y.Complexplane=Y.ComplexPlane=G(Z,`\\mathbb{C}`,`&#8450;`),Y.H=Y.Hamiltonian=Y.quaternions=Y.Quaternions=G(Z,`\\mathbb{H}`,`&#8461;`),Y.quad=Y.emsp=G(Z,`\\quad `,` `),Y.qquad=G(Z,`\\qquad `,` `),Y.diamond=G(Z,`\\diamond `,`&#9671;`),Y.bigtriangleup=G(Z,`\\bigtriangleup `,`&#9651;`),Y.ominus=G(Z,`\\ominus `,`&#8854;`),Y.uplus=G(Z,`\\uplus `,`&#8846;`),Y.bigtriangledown=G(Z,`\\bigtriangledown `,`&#9661;`),Y.sqcap=G(Z,`\\sqcap `,`&#8851;`),Y.triangleleft=G(Z,`\\triangleleft `,`&#8882;`),Y.sqcup=G(Z,`\\sqcup `,`&#8852;`),Y.triangleright=G(Z,`\\triangleright `,`&#8883;`),Y.odot=Y.circledot=G(Z,`\\odot `,`&#8857;`),Y.bigcirc=G(Z,`\\bigcirc `,`&#9711;`),Y.dagger=G(Z,`\\dagger `,`&#0134;`),Y.ddagger=G(Z,`\\ddagger `,`&#135;`),Y.wr=G(Z,`\\wr `,`&#8768;`),Y.amalg=G(Z,`\\amalg `,`&#8720;`),Y.models=G(Z,`\\models `,`&#8872;`),Y.prec=G(Z,`\\prec `,`&#8826;`),Y.succ=G(Z,`\\succ `,`&#8827;`),Y.preceq=G(Z,`\\preceq `,`&#8828;`),Y.succeq=G(Z,`\\succeq `,`&#8829;`),Y.simeq=G(Z,`\\simeq `,`&#8771;`),Y.mid=G(Z,`\\mid `,`&#8739;`),Y.ll=G(Z,`\\ll `,`&#8810;`),Y.gg=G(Z,`\\gg `,`&#8811;`),Y.parallel=G(Z,`\\parallel `,`&#8741;`),Y.nparallel=G(Z,`\\nparallel `,`&#8742;`),Y.bowtie=G(Z,`\\bowtie `,`&#8904;`),Y.sqsubset=G(Z,`\\sqsubset `,`&#8847;`),Y.sqsupset=G(Z,`\\sqsupset `,`&#8848;`),Y.smile=G(Z,`\\smile `,`&#8995;`),Y.sqsubseteq=G(Z,`\\sqsubseteq `,`&#8849;`),Y.sqsupseteq=G(Z,`\\sqsupseteq `,`&#8850;`),Y.doteq=G(Z,`\\doteq `,`&#8784;`),Y.frown=G(Z,`\\frown `,`&#8994;`),Y.vdash=G(Z,`\\vdash `,`&#8870;`),Y.dashv=G(Z,`\\dashv `,`&#8867;`),Y.nless=G(Z,`\\nless `,`&#8814;`),Y.ngtr=G(Z,`\\ngtr `,`&#8815;`),Y.longleftarrow=G(Z,`\\longleftarrow `,`&#8592;`),Y.longrightarrow=G(Z,`\\longrightarrow `,`&#8594;`),Y.Longleftarrow=G(Z,`\\Longleftarrow `,`&#8656;`),Y.Longrightarrow=G(Z,`\\Longrightarrow `,`&#8658;`),Y.longleftrightarrow=G(Z,`\\longleftrightarrow `,`&#8596;`),Y.updownarrow=G(Z,`\\updownarrow `,`&#8597;`),Y.Longleftrightarrow=G(Z,`\\Longleftrightarrow `,`&#8660;`),Y.Updownarrow=G(Z,`\\Updownarrow `,`&#8661;`),Y.mapsto=G(Z,`\\mapsto `,`&#8614;`),Y.nearrow=G(Z,`\\nearrow `,`&#8599;`),Y.hookleftarrow=G(Z,`\\hookleftarrow `,`&#8617;`),Y.hookrightarrow=G(Z,`\\hookrightarrow `,`&#8618;`),Y.searrow=G(Z,`\\searrow `,`&#8600;`),Y.leftharpoonup=G(Z,`\\leftharpoonup `,`&#8636;`),Y.rightharpoonup=G(Z,`\\rightharpoonup `,`&#8640;`),Y.swarrow=G(Z,`\\swarrow `,`&#8601;`),Y.leftharpoondown=G(Z,`\\leftharpoondown `,`&#8637;`),Y.rightharpoondown=G(Z,`\\rightharpoondown `,`&#8641;`),Y.nwarrow=G(Z,`\\nwarrow `,`&#8598;`),Y.ldots=G(Z,`\\ldots `,`&#8230;`),Y.cdots=G(Z,`\\cdots `,`&#8943;`),Y.vdots=G(Z,`\\vdots `,`&#8942;`),Y.ddots=G(Z,`\\ddots `,`&#8945;`),Y.surd=G(Z,`\\surd `,`&#8730;`),Y.triangle=G(Z,`\\triangle `,`&#9651;`),Y.ell=G(Z,`\\ell `,`&#8467;`),Y.top=G(Z,`\\top `,`&#8868;`),Y.flat=G(Z,`\\flat `,`&#9837;`),Y.natural=G(Z,`\\natural `,`&#9838;`),Y.sharp=G(Z,`\\sharp `,`&#9839;`),Y.wp=G(Z,`\\wp `,`&#8472;`),Y.bot=G(Z,`\\bot `,`&#8869;`),Y.clubsuit=G(Z,`\\clubsuit `,`&#9827;`),Y.diamondsuit=G(Z,`\\diamondsuit `,`&#9826;`),Y.heartsuit=G(Z,`\\heartsuit `,`&#9825;`),Y.spadesuit=G(Z,`\\spadesuit `,`&#9824;`),Y.circledot=G(Z,`\\circledot `,`&#8857;`),Y.middot=G(Z,`\\middot `,`&middot;`),Y.dottedsquare=G(Z,`\\dottedsquare `,`&#11034;`),Y.square=G(Z,`\\square `,`&#11036;`),Y.rectangle=G(Z,`\\rectangle `,`&#9647;`),Y.oint=G(Z,`\\oint `,`&#8750;`),Y.bigcap=G(Z,`\\bigcap `,`&#8745;`),Y.bigcup=G(Z,`\\bigcup `,`&#8746;`),Y.bigsqcup=G(Z,`\\bigsqcup `,`&#8852;`),Y.bigvee=G(Z,`\\bigvee `,`&#8744;`),Y.bigwedge=G(Z,`\\bigwedge `,`&#8743;`),Y.bigodot=G(Z,`\\bigodot `,`&#8857;`),Y.bigotimes=G(Z,`\\bigotimes `,`&#8855;`),Y.bigoplus=G(Z,`\\bigoplus `,`&#8853;`),Y.biguplus=G(Z,`\\biguplus `,`&#8846;`),Y.lfloor=G(Z,`\\lfloor `,`&#8970;`),Y.rfloor=G(Z,`\\rfloor `,`&#8971;`),Y.lceil=G(Z,`\\lceil `,`&#8968;`),Y.rceil=G(Z,`\\rceil `,`&#8969;`),Y.opencurlybrace=Y.lbrace=G(Z,`\\lbrace `,`{`),Y.closecurlybrace=Y.rbrace=G(Z,`\\rbrace `,`}`),Y.lbrack=G(Z,`[`),Y.rbrack=G(Z,`]`),Y.mug=G(Z,`\\mug `,`µg`),Y.mus=G(Z,`\\mus `,`µs`),Y.mum=G(Z,`\\mum `,`µm`),Y.muL=G(Z,`\\muL `,`µL`),Y.slash=G(Z,`/`),Y.vert=G(Z,`|`),Y.perp=Y.perpendicular=G(Z,`\\perp `,`&perp;`),Y.nabla=Y.del=G(Z,`\\nabla `,`&nabla;`),Y.hbar=G(Z,`\\hbar `,`&#8463;`),Y.AA=Y.Angstrom=Y.angstrom=G(Z,`\\text\\AA `,`&#8491;`),Y.ring=Y.circ=Y.circle=G(Z,`\\circ `,`&#8728;`),Y.bull=Y.bullet=G(Z,`\\bullet `,`&bull;`),Y.setminus=Y.smallsetminus=G(Z,`\\setminus `,`&#8726;`),Y.not=Y[`¬`]=Y.neg=G(Z,`\\neg `,`&not;`),Y[`…`]=Y.dots=Y.ellip=Y.hellip=Y.ellipsis=Y.hellipsis=G(Z,`\\dots `,`&hellip;`),Y.converges=Y.darr=Y.dnarr=Y.dnarrow=Y.downarrow=G(Z,`\\downarrow `,`&darr;`),Y.dArr=Y.dnArr=Y.dnArrow=Y.Downarrow=G(Z,`\\Downarrow `,`&dArr;`),Y.diverges=Y.uarr=Y.uparrow=G(Z,`\\uparrow `,`&uarr;`),Y.uArr=Y.Uparrow=G(Z,`\\Uparrow `,`&uArr;`),Y.to=G(Q,`\\to `,`&rarr;`),Y.rarr=Y.rightarrow=G(Z,`\\rightarrow `,`&rarr;`),Y.implies=G(Q,`\\Rightarrow `,`&rArr;`),Y.rArr=Y.Rightarrow=G(Z,`\\Rightarrow `,`&rArr;`),Y.gets=G(Q,`\\gets `,`&larr;`),Y.larr=Y.leftarrow=G(Z,`\\leftarrow `,`&larr;`),Y.impliedby=G(Q,`\\Leftarrow `,`&lArr;`),Y.lArr=Y.Leftarrow=G(Z,`\\Leftarrow `,`&lArr;`),Y.harr=Y.lrarr=Y.leftrightarrow=G(Z,`\\leftrightarrow `,`&harr;`),Y.iff=G(Q,`\\Leftrightarrow `,`&hArr;`),Y.hArr=Y.lrArr=Y.Leftrightarrow=G(Z,`\\Leftrightarrow `,`&hArr;`),Y.Re=Y.Real=Y.real=G(Z,`\\Re `,`&real;`),Y.Im=Y.imag=Y.image=Y.imagin=Y.imaginary=Y.Imaginary=G(Z,`\\Im `,`&image;`),Y.part=Y.partial=G(Z,`\\partial `,`&part;`),Y.infty=Y.infin=Y.infinity=G(Z,`\\infty `,`&infin;`),Y.pounds=G(Z,`\\pounds `,`&pound;`),Y.alef=Y.alefsym=Y.aleph=Y.alephsym=G(Z,`\\aleph `,`&alefsym;`),Y.xist=Y.xists=Y.exist=Y.exists=G(Z,`\\exists `,`&exist;`),Y.nexists=Y.nexist=G(Z,`\\nexists `,`&#8708;`),Y.and=Y.land=Y.wedge=G(Q,`\\wedge `,`&and;`),Y.or=Y.lor=Y.vee=G(Q,`\\vee `,`&or;`),Y.o=Y.O=Y.empty=Y.emptyset=Y.oslash=Y.Oslash=Y.nothing=Y.varnothing=G(Q,`\\varnothing `,`&empty;`),Y.cup=Y.union=G(Q,`\\cup `,`&cup;`),Y.cap=Y.intersect=Y.intersection=G(Q,`\\cap `,`&cap;`),Y.deg=Y.degree=G(Z,`\\degree `,`&deg;`),Y.ang=Y.angle=G(Z,`\\angle `,`&ang;`),Y.measuredangle=G(Z,`\\measuredangle `,`m&ang;`);var lb=K(Z,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[q]instanceof ub&&e[q].isItalic!==!1||e[q]instanceof zb&&e[q][q]instanceof ub&&e[q][q].isItalic!==!1)?(Y._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),ub=K(tb,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[q]&&!(this[q]instanceof ub)&&!(this[q]instanceof Q)&&this[q].ctrlSeq!==`\\ `&&(e=`*`+e),this[J]&&!(this[J]instanceof Q)&&!(this[J]instanceof zb)&&(e+=`*`)),e}});zy.p.autoCommands={_maxLength:0},By.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(Y[a]===hb)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=xy(r,a.length)}return n._maxLength=r,n};var db=K(ub,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof db&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[q],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[q]);return My(a,this).remove(),e[q]=a[q],Y[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==q&&this[J]instanceof db||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[q];i instanceof db;i=i[q])r=i.letter+r;for(var a=this[J];a instanceof db;a=a[J])r+=a.letter;My(i[J]||this.parent.ends[q],a[q]||this.parent.ends[J]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[J]||this.parent.ends[q];o<r.length;o+=1,s=s[J])for(var c=by(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[J]){d.italicize(!1);var f=d}var p=fb.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,mb.hasOwnProperty(l)&&f[q][q][q].jQ.addClass(`mq-last`),n(s[q])||s.jQ.addClass(`mq-first`),!n(f[J]))if(f[J]instanceof zb){var m=f[J];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[J]instanceof Jb))})()}else f.jQ.toggleClass(`mq-last`,!(f[J]instanceof Jb));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof Q||e instanceof Hb}}),fb={},pb=zy.p.autoOperatorNames={_maxLength:9},mb={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)fb[e[t]]=pb[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)fb[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)pb[r[t]]=pb[`arc`+r[t]]=pb[r[t]+`h`]=pb[`ar`+r[t]+`h`]=pb[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)pb[i[t]]=1})(),By.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=xy(r,a.length)}return n._maxLength=r,n};var hb=K(tb,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)db(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=nb(),n=0;n<e.length;n+=1)db(e.charAt(n)).adopt(t,t.ends[J],0);return X.succeed(t.children())}});for(var gb in pb)pb.hasOwnProperty(gb)&&(Y[gb]=hb);Y.operatorname=K(eb,function(e){e.createLeftOf=Sy,e.numBlocks=function(){return 1},e.parser=function(){return Qy.block.map(function(e){return e.children()})}}),Y.f=K(db,function(e,t){e.init=function(){tb.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),Y[` `]=Y.space=G(Z,`\\ `,`&nbsp;`),Y[`'`]=Y.prime=G(Z,`'`,`&prime;`),Y[`″`]=Y.dprime=G(Z,`″`,`&Prime;`),Y[`"`]=Y.doublePrime=G(Z,`"`,`&Prime;`),Y.backslash=G(Z,`\\backslash `,`\\`),Ny[`\\`]||=Y.backslash,Y.$=G(Z,`\\$`,`$`);var _b=K(tb,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});Y[`@`]=_b,Y[`&`]=G(_b,`\\&`,`&amp;`),Y[`%`]=G(_b,`\\%`,`%`),Y.alpha=Y.beta=Y.gamma=Y.delta=Y.zeta=Y.eta=Y.theta=Y.iota=Y.kappa=Y.mu=Y.nu=Y.xi=Y.rho=Y.sigma=Y.tau=Y.chi=Y.psi=Y.omega=K(ub,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),Y.phi=G(ub,`\\phi `,`&#981;`),Y.phiv=Y.varphi=G(ub,`\\varphi `,`&phi;`),Y.epsilon=G(ub,`\\epsilon `,`&#1013;`),Y.epsiv=Y.varepsilon=G(ub,`\\varepsilon `,`&epsilon;`),Y.piv=Y.varpi=G(ub,`\\varpi `,`&piv;`),Y.sigmaf=Y.sigmav=Y.varsigma=G(ub,`\\varsigma `,`&sigmaf;`),Y.thetav=Y.vartheta=Y.thetasym=G(ub,`\\vartheta `,`&thetasym;`),Y.upsilon=Y.upsi=G(ub,`\\upsilon `,`&upsilon;`),Y.gammad=Y.Gammad=Y.digamma=G(ub,`\\digamma `,`&#989;`),Y.kappav=Y.varkappa=G(ub,`\\varkappa `,`&#1008;`),Y.rhov=Y.varrho=G(ub,`\\varrho `,`&#1009;`),Y.pi=Y.π=G(_b,`\\pi `,`&pi;`),Y.lambda=G(_b,`\\lambda `,`&lambda;`),Y.Upsilon=Y.Upsi=Y.upsih=Y.Upsih=G(tb,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),Y.Gamma=Y.Delta=Y.Theta=Y.Lambda=Y.Xi=Y.Pi=Y.Sigma=Y.Phi=Y.Psi=Y.Omega=K(Z,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),Y.forall=Y[`∀`]=G(Z,`\\forall `,`&#8704;`);var vb=K(eb,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=Qy.parse(this.latex);t.children().adopt(e.parent,e[q],e[J]),e[q]=t.ends[J],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[J][J].siblingCreated&&t.ends[J][J].siblingCreated(e.options,q),t.ends[q][q].siblingCreated&&t.ends[q][q].siblingCreated(e.options,J),e.parent.bubble(`reflow`)},e.parser=function(){var e=Qy.parse(this.latex).children();return X.succeed(e)}});Y[`¹`]=G(vb,`^1`),Y[`²`]=G(vb,`^2`),Y[`³`]=G(vb,`^3`),Y[`¼`]=G(vb,`\\frac14`),Y[`½`]=G(vb,`\\frac12`),Y[`¾`]=G(vb,`\\frac34`);var yb=K(Q,function(e){e.init=Z.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[q]){if(e[q]instanceof Q||/^[,;:\(\[]$/.test(e[q].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==J)return this.jQ[0].className=n(this),this}});Y[`+`]=G(yb,`+`,`+`),Y[`–`]=Y[`-`]=G(yb,`-`,`&minus;`),Y[`±`]=Y.pm=Y.plusmn=Y.plusminus=G(yb,`\\pm `,`&plusmn;`),Y.mp=Y.mnplus=Y.minusplus=G(yb,`\\mp `,`&#8723;`),Ny[`*`]=Y.sdot=Y.cdot=G(Q,`\\cdot `,`&middot;`,`*`);var bb=K(Q,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===q&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),xb={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},Sb={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};Y[`<`]=Y.lt=G(bb,xb,!0),Y[`>`]=Y.gt=G(bb,Sb,!0),Y[`≤`]=Y.le=Y.leq=G(bb,xb,!1),Y[`≥`]=Y.ge=Y.geq=G(bb,Sb,!1);var Cb=K(Q,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[q]instanceof bb&&e[q].strict){e[q].swap(!1),e[q].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});Y[`=`]=Cb,Y[`×`]=Y.times=G(Q,`\\times `,`&times;`,`[x]`),Y[`÷`]=Y.div=Y.divide=Y.divides=G(Q,`\\div `,`&divide;`,`[/]`),Ny[`~`]=Y.sim=G(Q,`\\sim `,`~`,`~`),Ny[`≁`]=Y.nsim=G(Q,`\\nsim `,`≁`,`≁`),Y.complement=Y[`∁`]=G(Z,`\\complement `,`&#8705;`),Y.nexists=Y[`∄`]=G(Z,`\\nexists `,`&#8708;`),Y.sphericalangle=Y[`∢`]=G(Z,`\\sphericalangle `,`&#8738;`),Y.iint=Y[`∬`]=G(Z,`\\iint `,`&#8748;`),Y.iiint=Y[`∭`]=G(Z,`\\iiint `,`&#8749;`),Y.oiint=Y[`∯`]=G(Z,`\\oiint `,`&#8751;`),Y.oiiint=Y[`∰`]=G(Z,`\\oiiint `,`&#8752;`),Y.backsim=Y[`∽`]=G(Z,`\\backsim `,`&#8765;`),Y.backsimeq=Y[`⋍`]=G(Z,`\\backsimeq `,`&#8909;`),Y.eqsim=Y[`≂`]=G(Z,`\\eqsim `,`&#8770;`),Y.ncong=Y[`≇`]=G(Z,`\\ncong `,`&#8775;`),Y.approxeq=Y[`≊`]=G(Z,`\\approxeq `,`&#8778;`),Y.bumpeq=Y[`≏`]=G(Z,`\\bumpeq `,`&#8783;`),Y.Bumpeq=Y[`≎`]=G(Z,`\\Bumpeq `,`&#8782;`),Y.doteqdot=Y[`≑`]=G(Z,`\\doteqdot `,`&#8785;`),Y.fallingdotseq=Y[`≒`]=G(Z,`\\fallingdotseq `,`&#8786;`),Y.risingdotseq=Y[`≓`]=G(Z,`\\risingdotseq `,`&#8787;`),Y.eqcirc=Y[`≖`]=G(Z,`\\eqcirc `,`&#8790;`),Y.circeq=Y[`≗`]=G(Z,`\\circeq `,`&#8791;`),Y.triangleq=Y[`≜`]=G(Z,`\\triangleq `,`&#8796;`),Y.leqq=Y[`≦`]=G(Z,`\\leqq `,`&#8806;`),Y.geqq=Y[`≧`]=G(Z,`\\geqq `,`&#8807;`),Y.lneqq=Y[`≨`]=G(Z,`\\lneqq `,`&#8808;`),Y.gneqq=Y[`≩`]=G(Z,`\\gneqq `,`&#8809;`),Y.between=Y[`≬`]=G(Z,`\\between `,`&#8812;`),Y.nleq=Y[`≰`]=G(Z,`\\nleq `,`&#8816;`),Y.ngeq=Y[`≱`]=G(Z,`\\ngeq `,`&#8817;`),Y.lesssim=Y[`≲`]=G(Z,`\\lesssim `,`&#8818;`),Y.gtrsim=Y[`≳`]=G(Z,`\\gtrsim `,`&#8819;`),Y.lessgtr=Y[`≶`]=G(Z,`\\lessgtr `,`&#8822;`),Y.gtrless=Y[`≷`]=G(Z,`\\gtrless `,`&#8823;`),Y.preccurlyeq=Y[`≼`]=G(Z,`\\preccurlyeq `,`&#8828;`),Y.succcurlyeq=Y[`≽`]=G(Z,`\\succcurlyeq `,`&#8829;`),Y.precsim=Y[`≾`]=G(Z,`\\precsim `,`&#8830;`),Y.succsim=Y[`≿`]=G(Z,`\\succsim `,`&#8831;`),Y.nprec=Y[`⊀`]=G(Z,`\\nprec `,`&#8832;`),Y.nsucc=Y[`⊁`]=G(Z,`\\nsucc `,`&#8833;`),Y.subsetneq=Y[`⊊`]=G(Z,`\\subsetneq `,`&#8842;`),Y.supsetneq=Y[`⊋`]=G(Z,`\\supsetneq `,`&#8843;`),Y.vDash=Y[`⊨`]=G(Z,`\\vDash `,`&#8872;`),Y.Vdash=Y[`⊩`]=G(Z,`\\Vdash `,`&#8873;`),Y.Vvdash=Y[`⊪`]=G(Z,`\\Vvdash `,`&#8874;`),Y.VDash=Y[`⊫`]=G(Z,`\\VDash `,`&#8875;`),Y.nvdash=Y[`⊬`]=G(Z,`\\nvdash `,`&#8876;`),Y.nvDash=Y[`⊭`]=G(Z,`\\nvDash `,`&#8877;`),Y.nVdash=Y[`⊮`]=G(Z,`\\nVdash `,`&#8878;`),Y.nVDash=Y[`⊯`]=G(Z,`\\nVDash `,`&#8879;`),Y.vartriangleleft=Y[`⊲`]=G(Z,`\\vartriangleleft `,`&#8882;`),Y.vartriangleright=Y[`⊳`]=G(Z,`\\vartriangleright `,`&#8883;`),Y.trianglelefteq=Y[`⊴`]=G(Z,`\\trianglelefteq `,`&#8884;`),Y.trianglerighteq=Y[`⊵`]=G(Z,`\\trianglerighteq `,`&#8885;`),Y.multimap=Y[`⊸`]=G(Z,`\\multimap `,`&#8888;`),Y.Subset=Y[`⋐`]=G(Z,`\\Subset `,`&#8912;`),Y.Supset=Y[`⋑`]=G(Z,`\\Supset `,`&#8913;`),Y.Cap=Y[`⋒`]=G(Z,`\\Cap `,`&#8914;`),Y.Cup=Y[`⋓`]=G(Z,`\\Cup `,`&#8915;`),Y.pitchfork=Y[`⋔`]=G(Z,`\\pitchfork `,`&#8916;`),Y.lessdot=Y[`⋖`]=G(Z,`\\lessdot `,`&#8918;`),Y.gtrdot=Y[`⋗`]=G(Z,`\\gtrdot `,`&#8919;`),Y.lll=Y[`⋘`]=G(Z,`\\lll `,`&#8920;`),Y.ggg=Y[`⋙`]=G(Z,`\\ggg `,`&#8921;`),Y.lesseqgtr=Y[`⋚`]=G(Z,`\\lesseqgtr `,`&#8922;`),Y.gtreqless=Y[`⋛`]=G(Z,`\\gtreqless `,`&#8923;`),Y.curlyeqprec=Y[`⋞`]=G(Z,`\\curlyeqprec `,`&#8926;`),Y.curlyeqsucc=Y[`⋟`]=G(Z,`\\curlyeqsucc `,`&#8927;`),Y.nsim=Y[`≁`]=G(Z,`\\nsim `,`&#8769;`),Y.lnsim=Y[`⋦`]=G(Z,`\\lnsim `,`&#8934;`),Y.gnsim=Y[`⋧`]=G(Z,`\\gnsim `,`&#8935;`),Y.precnsim=Y[`⋨`]=G(Z,`\\precnsim `,`&#8936;`),Y.succnsim=Y[`⋩`]=G(Z,`\\succnsim `,`&#8937;`),Y.ntriangleleft=Y[`⋪`]=G(Z,`\\ntriangleleft `,`&#8938;`),Y.ntriangleright=Y[`⋫`]=G(Z,`\\ntriangleright `,`&#8939;`),Y.ntrianglelefteq=Y[`⋬`]=G(Z,`\\ntrianglelefteq `,`&#8940;`),Y.ntrianglerighteq=Y[`⋭`]=G(Z,`\\ntrianglerighteq `,`&#8941;`),Y.blacksquare=Y[`∎`]=G(Z,`\\blacksquare `,`&#8718;`),Y.colon=Y[`∶`]=G(Z,`\\colon `,`&#8758;`),Y.llcorner=Y[`∟`]=G(Z,`\\llcorner `,`&#8735;`),Y.dotplus=Y[`∔`]=G(Q,`\\dotplus `,`&#8724;`),Y.nmid=Y[`∤`]=G(Q,`
162
- mid `,`&#8740;`),Y.intercal=Y[`⊺`]=G(Q,`\\intercal `,`&#8890;`),Y.veebar=Y[`⊻`]=G(Q,`\\veebar `,`&#8891;`),Y.barwedge=Y[`⊼`]=G(Q,`\\barwedge `,`&#8892;`),Y.ltimes=Y[`⋉`]=G(Q,`\\ltimes `,`&#8905;`),Y.rtimes=Y[`⋊`]=G(Q,`\\rtimes `,`&#8906;`),Y.leftthreetimes=Y[`⋋`]=G(Q,`\\leftthreetimes `,`&#8907;`),Y.rightthreetimes=Y[`⋌`]=G(Q,`\\rightthreetimes `,`&#8908;`),Y.curlyvee=Y[`⋎`]=G(Q,`\\curlyvee `,`&#8910;`),Y.curlywedge=Y[`⋏`]=G(Q,`\\curlywedge `,`&#8911;`),Y.circledcirc=Y[`⊚`]=G(Q,`\\circledcirc `,`&#8858;`),Y.circledast=Y[`⊛`]=G(Q,`\\circledast `,`&#8859;`),Y.circleddash=Y[`⊝`]=G(Q,`\\circleddash `,`&#8861;`),Y.boxplus=Y[`⊞`]=G(Q,`\\boxplus `,`&#8862;`),Y.boxminus=Y[`⊟`]=G(Q,`\\boxminus `,`&#8863;`),Y.boxtimes=Y[`⊠`]=G(Q,`\\boxtimes `,`&#8864;`),Y.boxdot=Y[`⊡`]=G(Q,`\\boxdot `,`&#8865;`),Y[`∂`]=Y.partial,Y[`∃`]=Y.exists,Y[`∅`]=Y.varnothing,Y[`∆`]=Y.triangle,Y[`∇`]=Y.nabla,Y[`∈`]=Y.in,Y[`∊`]=Y.in,Y[`∋`]=Y.ni,Y[`∌`]=Y.notni,Y[`∍`]=Y.ni,Y[`∐`]=Y.amalg,Y[`−`]=Y[`-`],Y[`∓`]=Y.mp,Y[`∖`]=Y.setminus,Y[`∘`]=Y.circ,Y[`∙`]=Y.bullet,Y[`∝`]=Y.propto,Y[`∞`]=Y.infty,Y[`∠`]=Y.angle,Y[`∡`]=Y.measuredangle,Y[`∣`]=Y.divides,Y[`∥`]=Y.parallel,Y[`∦`]=Y.nparallel,Y[`∧`]=Y.wedge,Y[`∨`]=Y.vee,Y[`∩`]=Y.cap,Y[`∪`]=Y.cup,Y[`∮`]=Y.oint,Y[`∴`]=Y.therefore,Y[`∵`]=Y.because,Y[`∼`]=Y.sim,Y[`≀`]=Y.wr,Y[`≃`]=Y.simeq,Y[`≍`]=Y.asymp,Y[`≐`]=Y.doteq,Y[`≪`]=Y.ll,Y[`≫`]=Y.gg,Y[`≺`]=Y.prec,Y[`≻`]=Y.succ,Y[`⊂`]=Y.subset,Y[`⊃`]=Y.supset,Y[`⊆`]=Y.subseteq,Y[`⊇`]=Y.supseteq,Y[`⊈`]=Y.nsubseteq,Y[`⊉`]=Y.nsupseteq,Y[`⊏`]=Y.sqsubset,Y[`⊐`]=Y.sqsupset,Y[`⊓`]=Y.sqcap,Y[`⊔`]=Y.sqcup,Y[`⊖`]=Y.ominus,Y[`⊘`]=Y.oslash,Y[`⊙`]=Y.odot,Y[`⊢`]=Y.vdash,Y[`⊣`]=Y.dashv,Y[`⊤`]=Y.top,Y[`⊥`]=Y.bot,Y[`⊧`]=Y.models,Y[`⋀`]=Y.wedge,Y[`⋁`]=Y.vee,Y[`⋂`]=Y.cap,Y[`⋃`]=Y.cup,Y[`⋄`]=Y.diamond,Y[`⋅`]=Y.cdot,Y[`⋆`]=Y.star,Y[`⋈`]=Y.bowtie,Y[`⋮`]=Y.vdots,Y[`⋯`]=Y.cdots,Y[`⋱`]=Y.ddots;var wb,Tb=Sy,Eb=document.createElement(`div`).style,Db={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},Ob;for(var kb in Db)if(kb in Eb){Ob=kb;break}Ob?wb=function(e,t,n){e.css(Ob,`scale(`+t+`,`+n+`)`)}:`filter`in Eb?(Tb=function(e){e.className=e.className},wb=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);W(window).load(function(){clearTimeout(a),i()})}):wb=function(e,t,n){e.css(`fontSize`,n+`em`)};var Ab=K(eb,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),jb=K(eb,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return Qy.optBlock.then(function(t){return Qy.block.map(function(n){var r=Mb.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),Mb=K(jb,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,eb.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[q].latex()+`]{`+this.ends[J].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[q].upOutOf=this.ends[J],this.upInto=this.ends[J].downOutOf=this.ends[q]}}),Nb=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return K(eb,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},Pb=K(eb,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),Fb=K(eb,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Ib=K(eb,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),Lb=K(eb,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Rb=function(e,t){return K(tb,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};Y.mathrm=G(Ab,`\\mathrm`,`span`,`class="mq-roman mq-font"`),Y.mathit=G(Ab,`\\mathit`,`i`,`class="mq-font"`),Y.mathbf=G(Ab,`\\mathbf`,`b`,`class="mq-font"`),Y.mathsf=G(Ab,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),Y.mathtt=G(Ab,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),Y.underline=G(Ab,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),Y.overline=Y.bar=G(Nb(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),Y.longdiv=G(Pb,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),Y.overrightarrow=G(Nb(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),Y.overleftarrow=G(Nb(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),Y.xleftarrow=G(jb,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),Y.xrightarrow=G(jb,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),Y.overleftrightarrow=G(Ab,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),Y.overarc=G(Ab,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),Y.dot=K(eb,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),Y.addmatrixrow=G(Fb,`\\addmatrixrow`,`span`,`+`),Y.addmatrixcol=G(Lb,`\\addmatrixcol`,`span`,`+`),Y.ngtr=Y[`≯`]=G(Rb(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),Y.nless=Y[`≮`]=G(Rb(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),Y.dot=G(Ib,`\\dot`),Y.parallelogram=G(Rb(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),Y.textcolor=K(eb,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=X.optWhitespace,r=X.string,i=X.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),Y.class=K(eb,function(e,t){e.parser=function(){var e=this,n=X.string,r=X.regex;return X.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var zb=K(eb,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[q]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=q;t;t=t===q&&J)if(this[t]instanceof zb){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=ky(i,0,i.ends[q]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=ky(i,o.ends[J],i.ends[q]);t===q?o.adopt(i,i.ends[J],0):o.adopt(i,0,i.ends[q])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[q]===this&&(t===J&&a?a[q]?e.insRightOf(a[q]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},zy.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[q].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof tb?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[q]&&!e[J]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),nb.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof tb?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(q,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=W(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(yy,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=W(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(yy,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=Bb,delete e[n].deleteOutOf,t===`sub`&&W(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function Bb(e){var t=this.parent,n=e;do{if(n[J])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}Y.subscript=Y._=K(zb,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[q],this.sub.upOutOf=Bb,t.finalizeTree.call(this)}}),Y.superscript=Y.supscript=Y[`^`]=K(zb,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[J],this.sup.downOutOf=Bb,t.finalizeTree.call(this)}});var Vb=K(eb,function(e,t){e.parser=function(){for(var e=X.string,t=X.optWhitespace,n=X.succeed,r=Qy.block,i=this,a=i.blocks=[nb(),nb()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[J],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[J],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[q],this.upInto=this.ends[J],this.ends[q].upOutOf=this.ends[J],this.ends[J].downOutOf=this.ends[q]}}),Hb=K(Vb,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;tb.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[q].latex())+`^`+e(this.ends[J].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(db(`n`).createLeftOf(e),Cb().createLeftOf(e))}});Y[`∑`]=Y.sum=Y.summation=G(Hb,`\\sum `,`&sum;`),Y[`∏`]=Y.prod=Y.product=G(Hb,`\\prod `,`&prod;`),Y.coprod=Y.coproduct=G(Hb,`\\coprod `,`&#8720;`),Y[`∫`]=Y.int=Y.integral=K(Hb,function(e,t){e.init=function(){tb.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=eb.p.createLeftOf}),Y.lim=Y.limit=K(Vb,function(e,t){e.init=function(){tb.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[q].latex())}});var Ub=Y.over=Ny[`/`]=K(Y.frac=Y.dfrac=Y.cfrac=Y.fraction=K(eb,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[J].upOutOf=this.ends[q],this.downInto=this.ends[q].downOutOf=this.ends[J]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[q];n&&!(n instanceof Q||n instanceof(Y.text||Sy)||n instanceof Hb||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[q];n instanceof Hb&&n[J]instanceof zb&&(n=n[J],n[J]instanceof zb&&n[J].ctrlSeq!=n.ctrlSeq&&(n=n[J])),n!==e[q]&&!e.isTooDeep(1)&&(this.replaces(My(n[J]||e.parent.ends[q],e[q])),e[q]=n)}t.createLeftOf.call(this,e)}});Y.underset=K(eb,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[q].upOutOf=this.ends[J],this.upInto=this.ends[J].downOutOf=this.ends[q]}}),Y.overset=K(eb,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[J].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[J]}});var Wb=Y.sqrt=Y[`√`]=K(eb,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return Qy.optBlock.then(function(e){return Qy.block.map(function(t){var n=Gb();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[J].jQ.parent();wb(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});Y.hat=K(eb,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var Gb=Y.nthroot=K(Wb,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[q].latex()+`]{`+this.ends[J].latex()+`}`}}),Kb=K(eb,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});Y.vec=G(Kb,`\\vec`,`&rarr;`,[`vec(`,`)`]),Y.tilde=G(Kb,`\\tilde`,`~`,[`tilde(`,`)`]),Y.lrncuberoot=K(Wb,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[q].latex()+`}`}}),Y.abs=K(eb,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),Y.lrnplaceholder=K(eb,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[q].latex()}}),Y.lrnexponent=K(eb,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[J].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[q].latex()+`^`+e}}),Y.lrnsquaredexponent=K(eb,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[q].latex()+`^2`}}),Y.lrnsubscript=K(eb,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[q].latex()+`_`+this.ends[J].latex()}});function qb(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));wb(this.delimjQs,by(1+.2*(e-1),1.2),1.2*e)}}var Jb=K(K(eb,qb),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,_y,[n,r]),this.side=e,this.sides={},this.sides[q]={ch:n,ctrlSeq:i},this.sides[J]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===J?` mq-ghost`:``)+`">`+this.sides[q].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===q?` mq-ghost`:``)+`">`+this.sides[J].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[q].ctrlSeq+this.ends[q].latex()+`\\right`+this.sides[J].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof Jb&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||Yb[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[q].ch]===n.sides[J].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===q?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[q].ch===`|`)var r=this.matchBrack(n,J,e[J])||this.matchBrack(n,q,e[q])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&My(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(My(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===q?e.insAtLeftEnd(r.ends[q]):e.insRightOf(r)},e.placeCursor=Sy,e.unwrap=function(){this.ends[q].children().disown().adopt(this.parent,this,this[J]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[q].ends[this.side])){this.closeOpposing(this.ends[q].ends[this.side]);var c=this.ends[q].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:Yb[this.sides[this.side].ch],ctrlSeq:Yb[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===q?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[q].ends[e];My(i,a,-e).disown().withDirAdopt(-e,this.ends[q],c,0).jQ.insAtDirEnd(e,this.ends[q].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[q])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[q].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===q)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),Yb={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function Xb(e,t){var t=t||e,n=Yb[e],r=Yb[t];Ny[e]=G(Jb,q,e,n,t,r),Ny[n]=G(Jb,J,e,n,t,r)}Xb(`(`),Xb(`[`),Xb(`{`,`\\{`),Y.langle=G(Jb,q,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),Y.rangle=G(Jb,J,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),Ny[`|`]=G(Jb,q,`|`,`|`,`|`,`|`),Y.lVert=G(Jb,q,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),Y.rVert=G(Jb,J,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),Y.left=K(eb,function(e){e.parser=function(){var e=X.regex,t=X.string;X.succeed;var n=X.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),Qy.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=Jb(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),Y.right=K(eb,function(e){e.parser=function(){return X.fail(`unmatched \\right`)}}),Y.choose=K(Y.binom=Y.binomial=K(K(eb,qb),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=Ub.prototype.createLeftOf}),Y.editable=Y.MathQuillMathField=K(eb,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=X.string,r=X.regex,i=X.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=Ly(this.ends[q],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),Yy(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[q].controller))},e.latex=function(){return this.ends[q].latex()},e.text=function(){return this.ends[q].text()}});var Zb=Y.embed=K(tb,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=X.string,n=X.regex,r=X.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions(Hy[i](t))})})}});Y.MathQuillResponseContainer=K(eb,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[q].text()}}),Y.MathQuillResponseContainerIcon=K(eb,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[q].text()}});var Qb=Y.matrix=K(eb,function(e,t){var n=K(nb,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[J],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&wb(n,by(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=X.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);Qy.parse(u[e]||` `).children().adopt(f,f.ends[J],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[J],0);return X.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=Ay.byId[e.first().attr(yy)],n=Ay.byId[e.last().attr(yy)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=Ay.byId[W(this).attr(yy)],a=e.eq(t+1),o=W(this).closest(`tr`).next(`tr`),s=W(this).closest(`tr`).index(),c=W(this).index(),l;if(a.length){var u=Ay.byId[a.attr(yy)];n[J]=u,u[q]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=Ay.byId[l.attr(yy)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[q]=t,this.ends[J]=n,t&&t[q]&&delete t[q],n&&n[J]&&delete n[J],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return W(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return Ay.byId[W(this).attr(yy)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=Ay.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(yy)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=W(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=W(`<td class="mq-empty">`).attr(yy,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=W(`<td class="mq-empty">`).attr(yy,a.id),a.jQ.insertAfter(W(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});Y.pmatrix=K(Qb,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),Y.bmatrix=K(Qb,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),Y.Bmatrix=K(Qb,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),Y.vmatrix=K(Qb,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),Y.Vmatrix=K(Qb,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var $b=qy(3);for(var ex in $b)(function(e,t){typeof t==`function`?(Wy[e]=function(){return Uy(),t.apply(this,arguments)},Wy[e].prototype=t.prototype):Wy[e]=t})(ex,$b[ex]);var tx=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},nx;typeof window<`u`&&(nx=Wy.getInterface(3),nx&&nx.registerEmbed&&tx(nx));function rx(e,t){!nx||!nx.registerEmbed||nx.registerEmbed(e,t)}function ix(e,t,n){if(!(!nx||!e))return t!=null&&(e.textContent=t),nx.StaticMath(e,n)}var ax=um(`pie-lib:math-input:mq:static`),ox=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,sx=/ /g;function cx(e=``){return e.replace(sx,``)}function lx(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var ux=class extends F.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=F.createRef()}componentDidMount(){this.update(),Lf(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),Lf()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(lx(e)>lx(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!nx)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=nx.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}};blur=()=>{ax(`blur mathfield`),this.mathField.blur()};focus=()=>{ax(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=cx(this.mathField.parseLatex(e.latex)),n=(e.latex.match(ox)||[]).length,r=t!==cx(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return ax(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,I.jsx)(`span`,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},dx={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},fx={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},px={"& *":{...dx,...fx,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},mx=e=>(ae(5-e.length,()=>e.push([])),oe.apply(null,e)),hx=um(`pie-lib:math-inline:keypad`),gx=R(ux)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:Bh(),"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${Ig()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid black`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid black`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid black !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});gx.propTypes={latex:O.string.isRequired};var _x=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},vx=R(`div`)(()=>({...px,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),yx=R(nm)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:Bh(),backgroundColor:e===`operators`?Fg():Pg(),"&:hover":{backgroundColor:e===`operators`?Rg():Lg()},borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),bx=R(nm)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?Fg():Pg(),"&:hover":{backgroundColor:e===`operators`?Rg():Lg()}})),xx=R(cm)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?Fg():Pg(),"&:hover":{backgroundColor:e===`operators`?Rg():Lg()},borderRadius:0,"& .icon":{height:`30px`}})),Sx=class extends F.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:Xf,noDecimal:!1};constructor(e){super(e),this.keypadRef=F.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{hx(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>A([...mx(e),...mx(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,..._x(r)};return(0,I.jsx)(vx,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,I.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,I.jsx)(bx,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,I.jsx)(gx,{latex:e.latex})},r.key);if(e.label)return(0,I.jsx)(yx,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,I.jsx)(xx,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,I.jsx)(t,{className:`icon`})},r.key)}})})}},Cx=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},wx=class extends F.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(Cx(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=If(a);return(0,I.jsx)(Sx,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:Mu(Pf(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},Tx=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),Ex=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),Dx=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),Ox=o(((e,t)=>{var n=Dx(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),kx=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),Ax=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=kx();t.exports=function(e){return e?e.replace(r,n):``}})),jx=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),Mx=o(((e,t)=>{var n=jx();t.exports=function(e){return n(e).toLowerCase()}})),Nx=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),Px=o(((e,t)=>{var n=Ax(),r=Mx(),i=Nx(),a=Dx(),o=Ox(),s=Tx(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),Fx=o(((e,t)=>{t.exports=Px()()})),Ix=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),Lx=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),Rx=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),zx=o(((e,t)=>{Ox();var n=Fx(),r=Mx(),i=Ax(),a=Ix(),o=Lx(),s=Rx(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:Ex()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),Bx=o(((e,t)=>{var n=zx(),r=Ix();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),Vx=o(((e,t)=>{t.exports={prefixProperties:Tx(),cssUnitless:Ex(),object:zx(),string:Bx()}}))(),Hx=um(`@pie-lib:mask-markup:serialization`),Ux=[`span`],Wx=[`em`,`strong`,`u`],Gx=3,Kx=8,qx=1,Jx=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},Yx=e=>Ux.includes(e)?`inline`:Wx.includes(e)?`mark`:`block`,Xx=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},Zx=e=>(0,Vx.object)(e,{camelize:!0,addUnits:!1}),Qx=(e,t)=>Zx(Xx(e.getAttribute(t))),$x=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},eS=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=Qx(e,n);break;case`class`:t.className=$x(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},tS=[`border`,`class`,`style`],nS={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},rS=(e,t=[])=>{if(e.nodeType===Kx)return null;if(e.nodeType===Gx){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===qx){let n=e.tagName.toLowerCase(),r=nS[n];if(r)return Hx(`[deserialize] mark: `,r),{_flatten:!0,nodes:iS(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=Jx(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=tS.reduce(eS(e),{...i}),o=Yx(n),s=iS(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},iS=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=rS(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},aS=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=iS(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},oS=R(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),sS=R(`span`)(()=>({display:`inline-block`,width:`.75em`})),cS=[`tbody`,`tr`],lS=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&cS.includes(r)))return t},uS=e=>{let t=e.leaves.find(e=>ne(e,`marks`,[]).length);return t?t.marks:null},dS=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,I.jsx)(`span`,{dangerouslySetInnerHTML:{__html:`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`}})),o;if(r){let i=r(e,t,n);if(i){let t=e.data?.dataset?.component===`blank`;t&&o.push((0,I.jsx)(sS,{},`spacer-${s}-before`)),o.push(i),t&&o.push((0,I.jsx)(sS,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=lS(i,n);return r?e+r:e},``),n=uS(e);if(n?.length>0){let e=n.map(e=>Object.keys(nS).find(t=>nS[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,I.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=dS(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,I.jsx)(oS,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,I.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,I.jsx)(t,{...e.data.attributes},c))}}}),o},fS=R(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),pS=class extends F.Component{constructor(e){super(e),this.internalContainerRef=F.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof J_==`function`&&J_(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=dS(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,I.jsx)(fS,{ref:a,children:i})}},mS=/\{\{(\d+)\}\}/g,hS=(e,t)=>e?{markup:e.replace(mS,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},gS=(e,t)=>{let{markup:n}=hS(e,t);return aS(n).document},_S=((e,t)=>class extends F.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=F.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.innerHTML=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||gS(n,e);return(0,I.jsx)(pS,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),vS=`height ease-in 300ms, opacity ease-in 300ms`,yS=R(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:vS,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:vS,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),bS=e=>{let{show:t,children:n,className:r}=e,i=(0,F.useRef)(null);return(0,I.jsx)(Es,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,I.jsx)(yS,{ref:i,className:r,children:n})})};bS.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var xS={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,redo:`Redo`,reset:`Reset`},mathInline:{primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`}},SS={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`}},graphing:{point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`}},$=e=>typeof e==`string`,CS=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},wS=e=>e==null?``:``+e,TS=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},ES=/###/g,DS=e=>e&&e.indexOf(`###`)>-1?e.replace(ES,`.`):e,OS=e=>!e||$(e),kS=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(OS(e))return{};let t=DS(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return OS(e)?{}:{obj:e,k:DS(r[i])}},AS=(e,t,n)=>{let{obj:r,k:i}=kS(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=kS(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=kS(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},jS=(e,t,n,r)=>{let{obj:i,k:a}=kS(e,t,Object);i[a]=i[a]||[],i[a].push(n)},MS=(e,t)=>{let{obj:n,k:r}=kS(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},NS=(e,t,n)=>{let r=MS(e,n);return r===void 0?MS(t,n):r},PS=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):PS(e[r],t[r],n):e[r]=t[r]);return e},FS=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),IS={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},LS=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>IS[e]):e,RS=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}},zS=[` `,`,`,`?`,`!`,`;`],BS=new RS(20),VS=(e,t,n)=>{t||=``,n||=``;let r=zS.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=BS.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},HS=(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},US=e=>e?.replace(/_/g,`-`),WS={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)}},GS=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||WS,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},KS=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])})}},qS=class extends KS{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=MS(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:HS(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),AS(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=MS(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?PS(s,n,i):s={...s,...n},AS(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}},JS={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}},YS=Symbol(`i18next/PATH_KEY`);function XS(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===YS?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ZS(e,t){let{[YS]:n}=e(XS()),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 QS={},$S=e=>!$(e)&&typeof e!=`boolean`&&typeof e!=`number`,eC=class e extends KS{constructor(e,t={}){super(),TS([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=GS.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=$S(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&&!VS(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=ZS(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?ZS(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!$(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=$S(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!($(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:$S(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&$(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=$(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=$(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=JS.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return $(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?ZS(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!QS[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(QS[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},tC=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=GS.create(`languageUtils`)}getScriptPartFromCode(e){if(e=US(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=US(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},nC={zero:0,one:1,two:2,few:3,many:4,other:5},rC={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},iC=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=GS.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=US(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!`),rC;if(!e.match(/-|_/))return rC;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)=>nC[e]-nC[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))}},aC=(e,t,n,r=`.`,i=!0)=>{let a=NS(e,t,n);return!a&&i&&$(n)&&(a=HS(e,n,r),a===void 0&&(a=HS(t,n,r))),a},oC=e=>e.replace(/\$/g,`$$$$`),sC=class{constructor(e={}){this.logger=GS.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?LS:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?FS(i):a||`{{`,this.suffix=o?FS(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?FS(d):f||FS(`$t(`),this.nestingSuffix=p?FS(p):m||FS(`)`),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=aC(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(aC(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=>oC(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?oC(this.escape(e)):oC(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!$(a)&&!this.useRawValueToEscape&&(a=wS(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(`${FS(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=wS(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}},cC=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}},lC=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(US(r),i),t[o]=s),s(n)}},uC=e=>(t,n,r)=>e(US(n),r)(t),dC=class{constructor(e={}){this.logger=GS.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?lC:uC;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()]=lC(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}=cC(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)}},fC=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},pC=class extends KS{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=GS.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=>{jS(n.loaded,[i],a),fC(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},mC=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),hC=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),gC=()=>{},_C=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},vC=`__i18next_supportNoticeShown`,yC=()=>!!(typeof globalThis<`u`&&globalThis[vC]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),bC=()=>{typeof globalThis<`u`&&(globalThis[vC]=!0)},xC=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)),SC=class e extends KS{constructor(e={},t){if(super(),this.options=hC(e),this.services={},this.logger=GS,this.modules={external:[]},_C(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&($(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=mC();this.options={...n,...this.options,...hC(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&&!xC(this)&&!yC()&&(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 💙`),bC());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?GS.init(r(this.modules.logger),this.options):GS.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:dC;let t=new tC(this.options);this.store=new qS(this.options.resources,this.options);let i=this.services;i.logger=GS,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new iC(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 sC(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new pC(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 eC(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||=gC,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=CS(),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=gC){let n=t,r=$(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=CS();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||=gC,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`&&JS.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=CS();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes($(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=ZS(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=ZS(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=ZS(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return $(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=CS();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=CS();$(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 tC(mC());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=gC){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 qS(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={...mC().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new sC(n)}return a.translator=new eC(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();SC.createInstance,SC.dir,SC.init,SC.loadResources,SC.reloadResources,SC.use,SC.changeLanguage,SC.getFixedT,SC.t,SC.exists,SC.setDefaultNamespace,SC.hasLoadedNamespace,SC.loadNamespaces,SC.loadLanguages,SC.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:xS,es:SS}});var CC={translator:{...SC,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 SC.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]};function wC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function TC(e,t){return!e||wC(e)?e:wC(e.default)?e.default:t&&wC(e[t])?e[t]:t&&wC(e[t]?.default)?e[t].default:e}var EC=TC(Rv,`Readable`)||TC(kC.Readable,`Readable`),DC=py,OC=DC.default,kC=OC&&typeof OC==`object`?OC:DC,{translator:AC}=CC,jC={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},MC=R(`div`)(()=>({width:`100%`,cursor:`pointer`})),NC=R(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),PC=R(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${Bh()})`,fontWeight:`normal`,...jC})),FC=R(`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`}})),IC=R(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),LC=class e extends F.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=F.createRef(),this.closedIconRef=F.createRef(),e.defaultProps={...e.defaultProps,showMessage:AC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:AC.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:AC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:AC.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,I.jsx)(MC,{className:e,children:(0,I.jsx)(bS,{show:this.state.show,children:(0,I.jsxs)(NC,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,I.jsxs)(IC,{children:[(0,I.jsx)(Es,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,I.jsx)(FC,{ref:this.openIconRef,children:(0,I.jsx)(Em,{open:t},`correct-open`)})}),(0,I.jsx)(Es,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,I.jsx)(FC,{ref:this.closedIconRef,children:(0,I.jsx)(Em,{open:t},`correct-closed`)})})]}),(0,I.jsx)(EC,{false:!0,children:(0,I.jsx)(PC,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function RC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function zC(e,t){return!e||RC(e)?e:RC(e.default)?e.default:t&&RC(e[t])?e[t]:t&&RC(e[t]?.default)?e[t].default:e}var BC=zC(sv,`UiLayout`)||zC(KC.UiLayout,`UiLayout`),VC=zC(Lv,`PreviewPrompt`)||zC(KC.PreviewPrompt,`PreviewPrompt`),HC=zC(Rv,`Readable`)||zC(KC.Readable,`Readable`),UC=zC(Z_,`Collapsible`)||zC(KC.Collapsible,`Collapsible`),WC=py,GC=WC.default,KC=GC&&typeof GC==`object`?GC:WC,qC=R(BC)({color:Bh(),backgroundColor:cg(),display:`inline-block`}),JC=R(`div`)({width:`100%`,position:`relative`,backgroundColor:cg(),color:Bh()}),YC=R(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),XC=R(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),ZC=R(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),QC=R(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${Jh()} !important`},...n&&{borderColor:`${Wh()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),$C=R(ux)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:Bh()}}}),ew=R(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),tw=R(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),nw=R(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),rw=R(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),iw=R(LC)(({theme:e})=>({color:Bh(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
160
+ https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},eb(),tb},tb.getInterface=ib;var nb=ib.MIN=1,rb=ib.MAX=3;function ib(e){if(!(nb<=e&&e<=rb))throw`Only interface versions between `+nb+` and `+rb+` supported. You specified: `+e;if(e<3&&typeof window<`u`&&!window.jQuery)throw`MathQuill interface version `+e+` requires jQuery 1.5.2+ to be loaded first`;function t(e){if(!e||!e.nodeType)return null;var t=U(e).children(`.mq-root-block`).attr(Ay),r=t&&Vy.byId[t].controller;return r?n[r.KIND_OF_MQ](r):null}var n={};t.L=K,t.R=q,t.saneKeyboardEvents=sb;function r(e,t){for(var r in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:n}),t)if(t.hasOwnProperty(r)){var i=t[r],a=Zy[r];e[r]=a?a(i):i}}t.config=function(e){return r(Xy.p,e),this},t.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;$y[e]=t};var i=n.AbstractMathQuill=G(Qy,function(t){t.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},t.parseLatex=function(e){return this.__controller.parseLatex(e)},t.__mathquillify=function(t){var n=this.__controller,r=n.root,i=n.container;n.createTextarea();var a=i.addClass(t).contents().detach();r.jQ=U(`<span class="mq-root-block"/>`).attr(Ay,r.id).appendTo(i),this.latex(a.text()),this.revert=function(){var t=i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(a);return e>=3?t[0]:t}},t.config=function(e){return r(this.__options,e),this},t.el=function(){return this.__controller.container[0]},t.text=function(){return this.__controller.exportText()},t.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},t.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},t.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}});for(var a in t.prototype=i.prototype,n.EditableField=G(i,function(e,t){e.__mathquillify=function(){return t.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},e.focus=function(){return this.__controller.textarea.focus(),this},e.blur=function(){return this.__controller.textarea.blur(),this},e.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},e.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[K]=e.ends[q]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},e.cmd=function(e){var t=this.__controller.notify(),n=t.cursor;if(/^\\[a-z]+$/i.test(e)&&!n.isTooDeep()){e=e.slice(1);var r=J[e];r&&(e=r(e),n.selection&&e.replaces(n.replaceSelection()),e.createLeftOf(n.show()),this.__controller.scrollHoriz())}else n.parent.write(n,e);return t.blurred&&n.hide().parent.blur(),this},e.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[K];)e.selectLeft();return this},e.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},e.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},e.moveToLeftEnd=function(){return this.moveToDirEnd(K)},e.moveToRightEnd=function(){return this.moveToDirEnd(q)},e.keystroke=function(e){for(var e=e.replace(/^\s+|\s+$/g,``).split(/\s+/),t=0;t<e.length;t+=1)this.__controller.keystroke(e[t],{preventDefault:Ny});return this},e.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},e.dropEmbedded=function(e,t,n){var r=e-U(window).scrollLeft(),i=t-U(window).scrollTop(),a=document.elementFromPoint(r,i);this.__controller.seek(U(a),e,t),sx().setOptions(n).createLeftOf(this.__controller.cursor)},e.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return Dy.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(U(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},e.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),t.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},t.EditableField.prototype=n.EditableField.prototype,Yy)(function(r,i){var a=n[r]=i(n);t[r]=function(n,i){var o=t(n);if(o instanceof a||!n||!n.nodeType)return o;var s=Jy(a.RootBlock(),U(n),Xy());return s.KIND_OF_MQ=r,a(s).__mathquillify(i,e)},t[r].prototype=a.prototype})(a,Yy[a]);return t}tb.noConflict=function(){return window.MathQuill=ab,tb};var ab=window.MathQuill;window.MathQuill=tb;function ob(e){for(var t=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `),n=0;n<t.length;n+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(t[n]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}var Y=G(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}e.init=function(e){this._=e},e.parse=function(e){return this.skip(o)._(``+e,t,r);function t(e,t){return t}},e.or=function(e){Ry(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){return t._(n,r,a);function a(t){return e._(n,r,i)}})},e.then=function(e){var t=this;return n(function(r,i,a){return t._(r,o,a);function o(t,r){var o=e instanceof n?e:e(r);return Ry(`a parser is returned`,o instanceof n),o._(t,i,a)}})},e.many=function(){var e=this;return n(function(t,n,r){for(var i=[];e._(t,a,o););return n(t,i);function a(e,n){return t=e,i.push(n),!0}function o(){return!1}})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){for(var o=[],s=!0,c,l=0;l<e;l+=1)if(s=r._(n,u,d),!s)return a(n,c);for(;l<t&&s;l+=1)s=r._(n,u,f);return i(n,o);function u(e,t){return o.push(t),n=e,!0}function d(e,t){return c=t,n=e,!1}function f(e,t){return!1}})},e.result=function(e){return this.then(a(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return a(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})};var i=this.regex=function(e){Ry(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a=e.exec(n);if(a){var o=a[0];return r(n.slice(o.length),o)}else return i(n,t)})},a=n.succeed=function(e){return n(function(t,n){return n(t,e)})};n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=i(/^[a-z]/i),n.letters=i(/^[a-z]*/i),n.digit=i(/^[0-9]/),n.digits=i(/^[0-9]*/),n.whitespace=i(/^\s+/),n.optWhitespace=i(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)});var o=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),sb=function(){var e={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};function t(t){var n=t.which||t.keyCode,r=e[n],i,a=[];return t.ctrlKey&&a.push(`Ctrl`),t.originalEvent&&t.originalEvent.metaKey&&a.push(`Meta`),t.altKey&&a.push(`Alt`),t.shiftKey&&a.push(`Shift`),i=r||String.fromCharCode(n),!a.length&&!r?i:(a.push(i),a.join(`-`))}return function(e,n){var r=null,i=null,a=Dy(e),o=Dy(n.container||a),s=Ny,c;function l(e){s=e,clearTimeout(c),c=setTimeout(e)}function u(e){l(function(t){s=Ny,clearTimeout(c),e(t)})}o.bind(`keydown keypress input keyup focusout paste`,function(e){s(e)});function d(e){s(),s=Ny,clearTimeout(c),a.val(e),e&&a[0]&&a[0].select&&a[0].select(),f=!!e}var f=!1;function p(){var e=a[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function m(){n.keystroke(t(r),r)}function h(e){r=e,i=null,f&&u(function(e){!(e&&e.type===`focusout`)&&a[0]&&a[0].select&&a[0].select()}),m()}function g(e){r&&i&&m(),i=e,l(v)}function _(e){r&&!i&&l(v)}function v(){if(!p()){var e=a.val();e.length===1?(a.val(``),n.typedText(e)):e&&a[0]&&a[0].select&&a[0].select()}}function y(){r=i=null}function b(e){a.focus(),l(x)}function x(){var e=a.val();a.val(``),e&&n.paste(e)}return o.bind({keydown:h,keypress:g,keyup:_,focusout:y,cut:function(){u(function(){n.cut()})},copy:function(){u(function(){n.copy()})},paste:b}),{select:d}}}();Jy.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),Jy.open(function(e){e.focusBlurEvents=function(){var e=this,t=e.root,n=e.cursor,r;e.textarea.focus(function(){e.blurred=!1,clearTimeout(r),e.container.addClass(`mq-focused`),n.parent||n.insAtRightEnd(t),n.selection?(n.selection.jQ.removeClass(`mq-blur`),e.selectionChanged()):n.show()}).blur(function(){e.blurred=!0,r=setTimeout(function(){t.postOrder(`intentionalBlur`),n.clearSelection().endSelection(),a()}),U(window).bind(`blur`,i)});function i(){clearTimeout(r),n.selection&&n.selection.jQ.addClass(`mq-blur`),a()}function a(){n.hide().parent.blur(),e.container.removeClass(`mq-focused`),U(window).unbind(`blur`,i)}e.blurred=!0,n.hide().parent.blur()}}),Jy.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),Vy.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(K);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(q,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(K,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[q];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[q]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[K];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[K]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[K])for(;r[K];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[q])for(;r[q];)n.selectRight();else n.selectRight();case`Ctrl-Up`:break;case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(q);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[K];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){Ry(`overridden or never called on this node`)}}),Jy.open(function(e){this.onNotify(function(e){(e===`move`||e===`upDown`)&&this.show().clearSelection()}),e.escapeDir=function(e,t,n){zy(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},Zy.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){zy(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(K)},e.moveRight=function(){return this.moveDir(q)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)};function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[q][r]?n.insAtLeftEnd(n[q][r]):n[K][r]?n.insAtRightEnd(n[K][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof Vy&&n.jumpUpDown(e,t),t!==!0))return!1}),e}this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){zy(e);var t=this.cursor,n=t.selection;return this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[K].siblingDeleted&&t[K].siblingDeleted(t.options,q),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,K),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){zy(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===K?Uy(t.parent.ends[K],t[K]).remove():Uy(t[q],t.parent.ends[q]).remove(),t.insAtDirEnd(e,t.parent),t[K].siblingDeleted&&t[K].siblingDeleted(t.options,q),t[q].siblingDeleted&&t[q].siblingDeleted(t.options,K),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(K)},e.deleteForward=function(){return this.deleteDir(q)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t=this.notify(`select`).cursor,n=t.selection;zy(e),t.anticursor||t.startSelection();var r=t[e];r?n&&n.ends[e]===r&&t.anticursor[-e]!==r?r.unselectInto(e,t):r.selectTowards(e,t):t.parent.selectOutOf(e,t),t.clearSelection(),t.select()||t.show()},e.selectLeft=function(){return this.selectDir(K)},e.selectRight=function(){return this.selectDir(q)}});var cb=/[\\]{2,}/gm,lb=(function(){function e(e){var t=fb();return e.adopt(t,0,0),t}function t(e){for(var t=e[0]||fb(),n=1;n<e.length;n+=1)e[n].children().adopt(t,t.ends[q],0);return t}var n=Y.string,r=Y.regex,i=Y.letter,a=Y.any,o=Y.optWhitespace,s=Y.succeed,c=Y.fail,l=i.map(function(e){return xb(e)}),u=r(/^[^${}\\_^]/).map(function(e){return Z(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return Gy[e]&&Gy[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=J[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v})();Jy.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return lb.parse(e).postOrder(`finalizeTree`,Xy.p).join(`latex`).trim()},Zy.maxDepth=function(e){return typeof e==`number`?e:Oy},e.writeLatex=function(e){var t=this.notify(`edit`).cursor,n=Y.all,r=Y.eof,i=lb.skip(r).or(n.result(!1)).parse(e);return i&&!i.isEmpty()&&i.prepareInsertionAt(t)&&(i.children().adopt(t.parent,t[K],t[q]),i.jQize().insertBefore(t.jQ),t[K]=i.ends[q],i.finalizeInsert(t.options,t),i.ends[q][q].siblingCreated&&i.ends[q][q].siblingCreated(t.options,K),i.ends[K][K].siblingCreated&&i.ends[K][K].siblingCreated(t.options,q),t.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){e&&e.replace&&(e=e.replace(cb,`\\`));var t=this.root,n=this.cursor;n.options;var r=t.jQ,i=Y.all,a=Y.eof,o=lb.skip(a).or(i.result(!1)).parse(e);if(t.eachChild(`postOrder`,`dispose`),t.ends[K]=t.ends[q]=0,o&&o.prepareInsertionAt(n)){o.children().adopt(t,0,0);var s=o.join(`html`);r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)}else r.empty();delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t=this.root,n=this.cursor;t.jQ.children().slice(1).remove(),t.eachChild(`postOrder`,`dispose`),t.ends[K]=t.ends[q]=0,delete n.selection,n.show().insAtRightEnd(t);var r=Y.regex,i=Y.string,a=Y.eof,o=Y.all,s=i(`$`).then(lb).skip(i(`$`).or(a)).map(function(e){var t=_b(n);t.createBlocks();var r=t.ends[K];return e.children().adopt(r,0,0),t}),c=i(`\\$`).result(`$`).or(r(/^[^$]/)).map(Z),l=s.or(c).many().skip(a).or(o.result(!1)).parse(e);if(l){for(var u=0;u<l.length;u+=1)l[u].adopt(t,t.ends[q],0);t.jQize().appendTo(t.jQ),t.finalizeInsert(n.options)}}}),Jy.open(function(e){Xy.p.ignoreNextMousedown=Ny,e.delegateMouseEvents=function(){var e=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(t){var n=U(t.target).closest(`.mq-root-block`),r=Vy.byId[n.attr(Ay)||e.attr(Ay)].controller,i=r.cursor;i.blink;var a=r.textareaSpan,o=r.textarea;if(t.preventDefault(),t.target.unselectable=!0,i.options.ignoreNextMousedown(t))return;i.options.ignoreNextMousedown=Ny;function s(e){i.anticursor||i.startSelection(),r.seek(U(e.target),e.pageX,e.pageY).cursor.select(),e.target&&U(e.target.ownerDocument).unbind(`mousemove`,c)}function c(e){return delete e.target,s(e)}function l(e){!i.selection&&!r.editable&&a.detach(),n.unbind(`mousemove`,s),U(e.target.ownerDocument).unbind(`mousemove`,c).unbind(`mouseup`,l)}if(a.parent().length===0)return!1;r.blurred&&(r.editable||n.prepend(a),document.body.focus(),o.focus()),t.preventDefault(),t.target.unselectable=!0,i.show(),r.seek(U(t.target),t.pageX,t.pageY).cursor.startSelection(),n.mousemove(s),U(t.target.ownerDocument).mousemove(c).mouseup(l)})}}),Jy.open(function(e){e.seek=function(e,t,n){var r=this.notify(`select`).cursor;if(e){var i=e.attr(Ay)||e.attr(ky);if(!i){var a=e.parent();i=a.attr(Ay)||a.attr(ky)}}var o=i&&Vy.byId[i]?Vy.byId[i]:this.root;return r.clearSelection().show(),o.seek(t,r),this.scrollHoriz(),this}}),Jy.open(function(e){e.scrollHoriz=function(){var e=this.cursor,t=e.selection,n=this.root.jQ[0].getBoundingClientRect();if(t){var r=t.jQ[0].getBoundingClientRect(),i=r.left-(n.left+20),a=r.right-(n.right-20);if(t.ends[K]===e[q])if(i<0)var o=i;else if(a>0)if(r.left-a<n.left+20)var o=i;else var o=a;else return;else if(a>0)var o=a;else if(i<0)if(r.right-i>n.right-20)var o=a;else var o=i;else return}else{var s=e.jQ[0].getBoundingClientRect().left;if(s>n.right-20)var o=s-(n.right-20);else if(s<n.left+20)var o=s-(n.left+20);else return}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+o},100)}}),Jy.open(function(e){Xy.p.substituteTextarea=function(){return U(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e=this.textareaSpan=U(`<span class="mq-textarea"></span>`),t=this.options.substituteTextarea();if(!t.nodeType)throw`substituteTextarea() must return a DOM element, got `+t;t=this.textarea=U(t).appendTo(e);var n=this;n.cursor.selectionChanged=function(){n.selectionChanged()}},e.selectionChanged=function(){var e=this;Fb(e.container[0]),e.textareaSelectionTimeout===Oy&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=Oy;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){var e=this;e.root;var t=e.cursor,n=e.textarea,r=e.textareaSpan;this.container.prepend(Dy(`<span class="mq-selectable">`).text(`$`+e.exportLatex()+`$`)),e.blurred=!0,n.bind(`cut paste`,!1).bind(`copy`,function(){e.setTextareaSelection()}).focus(function(){e.blurred=!1}).blur(function(){t.selection&&t.selection.clear(),setTimeout(i)});function i(){r.detach(),e.blurred=!0}e.selectFn=function(e){n.val(e),e&&n.select()}},Xy.p.substituteKeyboardEvents=sb,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
161
+ `)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}});var ub=G(Vy,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[q].siblingCreated&&n[q].siblingCreated(e,K),n[K].siblingCreated&&n[K].siblingCreated(e,q),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t=e.options.maxDepth;if(t!==Oy){var n=e.depth();if(n>t)return!1;this.removeNodesDeeperThan(t-n)}return!0},e.removeNodesDeeperThan=function(e){for(var t=0,n=[[this,t]],r;n.length;)r=n.shift(),r[0].children().each(function(i){var a=+(i instanceof fb);t=r[1]+a,t<=e?n.push([i,t]):(a?i.children():i).remove()})}}),X=G(ub,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=lb.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[q],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[K],0,0),r.jQ.appendTo(n.ends[K].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){for(var e=this,t=e.numBlocks(),n=e.blocks=Array(t),r=0;r<t;r+=1)(n[r]=fb()).adopt(e,e.ends[q],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[K],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return qy(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[K]=e.jQ.offset().left,t[q]=t[K]+e.jQ.outerWidth(),t}var r=this,i=n(r);if(e<i[K])return t.insLeftOf(r);if(e>i[q])return t.insRightOf(r);var a=i[K];r.eachChild(function(o){var s=n(o);if(e<s[K])return e-a<s[K]-e?o[K]?t.insAtRightEnd(o[K]):t.insLeftOf(r):t.insAtLeftEnd(o),!1;if(e>s[q])o[q]?a=s[q]:i[q]-e<e-s[q]?t.insRightOf(r):t.insAtRightEnd(o);else return o.seek(e,t),!1})},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e=this,t=e.blocks,n=` mathquill-command-id=`+e.id,r=e.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);Ry(`no unmatched angle brackets`,r.join(``)===this.htmlTemplate);for(var i=0,a=r[0];a;i+=1,a=r[i])if(a.slice(-2)===`/>`)r[i]=a.slice(0,-2)+n+`/>`;else if(a.charAt(0)===`<`){Ry(`not an unmatched top-level close tag`,a.charAt(1)!==`/`),r[i]=a.slice(0,-1)+n+`>`;var o=1;do i+=1,a=r[i],Ry(`no missing close tags`,a),a.slice(0,2)===`</`?--o:a.charAt(0)===`<`&&a.slice(-2)!==`/>`&&(o+=1);while(o>0)}return r.join(``).replace(/>&(\d+)/g,function(e,n){return` mathquill-block-id=`+t[n].id+`>`+t[n].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),db=G(X,function(e,t){e.init=function(e,n,r){r||=e&&e.length>1?e.slice(1):e,t.init.call(this,e,n,[r])},e.parser=function(){return Y.succeed(this)},e.numBlocks=function(){return 0},e.replaces=function(e){e.remove()},e.createBlocks=Ny,e.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},e.deleteTowards=function(e,t){t[e]=this.remove()[e]},e.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},e.latex=function(){return this.ctrlSeq},e.text=function(){return this.textTemplate},e.placeCursor=Ny,e.isEmpty=function(){return!0}}),Z=G(db,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),Q=G(db,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),fb=G(ub,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[K]===this.ends[q]&&this.ends[K]!==0?this.ends[K].text():this.join(`text`)},e.keystroke=function(e,n,r){if(r.options.spaceBehavesLikeTab&&(e===`Spacebar`||e===`Shift-Spacebar`)){n.preventDefault(),r.escapeDir(e===`Shift-Spacebar`?K:q,e,n);return}return t.keystroke.apply(this,arguments)},e.moveOutOf=function(e,t,n){!(n&&this.parent[n+`Into`])&&this[e]?t.insAtDirEnd(-e,this[e]):t.insDirOf(e,this.parent)},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[q];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[K].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[K];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?xb(e):/^\d$/.test(e)?yb(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?J[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?J[`×`](e):(n=Wy[e]||J[e])?n(e):Z(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}});Xy.p.mouseEvents=!0,Yy.StaticMath=function(e){return G(e.AbstractMathQuill,function(t,n){this.RootBlock=fb,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})};var pb=G(fb,ob);Yy.MathField=function(e){return G(e.EditableField,function(e,t){this.RootBlock=pb,e.__mathquillify=function(e,n){return this.config(e),n>1&&(this.__controller.root.reflow=Ny),t.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})};var mb=G(Vy,function(e,t){e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof Uy?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[K]&&this.ends[K].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n=this;if(t.createLeftOf.call(this,e),n[q].siblingCreated&&n[q].siblingCreated(e.options,K),n[K].siblingCreated&&n[K].siblingCreated(e.options,q),n.bubble(`reflow`),e.insAtRightEnd(n),n.replacedText)for(var r=0;r<n.replacedText.length;r+=1)n.write(e,n.replacedText.charAt(r))},e.parser=function(){var e=this,t=Y.string,n=Y.regex;return Y.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?Uy():(hb(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=X.prototype.selectTowards,e.deleteTowards=X.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){if(e.show().deleteSelection(),n!==`$`)e[K]?(e[K].appendText(n),this.bubble(`reflow`)):hb(n).createLeftOf(e);else if(this.isEmpty())e.insRightOf(this),Z(`\\$`,`$`).createLeftOf(e);else if(!e[q])e.insRightOf(this);else if(!e[K])e.insLeftOf(this);else{var r=mb(),i=this.ends[K];i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)}},e.seek=function(e,t){t.hide();var r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i);a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a));for(var o=e-t.show().offset().left,s=o&&o<0?K:q,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;if(s*o<-s*c&&t[-s].moveTowards(-s,t),!t.anticursor)this.anticursorPosition=t[K]&&t[K].text.length;else if(t.anticursor.parent===this){var l=t[K]&&t[K].text.length;if(this.anticursorPosition===l)t.anticursor=By.copy(t);else{if(this.anticursorPosition<l){var u=t[K].splitRight(this.anticursorPosition);t[K]=u}else var u=t[q].splitRight(this.anticursorPosition-l);t.anticursor=By(this,u[K],u)}}},e.blur=function(e){fb.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[K]===this?e[K]=this[K]:e[q]===this&&(e[q]=this[q])):n(this))};function n(e){e.jQ[0].normalize();var t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0];t||={data:``},Ry(`only node in TextBlock span is Text node`,t.nodeType===3);var n=hb(t.data);return n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.focus=fb.prototype.focus}),hb=G(Vy,function(e,t){e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=U(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){zy(t),t===q?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=hb(this.text.slice(e)).adopt(this.parent,this,this[q]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t};function n(e,t){return t.charAt(e===K?0:-1+t.length)}e.moveTowards=function(e,t){zy(e);var r=n(-e,this.text),i=this[-e];return i?i.insTextAtDirEnd(r,e):hb(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===q?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){zy(e);var r=t.anticursor,i=n(-e,this.text);if(r[e]===this){var a=hb(i).createDir(e,t);r[e]=a,t.insDirOf(e,a)}else{var o=this[-e];if(o)o.insTextAtDirEnd(i,e);else{var a=hb(i).createDir(-e,t);a.jQ.insDirOf(-e,t.selection.jQ)}this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])}return this.deleteTowards(e,t)}});J.text=J.textnormal=J.textrm=J.textup=J.textmd=mb;function gb(e,t,n){return G(mb,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}J.em=J.italic=J.italics=J.emph=J.textit=J.textsl=gb(`\\textit`,`i`,`class="mq-text-mode"`),J.strong=J.bold=J.textbf=gb(`\\textbf`,`b`,`class="mq-text-mode"`),J.sf=J.textsf=gb(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),J.tt=J.texttt=gb(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),J.textsc=gb(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),J.uppercase=gb(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),J.lowercase=gb(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`);var _b=G(X,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[K].cursor=this.cursor,this.ends[K].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),Z(`\\$`,`$`).createLeftOf(e.show())):e[q]?e[K]?fb.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):fb.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[K].latex()+`$`}}),vb=G(pb,function(e,t){e.keystroke=function(e){if(!(e===`Spacebar`||e===`Shift-Spacebar`))return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)_b(e).createLeftOf(e);else{var n;t===`<`?n=`&lt;`:t===`>`&&(n=`&gt;`),Z(t,n).createLeftOf(e)}}});Yy.TextField=function(e){return G(e.EditableField,function(e,t){this.RootBlock=vb,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},Wy[`\\`]=G(X,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[K].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[K].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[K].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?Z(t).createLeftOf(e):(this.parent.renderCommand(e),(t!==`\\`||!this.isEmpty())&&e.parent.write(e,t))},this.ends[K].keystroke=function(e,n,r){if(e===`Tab`||e===`Enter`||e===`Spacebar`){this.parent.renderCommand(r.cursor),n.preventDefault();return}return t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return U(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[K].latex()+` `},e.renderCommand=function(e){this.jQ=this.jQ.last(),this.remove(),this[q]?e.insLeftOf(this[q]):e.insAtRightEnd(this.parent);var t=this.ends[K].latex();t||=` `;var n=J[t];n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=mb(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),J[`∉`]=J.notin=W(Q,`\\notin `,`&#8713;`),J[`≅`]=J.cong=W(Q,`\\cong `,`&#8773;`),J[`≡`]=J.equiv=W(Q,`\\equiv `,`&#8801;`),J[`⊕`]=J.oplus=W(Q,`\\oplus `,`&#8853;`),J[`⊗`]=J.otimes=W(Q,`\\otimes `,`&#8855;`),J[`≠`]=J.ne=J.neq=W(Q,`\\ne `,`&ne;`),J[`≇`]=J.ncong=W(Q,`\\ncong `,`&ncong;`),J[`∗`]=J.ast=J.star=J.loast=J.lowast=W(Q,`\\ast `,`&lowast;`),J.therefor=J.therefore=W(Q,`\\therefore `,`&there4;`),J.cuz=J.because=W(Q,`\\because `,`&#8757;`),J.prop=J.propto=W(Q,`\\propto `,`&prop;`),J[`≈`]=J.asymp=J.approx=W(Q,`\\approx `,`&asymp;`),J[`≉`]=J.nasymp=J.napprox=W(Q,`\\napprox `,`&nap;`),J.isin=J.in=W(Q,`\\in `,`&isin;`),J.ni=J.contains=W(Q,`\\ni `,`&ni;`),J.notni=J.niton=J.notcontains=J.doesnotcontain=Gy[`\\not\\ni`]=W(Q,`\\not\\ni `,`&#8716;`),J.sub=J.subset=W(Q,`\\subset `,`&sub;`),J.sup=J.supset=J.superset=W(Q,`\\supset `,`&sup;`),J.nsub=J.notsub=J.nsubset=J.notsubset=Gy[`\\not\\subset`]=W(Q,`\\not\\subset `,`&#8836;`),J.nsup=J.notsup=J.nsupset=J.notsupset=J.nsuperset=J.notsuperset=Gy[`\\not\\supset`]=W(Q,`\\not\\supset `,`&#8837;`),J.sube=J.subeq=J.subsete=J.subseteq=W(Q,`\\subseteq `,`&sube;`),J.supe=J.supeq=J.supsete=J.supseteq=J.supersete=J.superseteq=W(Q,`\\supseteq `,`&supe;`),J.nsube=J.nsubeq=J.notsube=J.notsubeq=J.nsubsete=J.nsubseteq=J.notsubsete=J.notsubseteq=Gy[`\\not\\subseteq`]=W(Q,`\\not\\subseteq `,`&#8840;`),J.nsupe=J.nsupeq=J.notsupe=J.notsupeq=J.nsupsete=J.nsupseteq=J.notsupsete=J.notsupseteq=J.nsupersete=J.nsuperseteq=J.notsupersete=J.notsuperseteq=Gy[`\\not\\supseteq`]=W(Q,`\\not\\supseteq `,`&#8841;`),J.N=J.naturals=J.Naturals=W(Z,`\\mathbb{N}`,`&#8469;`),J.P=J.primes=J.Primes=J.projective=J.Projective=J.probability=J.Probability=W(Z,`\\mathbb{P}`,`&#8473;`),J.Z=J.integers=J.Integers=W(Z,`\\mathbb{Z}`,`&#8484;`),J.Q=J.rationals=J.Rationals=W(Z,`\\mathbb{Q}`,`&#8474;`),J.R=J.reals=J.Reals=W(Z,`\\mathbb{R}`,`&#8477;`),J.C=J.complex=J.Complex=J.complexes=J.Complexes=J.complexplane=J.Complexplane=J.ComplexPlane=W(Z,`\\mathbb{C}`,`&#8450;`),J.H=J.Hamiltonian=J.quaternions=J.Quaternions=W(Z,`\\mathbb{H}`,`&#8461;`),J.quad=J.emsp=W(Z,`\\quad `,` `),J.qquad=W(Z,`\\qquad `,` `),J.diamond=W(Z,`\\diamond `,`&#9671;`),J.bigtriangleup=W(Z,`\\bigtriangleup `,`&#9651;`),J.ominus=W(Z,`\\ominus `,`&#8854;`),J.uplus=W(Z,`\\uplus `,`&#8846;`),J.bigtriangledown=W(Z,`\\bigtriangledown `,`&#9661;`),J.sqcap=W(Z,`\\sqcap `,`&#8851;`),J.triangleleft=W(Z,`\\triangleleft `,`&#8882;`),J.sqcup=W(Z,`\\sqcup `,`&#8852;`),J.triangleright=W(Z,`\\triangleright `,`&#8883;`),J.odot=J.circledot=W(Z,`\\odot `,`&#8857;`),J.bigcirc=W(Z,`\\bigcirc `,`&#9711;`),J.dagger=W(Z,`\\dagger `,`&#0134;`),J.ddagger=W(Z,`\\ddagger `,`&#135;`),J.wr=W(Z,`\\wr `,`&#8768;`),J.amalg=W(Z,`\\amalg `,`&#8720;`),J.models=W(Z,`\\models `,`&#8872;`),J.prec=W(Z,`\\prec `,`&#8826;`),J.succ=W(Z,`\\succ `,`&#8827;`),J.preceq=W(Z,`\\preceq `,`&#8828;`),J.succeq=W(Z,`\\succeq `,`&#8829;`),J.simeq=W(Z,`\\simeq `,`&#8771;`),J.mid=W(Z,`\\mid `,`&#8739;`),J.ll=W(Z,`\\ll `,`&#8810;`),J.gg=W(Z,`\\gg `,`&#8811;`),J.parallel=W(Z,`\\parallel `,`&#8741;`),J.nparallel=W(Z,`\\nparallel `,`&#8742;`),J.bowtie=W(Z,`\\bowtie `,`&#8904;`),J.sqsubset=W(Z,`\\sqsubset `,`&#8847;`),J.sqsupset=W(Z,`\\sqsupset `,`&#8848;`),J.smile=W(Z,`\\smile `,`&#8995;`),J.sqsubseteq=W(Z,`\\sqsubseteq `,`&#8849;`),J.sqsupseteq=W(Z,`\\sqsupseteq `,`&#8850;`),J.doteq=W(Z,`\\doteq `,`&#8784;`),J.frown=W(Z,`\\frown `,`&#8994;`),J.vdash=W(Z,`\\vdash `,`&#8870;`),J.dashv=W(Z,`\\dashv `,`&#8867;`),J.nless=W(Z,`\\nless `,`&#8814;`),J.ngtr=W(Z,`\\ngtr `,`&#8815;`),J.longleftarrow=W(Z,`\\longleftarrow `,`&#8592;`),J.longrightarrow=W(Z,`\\longrightarrow `,`&#8594;`),J.Longleftarrow=W(Z,`\\Longleftarrow `,`&#8656;`),J.Longrightarrow=W(Z,`\\Longrightarrow `,`&#8658;`),J.longleftrightarrow=W(Z,`\\longleftrightarrow `,`&#8596;`),J.updownarrow=W(Z,`\\updownarrow `,`&#8597;`),J.Longleftrightarrow=W(Z,`\\Longleftrightarrow `,`&#8660;`),J.Updownarrow=W(Z,`\\Updownarrow `,`&#8661;`),J.mapsto=W(Z,`\\mapsto `,`&#8614;`),J.nearrow=W(Z,`\\nearrow `,`&#8599;`),J.hookleftarrow=W(Z,`\\hookleftarrow `,`&#8617;`),J.hookrightarrow=W(Z,`\\hookrightarrow `,`&#8618;`),J.searrow=W(Z,`\\searrow `,`&#8600;`),J.leftharpoonup=W(Z,`\\leftharpoonup `,`&#8636;`),J.rightharpoonup=W(Z,`\\rightharpoonup `,`&#8640;`),J.swarrow=W(Z,`\\swarrow `,`&#8601;`),J.leftharpoondown=W(Z,`\\leftharpoondown `,`&#8637;`),J.rightharpoondown=W(Z,`\\rightharpoondown `,`&#8641;`),J.nwarrow=W(Z,`\\nwarrow `,`&#8598;`),J.ldots=W(Z,`\\ldots `,`&#8230;`),J.cdots=W(Z,`\\cdots `,`&#8943;`),J.vdots=W(Z,`\\vdots `,`&#8942;`),J.ddots=W(Z,`\\ddots `,`&#8945;`),J.surd=W(Z,`\\surd `,`&#8730;`),J.triangle=W(Z,`\\triangle `,`&#9651;`),J.ell=W(Z,`\\ell `,`&#8467;`),J.top=W(Z,`\\top `,`&#8868;`),J.flat=W(Z,`\\flat `,`&#9837;`),J.natural=W(Z,`\\natural `,`&#9838;`),J.sharp=W(Z,`\\sharp `,`&#9839;`),J.wp=W(Z,`\\wp `,`&#8472;`),J.bot=W(Z,`\\bot `,`&#8869;`),J.clubsuit=W(Z,`\\clubsuit `,`&#9827;`),J.diamondsuit=W(Z,`\\diamondsuit `,`&#9826;`),J.heartsuit=W(Z,`\\heartsuit `,`&#9825;`),J.spadesuit=W(Z,`\\spadesuit `,`&#9824;`),J.circledot=W(Z,`\\circledot `,`&#8857;`),J.middot=W(Z,`\\middot `,`&middot;`),J.dottedsquare=W(Z,`\\dottedsquare `,`&#11034;`),J.square=W(Z,`\\square `,`&#11036;`),J.rectangle=W(Z,`\\rectangle `,`&#9647;`),J.oint=W(Z,`\\oint `,`&#8750;`),J.bigcap=W(Z,`\\bigcap `,`&#8745;`),J.bigcup=W(Z,`\\bigcup `,`&#8746;`),J.bigsqcup=W(Z,`\\bigsqcup `,`&#8852;`),J.bigvee=W(Z,`\\bigvee `,`&#8744;`),J.bigwedge=W(Z,`\\bigwedge `,`&#8743;`),J.bigodot=W(Z,`\\bigodot `,`&#8857;`),J.bigotimes=W(Z,`\\bigotimes `,`&#8855;`),J.bigoplus=W(Z,`\\bigoplus `,`&#8853;`),J.biguplus=W(Z,`\\biguplus `,`&#8846;`),J.lfloor=W(Z,`\\lfloor `,`&#8970;`),J.rfloor=W(Z,`\\rfloor `,`&#8971;`),J.lceil=W(Z,`\\lceil `,`&#8968;`),J.rceil=W(Z,`\\rceil `,`&#8969;`),J.opencurlybrace=J.lbrace=W(Z,`\\lbrace `,`{`),J.closecurlybrace=J.rbrace=W(Z,`\\rbrace `,`}`),J.lbrack=W(Z,`[`),J.rbrack=W(Z,`]`),J.mug=W(Z,`\\mug `,`µg`),J.mus=W(Z,`\\mus `,`µs`),J.mum=W(Z,`\\mum `,`µm`),J.muL=W(Z,`\\muL `,`µL`),J.slash=W(Z,`/`),J.vert=W(Z,`|`),J.perp=J.perpendicular=W(Z,`\\perp `,`&perp;`),J.nabla=J.del=W(Z,`\\nabla `,`&nabla;`),J.hbar=W(Z,`\\hbar `,`&#8463;`),J.AA=J.Angstrom=J.angstrom=W(Z,`\\text\\AA `,`&#8491;`),J.ring=J.circ=J.circle=W(Z,`\\circ `,`&#8728;`),J.bull=J.bullet=W(Z,`\\bullet `,`&bull;`),J.setminus=J.smallsetminus=W(Z,`\\setminus `,`&#8726;`),J.not=J[`¬`]=J.neg=W(Z,`\\neg `,`&not;`),J[`…`]=J.dots=J.ellip=J.hellip=J.ellipsis=J.hellipsis=W(Z,`\\dots `,`&hellip;`),J.converges=J.darr=J.dnarr=J.dnarrow=J.downarrow=W(Z,`\\downarrow `,`&darr;`),J.dArr=J.dnArr=J.dnArrow=J.Downarrow=W(Z,`\\Downarrow `,`&dArr;`),J.diverges=J.uarr=J.uparrow=W(Z,`\\uparrow `,`&uarr;`),J.uArr=J.Uparrow=W(Z,`\\Uparrow `,`&uArr;`),J.to=W(Q,`\\to `,`&rarr;`),J.rarr=J.rightarrow=W(Z,`\\rightarrow `,`&rarr;`),J.implies=W(Q,`\\Rightarrow `,`&rArr;`),J.rArr=J.Rightarrow=W(Z,`\\Rightarrow `,`&rArr;`),J.gets=W(Q,`\\gets `,`&larr;`),J.larr=J.leftarrow=W(Z,`\\leftarrow `,`&larr;`),J.impliedby=W(Q,`\\Leftarrow `,`&lArr;`),J.lArr=J.Leftarrow=W(Z,`\\Leftarrow `,`&lArr;`),J.harr=J.lrarr=J.leftrightarrow=W(Z,`\\leftrightarrow `,`&harr;`),J.iff=W(Q,`\\Leftrightarrow `,`&hArr;`),J.hArr=J.lrArr=J.Leftrightarrow=W(Z,`\\Leftrightarrow `,`&hArr;`),J.Re=J.Real=J.real=W(Z,`\\Re `,`&real;`),J.Im=J.imag=J.image=J.imagin=J.imaginary=J.Imaginary=W(Z,`\\Im `,`&image;`),J.part=J.partial=W(Z,`\\partial `,`&part;`),J.infty=J.infin=J.infinity=W(Z,`\\infty `,`&infin;`),J.pounds=W(Z,`\\pounds `,`&pound;`),J.alef=J.alefsym=J.aleph=J.alephsym=W(Z,`\\aleph `,`&alefsym;`),J.xist=J.xists=J.exist=J.exists=W(Z,`\\exists `,`&exist;`),J.nexists=J.nexist=W(Z,`\\nexists `,`&#8708;`),J.and=J.land=J.wedge=W(Q,`\\wedge `,`&and;`),J.or=J.lor=J.vee=W(Q,`\\vee `,`&or;`),J.o=J.O=J.empty=J.emptyset=J.oslash=J.Oslash=J.nothing=J.varnothing=W(Q,`\\varnothing `,`&empty;`),J.cup=J.union=W(Q,`\\cup `,`&cup;`),J.cap=J.intersect=J.intersection=W(Q,`\\cap `,`&cap;`),J.deg=J.degree=W(Z,`\\degree `,`&deg;`),J.ang=J.angle=W(Z,`\\angle `,`&ang;`),J.measuredangle=W(Z,`\\measuredangle `,`m&ang;`);var yb=G(Z,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[K]instanceof bb&&e[K].isItalic!==!1||e[K]instanceof Yb&&e[K][K]instanceof bb&&e[K][K].isItalic!==!1)?(J._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),bb=G(db,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(this[K]&&!(this[K]instanceof bb)&&!(this[K]instanceof Q)&&this[K].ctrlSeq!==`\\ `&&(e=`*`+e),this[q]&&!(this[q]instanceof Q)&&!(this[q]instanceof Yb)&&(e+=`*`)),e}});Xy.p.autoCommands={_maxLength:0},Zy.autoCommands=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(J[a]===Tb)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=My(r,a.length)}return n._maxLength=r,n};var xb=G(bb,function(e,t){e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments);var n=e.options.autoCommands,r=n._maxLength;if(r>0){for(var i=``,a=this,o=0;a instanceof xb&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[K],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(var o=1,a=this;o<i.length;o+=1,a=a[K]);return Uy(a,this).remove(),e[K]=a[K],J[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==K&&this[q]instanceof xb||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t=e.autoOperatorNames;if(t._maxLength!==0){for(var r=this.letter,i=this[K];i instanceof xb;i=i[K])r=i.letter+r;for(var a=this[q];a instanceof xb;a=a[q])r+=a.letter;Uy(i[q]||this.parent.ends[K],a[K]||this.parent.ends[q]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});outer:for(var o=0,s=i[q]||this.parent.ends[K];o<r.length;o+=1,s=s[q])for(var c=jy(t._maxLength,r.length-o);c>0;--c){var l=r.slice(o,o+c);if(t.hasOwnProperty(l)){for(var u=0,d=s;u<c;u+=1,d=d[q]){d.italicize(!1);var f=d}var p=Sb.hasOwnProperty(l);if(s.ctrlSeq=(p?`\\`:`\\operatorname{`)+s.ctrlSeq,f.ctrlSeq+=p?` `:`}`,wb.hasOwnProperty(l)&&f[K][K][K].jQ.addClass(`mq-last`),n(s[K])||s.jQ.addClass(`mq-first`),!n(f[q]))if(f[q]instanceof Yb){var m=f[q];(m.siblingCreated=m.siblingDeleted=function(){m.jQ.toggleClass(`mq-after-operator-name`,!(m[q]instanceof ix))})()}else f.jQ.toggleClass(`mq-last`,!(f[q]instanceof ix));o+=c-1,s=f;continue outer}}}};function n(e){return!e||e instanceof Q||e instanceof Qb}}),Sb={},Cb=Xy.p.autoOperatorNames={_maxLength:9},wb={limsup:1,liminf:1,projlim:1,injlim:1};(function(){for(var e=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `),t=0;t<e.length;t+=1)Sb[e[t]]=Cb[e[t]]=1;for(var n=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),t=0;t<n.length;t+=1)Sb[n[t]]=1;for(var r=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),t=0;t<r.length;t+=1)Cb[r[t]]=Cb[`arc`+r[t]]=Cb[r[t]+`h`]=Cb[`ar`+r[t]+`h`]=Cb[`arc`+r[t]+`h`]=1;for(var i=`gcf hcf lcm proj span`.split(` `),t=0;t<i.length;t+=1)Cb[i[t]]=1})(),Zy.autoOperatorNames=function(e){if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(var t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){var a=t[i];if(a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=My(r,a.length)}return n._maxLength=r,n};var Tb=G(db,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){for(var t=this.ctrlSeq,n=0;n<t.length;n+=1)xb(t.charAt(n)).createLeftOf(e)},e.parser=function(){for(var e=this.ctrlSeq,t=fb(),n=0;n<e.length;n+=1)xb(e.charAt(n)).adopt(t,t.ends[q],0);return Y.succeed(t.children())}});for(var Eb in Cb)Cb.hasOwnProperty(Eb)&&(J[Eb]=Tb);J.operatorname=G(X,function(e){e.createLeftOf=Ny,e.numBlocks=function(){return 1},e.parser=function(){return lb.block.map(function(e){return e.children()})}}),J.f=G(xb,function(e,t){e.init=function(){db.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),J[` `]=J.space=W(Z,`\\ `,`&nbsp;`),J[`'`]=J.prime=W(Z,`'`,`&prime;`),J[`″`]=J.dprime=W(Z,`″`,`&Prime;`),J[`"`]=J.doublePrime=W(Z,`"`,`&Prime;`),J.backslash=W(Z,`\\backslash `,`\\`),Wy[`\\`]||=J.backslash,J.$=W(Z,`\\$`,`$`);var Db=G(db,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}});J[`@`]=Db,J[`&`]=W(Db,`\\&`,`&amp;`),J[`%`]=W(Db,`\\%`,`%`),J.alpha=J.beta=J.gamma=J.delta=J.zeta=J.eta=J.theta=J.iota=J.kappa=J.mu=J.nu=J.xi=J.rho=J.sigma=J.tau=J.chi=J.psi=J.omega=G(bb,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),J.phi=W(bb,`\\phi `,`&#981;`),J.phiv=J.varphi=W(bb,`\\varphi `,`&phi;`),J.epsilon=W(bb,`\\epsilon `,`&#1013;`),J.epsiv=J.varepsilon=W(bb,`\\varepsilon `,`&epsilon;`),J.piv=J.varpi=W(bb,`\\varpi `,`&piv;`),J.sigmaf=J.sigmav=J.varsigma=W(bb,`\\varsigma `,`&sigmaf;`),J.thetav=J.vartheta=J.thetasym=W(bb,`\\vartheta `,`&thetasym;`),J.upsilon=J.upsi=W(bb,`\\upsilon `,`&upsilon;`),J.gammad=J.Gammad=J.digamma=W(bb,`\\digamma `,`&#989;`),J.kappav=J.varkappa=W(bb,`\\varkappa `,`&#1008;`),J.rhov=J.varrho=W(bb,`\\varrho `,`&#1009;`),J.pi=J.π=W(Db,`\\pi `,`&pi;`),J.lambda=W(Db,`\\lambda `,`&lambda;`),J.Upsilon=J.Upsi=J.upsih=J.Upsih=W(db,`\\Upsilon `,`<var style="font-family: serif">&upsih;</var>`),J.Gamma=J.Delta=J.Theta=J.Lambda=J.Xi=J.Pi=J.Sigma=J.Phi=J.Psi=J.Omega=G(Z,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),J.forall=J[`∀`]=W(Z,`\\forall `,`&#8704;`);var Ob=G(X,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=lb.parse(this.latex);t.children().adopt(e.parent,e[K],e[q]),e[K]=t.ends[q],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[q][q].siblingCreated&&t.ends[q][q].siblingCreated(e.options,K),t.ends[K][K].siblingCreated&&t.ends[K][K].siblingCreated(e.options,q),e.parent.bubble(`reflow`)},e.parser=function(){var e=lb.parse(this.latex).children();return Y.succeed(e)}});J[`¹`]=W(Ob,`^1`),J[`²`]=W(Ob,`^2`),J[`³`]=W(Ob,`^3`),J[`¼`]=W(Ob,`\\frac14`),J[`½`]=W(Ob,`\\frac12`),J[`¾`]=W(Ob,`\\frac34`);var kb=G(Q,function(e){e.init=Z.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){if(e[K]){if(e[K]instanceof Q||/^[,;:\(\[]$/.test(e[K].ctrlSeq))return``}else if(e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock())return n(e.parent.parent);else return``;return`mq-binary-operator`}if(t!==q)return this.jQ[0].className=n(this),this}});J[`+`]=W(kb,`+`,`+`),J[`–`]=J[`-`]=W(kb,`-`,`&minus;`),J[`±`]=J.pm=J.plusmn=J.plusminus=W(kb,`\\pm `,`&plusmn;`),J.mp=J.mnplus=J.minusplus=W(kb,`\\mp `,`&#8723;`),Wy[`*`]=J.sdot=J.cdot=W(Q,`\\cdot `,`&middot;`,`*`);var Ab=G(Q,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===K&&!this.strict){this.swap(!0),this.bubble(`reflow`);return}t.deleteTowards.apply(this,arguments)}}),jb={ctrlSeq:`\\le `,html:`&le;`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`&lt;`,textStrict:`<`},Mb={ctrlSeq:`\\ge `,html:`&ge;`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`&gt;`,textStrict:`>`};J[`<`]=J.lt=W(Ab,jb,!0),J[`>`]=J.gt=W(Ab,Mb,!0),J[`≤`]=J.le=J.leq=W(Ab,jb,!1),J[`≥`]=J.ge=J.geq=W(Ab,Mb,!1);var Nb=G(Q,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[K]instanceof Ab&&e[K].strict){e[K].swap(!1),e[K].bubble(`reflow`);return}t.createLeftOf.apply(this,arguments)}});J[`=`]=Nb,J[`×`]=J.times=W(Q,`\\times `,`&times;`,`[x]`),J[`÷`]=J.div=J.divide=J.divides=W(Q,`\\div `,`&divide;`,`[/]`),Wy[`~`]=J.sim=W(Q,`\\sim `,`~`,`~`),Wy[`≁`]=J.nsim=W(Q,`\\nsim `,`≁`,`≁`),J.complement=J[`∁`]=W(Z,`\\complement `,`&#8705;`),J.nexists=J[`∄`]=W(Z,`\\nexists `,`&#8708;`),J.sphericalangle=J[`∢`]=W(Z,`\\sphericalangle `,`&#8738;`),J.iint=J[`∬`]=W(Z,`\\iint `,`&#8748;`),J.iiint=J[`∭`]=W(Z,`\\iiint `,`&#8749;`),J.oiint=J[`∯`]=W(Z,`\\oiint `,`&#8751;`),J.oiiint=J[`∰`]=W(Z,`\\oiiint `,`&#8752;`),J.backsim=J[`∽`]=W(Z,`\\backsim `,`&#8765;`),J.backsimeq=J[`⋍`]=W(Z,`\\backsimeq `,`&#8909;`),J.eqsim=J[`≂`]=W(Z,`\\eqsim `,`&#8770;`),J.ncong=J[`≇`]=W(Z,`\\ncong `,`&#8775;`),J.approxeq=J[`≊`]=W(Z,`\\approxeq `,`&#8778;`),J.bumpeq=J[`≏`]=W(Z,`\\bumpeq `,`&#8783;`),J.Bumpeq=J[`≎`]=W(Z,`\\Bumpeq `,`&#8782;`),J.doteqdot=J[`≑`]=W(Z,`\\doteqdot `,`&#8785;`),J.fallingdotseq=J[`≒`]=W(Z,`\\fallingdotseq `,`&#8786;`),J.risingdotseq=J[`≓`]=W(Z,`\\risingdotseq `,`&#8787;`),J.eqcirc=J[`≖`]=W(Z,`\\eqcirc `,`&#8790;`),J.circeq=J[`≗`]=W(Z,`\\circeq `,`&#8791;`),J.triangleq=J[`≜`]=W(Z,`\\triangleq `,`&#8796;`),J.leqq=J[`≦`]=W(Z,`\\leqq `,`&#8806;`),J.geqq=J[`≧`]=W(Z,`\\geqq `,`&#8807;`),J.lneqq=J[`≨`]=W(Z,`\\lneqq `,`&#8808;`),J.gneqq=J[`≩`]=W(Z,`\\gneqq `,`&#8809;`),J.between=J[`≬`]=W(Z,`\\between `,`&#8812;`),J.nleq=J[`≰`]=W(Z,`\\nleq `,`&#8816;`),J.ngeq=J[`≱`]=W(Z,`\\ngeq `,`&#8817;`),J.lesssim=J[`≲`]=W(Z,`\\lesssim `,`&#8818;`),J.gtrsim=J[`≳`]=W(Z,`\\gtrsim `,`&#8819;`),J.lessgtr=J[`≶`]=W(Z,`\\lessgtr `,`&#8822;`),J.gtrless=J[`≷`]=W(Z,`\\gtrless `,`&#8823;`),J.preccurlyeq=J[`≼`]=W(Z,`\\preccurlyeq `,`&#8828;`),J.succcurlyeq=J[`≽`]=W(Z,`\\succcurlyeq `,`&#8829;`),J.precsim=J[`≾`]=W(Z,`\\precsim `,`&#8830;`),J.succsim=J[`≿`]=W(Z,`\\succsim `,`&#8831;`),J.nprec=J[`⊀`]=W(Z,`\\nprec `,`&#8832;`),J.nsucc=J[`⊁`]=W(Z,`\\nsucc `,`&#8833;`),J.subsetneq=J[`⊊`]=W(Z,`\\subsetneq `,`&#8842;`),J.supsetneq=J[`⊋`]=W(Z,`\\supsetneq `,`&#8843;`),J.vDash=J[`⊨`]=W(Z,`\\vDash `,`&#8872;`),J.Vdash=J[`⊩`]=W(Z,`\\Vdash `,`&#8873;`),J.Vvdash=J[`⊪`]=W(Z,`\\Vvdash `,`&#8874;`),J.VDash=J[`⊫`]=W(Z,`\\VDash `,`&#8875;`),J.nvdash=J[`⊬`]=W(Z,`\\nvdash `,`&#8876;`),J.nvDash=J[`⊭`]=W(Z,`\\nvDash `,`&#8877;`),J.nVdash=J[`⊮`]=W(Z,`\\nVdash `,`&#8878;`),J.nVDash=J[`⊯`]=W(Z,`\\nVDash `,`&#8879;`),J.vartriangleleft=J[`⊲`]=W(Z,`\\vartriangleleft `,`&#8882;`),J.vartriangleright=J[`⊳`]=W(Z,`\\vartriangleright `,`&#8883;`),J.trianglelefteq=J[`⊴`]=W(Z,`\\trianglelefteq `,`&#8884;`),J.trianglerighteq=J[`⊵`]=W(Z,`\\trianglerighteq `,`&#8885;`),J.multimap=J[`⊸`]=W(Z,`\\multimap `,`&#8888;`),J.Subset=J[`⋐`]=W(Z,`\\Subset `,`&#8912;`),J.Supset=J[`⋑`]=W(Z,`\\Supset `,`&#8913;`),J.Cap=J[`⋒`]=W(Z,`\\Cap `,`&#8914;`),J.Cup=J[`⋓`]=W(Z,`\\Cup `,`&#8915;`),J.pitchfork=J[`⋔`]=W(Z,`\\pitchfork `,`&#8916;`),J.lessdot=J[`⋖`]=W(Z,`\\lessdot `,`&#8918;`),J.gtrdot=J[`⋗`]=W(Z,`\\gtrdot `,`&#8919;`),J.lll=J[`⋘`]=W(Z,`\\lll `,`&#8920;`),J.ggg=J[`⋙`]=W(Z,`\\ggg `,`&#8921;`),J.lesseqgtr=J[`⋚`]=W(Z,`\\lesseqgtr `,`&#8922;`),J.gtreqless=J[`⋛`]=W(Z,`\\gtreqless `,`&#8923;`),J.curlyeqprec=J[`⋞`]=W(Z,`\\curlyeqprec `,`&#8926;`),J.curlyeqsucc=J[`⋟`]=W(Z,`\\curlyeqsucc `,`&#8927;`),J.nsim=J[`≁`]=W(Z,`\\nsim `,`&#8769;`),J.lnsim=J[`⋦`]=W(Z,`\\lnsim `,`&#8934;`),J.gnsim=J[`⋧`]=W(Z,`\\gnsim `,`&#8935;`),J.precnsim=J[`⋨`]=W(Z,`\\precnsim `,`&#8936;`),J.succnsim=J[`⋩`]=W(Z,`\\succnsim `,`&#8937;`),J.ntriangleleft=J[`⋪`]=W(Z,`\\ntriangleleft `,`&#8938;`),J.ntriangleright=J[`⋫`]=W(Z,`\\ntriangleright `,`&#8939;`),J.ntrianglelefteq=J[`⋬`]=W(Z,`\\ntrianglelefteq `,`&#8940;`),J.ntrianglerighteq=J[`⋭`]=W(Z,`\\ntrianglerighteq `,`&#8941;`),J.blacksquare=J[`∎`]=W(Z,`\\blacksquare `,`&#8718;`),J.colon=J[`∶`]=W(Z,`\\colon `,`&#8758;`),J.llcorner=J[`∟`]=W(Z,`\\llcorner `,`&#8735;`),J.dotplus=J[`∔`]=W(Q,`\\dotplus `,`&#8724;`),J.nmid=J[`∤`]=W(Q,`
162
+ mid `,`&#8740;`),J.intercal=J[`⊺`]=W(Q,`\\intercal `,`&#8890;`),J.veebar=J[`⊻`]=W(Q,`\\veebar `,`&#8891;`),J.barwedge=J[`⊼`]=W(Q,`\\barwedge `,`&#8892;`),J.ltimes=J[`⋉`]=W(Q,`\\ltimes `,`&#8905;`),J.rtimes=J[`⋊`]=W(Q,`\\rtimes `,`&#8906;`),J.leftthreetimes=J[`⋋`]=W(Q,`\\leftthreetimes `,`&#8907;`),J.rightthreetimes=J[`⋌`]=W(Q,`\\rightthreetimes `,`&#8908;`),J.curlyvee=J[`⋎`]=W(Q,`\\curlyvee `,`&#8910;`),J.curlywedge=J[`⋏`]=W(Q,`\\curlywedge `,`&#8911;`),J.circledcirc=J[`⊚`]=W(Q,`\\circledcirc `,`&#8858;`),J.circledast=J[`⊛`]=W(Q,`\\circledast `,`&#8859;`),J.circleddash=J[`⊝`]=W(Q,`\\circleddash `,`&#8861;`),J.boxplus=J[`⊞`]=W(Q,`\\boxplus `,`&#8862;`),J.boxminus=J[`⊟`]=W(Q,`\\boxminus `,`&#8863;`),J.boxtimes=J[`⊠`]=W(Q,`\\boxtimes `,`&#8864;`),J.boxdot=J[`⊡`]=W(Q,`\\boxdot `,`&#8865;`),J[`∂`]=J.partial,J[`∃`]=J.exists,J[`∅`]=J.varnothing,J[`∆`]=J.triangle,J[`∇`]=J.nabla,J[`∈`]=J.in,J[`∊`]=J.in,J[`∋`]=J.ni,J[`∌`]=J.notni,J[`∍`]=J.ni,J[`∐`]=J.amalg,J[`−`]=J[`-`],J[`∓`]=J.mp,J[`∖`]=J.setminus,J[`∘`]=J.circ,J[`∙`]=J.bullet,J[`∝`]=J.propto,J[`∞`]=J.infty,J[`∠`]=J.angle,J[`∡`]=J.measuredangle,J[`∣`]=J.divides,J[`∥`]=J.parallel,J[`∦`]=J.nparallel,J[`∧`]=J.wedge,J[`∨`]=J.vee,J[`∩`]=J.cap,J[`∪`]=J.cup,J[`∮`]=J.oint,J[`∴`]=J.therefore,J[`∵`]=J.because,J[`∼`]=J.sim,J[`≀`]=J.wr,J[`≃`]=J.simeq,J[`≍`]=J.asymp,J[`≐`]=J.doteq,J[`≪`]=J.ll,J[`≫`]=J.gg,J[`≺`]=J.prec,J[`≻`]=J.succ,J[`⊂`]=J.subset,J[`⊃`]=J.supset,J[`⊆`]=J.subseteq,J[`⊇`]=J.supseteq,J[`⊈`]=J.nsubseteq,J[`⊉`]=J.nsupseteq,J[`⊏`]=J.sqsubset,J[`⊐`]=J.sqsupset,J[`⊓`]=J.sqcap,J[`⊔`]=J.sqcup,J[`⊖`]=J.ominus,J[`⊘`]=J.oslash,J[`⊙`]=J.odot,J[`⊢`]=J.vdash,J[`⊣`]=J.dashv,J[`⊤`]=J.top,J[`⊥`]=J.bot,J[`⊧`]=J.models,J[`⋀`]=J.wedge,J[`⋁`]=J.vee,J[`⋂`]=J.cap,J[`⋃`]=J.cup,J[`⋄`]=J.diamond,J[`⋅`]=J.cdot,J[`⋆`]=J.star,J[`⋈`]=J.bowtie,J[`⋮`]=J.vdots,J[`⋯`]=J.cdots,J[`⋱`]=J.ddots;var Pb,Fb=Ny,Ib=document.createElement(`div`).style,Lb={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},Rb;for(var zb in Lb)if(zb in Ib){Rb=zb;break}Rb?Pb=function(e,t,n){e.css(Rb,`scale(`+t+`,`+n+`)`)}:`filter`in Ib?(Fb=function(e){e.className=e.className},Pb=function(e,t,n){t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`);var r=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`);function i(){e.css(`marginRight`,(r.width()-1)*(t-1)/t+`px`)}i();var a=setInterval(i);U(window).load(function(){clearTimeout(a),i()})}):Pb=function(e,t,n){e.css(`fontSize`,n+`em`)};var Bb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),Vb=G(X,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return lb.optBlock.then(function(t){return lb.block.map(function(n){var r=Hb.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),Hb=G(Vb,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,X.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[K].latex()+`]{`+this.ends[q].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[K].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[K]}}),Ub=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return G(X,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},Wb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),Gb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Kb=G(X,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),qb=G(X,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Jb=function(e,t){return G(db,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})};J.mathrm=W(Bb,`\\mathrm`,`span`,`class="mq-roman mq-font"`),J.mathit=W(Bb,`\\mathit`,`i`,`class="mq-font"`),J.mathbf=W(Bb,`\\mathbf`,`b`,`class="mq-font"`),J.mathsf=W(Bb,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),J.mathtt=W(Bb,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),J.underline=W(Bb,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),J.overline=J.bar=W(Ub(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),J.longdiv=W(Wb,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),J.overrightarrow=W(Ub(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),J.overleftarrow=W(Ub(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),J.xleftarrow=W(Vb,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),J.xrightarrow=W(Vb,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),J.overleftrightarrow=W(Bb,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),J.overarc=W(Bb,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),J.dot=G(X,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">&#x2d9;</span><span class="mq-empty-box">&0</span></span></span>`)}}),J.addmatrixrow=W(Gb,`\\addmatrixrow`,`span`,`+`),J.addmatrixcol=W(qb,`\\addmatrixcol`,`span`,`+`),J.ngtr=J[`≯`]=W(Jb(`mq-ngtr`,`&#8815;`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),J.nless=J[`≮`]=W(Jb(`mq-nless`,`&#8814;`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),J.dot=W(Kb,`\\dot`),J.parallelogram=W(Jb(`mq-parallelogram`,`&#9649;`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),J.textcolor=G(X,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=Y.optWhitespace,r=Y.string,i=Y.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),J.class=G(X,function(e,t){e.parser=function(){var e=this,n=Y.string,r=Y.regex;return Y.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}});var Yb=G(X,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(!(!this.replacedFragment&&!e[K]&&e.options.supSubsRequireOperand))return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){for(var t=K;t;t=t===K&&q)if(this[t]instanceof Yb){for(var n=`sub`;n;n=n===`sub`&&`sup`){var r=this[n],i=this[t][n];if(r){if(!i)this[t].addBlock(r.disown());else if(r.isEmpty())var a=By(i,0,i.ends[K]);else{r.jQ.children().insAtDirEnd(-t,i.jQ);var o=r.children().disown(),a=By(i,o.ends[q],i.ends[K]);t===K?o.adopt(i,i.ends[q],0):o.adopt(i,0,i.ends[K])}this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r)}}this.remove(),e&&e[K]===this&&(t===q&&a?a[K]?e.insRightOf(a[K]):e.insAtLeftEnd(a.parent):e.insRightOf(this[t]));break}},Xy.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[K].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof db?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[K]&&!e[q]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),fb.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof db?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(K,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+(n.length===1?n:`{`+(n||` `)+`}`):``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=U(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(Ay,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=U(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(Ay,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">&#8203;</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=Xb,delete e[n].deleteOutOf,t===`sub`&&U(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e=this.jQ,t=e.prev();if(t.length){var n=e.children(`.mq-sup`);if(n.length){var r=parseInt(n.css(`font-size`)),i=n.offset().top+n.height()-t.offset().top-.7*r,a=parseInt(n.css(`margin-bottom`));n.css(`margin-bottom`,a+i)}}}});function Xb(e){var t=this.parent,n=e;do{if(n[q])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}J.subscript=J._=G(Yb,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[K],this.sub.upOutOf=Xb,t.finalizeTree.call(this)}}),J.superscript=J.supscript=J[`^`]=G(Yb,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[q],this.sup.downOutOf=Xb,t.finalizeTree.call(this)}});var Zb=G(X,function(e,t){e.parser=function(){for(var e=Y.string,t=Y.optWhitespace,n=Y.succeed,r=lb.block,i=this,a=i.blocks=[fb(),fb()],o=0;o<a.length;o+=1)a[o].adopt(i,i.ends[q],0);return t.then(e(`_`).or(e(`^`))).then(function(e){var t=a[e===`_`?0:1];return r.then(function(e){return e.children().adopt(t,t.ends[q],0),n(i)})}).many().result(i)},e.finalizeTree=function(){this.downInto=this.ends[K],this.upInto=this.ends[q],this.ends[K].upOutOf=this.ends[q],this.ends[q].downOutOf=this.ends[K]}}),Qb=G(Zb,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;db.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[K].latex())+`^`+e(this.ends[q].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(xb(`n`).createLeftOf(e),Nb().createLeftOf(e))}});J[`∑`]=J.sum=J.summation=W(Qb,`\\sum `,`&sum;`),J[`∏`]=J.prod=J.product=W(Qb,`\\prod `,`&prod;`),J.coprod=J.coproduct=W(Qb,`\\coprod `,`&#8720;`),J[`∫`]=J.int=J.integral=G(Qb,function(e,t){e.init=function(){db.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>&int;</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">&#8203</span></span></span>`)},e.createLeftOf=X.p.createLeftOf}),J.lim=J.limit=G(Zb,function(e,t){e.init=function(){db.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[K].latex())}});var $b=J.over=Wy[`/`]=G(J.frac=J.dfrac=J.cfrac=J.fraction=G(X,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&#8203;</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[q].upOutOf=this.ends[K],this.downInto=this.ends[K].downOutOf=this.ends[q]}}),function(e,t){e.createLeftOf=function(e){if(!this.replacedFragment){for(var n=e[K];n&&!(n instanceof Q||n instanceof(J.text||Ny)||n instanceof Qb||n.ctrlSeq===`\\ `||/^[,;:]$/.test(n.ctrlSeq));)n=n[K];n instanceof Qb&&n[q]instanceof Yb&&(n=n[q],n[q]instanceof Yb&&n[q].ctrlSeq!=n.ctrlSeq&&(n=n[q])),n!==e[K]&&!e.isTooDeep(1)&&(this.replaces(Uy(n[q]||e.parent.ends[K],e[K])),e[K]=n)}t.createLeftOf.call(this,e)}});J.underset=G(X,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[K].upOutOf=this.ends[q],this.upInto=this.ends[q].downOutOf=this.ends[K]}}),J.overset=G(X,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[q].upOutOf=this.ends[K],this.upInto=this.ends[K].downOutOf=this.ends[q]}});var ex=J.sqrt=J[`√`]=G(X,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">&radic;</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return lb.optBlock.then(function(e){return lb.block.map(function(t){var n=tx();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[q].jQ.parent();Pb(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}});J.hat=G(X,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]});var tx=J.nthroot=G(ex,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[K].latex()+`]{`+this.ends[q].latex()+`}`}}),nx=G(X,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}});J.vec=W(nx,`\\vec`,`&rarr;`,[`vec(`,`)`]),J.tilde=W(nx,`\\tilde`,`~`,[`tilde(`,`)`]),J.lrncuberoot=G(ex,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">&radic;</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[K].latex()+`}`}}),J.abs=G(X,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),J.lrnplaceholder=G(X,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[K].latex()}}),J.lrnexponent=G(X,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[q].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[K].latex()+`^`+e}}),J.lrnsquaredexponent=G(X,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[K].latex()+`^2`}}),J.lrnsubscript=G(X,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">&nbsp;</span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[K].latex()+`_`+this.ends[q].latex()}});function rx(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));Pb(this.delimjQs,jy(1+.2*(e-1),1.2),1.2*e)}}var ix=G(G(X,rx),function(e,t){e.init=function(e,n,r,i,a){t.init.call(this,`\\left`+i,Oy,[n,r]),this.side=e,this.sides={},this.sides[K]={ch:n,ctrlSeq:i},this.sides[q]={ch:r,ctrlSeq:a}},e.numBlocks=function(){return 1},e.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===q?` mq-ghost`:``)+`">`+this.sides[K].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===K?` mq-ghost`:``)+`">`+this.sides[q].ch+`</span></span>`,t.html.call(this)},e.latex=function(){return`\\left`+this.sides[K].ctrlSeq+this.ends[K].latex()+`\\right`+this.sides[q].ctrlSeq},e.matchBrack=function(e,t,n){return n instanceof ix&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||ax[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[K].ch]===n.sides[q].ch)&&n},e.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===K?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},e.createLeftOf=function(e){if(!this.replacedFragment){var n=e.options;if(this.sides[K].ch===`|`)var r=this.matchBrack(n,q,e[q])||this.matchBrack(n,K,e[K])||this.matchBrack(n,0,e.parent.parent);else var r=this.matchBrack(n,-this.side,e[-this.side])||this.matchBrack(n,-this.side,e.parent.parent)}if(r){var i=this.side=-r.side;this.closeOpposing(r),r===e.parent.parent&&e[i]&&Uy(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)}else r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(Uy(e[-i],e.parent.ends[-i],i)),e[-i]=0),t.createLeftOf.call(r,e);i===K?e.insAtLeftEnd(r.ends[K]):e.insRightOf(r)},e.placeCursor=Ny,e.unwrap=function(){this.ends[K].children().disown().adopt(this.parent,this,this[q]).jQ.insertAfter(this.jQ),this.remove()},e.deleteSide=function(e,t,n){var r=this.parent,i=this[e],a=r.ends[e];if(e===this.side){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}var o=n.options,s=!this.side;if(this.side=-e,this.matchBrack(o,e,this.ends[K].ends[this.side])){this.closeOpposing(this.ends[K].ends[this.side]);var c=this.ends[K].ends[e];this.unwrap(),c.siblingCreated&&c.siblingCreated(n.options,e),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r)}else{if(this.matchBrack(o,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else if(t&&s){this.unwrap(),i?n.insDirOf(-e,i):n.insAtDirEnd(e,r);return}else this.sides[e]={ch:ax[this.sides[this.side].ch],ctrlSeq:ax[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===K?0:1).addClass(`mq-ghost`).html(this.sides[e].ch);if(i){var c=this.ends[K].ends[e];Uy(i,a,-e).disown().withDirAdopt(-e,this.ends[K],c,0).jQ.insAtDirEnd(e,this.ends[K].jQ.removeClass(`mq-empty`)),c.siblingCreated&&c.siblingCreated(n.options,e),n.insDirOf(-e,i)}else t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[K])}},e.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},e.finalizeTree=function(){this.ends[K].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(+(this.side===K)).removeClass(`mq-ghost`),this.side=0}},e.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),ax={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"&lang;":`&rang;`,"&rang;":`&lang;`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `};function ox(e,t){var t=t||e,n=ax[e],r=ax[t];Wy[e]=W(ix,K,e,n,t,r),Wy[n]=W(ix,q,e,n,t,r)}ox(`(`),ox(`[`),ox(`{`,`\\{`),J.langle=W(ix,K,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),J.rangle=W(ix,q,`&lang;`,`&rang;`,`\\langle `,`\\rangle `),Wy[`|`]=W(ix,K,`|`,`|`,`|`,`|`),J.lVert=W(ix,K,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),J.rVert=W(ix,q,`&#8741;`,`&#8741;`,`\\lVert `,`\\rVert `),J.left=G(X,function(e){e.parser=function(){var e=Y.regex,t=Y.string;Y.succeed;var n=Y.optWhitespace;return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`&lang;`,r+=` `),r==`\\lVert`&&(i=`&#8741;`,r+=` `),lb.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t=e.charAt(0)===`\\`?e.slice(1):e;e==`\\rangle`&&(t=`&rang;`,e+=` `),e==`\\rVert`&&(t=`&#8741;`,e+=` `);var n=ix(0,i,t,r,e);return n.blocks=[a],a.adopt(n,0,0),n})})})}}),J.right=G(X,function(e){e.parser=function(){return Y.fail(`unmatched \\right`)}}),J.choose=G(J.binom=J.binomial=G(G(X,rx),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),function(e){e.createLeftOf=$b.prototype.createLeftOf}),J.editable=J.MathQuillMathField=G(X,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=Y.string,r=Y.regex,i=Y.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=Jy(this.ends[K],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),ob(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[K].controller))},e.latex=function(){return this.ends[K].latex()},e.text=function(){return this.ends[K].text()}});var sx=J.embed=G(db,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=Y.string,n=Y.regex,r=Y.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions($y[i](t))})})}});J.MathQuillResponseContainer=G(X,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[K].text()}}),J.MathQuillResponseContainerIcon=G(X,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[K].text()}});var cx=J.matrix=G(X,function(e,t){var n=G(fb,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e=this,t=e.blocks=[],r,i,a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=e.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;i=r===c?i+1:0,t[a]=n(i,c),t[a].adopt(e,e.ends[q],0),r=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&Pb(n,jy(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e=this.getMatrixName(),t=`\\begin{`+e+`}`,n,i,a;for(a=0;a<this.blocks.length;a++)n=this.blocks[a].row,i!==void 0&&(i===n?t+=r.column:t+=r.row),i=n,t+=this.blocks[a].latex();return t+=`\\end{`+e+`}`,t},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){var n=`<span class="mq-matrix mq-non-leaf">`+o(this.parentheses.left);n+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns);for(var r=0,i=0;i<e;i++){n+=`<tr>`;for(var a=0;a<t;a++)n+=`<td>&`+r+`</td>`,r++;n+=`</tr>`}return n+=`</table>`,n+=o(this.parentheses.right)+`</span>`,n;function o(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=Y.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i=e.replace(o,``),a=[],s=i.split(r.row),c=Math.min(s.length,t.maximum.rows),l=0,u,d;for(d=0;d<c;d++)u=s[d].split(r.column),l=Math.max(l,u.length);for(l=Math.min(l,t.maximum.columns),d=0;d<c;d++){u=s[d].split(r.column);for(var e=0;e<l;e++){var f=n(e,d);lb.parse(u[e]||` `).children().adopt(f,f.ends[q],0),a.push(f)}}t.htmlTemplate=t.generateHtmlTemplate(c,l),t.blocks=a;for(var d=0;d<a.length;d+=1)a[d].adopt(t,t.ends[q],0);return Y.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=Vy.byId[e.first().attr(Ay)],n=Vy.byId[e.last().attr(Ay)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n=Vy.byId[U(this).attr(Ay)],a=e.eq(t+1),o=U(this).closest(`tr`).next(`tr`),s=U(this).closest(`tr`).index(),c=U(this).index(),l;if(a.length){var u=Vy.byId[a.attr(Ay)];n[q]=u,u[K]=n}if(l=o.length?o.find(`td`).eq(c):r.find(`td`).eq(c+1),l.length){var d=Vy.byId[l.attr(Ay)];n.downOutOf=d,d.upOutOf=n}n.column=c,n.row=s,i.push(n)}),this.ends[K]=t,this.ends[q]=n,t&&t[K]&&delete t[K],n&&n[q]&&delete n[q],this.blocks=i},e.deleteCell=function(e){var t=e.jQ.closest(`tr`),n=e.jQ.index(),r=t.index(),i=t.find(`td`).not(e.jQ),a=this.jQ.find(`tr`).not(t).map(function(){return U(this).find(`td`)[n]}),o=this.jQ.find(`td`).length===1,s;function c(){return Vy.byId[U(this).attr(Ay)].isEmpty()}return i.filter(c).length===i.length&&a.length&&(i.remove(),e.jQ.remove(),t.remove(),this.finalizeTree()),a.filter(c).length===a.length&&i.length&&(a.remove(),e.jQ.remove(),this.finalizeTree()),o||(r=Math.min(r,this.jQ.find(`tr`).length-1),n=Math.min(n,this.jQ.find(`tr`).eq(r).find(`td`).length-1),s=Vy.byId[this.jQ.find(`tr`).eq(r).find(`td`).eq(n).attr(Ay)]),s},e.addRow=function(e){if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(var t=e.find(`td`).length,r=U(`<tr></tr>`),i,a,o=0;o<t;o++)i=n(),i.parent=this,i.jQ=U(`<td class="mq-empty">`).attr(Ay,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns)){var t=e.index(),r=e.closest(`tr`).index(),i=this,a,o=[];return this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=U(`<td class="mq-empty">`).attr(Ay,a.id),a.jQ.insertAfter(U(this).find(`td`).eq(t)),o.push(a)}),o[r]}},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}});J.pmatrix=G(cx,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),J.bmatrix=G(cx,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),J.Bmatrix=G(cx,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),J.vmatrix=G(cx,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),J.Vmatrix=G(cx,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}});var lx=ib(3);for(var ux in lx)(function(e,t){typeof t==`function`?(tb[e]=function(){return eb(),t.apply(this,arguments)},tb[e].prototype=t.prototype):tb[e]=t})(ux,lx[ux]);var dx=function(e){e.registerEmbed(`newLine`,()=>({htmlString:`<div class="newLine"></div>`,text:()=>`testText`,latex:()=>`\\embed{newLine}[]`}))},fx;typeof window<`u`&&(fx=tb.getInterface(3),fx&&fx.registerEmbed&&dx(fx));function px(e,t){!fx||!fx.registerEmbed||fx.registerEmbed(e,t)}function mx(e,t,n){if(!(!fx||!e))return t!=null&&(e.textContent=t),fx.StaticMath(e,n)}var hx=dm(`pie-lib:math-input:mq:static`),gx=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,_x=/ /g;function vx(e=``){return e.replace(_x,``)}function yx(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var bx=class extends P.Component{static propTypes={latex:O.string.isRequired,onFocus:O.func,onBlur:O.func,className:O.string,getFieldName:O.func,onSubFieldChange:O.func,onSubFieldFocus:O.func,setInput:O.func};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=P.createRef()}componentDidMount(){this.update(),Rf(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),Rf()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField||this._isProgrammaticUpdate)return;let t=this.props.getFieldName(e,this.mathField.innerFields);if(this.props.onSubFieldChange){let n=e.latex().match(/[0-9]\\ \\frac\{[^\{]*\}\{ \}/);if(this.inputRef?.current&&n&&n?.length)try{e.__controller.cursor.insLeftOf(e.__controller.cursor.parent[-1].parent),e.el().dispatchEvent(new KeyboardEvent(`keydown`,{keyCode:8}))}catch(e){console.error(e.toString())}else this.props.onSubFieldChange(t,e.latex())}this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(yx(e)>yx(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}(this.state.previousLatex!==e||this.state.isDeleteKeyPressed)&&this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!fx)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=fx.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this._isProgrammaticUpdate=!0,this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}finally{this._isProgrammaticUpdate=!1}};blur=()=>{hx(`blur mathfield`),this.mathField.blur()};focus=()=>{hx(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=vx(this.mathField.parseLatex(e.latex)),n=(e.latex.match(gx)||[]).length,r=t!==vx(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return hx(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,F.jsx)(`span`,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef})}},xx={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},Sx={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},Cx={"& *":{...xx,...Sx,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-longdiv-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},wx=e=>(ae(5-e.length,()=>e.push([])),oe.apply(null,e)),Tx=dm(`pie-lib:math-inline:keypad`),Ex=L(bx)(({latex:e})=>{let t={pointerEvents:`none`,textTransform:`none !important`,color:Vh(),"& .mq-scaled.mq-sqrt-prefix":{transform:`scale(1, 0.9) !important`},"& .mq-sup-only .mq-sup":{marginBottom:`0.9px !important`},"& .mq-empty":{backgroundColor:`${Lg()} !important`},"& .mq-overline .mq-overline-inner":{borderTop:`2px solid black`},"& .mq-non-leaf.mq-overline":{borderTop:`none !important`},"& .mq-overarrow":{width:`30px`,marginTop:`0 !important`,borderTop:`2px solid black`,fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`,"&.mq-arrow-both":{top:`0px !important`,"& *":{lineHeight:`1 !important`,borderTop:`none !important`},"&:before":{fontSize:`80%`,left:`calc(-13%) !important`,top:`-0.31em !important`},"&:after":{fontSize:`80% !important`,right:`calc(-13%) !important`,top:`-1.5em`},"&.mq-empty:before":{fontSize:`80%`,left:`calc(-13%)`,top:`-0.26em`},"&.mq-empty:after":{fontSize:`80%`,right:`calc(-13%)`,top:`-0.26em`},"&.mq-empty":{minHeight:`1.4em`}},"&.mq-arrow-right:before":{fontSize:`80%`,right:`calc(-13%) !important`,top:`-0.26em !important`},"& .mq-overarrow-inner":{border:`none !important`},"& .mq-overarrow-inner .mq-overarrow-inner-right":{display:`none !important`}},"& .mq-root-block":{padding:`5px !important`},"& .mq-overarrow.mq-arrow-both.mq-empty:after":{right:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-right.mq-empty:before":{right:`-5px`,fontSize:`80% !important`,top:`-3px`},"& .mq-overarrow.mq-arrow-both.mq-empty:before":{left:`-6px`,fontSize:`80% !important`,top:`-3px`},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85},"& .mq-overarc":{borderTop:`2px solid black !important`,"& .mq-overline":{borderTop:`none !important`},"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`}}};return e===`\\parallel`?{...t,fontStyle:`italic !important`}:e===`\\overleftrightarrow{\\overline{}}`?{...t,"& .mq-overarrow.mq-arrow-both":{"& .mq-overline-inner":{borderTop:`none !important`,paddingTop:`0 !important`},"&:after":{position:`absolute !important`,top:`0px !important`}}}:t});Ex.propTypes={latex:O.string.isRequired};var Dx=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},Ox=L(`div`)(()=>({...Cx,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridRowGap:`0px`,gridColumnGap:`0px`,gridAutoFlow:`column`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}})),kx=L(rm)(({category:e,isDelete:t,isComma:n,isDot:r})=>({minWidth:`auto`,textTransform:`none`,fontSize:n||r?`200% !important`:`140% !important`,lineHeight:n||r?`100%`:`normal`,color:Vh(),backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()},borderRadius:0,...t&&{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}})),Ax=L(rm)(({category:e})=>({textTransform:`none`,padding:0,margin:0,fontSize:`110% !important`,minWidth:`auto`,borderRadius:0,backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()}})),jx=L(lm)(({category:e})=>({minWidth:`auto`,backgroundColor:e===`operators`?Ig():Fg(),"&:hover":{backgroundColor:e===`operators`?zg():Rg()},borderRadius:0,"& .icon":{height:`30px`}})),Mx=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,baseSet:O.array,additionalKeys:O.array,layoutForKeyPad:O.object,onPress:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,setKeypadInteraction:O.func,mode:O.oneOfType([O.string,O.number])};static defaultProps={baseSet:Zf,noDecimal:!1};constructor(e){super(e),this.keypadRef=P.createRef()}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);if(i<0){let n=e.height+e.top-i;t&&(t.style.height=`${n}px`)}}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};buttonClick=e=>{Tx(`[buttonClick]`,e);let{onPress:t}=this.props;t(e)};flowKeys=(e,t)=>A([...wx(e),...wx(t)]);keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return!!((e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t)};render(){let{className:e,baseSet:t,additionalKeys:n,layoutForKeyPad:r,onFocus:i,mode:a}=this.props,o=[`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(a),s=o?this.flowKeys([],n||[]):this.flowKeys(t,n||[]),c=s.length%5?1:0,l={gridTemplateColumns:`repeat(${Math.floor(s.length/5)+c}, minmax(min-content, 150px))`,...Dx(r)};return(0,F.jsx)(Ox,{ref:this.keypadRef,className:[e,a].filter(Boolean).join(` `),style:l,onFocus:i,children:s.map((e,t)=>{let n=this.buttonClick.bind(this,e);if(!e)return(0,F.jsx)(`span`,{},`empty-${t}`);let r={onClick:n,disabled:this.keyIsNotAllowed(e),key:`${e.label||e.latex||e.command}-${t}`,...e.actions||{},...e.extraProps||{}};if(e.latex)return(0,F.jsx)(Ax,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(Ex,{latex:e.latex})},r.key);if(e.label)return(0,F.jsx)(kx,{onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,isDelete:e.label===`⌫`,isComma:e.label===`,`,isDot:e.label===`.`,"aria-label":e.ariaLabel?e.ariaLabel:e.name||e.label,...e.actions||{},...e.extraProps||{},children:e.label},r.key);{let t=e.icon?e.icon:`div`;return(0,F.jsx)(jx,{tabIndex:`-1`,onClick:r.onClick,disabled:r.disabled,category:o?void 0:e.category,size:`large`,...e.actions||{},...e.extraProps||{},children:(0,F.jsx)(t,{className:`icon`})},r.key)}})})}},Nx=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},Px=class extends P.Component{static propTypes={className:O.string,controlledKeypadMode:O.bool,mode:O.oneOfType([O.string,O.number]),layoutForKeyPad:O.object,onClick:O.func.isRequired,onFocus:O.func,noDecimal:O.bool,additionalKeys:O.array,setKeypadInteraction:O.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(Nx(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s}=this.props,c=Lf(a);return(0,F.jsx)(Mx,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:Nu(Ff(e),c),onPress:this.keypadPress,mode:e,setKeypadInteraction:s})}},Fx=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),Ix=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),Lx=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),Rx=o(((e,t)=>{var n=Lx(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),zx=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),Bx=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=zx();t.exports=function(e){return e?e.replace(r,n):``}})),Vx=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),Hx=o(((e,t)=>{var n=Vx();t.exports=function(e){return n(e).toLowerCase()}})),Ux=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),Wx=o(((e,t)=>{var n=Bx(),r=Hx(),i=Ux(),a=Lx(),o=Rx(),s=Fx(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),Gx=o(((e,t)=>{t.exports=Wx()()})),Kx=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),qx=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),Jx=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),Yx=o(((e,t)=>{Rx();var n=Gx(),r=Hx(),i=Bx(),a=Kx(),o=qx(),s=Jx(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:Ix()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),Xx=o(((e,t)=>{var n=Yx(),r=Kx();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),Zx=o(((e,t)=>{t.exports={prefixProperties:Fx(),cssUnitless:Ix(),object:Yx(),string:Xx()}}))(),Qx=dm(`@pie-lib:mask-markup:serialization`),$x=[`span`],eS=[`em`,`strong`,`u`],tS=3,nS=8,rS=1,iS=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},aS=e=>$x.includes(e)?`inline`:eS.includes(e)?`mark`:`block`,oS=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},sS=e=>(0,Zx.object)(e,{camelize:!0,addUnits:!1}),cS=(e,t)=>sS(oS(e.getAttribute(t))),lS=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},uS=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=cS(e,n);break;case`class`:t.className=lS(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},dS=[`border`,`class`,`style`],fS={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},pS=(e,t=[])=>{if(e.nodeType===nS)return null;if(e.nodeType===tS){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===rS){let n=e.tagName.toLowerCase(),r=fS[n];if(r)return Qx(`[deserialize] mark: `,r),{_flatten:!0,nodes:mS(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=iS(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=dS.reduce(uS(e),{...i}),o=aS(n),s=mS(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},mS=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=pS(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},hS=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=mS(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},gS=L(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),_S=L(`span`)(()=>({display:`inline-block`,width:`.75em`})),vS=[`tbody`,`tr`],yS=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&vS.includes(r)))return t},bS=e=>{let t=e.leaves.find(e=>ne(e,`marks`,[]).length);return t?t.marks:null},xS=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`}})),o;if(r){let i=r(e,t,n);if(i){let t=e.data?.dataset?.component===`blank`;t&&o.push((0,F.jsx)(_S,{},`spacer-${s}-before`)),o.push(i),t&&o.push((0,F.jsx)(_S,{},`spacer-${s}-after`));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=yS(i,n);return r?e+r:e},``),n=bS(e);if(n?.length>0){let e=n.map(e=>Object.keys(fS).find(t=>fS[t]===e.type)).filter(Boolean);e.length>0?o.push(e.reduceRight((e,t,n)=>(0,F.jsx)(t,{children:e},`${c}-${t}-${n}`),t)):o.push(t)}else t.length>0&&o.push(t)}else{let i=xS(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,F.jsx)(gS,{children:i},c));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,F.jsx)(t,{...e.data.attributes,children:i},c)):o.push((0,F.jsx)(t,{...e.data.attributes},c))}}}),o},SS=L(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),CS=class extends P.Component{constructor(e){super(e),this.internalContainerRef=P.createRef()}static propTypes={renderChildren:O.func,layout:O.object,value:O.object,onChange:O.func,elementType:O.string,containerRef:O.oneOfType([O.func,O.shape({current:O.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof av==`function`&&av(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=xS(t,e,this.handleChange,this.props.renderChildren,null,n),a=r||this.internalContainerRef;return(0,F.jsx)(SS,{ref:a,children:i})}},wS=/\{\{(\d+)\}\}/g,TS=(e,t)=>e?{markup:e.replace(wS,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},ES=(e,t)=>{let{markup:n}=TS(e,t);return hS(n).document},DS=((e,t)=>class extends P.Component{static propTypes={markup:O.string,layout:O.object,value:O.object,onChange:O.func,customMarkMarkupComponent:O.func,elementType:O.string};constructor(e){super(e),this.containerRef=P.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.innerHTML=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||ES(n,e);return(0,F.jsx)(CS,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)})}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),OS=`height ease-in 300ms, opacity ease-in 300ms`,kS=L(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:OS,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:OS,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),AS=e=>{let{show:t,children:n,className:r}=e,i=(0,P.useRef)(null);return(0,F.jsx)(Ds,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,F.jsx)(kS,{ref:i,className:r,children:n})})};AS.propTypes={show:O.bool.isRequired,className:O.string,children:O.oneOfType([O.arrayOf(O.node),O.node]).isRequired};var jS={translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,redo:`Redo`,reset:`Reset`},mathInline:{primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},mcPopulatedBlank:{answerChoices:`Answer choices`,blankLabel:`blank`,emptyBlank:`(blank)`,blankPreSelectionHint:`The answer you choose will appear on the blank line above.`,correctAnswerSelected:`Correct answer selected`,incorrectAnswerSelected:`Incorrect answer selected`,selectedAnswerImage:`Selected answer image`,choiceImage:`Choice {{id}}`,clickToEnableAutoplay:`Click to enable audio autoplay`,audioResourceUnavailable:`Audio is enabled but no playable audio URL is configured.`,listen:`Listen`,listenSilentAlt:`Repeat instructions`,listenPlayingAlt:`Instructions are playing`,printAudio:`Audio:`,printTranscript:`Transcript:`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`},simpleCloze:{correctAnswerShown:`Correct answer`,correct:`Correct`,incorrect:`Incorrect`,unanswered:`No answer`,placeholder:`Enter your answer...`,answerInput:`Your answer`,printCorrectAnswer:`Correct answer:`,printAnswerBlank:`Answer blank`},vennClassification:{tray:`Tiles to classify`,unknownTarget:`unknown`,cancelled:`Cancelled`,returnedToTray:`{{name}} returned to tray`,placedIn:`{{name}} placed in {{target}}`,pickedUp:`Picked up {{name}}`,pickedUpWithKeyboard:`Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.`,dropTarget:`Drop target: {{target}}`,unsupportedCircles_one:`This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.`,unsupportedCircles_other:`This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.`,setNumber:`Set {{number}}`,regionOnly:`{{set}} only`,regionNeither:`Neither {{first}} nor {{second}}`,regionNoneOf:`None of {{sets}}`,regionAndSeparator:` and `,tileFallbackName:`Tile`,tileNotPlaced:`not placed`,tileInRegion:`in {{region}}`,tileCorrect:`correct`,tileIncorrect:`incorrect`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,showTeacherInstructions:`Show Teacher Instructions`,hideTeacherInstructions:`Hide Teacher Instructions`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`}},MS={translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`}},graphing:{point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},mcPopulatedBlank:{answerChoices:`Opciones de respuesta`,blankLabel:`espacio en blanco`,emptyBlank:`(en blanco)`,blankPreSelectionHint:`La respuesta que elijas aparecerá en la línea en blanco de arriba.`,correctAnswerSelected:`Respuesta correcta seleccionada`,incorrectAnswerSelected:`Respuesta incorrecta seleccionada`,selectedAnswerImage:`Imagen de la respuesta seleccionada`,choiceImage:`Opción {{id}}`,clickToEnableAutoplay:`Haz clic para activar la reproducción automática del audio`,audioResourceUnavailable:`El audio está activado, pero no hay una URL de audio reproducible configurada.`,listen:`Escuchar`,listenSilentAlt:`Escuchar. Repetir las instrucciones.`,listenPlayingAlt:`Escuchar. Estas son las instrucciones.`,printAudio:`Audio:`,printTranscript:`Transcripción:`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`},simpleCloze:{correctAnswerShown:`Respuesta correcta`,correct:`Correcto`,incorrect:`Incorrecto`,unanswered:`Sin respuesta`,placeholder:`Escribe tu respuesta...`,answerInput:`Tu respuesta`,printCorrectAnswer:`Respuesta correcta:`,printAnswerBlank:`Espacio para la respuesta`},vennClassification:{tray:`Fichas para clasificar`,unknownTarget:`desconocido`,cancelled:`Cancelado`,returnedToTray:`Se devolvió {{name}} a la bandeja`,placedIn:`Se colocó {{name}} en {{target}}`,pickedUp:`Se tomó {{name}}`,pickedUpWithKeyboard:`Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.`,dropTarget:`Destino: {{target}}`,unsupportedCircles_one:`No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.`,unsupportedCircles_other:`No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.`,setNumber:`Conjunto {{number}}`,regionOnly:`Solo {{set}}`,regionNeither:`Ni {{first}} ni {{second}}`,regionNoneOf:`Ninguno de {{sets}}`,regionAndSeparator:` y `,tileFallbackName:`Ficha`,tileNotPlaced:`sin colocar`,tileInRegion:`en {{region}}`,tileCorrect:`correcta`,tileIncorrect:`incorrecta`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correcto`,incorrect:`Incorrecto`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,showTeacherInstructions:`Mostrar instrucciones para el maestro`,hideTeacherInstructions:`Ocultar instrucciones para el maestro`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`}},$=e=>typeof e==`string`,NS=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},PS=e=>e==null?``:``+e,FS=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},IS=/###/g,LS=e=>e&&e.indexOf(`###`)>-1?e.replace(IS,`.`):e,RS=e=>!e||$(e),zS=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(RS(e))return{};let t=LS(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return RS(e)?{}:{obj:e,k:LS(r[i])}},BS=(e,t,n)=>{let{obj:r,k:i}=zS(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=zS(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=zS(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},VS=(e,t,n,r)=>{let{obj:i,k:a}=zS(e,t,Object);i[a]=i[a]||[],i[a].push(n)},HS=(e,t)=>{let{obj:n,k:r}=zS(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},US=(e,t,n)=>{let r=HS(e,n);return r===void 0?HS(t,n):r},WS=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):WS(e[r],t[r],n):e[r]=t[r]);return e},GS=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),KS={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},qS=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>KS[e]):e,JS=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},YS=[` `,`,`,`?`,`!`,`;`],XS=new JS(20),ZS=(e,t,n)=>{t||=``,n||=``;let r=YS.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=XS.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},QS=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},$S=e=>e?.replace(/_/g,`-`),eC={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},tC=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||eC,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},nC=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},rC=class extends nC{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=HS(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:QS(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),BS(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=HS(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?WS(s,n,i):s={...s,...n},BS(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},iC={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},aC=Symbol(`i18next/PATH_KEY`);function oC(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===aC?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function sC(e,t){let{[aC]:n}=e(oC()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`;if(n.length>1&&i){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var cC={},lC=e=>!$(e)&&typeof e!=`boolean`&&typeof e!=`number`,uC=class e extends nC{constructor(e,t={}){super(),FS([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=tC.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=lC(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ZS(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=sC(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?sC(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!$(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=lC(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!($(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:lC(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&$(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=$(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=$(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=iC.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return $(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?sC(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!cC[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(cC[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},dC=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tC.create(`languageUtils`)}getScriptPartFromCode(e){if(e=$S(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=$S(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},fC={zero:0,one:1,two:2,few:3,many:4,other:5},pC={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},mC=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=tC.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=$S(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),pC;if(!e.match(/-|_/))return pC;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>fC[e]-fC[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},hC=(e,t,n,r=`.`,i=!0)=>{let a=US(e,t,n);return!a&&i&&$(n)&&(a=QS(e,n,r),a===void 0&&(a=QS(t,n,r))),a},gC=e=>e.replace(/\$/g,`$$$$`),_C=class{constructor(e={}){this.logger=tC.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?qS:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?GS(i):a||`{{`,this.suffix=o?GS(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?GS(d):f||GS(`$t(`),this.nestingSuffix=p?GS(p):m||GS(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=hC(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(hC(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>gC(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?gC(this.escape(e)):gC(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!$(a)&&!this.useRawValueToEscape&&(a=PS(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${GS(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=PS(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},vC=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},yC=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e($S(r),i),t[o]=s),s(n)}},bC=e=>(t,n,r)=>e($S(n),r)(t),xC=class{constructor(e={}){this.logger=tC.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?yC:bC;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=yC(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=vC(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},SC=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},CC=class extends nC{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=tC.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{VS(n.loaded,[i],a),SC(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},wC=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),TC=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),EC=()=>{},DC=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},OC=`__i18next_supportNoticeShown`,kC=()=>!!(typeof globalThis<`u`&&globalThis[OC]||typeof process<`u`&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<`u`&&process.env),AC=()=>{typeof globalThis<`u`&&(globalThis[OC]=!0)},jC=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(e=>e?.projectId)),MC=class e extends nC{constructor(e={},t){if(super(),this.options=TC(e),this.services={},this.logger=tC,this.modules={external:[]},DC(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&($(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=wC();this.options={...n,...this.options,...TC(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!jC(this)&&!kC()&&(typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`),AC());let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?tC.init(r(this.modules.logger),this.options):tC.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:xC;let t=new dC(this.options);this.store=new rC(this.options.resources,this.options);let i=this.services;i.logger=tC,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new mC(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new _C(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new CC(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new uC(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=EC,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=NS(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=EC){let n=t,r=$(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=NS();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=EC,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&iC.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=NS();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes($(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o={...this.options,...a};typeof a.keyPrefix==`function`&&(a.keyPrefix=sC(a.keyPrefix,o));let s=this.options.keySeparator||`.`,c;return a.keyPrefix&&Array.isArray(e)?c=e.map(e=>(typeof e==`function`&&(e=sC(e,o)),`${a.keyPrefix}${s}${e}`)):(typeof e==`function`&&(e=sC(e,o)),c=a.keyPrefix?`${a.keyPrefix}${s}${e}`:e),this.t(c,a)};return $(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=NS();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=NS();$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new dC(wC());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=EC){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new rC(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...wC().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new _C(n)}return a.translator=new uC(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();MC.createInstance,MC.dir,MC.init,MC.loadResources,MC.reloadResources,MC.use,MC.changeLanguage,MC.getFixedT,MC.t,MC.exists,MC.setDefaultNamespace,MC.hasLoadedNamespace,MC.loadNamespaces,MC.loadLanguages,MC.init({fallbackLng:`en`,lng:`en`,showSupportNotice:!1,resources:{en:jS,es:MS}});var NC={translator:{...MC,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return MC.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]};function PC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function FC(e,t){return!e||PC(e)?e:PC(e.default)?e.default:t&&PC(e[t])?e[t]:t&&PC(e[t]?.default)?e[t].default:e}var IC=FC(Yv,`Readable`)||FC(zC.Readable,`Readable`),LC=wy,RC=LC.default,zC=RC&&typeof RC==`object`?RC:LC,{translator:BC}=NC,VC={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},HC=L(`div`)(()=>({width:`100%`,cursor:`pointer`})),UC=L(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),WC=L(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${Vh()})`,fontWeight:`normal`,...VC})),GC=L(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),KC=L(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),qC=class e extends P.Component{static propTypes={onToggle:O.func,toggled:O.bool,show:O.bool,hideMessage:O.string,showMessage:O.string,className:O.string,language:O.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=P.createRef(),this.closedIconRef=P.createRef(),e.defaultProps={...e.defaultProps,showMessage:BC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:BC.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:BC.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:BC.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,F.jsx)(HC,{className:e,children:(0,F.jsx)(AS,{show:this.state.show,children:(0,F.jsxs)(UC,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,F.jsxs)(KC,{children:[(0,F.jsx)(Ds,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(GC,{ref:this.openIconRef,children:(0,F.jsx)(Dm,{open:t},`correct-open`)})}),(0,F.jsx)(Ds,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,F.jsx)(GC,{ref:this.closedIconRef,children:(0,F.jsx)(Dm,{open:t},`correct-closed`)})})]}),(0,F.jsx)(IC,{false:!0,children:(0,F.jsx)(WC,{"aria-hidden":!this.state.show,children:t?n:r})})]})})})}};function JC(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function YC(e,t){return!e||JC(e)?e:JC(e.default)?e.default:t&&JC(e[t])?e[t]:t&&JC(e[t]?.default)?e[t].default:e}var XC=YC(vv,`UiLayout`)||YC(nw.UiLayout,`UiLayout`),ZC=YC(Jv,`PreviewPrompt`)||YC(nw.PreviewPrompt,`PreviewPrompt`),QC=YC(Yv,`Readable`)||YC(nw.Readable,`Readable`),$C=YC(cv,`Collapsible`)||YC(nw.Collapsible,`Collapsible`),ew=wy,tw=ew.default,nw=tw&&typeof tw==`object`?tw:ew,rw=L(XC)({color:Vh(),backgroundColor:lg(),display:`inline-block`}),iw=L(`div`)({width:`100%`,position:`relative`,backgroundColor:lg(),color:Vh()}),aw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),ow=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),sw=L(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),cw=L(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${Yh()} !important`},...n&&{borderColor:`${Gh()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),lw=L(bx)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:Vh()}}}),uw=L(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),dw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),fw=L(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),pw=L(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),mw=L(qC)(({theme:e})=>({color:Vh(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
163
163
  .block-container {
164
164
  margin: 8px !important;
165
165
  display: inline-flex;
@@ -177,8 +177,8 @@ mid `,`&#8740;`),Y.intercal=Y[`⊺`]=G(Q,`\\intercal `,`&#8890;`),Y.veebar=Y[`
177
177
  border-right: 2px solid #bdbdbd !important;
178
178
  }
179
179
  .block-math {
180
- color: ${Bh()};
181
- background-color: ${cg()};
180
+ color: ${Vh()};
181
+ background-color: ${lg()};
182
182
  padding: 4px !important;
183
183
  display: flex;
184
184
  align-items: center;
@@ -189,14 +189,14 @@ mid `,`&#8740;`),Y.intercal=Y[`⊺`]=G(Q,`\\intercal `,`&#8890;`),Y.veebar=Y[`
189
189
  display: none;
190
190
  }
191
191
  .correct {
192
- border-color: ${Wh()} !important;
192
+ border-color: ${Gh()} !important;
193
193
  }
194
194
  .incorrect {
195
- border-color: ${Jh()} !important;
195
+ border-color: ${Yh()} !important;
196
196
  }
197
- `,document.head.appendChild(t)}}var aw=!1,ow=/(\{\{\d+\}\})/gm,sw=6,cw=8,lw=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function uw(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function dw(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function fw(e){return e.split(ow).filter(e=>e)}function pw(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):fw(i).reduce((e,n)=>{if(n.match(ow)){let i=hw.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var mw={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+cw,d=l+n-r-cw;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},hw=class e extends F.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(ow,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:F.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(aw||=(rx(`answerBlock`,e=>({htmlString:`<div class="block-container">
197
+ `,document.head.appendChild(t)}}var hw=!1,gw=/(\{\{\d+\}\})/gm,_w=6,vw=8,yw=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function bw(e=[]){return e.map(e=>({name:e,latex:e,write:e,label:e}))}function xw(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function Sw(e){return e.split(gw).filter(e=>e)}function Cw(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):Sw(i).reduce((e,n)=>{if(n.match(gw)){let i=Tw.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var ww={name:`smartHorizontalPlacement`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:({state:e})=>{let t=e.modifiersData.popperOffsets;if(!t)return;let n=window.innerWidth||document.documentElement.clientWidth,r=e.rects.popper.width,i=e.elements.reference.getBoundingClientRect().left,a=e.elements.popper?.offsetParent,o=a?.getBoundingClientRect?.()||{left:0},s=a?.scrollLeft||0,c=i-o.left+s,l=c-i,u=l+vw,d=l+n-r-vw;i+r<=n?t.x=c:t.x=c-r,d<u?t.x=u:t.x=Math.min(Math.max(t.x,u),d)}},Tw=class e extends P.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:O.object.isRequired,onSessionChange:O.func,model:O.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(gw,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:P.createRef()}}UNSAFE_componentWillMount(){typeof window<`u`&&(hw||=(px(`answerBlock`,e=>({htmlString:`<div class="block-container">
198
198
  <div class="block-response" id="${e}Index">R</div>
199
199
  <div class="block-math">
200
200
  <span id="${e}"></span>
201
201
  </div>
202
- </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`#${t}`),i=this.root.querySelector(`#${t}Index`);if(n){let a=r[t];ix(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),J_(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(ow),d=o.match(ow);if(!ie(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=ie(this.props.model,e.model),r=ie(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>J_(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{Lf(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&lw){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&(Hv(t)||Wv(t)),i=(0,I.jsx)(VC,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,I.jsx)(XC,{children:n?i:(0,I.jsx)(UC,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,I.jsx)(VC,{prompt:t});return t&&(Hv(t)||Wv(t))&&(0,I.jsx)(XC,{children:n?r:(0,I.jsx)(UC,{labels:{hidden:`Show Rationale`,visible:`Hide Rationale`},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m}=e||{},h=j(c),g=uw(u),_=pw(e,this.state)||``,v=p&&!m;return(0,I.jsx)(ZC,{children:(0,I.jsx)(_S,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,I.jsx)($C,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:_[e],onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,I.jsx)(QC,{ref:i,$incorrect:!h&&!c&&!n,$correct:!h&&(c||n),$showCorrectness:!h&&o&&a&&!s,$correctAnswerShown:n,children:(0,I.jsx)(Su,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},mw]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,I.jsx)(ew,{"data-keypad":!0,style:{width:dw(g,l)},children:(0,I.jsx)(wx,{additionalKeys:g,mode:l||sw,onClick:this.onClick})},e)||null),children:v?(0,I.jsx)(tw,{children:u}):(0,I.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!j(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,I.jsx)(qC,{extraCSSRules:a,ref:e=>{let t=gs.findDOMNode(e);this.root=t||this.root},children:(0,I.jsxs)(JC,{children:[r===`gather`&&(0,I.jsx)(nw,{children:`Math Equation Response Question`}),(0,I.jsx)(JC,{children:d&&(0,I.jsx)(iw,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,I.jsx)(YC,{children:(0,I.jsx)(VC,{prompt:n})}),(0,I.jsx)(HC,{false:!0,children:this.renderPlayerContent()}),f&&(0,I.jsx)(rw,{className:`note`,dangerouslySetInnerHTML:{__html:u}}),this.renderRationale()]})})}},gw=g(),_w=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=F.createElement(hw,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,gw.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,_w),_w})();
202
+ </div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),!0))}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`#${t}`),i=this.root.querySelector(`#${t}Index`);if(n){let a=r[t];mx(n,a&&a.value||``),e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),i.textContent=`R`}}),av(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(gw),d=o.match(gw);if(!ie(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=ie(this.props.model,e.model),r=ie(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>av(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{let t=Array.from(this.root?.querySelectorAll(`.mq-editable-field`)||[]).map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),n=()=>{t.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n})};this.setState({activeAnswerBlock:e},()=>{n(),requestAnimationFrame(n),setTimeout(n,0)})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value);let n=this.input?.el?.()||this.root,r=[],i=n;for(;i&&i!==document.body&&i!==document.documentElement;)(i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight)&&r.push(i),i=i.parentElement;document.scrollingElement&&r.push(document.scrollingElement);let a=r.map(e=>({el:e,left:e.scrollLeft,top:e.scrollTop})),o={x:window.scrollX,y:window.scrollY},s=()=>{a.forEach(({el:e,left:t,top:n})=>{e.scrollLeft=t,e.scrollTop=n}),window.scrollTo(o.x,o.y)};this.input.focus(),s(),requestAnimationFrame(s),setTimeout(s,0)};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{Rf(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&yw){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&($v(t)||ty(t)),i=(0,F.jsx)(ZC,{defaultClassName:`teacher-instructions`,prompt:t});return r&&(0,F.jsx)(ow,{children:n?i:(0,F.jsx)($C,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:i})})};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,F.jsx)(ZC,{prompt:t});return t&&($v(t)||ty(t))&&(0,F.jsx)(ow,{children:n?r:(0,F.jsx)($C,{labels:{hidden:`Show Rationale`,visible:`Hide Rationale`},children:r})})};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m}=e||{},h=j(c),g=bw(u),_=Cw(e,this.state)||``,v=p&&!m;return(0,F.jsx)(sw,{children:(0,F.jsx)(DS,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,F.jsx)(lw,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:_[e],onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur});return(0,F.jsx)(cw,{ref:i,$incorrect:!h&&!c&&!n,$correct:!h&&(c||n),$showCorrectness:!h&&o&&a&&!s,$correctAnswerShown:n,children:(0,F.jsx)(Cu,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-start`,sx:{backgroundColor:`transparent`,width:`auto`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:[{name:`preventOverflow`,enabled:!1},{name:`flip`,enabled:!1},ww]},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`auto`,maxWidth:`none`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(0,F.jsx)(uw,{"data-keypad":!0,style:{width:xw(g,l)},children:(0,F.jsx)(Px,{additionalKeys:g,mode:l||_w,onClick:this.onClick})},e)||null),children:v?(0,F.jsx)(dw,{children:u}):(0,F.jsx)(`div`,{children:u})})})}})})};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!j(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,F.jsx)(rw,{extraCSSRules:a,ref:e=>{let t=_s.findDOMNode(e);this.root=t||this.root},children:(0,F.jsxs)(iw,{children:[r===`gather`&&(0,F.jsx)(fw,{children:`Math Equation Response Question`}),(0,F.jsx)(iw,{children:d&&(0,F.jsx)(mw,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect})}),this.renderTeacherInstructions(),n&&(0,F.jsx)(aw,{children:(0,F.jsx)(ZC,{prompt:n})}),(0,F.jsx)(QC,{false:!0,children:this.renderPlayerContent()}),f&&(0,F.jsx)(pw,{className:`note`,dangerouslySetInnerHTML:{__html:u}}),this.renderRationale()]})})}},Ew=g(),Dw=class extends HTMLElement{constructor(){super(),this._root=null,this._sessionNotifier=S(this,()=>{this.dispatchEvent(new T(this.tagName.toLowerCase(),!0))},{delayMs:1e3}),this.sessionChangedEventCaller=()=>this._sessionNotifier.notify()}set model(e){this._model=e,this.render(),this.dispatchEvent(new w(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=P.createElement(Tw,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,Ew.createRoot)(this),this._root.render(e)}}disconnectedCallback(){C(this),this._root&&=(this._root.unmount(),null)}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,Dw),Dw})();